Commit Graph

122068 Commits

Author SHA1 Message Date
Andrey Belevantsev 242387fa90 sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set DUMP_INSN_RTX_UID.
* sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
        DUMP_INSN_RTX_UID.
        (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.

From-SVN: r196138
2013-02-19 17:52:19 +04:00
Andrey Belevantsev b4979ab94e re PR middle-end/55889 (ICE: in move_op_ascend, at sel-sched.c:6153 with -fschedule-insns -fselective-scheduling)
2012-02-19  Andrey Belevantsev  <abel@ispras.ru>

        PR middle-end/55889

        * sel-sched.c: Include ira.h.
        (implicit_clobber_conflict_p): New function.
        (moveup_expr): Use it.
        * Makefile.in (sel-sched.o): Depend on ira.h.

From-SVN: r196137
2013-02-19 17:50:50 +04:00
Richard Biener 24d630163b re PR tree-optimization/56384 (ICE in fold_binary_loc, at fold-const.c:10422)
2013-02-19  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56384
	* tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
	(vn_hash_type): Split out from ...
	(vn_hash_constant_with_type): ... here.
	* tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
	(vn_phi_eq): Compare types from vn_phi_s structure.
	(vn_phi_lookup): Populate vn_phi_s type.
	(vn_phi_insert): Likewise.

	* gcc.dg/torture/pr56384.c: New testcase.

From-SVN: r196136
2013-02-19 12:10:48 +00:00
Jakub Jelinek 47cc28f568 re PR tree-optimization/56350 (ICE in vectorizable_reduction, at tree-vect-loop.c:4731)
PR tree-optimization/56350
	* tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
	if haven't found reduction or nested cycle operand, rather than
	asserting we must find it.

	* gcc.dg/pr56350.c: New test.

From-SVN: r196134
2013-02-19 10:14:33 +01:00
Jakub Jelinek a475fd3dcb re PR c++/56381 (ICE: cc1plus: internal compiler error: in gimplify_expr, at gimplify.c:7842)
PR tree-optimization/56381
	* tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
	to fold_build3.

	* g++.dg/opt/pr56381.C: New test.

From-SVN: r196133
2013-02-19 07:43:34 +01:00
GCC Administrator 0cacd11977 Daily bump.
From-SVN: r196132
2013-02-19 00:19:15 +00:00
Aldy Hernandez 135204ddd3 re PR target/52555 (ICE unrecognizable insn with -ffast-math and __attribute__((optimize(xx))))
PR target/52555
	* genopinit.c (raw_optab_handler): Use this_fn_optabs.
	(swap_optab_enable): Same.
	(init_all_optabs): Use argument instead of global.
	* tree.h (struct tree_optimization_option): New field
	target_optabs.
	* expr.h (init_all_optabs): Add argument to prototype.
	(TREE_OPTIMIZATION_OPTABS): New.
	(save_optabs_if_changed): Protoize.
	* optabs.h: Declare this_fn_optabs.
	* optabs.c (save_optabs_if_changed): New.
	Declare this_fn_optabs.
	(init_optabs): Add argument to init_all_optabs() call.
	* function.c (invoke_set_current_function_hook): Handle per
	function optabs.
	* function.h (struct function): New field optabs.
	* config/mips/mips.c (mips_set_mips16_mode): Handle when
	optimization_current_node has changed.
	* target-globals.h (save_target_globals_default_opts): Protoize.
	* target-globals.c (save_target_globals_default_opts): New.
c-family/
	* c-common.c (handle_optimize_attribute): Call
	save_optabs_if_changed.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r196129
2013-02-19 00:04:49 +00:00
Jakub Jelinek f6007d99f8 re PR pch/54117 (FAIL: ./decl-3.h -O0 -g (internal compiler error))
PR pch/54117
	* c-opts.c (c_common_post_options): If debug info is enabled
	and non-dwarf*, refuse to load PCH files and when writing PCH
	file warn.

	* lib/dg-pch.exp (pch-init, pch-finish,
	check_effective_target_pch_supported_debug): New procs.
	(dg-flags-pch): If $pch_unsupported, make tests UNSUPPORTED.
	Likewise if $pch_unsupported_debug and $flags include -g.
	Skip FAILs about missing *.gch file if $pch_unsupported_debug
	and dg-require-effective-target pch_unsupported_debug.
	* g++.dg/pch/pch.exp: Call pch-init and pch-finish.
	* objc.dg/pch/pch.exp: Likewise.
	* gcc.dg/pch/pch.exp: Likewise.
	* gcc.dg/pch/valid-1.c: Add dg-require-effective-target
	pch_unsupported_debug.
	* gcc.dg/pch/valid-1.hs: Likewise.
	* gcc.dg/pch/valid-1b.c: Likewise.
	* gcc.dg/pch/valid-1b.hs: Likewise.

Co-Authored-By: Steven Bosscher <steven@gcc.gnu.org>

From-SVN: r196124
2013-02-18 20:42:56 +01:00
John David Anglin 3f587ca369 re PR target/56347 (FAIL: gfortran.dg/integer_exponentiation_2.f90 -O2 execution test)
PR target/56347
	* config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
	registers %fr12 and %fr12R as call used.

From-SVN: r196123
2013-02-18 16:29:49 +00:00
John David Anglin ceaca33e28 re PR target/56214 (FAIL: gcc.c-torture/execute/20050121-1.c compilation, ICE)
PR target/56214
	* config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
	and HImode, require all displacements to be an integer multiple of the
	mode size.
	* config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
	only allow QImode and HImode when reload is in progress and strict is
	true.  Likewise for symbolic addresses.  Use base14_operand to check
	displacements in REG+BASE addresses.

From-SVN: r196122
2013-02-18 15:21:32 +00:00
Richard Biener fe0b4796ad re PR tree-optimization/56366 (ICE: verify_gimple failed (incompatible types in PHI argument))
2013-02-18  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56366
	* tree-vect-loop.c (get_initial_def_for_induction): Properly
	handle sign-conversion of outer-loop initial induction value.

	* gcc.dg/torture/pr56366.c: New testcase.

From-SVN: r196121
2013-02-18 13:58:21 +00:00
Richard Biener 73db8ff1f3 re PR middle-end/56349 (ICE in create_preheader at cfgloopmanip.c:1525)
2013-02-18  Richard Biener  <rguenther@suse.de>

        PR middle-end/56349
        * gcc.dg/torture/pr56350.c: Move ...
        * gcc.dg/torture/pr56349.c: ... here.

From-SVN: r196119
2013-02-18 13:09:17 +00:00
Richard Biener 6aaf596b40 re PR tree-optimization/56350 (ICE in vectorizable_reduction, at tree-vect-loop.c:4731)
2013-02-18  Richard Biener  <rguenther@suse.de>

	PR middle-end/56350
	* cfghooks.c (merge_blocks): If we merge a latch into another
	block adjust references to it.
	* cfgloop.c (flow_loops_find): Reset latch before recomputing it.
	(verify_loop_structure): Verify that a recorded latch is in fact
	a latch.

	* gcc.dg/torture/pr56350.c: New testcase.

From-SVN: r196118
2013-02-18 13:03:15 +00:00
Richard Biener 5e97dfb679 re PR tree-optimization/56321 (ICE:segfault in midend for -funsafe-math-optimizations -O3)
2013-02-18  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56321
	* tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
	order SSA name release and virtual operand unlinking.

	* gcc.dg/torture/pr56321.c: New testcase.

From-SVN: r196117
2013-02-18 12:11:47 +00:00
GCC Administrator 8fe196a207 Daily bump.
From-SVN: r196115
2013-02-18 00:18:32 +00:00
Edgar E. Iglesias 825527e8a6 Free variable local allocs at block ends.
* config/microblaze/microblaze.md (save_stack_block): Define.
   (restore_stack_block): Likewise.

From-SVN: r196110
2013-02-17 16:18:09 +00:00
Tobias Burnus 162ceab464 cacoshq.c (cacoshq): Call signbitq instead of signbit.
2013-02-17  Tobias Burnus  <burnus@net-b.de>

        * math/cacoshq.c (cacoshq): Call signbitq instead of signbit.

From-SVN: r196109
2013-02-17 13:57:51 +01:00
GCC Administrator 0965835f6c Daily bump.
From-SVN: r196107
2013-02-17 00:22:57 +00:00
Edgar E. Iglesias debd11d9fb Add TARGET_SUPPORTS_PIC flag and check that the flag_pic = 2
* config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
 * config/microblaze/microblaze.c (microblaze_option_override):
    Bail out early for PIC modes when target does not support PIC.
 * gcc.dg/20020312-2.c: Define MicroBlaze PIC register

From-SVN: r196104
2013-02-16 19:32:15 +00:00
Edgar E. Iglesias 8ec77be0fc microblaze.c (microblaze_asm_trampoline_template): Replace with a microblaze version.
* config/microblaze/microblaze.c (microblaze_asm_trampoline_template): 
	Replace with a microblaze version.
	(microblaze_trampoline_init): Adapt for microblaze.
	* gcc/config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for 
	microblaze.

From-SVN: r196103
2013-02-16 17:42:30 +00:00
Jakub Jelinek b41288b3a5 [asan] Fix for PR asan/56330
gcc/
	* asan.c (get_mem_refs_of_builtin_call): White space and style
	cleanup.
	(instrument_mem_region_access): Do not forget to always put
	instrumentation of the of 'base' and 'base + len' in a "if (len !=
	0) statement, even for cases where either 'base' or 'base + len'
	are not instrumented -- because they have been previously
	instrumented.  Simplify the logic by putting all the statements
	instrument 'base + len' inside a sequence, and then insert that
	sequence right before the current insertion point.  Then, to
	instrument 'base + len', just get an iterator on that statement.
	And do not forget to update the pointer to iterator the function
	received as argument.

gcc/testsuite/

	* c-c++-common/asan/no-redundant-instrumentation-4.c: New test file.
	* c-c++-common/asan/no-redundant-instrumentation-5.c: Likewise.
	* c-c++-common/asan/no-redundant-instrumentation-6.c: Likewise.
	* c-c++-common/asan/no-redundant-instrumentation-7.c: Likewise.
	* c-c++-common/asan/no-redundant-instrumentation-8.c: Likewise.
	* c-c++-common/asan/pr56330.c: Likewise.
	* c-c++-common/asan/no-redundant-instrumentation-1.c (test1):
	Ensure the size argument of __builtin_memcpy is a constant.

Co-Authored-By: Dodji Seketeli <dodji@redhat.com>

From-SVN: r196102
2013-02-16 10:32:56 +01:00
Jonathan Wakely 4d0648ac8f re PR c++/51242 ([C++11] Unable to use strongly typed enums as bit fields)
/cp
2013-02-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/51242
	* decl2.c (grokbitfield): Allow scoped enumeration types.

/testsuite
2013-02-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/51242
	* g++.dg/cpp0x/enum23.C: New.


Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r196100
2013-02-16 01:07:11 +00:00
GCC Administrator 7102a358e3 Daily bump.
From-SVN: r196098
2013-02-16 00:18:40 +00:00
Oleg Endo 41ad581fd6 re PR middle-end/54685 ([SH] Improve unsigned int comparison with 0x7FFFFFFF)
PR target/54685
	* gcc.target/sh/pr54685.c: Fix scanning of not insn.

From-SVN: r196092
2013-02-15 21:28:26 +00:00
Jason Merrill 9fd30fece6 re PR c++/54276 (Lambda in a Template Function Undefined Reference to local static)
PR c++/54276
	* semantics.c (finish_id_expression): Also return the identifier
	for an outer local static.

From-SVN: r196091
2013-02-15 14:22:14 -05:00
Vladimir Makarov 4791895176 re PR rtl-optimization/56348 (internal compiler error in assign_by_spills with -m32 -fPIC -msse2)
2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/56348
	* lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.

2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/56348
	* gcc.target/i386/pr56348.c: New test.

From-SVN: r196090
2013-02-15 19:17:02 +00:00
Ian Lance Taylor 3ab98a471c runtime: Do not reserve huge amount of swap on 32 bit architectures.
The mmap() call which reserves the arena should have MAP_NORESERVE
flag as in typical cases this memory will never be (fully) needed.
This matters in environments which do not do Linux style memory
overcommit, such as OpenIndiana/OpenSolaris/Solaris.

The MAP_NORESERVE flag does not exist on all operating systems
(for example FreeBSD). Therefore we define it to zero value in
case it does not exist.

Fixes issue 21.

From-SVN: r196088
2013-02-15 18:55:09 +00:00
Yufeng Zhang 4dddfc74f3 configure.ac: Set libgloss_dir for the aarch64*-*-* targets.
* configure.ac: Set libgloss_dir for the aarch64*-*-* targets.
	* configure: Regenerated.

From-SVN: r196083
2013-02-15 17:45:54 +00:00
Jason Merrill 52d95c2127 re PR c++/56343 ([C++11] Destructor defaulted on first declaration has wrong implicit exception specification)
PR c++/56343
	* class.c (check_bases_and_members): Deduce noexcept after
	checking bases.

From-SVN: r196082
2013-02-15 12:19:45 -05:00
Jason Merrill 30fa2a51fa re PR c++/52026 (Constexpr Variable Appears Uninitialized in Lambda)
PR c++/52026
	* semantics.c (finish_id_expression): In a template, return
	the identifier for a constant variable.

From-SVN: r196081
2013-02-15 11:17:25 -05:00
Jason Merrill 90680f3b80 * g++.dg/cpp0x/lambda/lambda-this8.C: Don't use NULL.
From-SVN: r196080
2013-02-15 11:16:58 -05:00
Alan Modra 110207ad17 re PR target/55431 (Invalid auxv search in ppc linux-unwind code.)
PR target/55431
	* config/rs6000/linux-unwind.h (ppc_linux_aux_vector): Delete.
	(ppc_fallback_frame_state): Always set up save locations for fp
	and altivec.  Don't bother with non-callee-saved regs, r0-r13
	except for r2 on ppc64, fr0-fr13, v0-v19, vscr.

From-SVN: r196077
2013-02-16 00:23:40 +10:30
Greta Yorsh 45e4e1e958 interrupt-1.c: Fix for thumb mode.
2012-02-15  Greta Yorsh  <Greta.Yorsh@arm.com>

        * gcc.target/arm/interrupt-1.c: Fix for thumb mode.
        * gcc.target/arm/interrupt-2.c: Likewise.

From-SVN: r196076
2013-02-15 13:27:11 +00:00
Tobias Burnus 711db0a61d re PR fortran/56318 (Wrong result with MATMUL of PARAMETER)
2013-02-14  Tobias Burnus  <burnus@net-b.de>
            Mikael Morin  <mikael@gcc.gnu.org>

        PR fortran/56318
        * simplify.c (gfc_simplify_matmul): Fix result shape
        and matmul result.

2013-02-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56318
        * gcc/testsuite/gfortran.dg/matmul_9.f90: New.


Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>

From-SVN: r196075
2013-02-15 12:17:15 +01:00
Steven Bosscher 3fb7c69995 graph.c (start_graph_dump): Print dumpfile base as digraph label.
* graph.c (start_graph_dump): Print dumpfile base as digraph label.
	(clean_graph_dump_file): Pass base to start_graph_dump.

From-SVN: r196074
2013-02-15 09:30:52 +00:00
Tobias Burnus fab99ea2d2 re PR fortran/53818 (-finit-local-zero -fno-automatic: Function result cannot have initializer)
2013-02-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53818
        * resolve.c (apply_default_init_local): Don't create an
        initializer for a result variable.

2013-02-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53818
        * gfortran.dg/init_flag_11.f90: New.

From-SVN: r196073
2013-02-15 09:50:37 +01:00
Richard Henderson 576fe41adc re PR target/55941 (Strange copy of double (in struct) to stack)
PR target/55941
        * lower-subreg.c (simple_move): Check dest mode instead of src mode.

From-SVN: r196071
2013-02-14 17:41:29 -08:00
Jason Merrill 9b2f0394a0 re PR c++/54922 ([C++11][DR 1359] constexpr constructors require initialization of all union members)
PR c++/54922
	* semantics.c (build_anon_member_initialization): New.
	(build_data_member_initialization): Use it.

From-SVN: r196070
2013-02-14 20:27:47 -05:00
Jason Merrill b24cd3d1f8 re PR c++/55003 ([C++11] Member function pointer not working as constexpr initializer)
PR c++/55003
	* decl.c (cp_finish_decl): Force instantiation of an
	auto static data member.

From-SVN: r196069
2013-02-14 20:27:36 -05:00
Jason Merrill d132b74aba re PR c++/55220 ([c++11] ICE when doing partial template specialization on variadic template)
PR c++/55220
	* pt.c (unify): A pack expansion that is not the last template
	argument makes the entire template argument list non-deduced.

From-SVN: r196068
2013-02-14 20:27:12 -05:00
Jason Merrill 06449b408e re PR c++/56323 ([C++11] cannot compile inherited constructor for typedef'ed base class)
PR c++/56323
	* name-lookup.c (do_class_using_decl): Handle typedefs with
	inheriting constructors.
	(push_class_level_binding_1): Allow inheriting from template
	template parameter, too.
	* pt.c (tsubst_decl) [USING_DECL]: Likewise.

From-SVN: r196067
2013-02-14 20:27:03 -05:00
Jason Merrill 5b858a6cc3 quick_exit.cc: #if out the whole test if unsupported.
* testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole
	test if unsupported.

From-SVN: r196066
2013-02-14 20:26:54 -05:00
Jason Merrill 622aac0b88 re PR c++/55223 ([C++11] Default lambda expression of a templated class member)
PR c++/55223
gcc/cp/
	* pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Fix handling of
	default argument scope.
	* mangle.c (write_name): Likewise.
libiberty/
	* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
	(d_print_comp): Likewise.

From-SVN: r196065
2013-02-14 20:26:44 -05:00
Jason Merrill ff9b4073cc re PR c++/55232 ([C++11] ICE with -Wunused-parameter for unused parameter pack using qualified dependent name)
PR c++/55232
	* error.c (find_typenames_r): Don't walk into a pack expansion.

From-SVN: r196064
2013-02-14 20:26:34 -05:00
GCC Administrator 9c85798a59 Daily bump.
From-SVN: r196063
2013-02-15 00:19:00 +00:00
Thomas Koenig 308f961b9b re PR fortran/56224 (gfortran -fopenmp cannot find omp_lib.h)
2013-02-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/56224
	* gfortran.h (gfc_add_include_path):  Add boolean argument
	for warn.
	* scanner.c (gfc_add_include_path):  Pass along warn argument
	to add_path_to_list.
	* options.c (gfc_post_options):  Add true warn argument to
	gfc_add_include_path.
	(gfc_handle_module_path_options):  Likewise.
	(gfc_handle_option): Also gfc_add_include_path for intrinsic
	modules, without warning.

From-SVN: r196058
2013-02-14 22:13:26 +00:00
Steven Bosscher bb3accfa6f * collect2-aix.h: Define F_LOADONLY.
From-SVN: r196057
2013-02-14 20:40:55 +00:00
H.J. Lu 8afd2ed720 OFF_T: Merged from upstream r175140
PR bootstrap/56327
	* interception/interception.h (OFF_T): Merged from upstream
	r175140.

From-SVN: r196054
2013-02-14 08:54:01 -08:00
Jason Merrill 1c322ab156 * g++.dg/cpp0x/lambda/lambda-this8.C: use __builtin_abort
From-SVN: r196053
2013-02-14 08:51:21 -05:00
Rainer Emrich 7d00dca998 re PR ada/52123 (gcc bootstrap with ada fails on mingw target)
2013-02-14  Rainer Emrich  <rainer@emrich-ebersheim.de>

        PR target/52123
        * tracebak.c: Cast from pointer via FARPROC.

From-SVN: r196051
2013-02-14 14:04:10 +01:00