Commit Graph

119077 Commits

Author SHA1 Message Date
Paolo Carlini
f18b27b3e2 re PR testsuite/54677 (FAIL: g++.dg/cpp0x/decltype32.C (test for excess errors) with -m64 after revision 191564)
2012-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
	    Dominique Dhumieres  <dominiq@lps.ens.fr>

	PR testsuite/54677
	* g++.dg/cpp0x/decltype32.C: Add -ftemplate-depth=10.

Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>

From-SVN: r191651
2012-09-23 14:21:35 +00:00
Uros Bizjak
37f1d5c9f9 re PR libstdc++/54675 (Many libstdc++ testsuite failures in ext/random)
PR libstdc++/54675
	* include/ext/random: Avoid the badname __alpha (and, for
	consistency, __mu, __nu, __sigma and __omega too).
	* include/bits/random.tcc: Likewise.

From-SVN: r191650
2012-09-23 13:24:46 +02:00
Tobias Burnus
99c25a87c6 re PR fortran/54599 (Issues found in gfortran by the Coverity Scan)
2012-09-23  Tobias Burnus  <burnus@net-b.de>

        * parse.c (parse_derived): Don't set attr.alloc_comp
        for pointer components with allocatable subcomps.

        PR fortran/54599
        * resolve.c (resolve_fl_namelist): Remove superfluous
        NULL check.
        * simplify.c (simplify_min_max): Remove unreachable code.
        * trans-array.c (gfc_trans_create_temp_array): Change
        a condition into an assert.

        PR fortran/54618
        * trans-expr.c (gfc_trans_class_init_assign): Guard
        re-setting of the _data by gfc_conv_expr_present.
        (gfc_conv_procedure_call): Fix INTENT(OUT) handling
        for allocatable BT_CLASS.

2012-09-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54618
        * gfortran.dg/class_array_14.f90: New.

From-SVN: r191649
2012-09-23 08:48:48 +02:00
GCC Administrator
8856695d70 Daily bump.
From-SVN: r191648
2012-09-23 00:17:43 +00:00
Segher Boessenkool
a2027aad1b predicates.md (altivec_register_operand, [...]): If op is a SUBREG, consider its SUBREG_REG instead.
gcc/
	* config/rs6000/predicates.md (altivec_register_operand,
	vsx_register_operand, vfloat_operand, vint_operand,
	vlogical_operand, gpc_reg_operand, cc_reg_operand,
	cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand):
	If op is a SUBREG, consider its SUBREG_REG instead.

From-SVN: r191645
2012-09-23 01:02:06 +02:00
Kai Tietz
699bae64e5 scev-3.c: Add llp64 to xfail.
* gcc.dg/tree-ssa/scev-3.c: Add llp64 to xfail.
        * gcc.dg/tree-ssa/scev-4.c: Likewise.

From-SVN: r191642
2012-09-22 14:10:30 +02:00
Uros Bizjak
ae5f06780e optabs.c (prepare_cmp_insn): Expand comparison of the result of memcmp through generic comparison expansion code.
* optabs.c (prepare_cmp_insn): Expand comparison of the result
	of memcmp through generic comparison expansion code.

From-SVN: r191641
2012-09-22 13:39:48 +02:00
Thomas Koenig
840171d2d1 re PR fortran/54599 (Issues found in gfortran by the Coverity Scan)
2012-09-22  Thomas König  <tkoenig@gcc.gnu.org>

	PR fortran/54599
	* dependency.c (gfc_dep_compare_expr):  Clarify logic,
	remove dead code.

From-SVN: r191640
2012-09-22 10:32:51 +00:00
Ian Lance Taylor
a2383b317b runtime: Reject surrogate pairs in range over string.
From-SVN: r191638
2012-09-22 07:18:45 +00:00
Ian Lance Taylor
1e39ea0812 compiler, runtime: Reject surrogate pair converting int to string.
From-SVN: r191636
2012-09-22 06:51:59 +00:00
Ian Lance Taylor
d47cbb6dd4 compiler: No error if shift operand inherits interface type.
From-SVN: r191634
2012-09-22 06:33:10 +00:00
Ian Lance Taylor
2afc1e0b30 runtime: Return random number of hash of NaN.
From-SVN: r191632
2012-09-22 06:06:31 +00:00
Ian Lance Taylor
a7a9045662 compiler: Fix determining types for builtin complex function.
From-SVN: r191630
2012-09-22 06:02:35 +00:00
Anthony Green
a90df91ef1 Add -mno-crt0 to moxie port
From-SVN: r191629
2012-09-22 02:04:56 +00:00
Ian Lance Taylor
0efaba3c69 compiler: Fix unnamed struct type converted to interface type.
From-SVN: r191627
2012-09-22 01:15:28 +00:00
GCC Administrator
bab51373dc Daily bump.
From-SVN: r191625
2012-09-22 00:17:24 +00:00
Ian Lance Taylor
222d4beb86 compiler: Better error messages for single- and multiple- value.
From-SVN: r191621
2012-09-21 22:11:24 +00:00
Ian Lance Taylor
e152035846 compiler: Better error message if method requires pointer receiver.
From-SVN: r191619
2012-09-21 21:07:24 +00:00
Jack Howarth
74adb444f9 Remove lto-symtab.o's dependency on gt-lto-symtab.h
PR bootstrap/54642
	* Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency.

From-SVN: r191618
2012-09-21 13:07:36 -07:00
Ian Lance Taylor
211993b352 compiler: len(<-c) is not a constant.
From-SVN: r191616
2012-09-21 17:48:30 +00:00
Dehao Chen
7f0919843b re PR middle-end/54649 (Go bootstrap failed)
2012-09-21  Dehao Chen  <dehao@google.com>

	PR go/54649
	PR tree-optimization/54655
	* g++.dg/pr54655.C: New testcase.

From-SVN: r191615
2012-09-21 17:01:36 +00:00
Dehao Chen
62d4d60cdb re PR middle-end/54649 (Go bootstrap failed)
2012-09-21  Dehao Chen  <dehao@google.com>

	PR go/54649
	* tree-eh.c (lower_try_finally_dup_block): Set the correct block for
	stmts in the duplicated EH block.

From-SVN: r191614
2012-09-21 15:35:46 +00:00
Richard Guenther
61514fe463 re PR tree-optimization/54647 (Segmentation fault in get_expr_value_id with -O2)
2012-09-21  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/54647
	* tree-ssa-pre.c (compute_avail): Do not put COND_EXPR
	or VEC_COND_EXPR into EXP_GEN again.

	* g++.dg/torture/pr54647.C: New testcase.

From-SVN: r191613
2012-09-21 12:44:07 +00:00
Edward Smith-Rowland
0c105b723d Implement the Pareto distribution as an extension.
From-SVN: r191612
2012-09-21 12:33:20 +00:00
Jakub Jelinek
b7ce70b395 re PR tree-optimization/54629 (ICE (segfault) in index_in_loop_nest tree-data-ref.h:608)
2012-09-21  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/54629
	* tree-loop-distribution.c (classify_partition): Free loop nest only
	after freeing ddr.  Free ddr and loop nest also if successful.

From-SVN: r191611
2012-09-21 11:54:14 +00:00
Matthias Klose
a30b9bb5cd arm.c (arm_mangle_type): Don't warn anymore that 4.4 has changed the `va_list' mangling.
2012-09-21  Matthias Klose  <doko@ubuntu.com>

        * config/arm/arm.c (arm_mangle_type): Don't warn anymore that
        4.4 has changed the `va_list' mangling.

From-SVN: r191610
2012-09-21 11:12:44 +00:00
Eric Botcazou
b383e25548 re PR rtl-optimization/54290 (wrong code at -O2 with large offset)
PR rtl-optimization/54290
	PR rtl-optimization/54644
	* reload1.c (choose_reload_regs): Fix thinko in previous change.

From-SVN: r191609
2012-09-21 11:06:51 +00:00
Paolo Carlini
88a4c78be1 stl_algobase.h (max, min): Use conditional operator.
2012-09-21  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_algobase.h (max, min): Use conditional operator.

From-SVN: r191608
2012-09-21 10:48:30 +00:00
Marc Glisse
a3e531ec34 re PR c++/54427 (Expose more vector extensions)
2012-09-21  Marc Glisse  <marc.glisse@inria.fr>

	PR c++/54427
	* c-c++-common/torture/vector-compare-2.c: Add -w.

From-SVN: r191604
2012-09-21 09:19:39 +00:00
Segher Boessenkool
d476e32900 rs6000.md (define_split for plus_eqsi): Fix output pattern.
2012-09-20  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/
        * config/rs6000/rs6000.md (define_split for plus_eqsi):
        Fix output pattern.

From-SVN: r191600
2012-09-21 02:33:27 +02:00
GCC Administrator
7c9174093d Daily bump.
From-SVN: r191599
2012-09-21 00:18:32 +00:00
Eric Botcazou
c2d0918754 * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair.
From-SVN: r191596
2012-09-20 22:38:42 +00:00
Bernd Schmidt
4f66c9bcbe re PR bootstrap/54643 (Build hangs compiling unwind-arm.c)
PR bootstrap/54643
	* haifa-sched.c (schedule_block): Skip find_modifiable_mems if using
	SCHED_PRESSURE_MODEL.

From-SVN: r191595
2012-09-20 22:01:47 +00:00
Eric Botcazou
8604dde066 opt20.ads: Move dg directive to...
* gnat.dg/opt20.ads: Move dg directive to...
	* gnat.dg/opt20.adb: ...here.
	* gnat.dg/addr1.ad[sb]: Likewise.
	* gnat.dg/concat2.ad[sb]: Likewise.
	* gnat.dg/array16.ad[sb]: Likewise.
	* gnat.dg/atomic5.ad[sb]: Likewise.
	* gnat.dg/discr29.ad[sb]: Likewise.
	* gnat.dg/noreturn5.ad[sb]: Likewise.
	* gnat.dg/vect8.ad[sb]: Likewise.  Add dg-options.
	* gnat.dg/discr23.ads: Remove dg directive.
	* gnat.dg/nested_float_packed.ads: Likewise.
	* gnat.dg/oconst6.ads: Move to...
	* gnat.dg/specs/oconst6.ads: ...here.

From-SVN: r191592
2012-09-20 21:58:46 +00:00
Tobias Burnus
dee1c26531 re PR fortran/54599 (Issues found in gfortran by the Coverity Scan)
2012-09-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54599
        * cpp.c (print_line): Properly handle extern C.

From-SVN: r191590
2012-09-20 22:49:20 +02:00
Joern Rennecke
10439b597d * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.
From-SVN: r191586
2012-09-20 21:17:34 +01:00
Walter Lee
8750dfc52c Add tilegx to list of targets that support gold.
* configure.ac: Add tilegx to list of targets that support gold.
       * configure: Regenerate.

From-SVN: r191585
2012-09-20 19:17:51 +00:00
Ian Lance Taylor
9af5c88c8f compiler: Update for GCC push_cfun changes.
From-SVN: r191582
2012-09-20 17:33:26 +00:00
Marek Polacek
5ae27c9c1f Merge identical cases.
From-SVN: r191581
2012-09-20 17:05:41 +00:00
Marek Polacek
97a74ddb85 Don't cast XNEWVEC's result.
From-SVN: r191580
2012-09-20 17:02:40 +00:00
Marek Polacek
61e12affc2 Add myself to MAINTAINERS.
From-SVN: r191578
2012-09-20 16:45:28 +00:00
Martin Jambor
af16bc762a function.c (push_cfun): Check old current_function_decl matches old cfun...
2012-09-20  Martin Jambor  <mjambor@suse.cz>

	* function.c (push_cfun): Check old current_function_decl matches
	old cfun, set new current_function_decl to the decl of the new
	cfun.
	(push_struct_function): Likewise.
	(pop_cfun): Likewise.
	(allocate_struct_function): Move call to
	invoke_set_current_function_hook to the end of the function.
	* cfgexpand.c (estimated_stack_frame_size): Do not set and restore
	current_function_decl.
	* cgraph.c (cgraph_release_function_body): Likewise.
	* cgraphunit.c (cgraph_process_new_functions): Likewise.
	(cgraph_add_new_function): Likewise.
	(cgraph_analyze_function): Likewise.
	(assemble_thunk): Set cfun to NULL at the end.
	(expand_function): Move call to set_cfun downwards.
	* gimple-low.c (record_vars_into): Only check current_function_decl
	before possibly doing push_cfun.
	* gimplify.c (gimplify_function_tree): Do not set and restore
	current_function_decl.
	* ipa-inline-analysis.c (compute_inline_parameters): Likewise.
	(inline_analyze_function): Likewise.
	* ipa-prop.c (ipa_analyze_node): Likewise.
	* ipa-pure-const.c (analyze_function): Likewise.
	* lto-streamer-in.c (lto_input_function_body): Do not set
	current_function_decl.
	* lto-streamer-out.c (output_function): Do not set and restore
	current_function_decl.
	* omp-low.c (finalize_task_copyfn): Likewise.
	(expand_omp_taskreg): Likewise.
	(create_task_copyfn): Likewise, move push_cfun up quite a bit.
	* passes.c (dump_passes): Do not set and restore current_function_decl.
	(do_per_function): Likewise.
	(do_per_function_toporder): Likewise.
	* trans-mem.c (ipa_tm_scan_irr_function): Likewise.
	(ipa_tm_transform_transaction): Likewise.
	(ipa_tm_transform_clone): Likewise.
	(ipa_tm_execute): Likewise.
	* tree-emutls.c (lower_emutls_function_body): Likewise.
	* tree-inline.c (initialize_cfun): Do not call pop_cfun.
	(tree_function_versioning): Do not call push_cfun, do not set and
	restore current_function_decl.  Remove assert checking consistency of
	cfun and current_function_decl.
	* tree-profile.c (tree_profiling): Do not set and restore
	current_function_decl.
	* tree-sra.c (convert_callers_for_node): Do not set
	current_function_decl.
	(convert_callers): Do not restore current_function_decl.
	(modify_function): Do not set current_function_decl.
	* tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore
	current_function_decl.

fortran/
	* trans-decl.c (gfc_get_extern_function_decl): Push NULL cfun.  Do not
	set and restore current_function_decl.
	(gfc_init_coarray_decl): Do not set and restore current_function_decl.

lto/
	* lto.c (lto_materialize_function): Call push_struct_function and
	pop_cfun.

From-SVN: r191577
2012-09-20 18:35:40 +02:00
Ian Lance Taylor
ee6440f8d8 libgo: Add no-dist and -Wno-portability to AM_INIT_AUTOMAKE.
From-SVN: r191575
2012-09-20 16:32:27 +00:00
Diego Novillo
fc1bc21b52 re PR target/54631 (vxworks.c fails to compile)
PR target/54631
	* config/vxworks.c (vxworks_emutls_var_init): Update for new
	VEC_quick_push interface.

From-SVN: r191574
2012-09-20 12:31:05 -04:00
Richard Guenther
f2ea3c151c re PR tree-optimization/54634 (miscompilation with -O3 -ftree-loop-distribution)
2012-09-20  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/54634
	* tree-data-ref.c (get_references_in_stmt): For now give
	up for pure functions.

From-SVN: r191567
2012-09-20 14:46:32 +00:00
Jakub Jelinek
c0758df921 re PR other/43620 ([4.3 Release Blocker] Uploading to gnu.org will fail due to automake security issue)
PR other/43620
libatomic/
	* configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
	* configure: Regenerate.
	* Makefile.in: Regenerate.
libitm/
	* configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
	* configure: Regenerate.
	* Makefile.in: Regenerate.

From-SVN: r191565
2012-09-20 16:41:17 +02:00
Paolo Carlini
01e721f30b re PR c++/52432 ([C++11] -fdump-tree-gimple causes ICE: Error reporting routines re-entered.)
/cp
2012-09-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52432
	* pt.c (tsubst_copy_and_build): If tf_error is not set in the complain
	argument don't call unqualified_name_lookup_error.

/testsuite
2012-09-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52432
	* g++.dg/cpp0x/decltype32.C: Tweak.

From-SVN: r191564
2012-09-20 14:05:19 +00:00
Marc Glisse
9606465f8c forwprop-19.c: Check in forwprop1.
2012-09-20  Marc Glisse  <marc.glisse@inria.fr>

	* gcc.dg/tree-ssa/forwprop-19.c: Check in forwprop1.
	* gcc.dg/tree-ssa/forwprop-20.c: Check in forwprop1.
	* gcc.dg/tree-ssa/forwprop-21.c: Check in copyprop1.
	* gcc.dg/tree-ssa/forwprop-22.c: Check in copyprop1.

From-SVN: r191560
2012-09-20 09:37:05 +00:00
Chen Wei-Ren
a77fa1fcce 2012-09-20 Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
doc/lto.texi: Correct typo.

From-SVN: r191559
2012-09-20 09:26:07 +00:00
Ian Lance Taylor
6c74ce92d5 compiler: Fix struct hash and equality with _ fields.
From-SVN: r191511
2012-09-20 04:35:13 +00:00