118948 Commits

Author SHA1 Message Date
Richard Guenther
ef78c9c7e6 tree-ssa-forwprop.c (get_prop_source_stmt): Simplify.
2012-09-19  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-forwprop.c (get_prop_source_stmt): Simplify.

From-SVN: r191467
2012-09-19 11:03:51 +00:00
Jan Hubicka
b5493fb2fa symtab.c (insert_to_assembler_name_hash): Do not insert register vars.
* symtab.c (insert_to_assembler_name_hash): Do not insert
	register vars.
	(unlink_from_assembler_name_hash): NULL out pointers of unlinked
	var.
	(symtab_prevail_in_asm_name_hash): New.
	(symtab_initialize_asm_name_hash): Break out from ...
	(symtab_node_for_asm): ... here.
	(dump_symtab_base): Dump LTO file data.
	(verify_symtab_base): Register vars are not in symtab.
	* cgraph.h (symtab_initialize_asm_name_hash,
	symtab_prevail_in_asm_name_hash): New functions.
	(symtab_real_symbol_p): New inline.
	* lto-symtab.c: Do not include gt-lto-symtab.h.
	(lto_symtab_entry_def): Remove.
	(lto_symtab_entry_t): Remove.
	(lto_symtab_identifiers): Remove.
	(lto_symtab_free): Remove.
	(lto_symtab_entry_hash): Remove.
	(lto_symtab_entry_eq): Remove.
	(lto_symtab_entry_marked_p): Remove.
	(lto_symtab_maybe_init_hash_table): Remove.
	(resolution_guessed_p, set_resolution_guessed): New functions.
	(lto_symtab_register_decl): Only set resolution info.
	(lto_symtab_get, lto_symtab_get_resolution): Remove.
	(lto_symtab_merge): Reorg to work across symtab; do nothing if decls
	are same.
	(lto_symtab_resolve_replaceable_p): Reorg to work on symtab.
	(lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can
	prevail.
	(lto_symtab_resolve_symbols): Reorg to work on symtab.
	(lto_symtab_merge_decls_2): Likewise.
	(lto_symtab_merge_decls_1): Likewise; add debug dumps.
	(lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
	(lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
	(lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans stage.
	(lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
	* lto-streaer.h (lto_symtab_free): Remove.
	* lto-cgraph.c (add_references): Cleanup.
	* varpool.c (varpool_assemble_decl): Skip hard regs.

	* lto.c (lto_materialize_function): Update confused comment.
	(read_cgraph_and_symbols): Do not free symtab.

From-SVN: r191466
2012-09-19 10:01:56 +00:00
Richard Guenther
9745abfd1c re PR other/53316 (Introduce -Og)
2012-09-19  Richard Guenther  <rguenther@suse.de>

	PR other/53316
	* common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add.

From-SVN: r191465
2012-09-19 09:31:49 +00:00
Richard Guenther
bf7a718571 re PR other/53316 (Introduce -Og)
2012-09-19  Richard Guenther  <rguenther@suse.de>

	PR other/53316
	* common.opt (optimize_debug): New variable.
	(Og): New optimization level.
	* doc/invoke.texi (Og): Document.
	* opts.c (maybe_default_option): Add debug parameter.
	(maybe_default_options): Likewise.
	(default_options_optimization): Handle -Og.
	(common_handle_option): Likewise.
	* passes.c (gate_all_optimizations): Do not run with -Og.
	(gate_all_optimizations_g): New gate, run with -Og.
	(pass_all_optimizations_g): New container pass, run with -Og.
	(init_optimization_passes): Schedule pass_all_optimizations_g
	alongside pass_all_optimizations.

From-SVN: r191464
2012-09-19 09:29:57 +00:00
Richard Guenther
f20132e7ae re PR tree-optimization/54132 (Incorrect loop transformation with -ftree-loop-distribute-patterns)
2012-09-19  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/54132
	* tree-loop-distribution.c (classify_partition): Properly
	check dependences for memmove.
	* tree-data-ref.h (compute_affine_dependence): Declare.
	* tree-data-ref.c (compute_affine_dependence): Export.

	* gcc.dg/tree-ssa/ldist-21.c: New testcase.
	* gcc.dg/torture/pr54132.c: Likewise.

From-SVN: r191463
2012-09-19 08:59:06 +00:00
Zhenqiang Chen
f7d0c571f7 re PR middle-end/54364 (Tail call jumps not threaded)
PR middle-end/54364
	* bb-reorder.c (connect_better_edge_p): New added.
	(find_traces_1_round): When optimizing for size, ignore edge frequency
	and probability, and handle all in one round.
	(bb_to_key): Use bb->index as key when optimizing for size.
	(better_edge_p): The bb with smaller index is better when optimizing
	for size.
	(connect_traces): When optimizing for size, connect block n with
	block n + 1; connect trace m with trace m + 1 if falling through.
	(gate_handle_reorder_blocks): Enable bbro when optimizing for -Os.

From-SVN: r191462
2012-09-19 07:40:15 +00:00
Ian Lance Taylor
878b569c6a compiler: Fix multiple types with same name in function.
From-SVN: r191461
2012-09-19 05:27:19 +00:00
Terry Guo
06e28db05e gcc-dg.exp (dg_runtest_extra_prunes): New variable to define extra prune rules that will be applied to all tests in a...
2012-09-19  Terry Guo  <terry.guo@arm.com>

        * lib/gcc-dg.exp (dg_runtest_extra_prunes): New variable to define
        extra prune rules that will be applied to all tests in a .exp file.
        (gcc-dg-prune): Use rules defined by the above variable.
        * gcc.target/arm/arm.exp (dg_runtest_extra_prunes): Skip all the
        harmless warnings on architecture switch conflict.

From-SVN: r191460
2012-09-19 05:17:22 +00:00
Ian Lance Taylor
9425c00b8e re PR bootstrap/54623 (install fails with libbacktrace/backtrace.c:35:20: error: unwind.h: No such file or directory)
PR bootstrap/54623
	* Makefile.am (AM_CPPFLAGS): Define.
	(AM_CFLAGS): Remove -I options.
	* Makefile.in: Rebuild.

From-SVN: r191459
2012-09-19 04:37:40 +00:00
Bin Cheng
467d90329d Fix ChangeLog entry for r191457.
From-SVN: r191458
2012-09-19 01:53:23 +00:00
Bin Cheng
afb0c9cda9 * fold-const.c (fold_truth_andor) Remove duplicated check on
BRANCH_COST.

From-SVN: r191457
2012-09-19 01:49:09 +00:00
Hans-Peter Nilsson
7a99a2514e nested-3.C: Match a sequence of asm-comment characters instead of a single one.
* g++.dg/debug/dwarf2/nested-3.C: Match a sequence
	of asm-comment characters instead of a single one.
	* g++.dg/debug/dwarf2/nested-2.C: Similar.

From-SVN: r191456
2012-09-19 01:36:31 +00:00
GCC Administrator
92058131cf Daily bump.
From-SVN: r191455
2012-09-19 00:17:30 +00:00
Eric Botcazou
63d94e58b1 re PR middle-end/54617 (ICE on gcc.c-torture/compile/pr42025-2.c with -m64 and -O1)
PR middle-end/54617
	* expr.c (store_field): Handle a PARALLEL in more cases.

From-SVN: r191451
2012-09-18 22:42:18 +00:00
Segher Boessenkool
4f60e9d38f rs6000.md (sminsi3, [...]): Delete.
2012-09-18  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/
	* config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3):
	Delete.
	(abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
	nabs_nopower): Delete.
	(absdi2, absdi2_internal, nabsdi2): Delete.
	(smindi3, smaxdi3, umindi3, umaxdi3): Delete.

From-SVN: r191450
2012-09-18 23:13:45 +02:00
Janis Johnson
65c247eefc * gcc.dg/vect/fast-math-pr35982.c: Skip check instead of xfail.
From-SVN: r191448
2012-09-18 19:47:39 +00:00
Janis Johnson
672df68093 no-vfa-vect-101.c: Skip a check for an irrelevant target instead of xfailing it.
* gcc.dg/vect/no-vfa-vect-101.c: Skip a check for an irrelevant
	target instead of xfailing it.
	* gcc.dg/vect/no-vfa-vect-102.c: Likewise.
	* gcc.dg/vect/no-vfa-vect-102a.c: Likewise.
	* gcc.dg/vect/no-vfa-vect-37.c: Likewise.
	* gcc.dg/vect/no-vfa-vect-79.c: Likewise.
	* gcc.dg/vect/vect-104.c: Likewise.
	* gcc.dg/vect/vect-outer-1-big-array.c: Likewise.
	* gcc.dg/vect/vect-outer-1.c: Likewise.
	* gcc.dg/vect/vect-outer-1a-big-array.c: Likewise.
	* gcc.dg/vect/vect-outer-1a.c: Likewise.
	* gcc.dg/vect/vect-outer-1b-big-array.c: Likewise.
	* gcc.dg/vect/vect-outer-1b.c: Likewise.
	* gcc.dg/vect/vect-outer-2b.c: Likewise.
	* gcc.dg/vect/vect-outer-3a-big-array.c: Likewise.
	* gcc.dg/vect/vect-outer-3a.c: Likewise.
	* gcc.dg/vect/vect-outer-3b.c: Likewise.
	* gcc.dg/vect/vect-reduc-dot-s8b.c: Likewise.

From-SVN: r191447
2012-09-18 19:46:52 +00:00
Janis Johnson
1401c91389 target-supports.exp (check_effective_target_vect_widen_mult_qi_to_hi, [...]): Check arm_neon_ok instead of arm_none.
* lib/target-supports.exp
	(check_effective_target_vect_widen_mult_qi_to_hi,
	check_effective_target_vect_widen_mult_hi_to_si,
	check_effective_target_vect_widen_mult_qi_to_hi_pattern,
	check_effective_target_vect_widen_mult_hi_to_si_pattern,
	check_effective_target_vect_pack_trunc,
	check_effective_target_vect_unpack,
	check_effective_target_vect_multiple_sizes): Check arm_neon_ok
	instead of arm_none.

From-SVN: r191446
2012-09-18 19:46:01 +00:00
Janis Johnson
67fae09fb0 * gcc.dg/vect/pr52298.c: Remove "dg-do run".
From-SVN: r191445
2012-09-18 19:45:11 +00:00
Senthil Kumar Selvaraj
3d3bdc6767 target-supports-dg.exp (check-flags): Add cflags from board config to compiler_flags.
2012-09-18  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	* lib/target-supports-dg.exp (check-flags): Add cflags from board
	config to compiler_flags.

From-SVN: r191444
2012-09-18 19:42:13 +00:00
Ian Lance Taylor
3319ef17d2 posix.c (O_BINARY): Define if not defined.
* posix.c (O_BINARY): Define if not defined.
	(backtrace_open): Pass O_BINARY to open.  Only call fcntl if
	HAVE_FCNTL is defined.
	* configure.ac: Test for the fcntl function.
	* configure, config.h.in: Rebuild.

From-SVN: r191443
2012-09-18 18:06:28 +00:00
Ian Lance Taylor
bd3e497d0b * btest.c (test1, test2, test3, test4): Add the unused attribute.
From-SVN: r191440
2012-09-18 17:10:01 +00:00
Ian Lance Taylor
30e15876ff * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
From-SVN: r191437
2012-09-18 16:50:29 +00:00
Georg-Johann Lay
487e359c28 avr.md: Tidy up empty "".
* config/avr/avr.md: Tidy up empty "".  Fix C code indentation.
	* config/avr/avr-fixed.md: Ditto.

From-SVN: r191436
2012-09-18 16:43:27 +00:00
Ian Lance Taylor
d4c059d582 configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
	* mmapio.c: Don't define _GNU_SOURCE.
	* configure, config.h.in: Rebuild.

From-SVN: r191435
2012-09-18 16:36:48 +00:00
Edward Smith-Rowland
19ece7ec02 Implement the Nakagami statistical distribution as an extension.
From-SVN: r191434
2012-09-18 16:14:09 +00:00
Ian Lance Taylor
772a71a959 configure.ac: Check whether strnlen is declared.
* configure.ac: Check whether strnlen is declared.
	* dwarf.c: Declare strnlen if not declared.
	* configure, config.h.in: Rebuild.

From-SVN: r191433
2012-09-18 16:06:53 +00:00
Ian Lance Taylor
9a9baa5254 strnlen.c: New file.
* strnlen.c: New file.
	* configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
	present.
	* Makefile.in: Rebuild dependencies.
	(CFILES): Add strnlen.c.
	(CONFIGURED_OFILES): Add ./strnlen.$(objext).
	* configure, config.in, functions.texi: Rebuild.

	* maint-tool: Accept .def files in the include directory.

From-SVN: r191432
2012-09-18 16:03:01 +00:00
Maciej W. Rozycki
fb5e0707d1 rs6000.c (print_operand): Remove.
* config/rs6000/rs6000.c (print_operand) <'c'>: Remove.
	* config/rs6000/spe.md: Remove a leftover comment.

From-SVN: r191431
2012-09-18 15:57:53 +00:00
Jakub Jelinek
68e28cfd16 re PR rtl-optimization/54592 (Cannot fuse SSE move and add together)
PR target/54592
	* config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD
	AND/IOR/XOR cost calculation to MODE_INT class modes.

	* gcc.target/i386/pr54592.c: New test.

From-SVN: r191430
2012-09-18 17:14:15 +02:00
Arnaud Charlet
0b07a57e8c * c-ada-spec.c: Style fixes.
From-SVN: r191428
2012-09-18 16:31:38 +02:00
Thomas Quinot
da5182be67 invoke.texi: Document -fada-spec-parent.
* doc/invoke.texi: Document -fada-spec-parent.
c-family/
	* c.opt (-fada-spec-parent): Define new command line switch.
	* c-ada-spec.c (get_ada_package): When -fada-spec-parent
	is specified, generate binding spec as a child of the specified unit.

From-SVN: r191427
2012-09-18 16:26:06 +02:00
Paolo Carlini
ecfce0b850 re PR libstdc++/54612 (Many failures in ext/random testsuite)
2012-09-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/54612
	* include/ext/random.tcc (operator==
	(const __gnu_cxx::simd_fast_mersenne_twister_engine<>&,
	const __gnu_cxx::simd_fast_mersenne_twister_engine<>&)): Fix
	state_size use.
	* config/cpu/i486/opt/ext/opt_random.h: Guard with __SSE2__.

From-SVN: r191424
2012-09-18 14:02:20 +00:00
Jakub Jelinek
1d61ee4252 re PR tree-optimization/54610 (FAIL: gcc.dg/tree-ssa/forwprop-22.c (internal compiler error) on x86 AVX targets)
PR tree-optimization/54610
	* tree-ssa-forwprop.c: Include optabs.h.  Don't include
	tree-vectorizer.h.
	(simplify_vector_constructor): Don't use vect_gen_perm_mask,
	instead create the mask constant here.
	* Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H).
	Don't depend on $(TREE_VECTORIZER_H).

	* gcc.target/i386/pr54610.c: New test.

From-SVN: r191421
2012-09-18 15:03:09 +02:00
Florian Weimer
6889a65081 Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.
2012-09-18  Florian Weimer  <fweimer@redhat.com>

	* Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.

From-SVN: r191420
2012-09-18 14:55:06 +02:00
Richard Guenther
73804b1224 statistics.h (CXX_MEM_STAT_INFO): New define.
2012-09-18  Richard Guenther  <rguenther@suse.de>

	* statistics.h (CXX_MEM_STAT_INFO): New define.
	* gimple.h (gimple_build_assign_with_ops_stat,
	gimple_build_assign_with_ops, gimple_build_assign_with_ops3):
	Turn into an overload of the function gimple_build_assign_with_ops.
	* gimple.c (gimple_build_assign_with_ops_stat): Rename to ...
	(gimple_build_assign_with_ops): ... this.
	* tree-ssa-loop-im.c (move_computations_stmt): Adjust.
	* tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
	* tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
	(vect_permute_load_chain): Likewise.
	* tree-vect-generic.c (expand_vector_divmod): Likewise.
	* tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
	(vect_recog_divmod_pattern): Likewise.
	(vect_recog_mixed_size_cond_pattern): Likewise.
	(adjust_bool_pattern): Likewise.
	* tree-vect-slp.c (vect_create_mask_and_perm): Likewise.
	* tree-vect-stmts.c (vectorizable_operation): Likewise.
	(permute_vec_elements): Likewise.
	(vectorizable_load): Likewise.

From-SVN: r191415
2012-09-18 09:17:27 +00:00
Rainer Orth
c0558468b8 Fix libbacktrace bootstrap with gcc 4.4
* fileline.c: Include <stdlib.h>.
	* mmap.c: Likewise.

From-SVN: r191414
2012-09-18 09:02:50 +00:00
Florian Weimer
ed770de906 PR other/54411: integer overflow in objalloc_alloc
2012-09-18  Florian Weimer  <fweimer@redhat.com>

	PR other/54411
	* objalloc.h (objalloc_alloc): Do not use fast path on wraparound.

2012-09-18  Florian Weimer  <fweimer@redhat.com>

	PR other/54411
	* objalloc.c (_objalloc_alloc): Add overflow check covering
	alignment and CHUNK_HEADER_SIZE addition.

From-SVN: r191413
2012-09-18 10:34:05 +02:00
Jason Merrill
4d3999876e re PR c++/54575 (ICE with std::vector::insert and -std=c++11)
PR c++/54575
	* pt.c (instantiate_alias_template): New.
	(tsubst): Use it.
	(push_access_scope): Allow TYPE_DECL.

From-SVN: r191412
2012-09-17 23:47:35 -04:00
GCC Administrator
342ebbda0f Daily bump.
From-SVN: r191411
2012-09-18 00:19:38 +00:00
Ian Lance Taylor
c5812e0b33 re PR bootstrap/54611 (Bootstrap failure: conflicting types for 'backtrace_simple')
PR bootstrap/54611
	* nounwind.c (backtrace_full): Rename from backtrace.  Add state
	parameter.

From-SVN: r191408
2012-09-17 21:14:51 +00:00
Gerald Pfeifer
e8f4008a9e re PR bootstrap/54611 (Bootstrap failure: conflicting types for 'backtrace_simple')
PR bootstrap/54611
	* nounwind.c (backtrace_simple): Add state parameter.

From-SVN: r191405
2012-09-17 20:57:16 +00:00
Paul Koning
2611b5ba2e invoke.text (-feliminate-unused-debug-types): Update to reflect that this is enabled by default.
2012-09-17  Paul Koning  <ni1d@arrl.net>

	    * doc/invoke.text (-feliminate-unused-debug-types): Update to
	    reflect that this is enabled by default.

From-SVN: r191404
2012-09-17 15:12:32 -04:00
Tobias Burnus
61aa9333ba re PR fortran/54608 (Wrong-code with SCAN and VERIFY)
2012-09-17  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54608
        * simplify.c (gfc_simplify_scan, gfc_simplify_verify):
        Fix handling of BACK=variable.

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

        PR fortran/54608
        * gfortran.dg/scan_2.f90: New.

From-SVN: r191403
2012-09-17 19:53:37 +02:00
Ian Lance Taylor
f588eb27dd re PR bootstrap/54609 (libbacktrace breaks bootstrap on darwin)
PR bootstrap/54609
	* unknown.c (unknown_fileline): Add state parameter, remove
	fileline_data parameter, name error_callback parameter.
	(backtrace_initialize): Add state parameter.

From-SVN: r191402
2012-09-17 17:43:26 +00:00
Ben Cheng
869fefb7c4 linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the dynamic linker commands for...
2012-09-17  Ben Cheng  <bccheng@google.com

	* config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the
	dynamic linker commands for statically linked programs.

From-SVN: r191401
2012-09-17 17:33:05 +00:00
Ulrich Weigand
058e267451 arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set patterns.
2012-09-17  Ulrich Weigand  <ulrich.weigand@linaro.org>

	* config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
	patterns.
	* config/arm/arm.md ("vec_set<mode>_internal"): Support memory source
	operands, implemented via vld1 instruction.
	("vec_extract<mode>"): Support memory destination operands, implemented
	via vst1 instruction.
	("neon_vst1_lane<mode>"): Use UNSPEC_VST1_LANE instead of vec_select.
	* config/arm/predicates.md ("neon_lane_number"): Remove.

From-SVN: r191400
2012-09-17 17:08:14 +00:00
Ramana Radhakrishnan
a7e7bf8fc3 arm.c (output_move_neon): Update comment.
2012-09-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
	    Ulrich Weigand  <ulrich.weigand@linaro.org>

	* config/arm/arm.c (output_move_neon): Update comment.
	Use vld1.64/vst1.64 instead of vldm/vstm where possible.
	(neon_vector_mem_operand): Support double-word modes.
	* config/arm/neon.md (*neon_mov VD): Call output_move_neon
	instead of output_move_vfp.  Change constraint from Uv to Un.

Co-Authored-By: Ulrich Weigand <ulrich.weigand@linaro.org>

From-SVN: r191399
2012-09-17 17:07:29 +00:00
Ian Lance Taylor
eff02e4f84 libbacktrace/:
* Initial implementation.

./:
	* MAINTAINERS (Various Maintainers): Add libbacktrace.
	* configure.ac (host_libs): Add libbacktrace.
	(target_libraries): Add libbacktrace.
	* Makefile.def (host_modules): Add libbacktrace.
	(target_modules): Likewise.
	* configure, Makefile.in: Rebuild.

gcc/go:
	* config-lang.in (target_libs): Add target-libbacktrace.

From-SVN: r191397
2012-09-17 16:38:38 +00:00
Richard Guenther
142c8954fd * ChangeLog: Fix author of r191394.
From-SVN: r191396
2012-09-17 16:11:52 +00:00