Commit Graph

117800 Commits

Author SHA1 Message Date
Paolo Carlini
f8b54112b5 re PR libstdc++/53872 ([C++11] ADL bug in std::thread)
2012-07-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/53872
	* include/std/thread (thread::_M_make_routine): Qualify make_shared
	to prevent ADL.
	* testsuite/30_threads/thread/adl.cc: New.

From-SVN: r189329
2012-07-06 13:55:58 +00:00
Richard Guenther
81ef887874 Makefile.def (cloog): Pass $(HOST_GMPINC) and $(HOST_ISLINC) as CPPFLAGS...
2012-07-06  Richard Guenther  <rguenther@suse.de>

	* Makefile.def (cloog): Pass $(HOST_GMPINC) and $(HOST_ISLINC)
	as CPPFLAGS, pass path to built gmp as LDFLAGS, always use
	--with-gmp=system.
	* Makefile.in: Regenerated.
	* configure: Likewise.

From-SVN: r189328
2012-07-06 12:55:34 +00:00
Richard Guenther
0ff2d841ec configure.ac (extra_isl_gmp_configure_flags): Initialize and subst.
2012-07-06  Richard Guenther  <rguenther@suse.de>

	* configure.ac (extra_isl_gmp_configure_flags): Initialize and subst.
	* Makefile.def (isl): Use extra_isl_gmp_configure_flags and
	supply V=1 as extra_make_flags.
	* configure: Regenerated.
	* Makefile.in: Likewise.

From-SVN: r189327
2012-07-06 12:31:03 +00:00
Alexandre Oliva
2b9d5ad7df re PR debug/53820 (ICE in vt_expand_var_loc_chain, at var-tracking.c:8029)
PR debug/53820
* var-tracking.c (vt_add_function_parameter): Convert
internal_arg_pointer into arg_pointer-based address even
without DRAP.

From-SVN: r189326
2012-07-06 11:37:36 +00:00
Alexandre Oliva
fe8fb1c4c0 re PR rtl-optimization/53827 ([alpha]: Invalid insn scheduling in sched1 pass)
PR rtl-optimization/53827
PR debug/53671
PR debug/49888
* alias.c (memrefs_conflict_p): Adjust offset and size by the
same amount for alignment ANDs.

From-SVN: r189325
2012-07-06 11:37:14 +00:00
Tom de Vries
5de3328166 re PR tree-optimization/51879 (Missed tail merging with non-const/pure calls)
2012-07-06  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/51879
	* gcc.dg/pr51879-16.c: New test.
	* gcc.dg/pr51879-17.c: Same.

From-SVN: r189324
2012-07-06 11:22:12 +00:00
Tom de Vries
6867d9a9c5 re PR tree-optimization/51879 (Missed tail merging with non-const/pure calls)
2012-07-06  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/51879
	* tree-ssa-sccvn.c (copy_reference_ops_from_call)
	(visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
	(visit_use): Also call visit_reference_op_call for calls with a vdef.

From-SVN: r189323
2012-07-06 11:22:06 +00:00
Tom de Vries
6cf5e1d051 re PR tree-optimization/52009 (Another missed tail merging opportunity)
2012-07-06  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/52009
	* gcc.dg/pr51879-7.c: New test.
	* gcc.dg/pr51879-18.c: New test.

From-SVN: r189322
2012-07-06 11:07:37 +00:00
Tom de Vries
4ec0a19888 re PR tree-optimization/52009 (Another missed tail merging opportunity)
2012-07-06  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/52009
	* tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
	value numbers of gimple_vdef.
	* tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
	prototype.
	* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
	(vn_reference_insert): Add and handle vdef parameter.
	(visit_reference_op_load): Add argument to vn_reference_insert call.
	(visit_reference_op_store): Find value number of vdef of store.  Insert
	value number of vdef of store.

From-SVN: r189321
2012-07-06 11:07:32 +00:00
Uros Bizjak
e81941b70e i386.md (simple lea to add peephole): Also transform RTXes where second PLUS operand matches output.
* config/i386/i386.md (simple lea to add peephole): Also transform
	RTXes where second PLUS operand matches output.

From-SVN: r189320
2012-07-06 12:57:07 +02:00
Uros Bizjak
6b908be795 i386.c (construct_plt_address): Make static.
* config/i386/i386.c (construct_plt_address): Make static.
	* config/i386/i386-protos.h (construct_plt_address): Remove.

From-SVN: r189319
2012-07-06 12:18:39 +02:00
Nick Clifton
2ba3d2a9fc mn10300.c (mn10300_encode_section_info): Call default_encode_section_info.
* config/mn10300/mn10300.c (mn10300_encode_section_info): Call
	default_encode_section_info.

From-SVN: r189316
2012-07-06 10:05:15 +00:00
Uros Bizjak
dea8f801d3 re PR target/53811 (ICE: in insn_default_length, at config/i386/i386.md:529 (unrecognizable insn) with -mcmodel=large)
PR target/53811
	* config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
	emit PIC sequence for fnaddr symbol reference in advance.

From-SVN: r189315
2012-07-06 12:00:11 +02:00
Eric Botcazou
c253bc8cd8 Revert
2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>

	* dwarf2out.c (function_possibly_abstracted_p): New static function.
	(gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
	cgraph_function_possibly_inlined_p.
	(gen_inlined_subroutine_die): Return if the origin is to be ignored.
	(process_scope_var): Do not emit concrete instances of abstracted
	nested functions from here.
	(gen_decl_die): Emit the abstract instance if the function is possibly
	abstracted and not only possibly inlined.
	(dwarf2out_finish): Find the first non-abstract parent instance and
	attach concrete instances on the limbo list to it.

From-SVN: r189311
2012-07-06 07:44:52 +00:00
GCC Administrator
39f0c3aacb Daily bump.
From-SVN: r189310
2012-07-06 00:17:39 +00:00
Jason Merrill
70ba248488 re PR c++/53039 (including <functional> breaks std::is_convertible with template-pack expansion)
PR c++/53039
	* pt.c (arg_from_parm_pack_p): Go back to using same_type_p or
	cp_tree_equal.

From-SVN: r189305
2012-07-05 17:24:33 -04:00
Jason Merrill
9ae8d9dfc4 cp-tree.h (TEMPLATE_PARM_NUM_SIBLINGS): Remove.
* cp-tree.h (TEMPLATE_PARM_NUM_SIBLINGS): Remove.
	(struct template_parm_index_s): Remove num_siblings.
	* pt.c (fixup_template_parms, fixup_template_parm_index): Remove.
	(fixup_template_type_parm_type): Remove.
	(build_template_parm_index): Remove num_siblings parm.
	(process_template_parm): Likewise.
	* parser.c (cp_parser_template_parameter_list): Adjust.
	* tree.c (cp_tree_equal): Don't compare num_siblings.
	* typeck.c (comp_template_parms_position): Likewise.

From-SVN: r189299
2012-07-05 15:39:12 -04:00
Jason Merrill
49bb4bbe90 re PR c++/50852 (ICE: internal compiler error: in tsubst, at cp/pt.c:11030)
PR c++/50852
	PR c++/53039
	* tree.c (strip_typedefs_expr): New.
	* cp-tree.h: Declare it.
	* pt.c (convert_template_argument, unify): Use it.
	* parser.c (cp_parser_template_declaration_after_export): Don't call
	fixup_template_parms.

From-SVN: r189298
2012-07-05 15:39:01 -04:00
Ramana Radhakrishnan
40264d66fb Correct bug number to PR target/48941
First part of the fix .

From-SVN: r189295
2012-07-05 16:56:15 +00:00
Ramana Radhakrishnan
378913094d re PR rtl-optimization/49891 (ICE in redirect_jump_1)
2012-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

        PR target/49891
        PR target/51980
        * gcc/testsuite/gcc.target/arm/neon/vtrnf32.c: Update.
        * gcc/testsuite/gcc.target/arm/neon/vtrns32.c: Update.
        * gcc/testsuite/gcc.target/arm/neon/vtrnu32.c: Update.
        * gcc/testsuite/gcc.target/arm/neon/vzipf32.c: Update.
        * gcc/testsuite/gcc.target/arm/neon/vzips32.c: Update.
        * gcc/testsuite/gcc.target/arm/neon/vzipu32.c: Update.


2012-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
	    Julian Brown  <julian@codesourcery.com>

        PR target/49891
        PR target/51980
        * config/arm/neon-gen.ml (return_by_ptr): Delete.
        (print_function): Handle empty strings.
        (return): Delete use of return_by_ptr.
        (mask_shape_for_shuffle): New function.
        (mask_elems): Likewise.
        (shuffle_fn): Likewise.
        (params): Simplify and remove use of return_by_ptr.
        (get_shuffle): New function.
        (print_variant): Update.
        * config/arm/neon.ml (rev_elems): New function.
        (permute_range): Likewise.
        (zip_range): Likewise.
        (uzip_range): Likewise.
        (trn_range): Likewise.
        (zip_elems): Likewise.
        (uzip_elems): Likewise.
        (trn_elems): Likewise.
        (features): New enumeration Use_shuffle. Delete ReturnPtr.
        (pf_su_8_16): New.
        (suf_32): New.
        (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
        * config/arm/arm_neon.h: Regenerate.




Co-Authored-By: Julian Brown <julian@codesourcery.com>

From-SVN: r189294
2012-07-05 16:45:18 +00:00
Mikael Morin
573234ac8b re PR fortran/53732 ("mismatching comparison operand types" on compile)
fortran/
	PR fortran/53732
	* trans-array.c (gfc_add_loop_ss_code): Disable self recursive calls
	handling nested loop(s) if the subscript flag is true.

testsuite/
	PR fortran/53732
	* gfortran.dg/inline_sum_4.f90: New test.

From-SVN: r189292
2012-07-05 15:18:26 +00:00
Richard Guenther
44b9837c99 tree-pretty-print.c (dump_generic_node): Properly test the result of exact_log2.
2012-07-05  Richard Guenther  <rguenther@suse.de>

	* tree-pretty-print.c (dump_generic_node): Properly test
	the result of exact_log2.

From-SVN: r189291
2012-07-05 15:15:45 +00:00
Joseph Myers
db2c8e60f2 * hr.po: New.
From-SVN: r189289
2012-07-05 15:30:03 +01:00
Andreas Krebbel
367d32f33c 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390-protos.h (s390_expand_movmem)
	(s390_expand_cmpmem): Add return value.
	* config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
	Return FALSE to use the library function in some cases.
	* config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
	helper functions.

From-SVN: r189288
2012-07-05 10:46:19 +00:00
Andreas Krebbel
604fbe51d9 config.gcc: Enable ifunc attribute by default on s390 and s390x.
2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config.gcc: Enable ifunc attribute by default on s390 and s390x.

From-SVN: r189287
2012-07-05 10:45:24 +00:00
Steven Bosscher
04a40cb959 expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
gcc/
	* expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
	* stmt.c (dump_case_nodes): New.
	(expand_case): Split out code generation parts into new functions.
	(expand_switch_as_decision_tree_p): Split out from expand_case.
	(emit_case_decision_tree): Likewise.
	(emit_case_dispatch_table): Likewise.

testsuite/
	* gcc.c-torture/compile/20000326-1.c: Fix to not optimize to empty.

From-SVN: r189285
2012-07-05 10:12:14 +00:00
Matthew Gretton-Dann
12c0399e13 Add files forgotten in last commit (ChangeLog has them already):
gcc/testsuite:
	* gcc.target/arm/fma.c: New testcase.
	* gcc.target/arm/fma.h: Likewise.
	* gcc.target/arm/fma-sp.c: Likewise.

From-SVN: r189284
2012-07-05 09:10:29 +00:00
Matthew Gretton-Dann
76f722f452 iterators.md (SDF): New mode iterator.
* gcc/config/arm/iterators.md (SDF): New mode iterator.
	(V_if_elem): Add support for SF and DF modes.
	(V_reg): Likewise.
	(F_constraint): New mode iterator attribute.
	(F_fma_type): Likewise.
	config/arm/vfp.md (fma<SDF:mode>4): New pattern.
	(*fmsub<SDF:mode>4): Likewise.
	(*fmnsub<SDF:mode>4): Likewise.
	(*fmnadd<SDF:mode>4): Likewise.
	* gcc/testsuite/gcc.target/arm/fma-sp.c: New testcase.
	* gcc/testsuite/gcc.target/arm/fma.c: Likewise.
	* gcc/testsuite/gcc.target/arm/fma.h: Likewise.

From-SVN: r189283
2012-07-05 09:07:00 +00:00
Uros Bizjak
4b68f9ee5a re PR fortran/53449 (fortran fails to build with LTO bootstrap)
* expmed.c (expand_mult): Initialize coeff and is_neg.

java/ChangeLog:

	* jcf-io.c (read_zip_member): Initialize d_stream.

fortran/ChangLog:

	PR fortran/53449
	* parse.c (gfc_parse_file): Initialize errors_before.

From-SVN: r189281
2012-07-05 09:22:17 +02:00
Sandra Loosemore
3d3949df0f libgomp.texi (Library Index): Renamed from "Index" to prevent conflict with index.html on case-insensitive...
2012-07-04  Sandra Loosemore <sandra@codesourcery.com>

	libgomp/
	* libgomp.texi (Library Index): Renamed from "Index" to prevent
	conflict with index.html on case-insensitive file systems.

From-SVN: r189278
2012-07-04 22:53:03 -04:00
Jonathan Wakely
b63d8901d1 * include/std/condition_variable: Update copyright years.
From-SVN: r189277
2012-07-05 02:14:35 +01:00
GCC Administrator
9f8550f8aa Daily bump.
From-SVN: r189272
2012-07-05 00:17:30 +00:00
Oleg Endo
33344a62c4 predicates.md (zero_extend_operand): New predicate.
* config/sh/predicates.md (zero_extend_operand): New predicate.
	* config/sh/sh.md (zero_extendhisi2): Simplify by using new
	zero_extend_operand predicate.
	(zero_extendqisi2): Likewise.

From-SVN: r189269
2012-07-04 23:32:13 +00:00
Jonathan Wakely
7f426c93a7 re PR libstdc++/53830 (condition_variable_any - deadlock issue)
PR libstdc++/53830
	* include/std/condition_variable (condition_variable_any::wait):
	Move _Unlock type to class scope.
	(condition_variable_any::wait_until): Reuse it.
	* testsuite/30_threads/condition_variable_any/53830.cc: New.

From-SVN: r189268
2012-07-04 23:17:18 +01:00
Jason Merrill
fece06368c re PR c++/53848 (ICE in decl_linkage at ../../gcc-trunk/gcc/cp/tree.c:3215)
PR c++/53848
	* decl.c (build_enumerator): Don't use build_lang_decl_loc.

From-SVN: r189267
2012-07-04 17:34:07 -04:00
Uros Bizjak
3f1ae7424c re PR middle-end/53321 (LTO bootstrap failed with bootstrap-profiled)
PR middle-end/53321
	* ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
	to not call cgraph_propagate_frequency if something was changed.

testsuite/ChangLog:

	PR middle-end/53321
	* g++.dg/torture/pr53321.C: New test.

From-SVN: r189261
2012-07-04 15:49:19 +02:00
Richard Guenther
23af816cc9 re PR middle-end/53433 (ICE in int_mode_for_mode, at stor-layout.c:424 during lto-bootstrap)
2012-07-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/53433
	* gimple-fold.c (get_base_constructor): Do not return an
	error_mark_node DECL_INITIAL.

From-SVN: r189260
2012-07-04 13:47:18 +00:00
Tristan Gingold
2b2d7c53bb isl.m4 (ISL_CHECK_VERSION): Set to yes if cross-compiling.
config/
2012-07-04  Tristan Gingold  <gingold@adacore.com>

	* isl.m4 (ISL_CHECK_VERSION): Set to yes if cross-compiling.
	Fix comments.

2012-07-04  Tristan Gingold  <gingold@adacore.com>

	* configure: Regenerate.

From-SVN: r189257
2012-07-04 12:26:55 +00:00
Richard Guenther
6c9df5a001 re PR middle-end/53844 (GCC generates suboptimal code for unused members of classes in some cases on multiple targets.)
2012-07-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53844
	* tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
	the loop virtual PHI.

	* g++.dg/tree-ssa/pr53844.C: New testcase.

From-SVN: r189256
2012-07-04 12:10:40 +00:00
Richard Guenther
e1b6bbea37 re PR middle-end/53849 (ICE: in add_referenced_var_1, at tree-dfa.c:567 with -O2 -ftree-parallelize-loops=2 -fno-tree-loop-im)
2012-07-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53849
	* tree-cfg.c (move_stmt_op): Only call add_referenced_var
	for duplicated locals.  Use add_referenced_var_1 to avoid
	pushing/popping cfun.

	* gcc.dg/pr53849.c: New testcase.

From-SVN: r189255
2012-07-04 12:09:09 +00:00
Kai Tietz
463d5aa029 winnt.c (i386_pe_reloc_rw_mask): New function.
* config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
        * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
        prototype.
        * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
        as i386_pe_reloc_rw_mask.

From-SVN: r189254
2012-07-04 13:22:02 +02:00
Richard Guenther
cef8c10098 tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same as in free_lang_data_in_type.
2012-07-04  Richard Guenther  <rguenther@suse.de>

	* tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
	as in free_lang_data_in_type.

From-SVN: r189252
2012-07-04 10:36:07 +00:00
Tobias Grosser
b60cc080f3 Makefile.in (OBJS): Add graphite-optimize-isl.o.
2012-07-04  Tobias Grosser <tobias@grosser.es>
	Michael Matz  <matz@suse.de>

	* Makefile.in (OBJS): Add graphite-optimize-isl.o.
	(graphite-optimize-isl.o): Add dependencies.
	* common.opt (floop-nest-optimize): New flag.
	* doc/invoke.texi (floop-nest-optimize): Document.
	* graphite-dependences.c (compute_deps): Export.
	* graphite-poly.h (compute_deps): Declare.
	* graphite-optimize-isl.c: New file.
	* graphite-poly.c (apply_poly_transforms): Run the loop
	nest optimizer.
	* tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
	if -floop-nest-optimize is enabled.

Co-Authored-By: Michael Matz <matz@suse.de>

From-SVN: r189249
2012-07-04 09:15:09 +00:00
Matthias Klose
9a9eca46a8 04_header: Remove empty directory.
2012-07-04  Matthias Klose  <doko@ubuntu.com>

        * testsuite/28_regex/headers/04_header: Remove empty directory.
        * testsuite/28_regex/algorithms/02_match: Likewise.

From-SVN: r189248
2012-07-04 07:50:30 +00:00
GCC Administrator
5ceb560498 Daily bump.
From-SVN: r189245
2012-07-04 00:18:24 +00:00
Oleg Endo
5e204a6e8b predicates.md (logical_and_operand): New predicate.
* config/sh/predicates.md (logical_and_operand): New predicate.
	* config/sh/constraints.md (Jmb, Jmw): New constraints.
	* config/sh/sh.md (andsi3): Move expander above insns.  Add handling
	of 0xFFFF constant.  Use logical_and_operand predicate and
	satisfies_constraint_Jmb, satisfies_constraint_Jmw.
	(*andsi3_compact): Make it an insn_and_split.  Use
	logical_and_operand predicate.  Add Jmb,Jmw alternatives.

From-SVN: r189241
2012-07-03 22:26:23 +00:00
Paolo Carlini
c128d2031e re PR libstdc++/53840 ([C++11] DR 921. Rational Arithmetic should use template aliases)
2012-07-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/53840
	* include/std/ratio (ratio_multiply, ratio_divide, ratio_add,
	ratio_subtract): Use template aliases.
	* include/std/chrono (duration<>::duration(const duration<>&),
	duration_cast): Adjust.
	* testsuite/20_util/ratio/operations/53840.cc: New.
	* testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust.
	* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
	* testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
	* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.

From-SVN: r189239
2012-07-03 19:24:07 +00:00
Jason Merrill
f5d306802c re PR c++/53826 ([alpha]: ICE in fold_convert_loc, at fold-const.c:2008)
PR c++/53826
	* tree.c (build_zero_cst): Handle NULLPTR_TYPE.

From-SVN: r189238
2012-07-03 14:10:39 -04:00
Nick Clifton
f758c26c04 mep.c (mep_reorg_regmove): Use next_nonnote_non_debug_insn to advance to the next insn.
* config/mep/mep.c (mep_reorg_regmove): Use
	next_nonnote_non_debug_insn to advance to the next insn.  Do not
	expect delete_insn to return an rtx.

From-SVN: r189234
2012-07-03 15:49:25 +00:00
Richard Guenther
9795be396e install.texi (CLooG): Clarify how CLooG needs to be configured and that it needs to be built against...
2012-07-03  Richard Guenther  <rguenther@suse.de>

	* doc/install.texi (CLooG): Clarify how CLooG needs to be
	configured and that it needs to be built against ISL 0.10.

From-SVN: r189228
2012-07-03 13:38:37 +00:00