Commit Graph

119132 Commits

Author SHA1 Message Date
GCC Administrator 245da6ebaa Daily bump.
From-SVN: r191846
2012-09-29 00:18:40 +00:00
Ian Lance Taylor e3953a6610 compiler: Fix handling of omitted expression in switch.
From-SVN: r191842
2012-09-28 22:20:39 +00:00
Ian Lance Taylor ddd06f5372 runtime: Better detection of memory allocation request overflow.
From-SVN: r191841
2012-09-28 21:25:20 +00:00
Jan Hubicka e78410bf11 basic-block.h (RDIV): Define.
* basic-block.h (RDIV): Define.
	(EDGE_FREQUENCY): Simplify.
	(check_probability, combine_probabilities, apply_probability,
	inverse_probability): New.
	* cfgloop.c (scale_loop_profile): New function.
	* cfgloop.h (scale_loop_profile): Declare.
	(slpeel_add_loop_guard): Add probability parameter.
	(set_prologue_iterations): Add probability parameter.
	(slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters;
	update probabilities correctly.
	(vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New.

From-SVN: r191839
2012-09-28 21:14:23 +00:00
Bernd Schmidt 0380c51fef re PR bootstrap/54688 (violation of implicit restriction "No_Elaboration_Code" on a-ioexce.ads)
PR bootstrap/54688
	* sched-deps.c (parse_add_or_inc): Remove MINUS handling.  Take
	STACK_GROWS_DOWNWARD into account.

From-SVN: r191838
2012-09-28 20:32:55 +00:00
Benjamin Kosnik 495de4f4cb acinclude.m4 (GLIBCXX_ENABLE_PARALLEL): Remove ENABLE_PARALLEL.
2012-09-28  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4 (GLIBCXX_ENABLE_PARALLEL): Remove ENABLE_PARALLEL.
	* include/Makefile.am: Same.
	* src/c++98/Makefile.am: Same.
	* src/Makefile.am: Same.
	* Makefile.in: Regenerated.
	* aclocal.m4: Same.
	* configure: Same.
	* doc/Makefile.in: Same.
	* include/Makefile.in: Same.
	* libsupc++/Makefile.in: Same.
	* po/Makefile.in: Same.
	* python/Makefile.in: Same.
	* src/Makefile.in: Same.
	* testsuite/Makefile.in: Same.
	* src/c++11/Makefile.in: Same.
	* src/c++98/Makefile.in: Same.

	* src/c++98/compatibility-debug_list-2.cc: Update comments.
	* src/c++98/compatibility-debug_list.cc: Same.
	* src/c++98/compatibility-list-2.cc: Renamed to src/c++98/list-aux-2.cc
	* src/c++98/compatibility-list.cc: Renamed to src/c++98/list-aux.cc
	* src/c++98/compatibility-parallel_list-2.cc: Renamed to
	src/c++98/list_associated-2.cc.
	* src/c++98/compatibility-parallel_list.cc: Renamed to
	src/c++98/list_associated.cc.

From-SVN: r191837
2012-09-28 19:48:27 +00:00
Ian Lance Taylor 92aecb446a runtime: runtime.Caller should succeed even without debug info.
From-SVN: r191833
2012-09-28 17:42:53 +00:00
Dodji Seketeli a139548ea7 Move testsuite/c-c++-common/Wunused-local-typedefs-2.c to testsuite/g++.dg/warn/Wunused-local-typedefs-3.C
gcc/testsuite/

	* g++.dg/warn/Wunused-local-typedefs-3.C: Move the c++-only test
	gcc/testsuite/c-c++-common/Wunused-local-typedefs-2.c to here.

From-SVN: r191832
2012-09-28 18:41:59 +02:00
Ian Lance Taylor 0e56e59065 libgo: Use libbacktrace rather than debug/elf registration.
From-SVN: r191831
2012-09-28 14:48:30 +00:00
Dodji Seketeli d10402b413 PR c++/54372 - unused attribute inactive on dependant entities
In the example of this patch, gcc/g++ invoked with
-Wunused-local-typedefs warns on dependant entities even when those
are decorated with the 'unused' attribute.

This is because in cplus_decl_attributes, save_template_attributes
makes so that the 'unused' attribute is applied to its appertaining
entity only at instantiation time.  But then at parsing time
maybe_warn_unused_local_typedefs checks for TREE_USED before warning.

This patch applies the 'unused' attribute at compilation time.

Tested on x86_64-unknown-linux-gnu against trunk.

gcc/cp/

	* decl2.c (is_late_template_attribute): "unused" attribute is to
	be applied at compile time.

gcc/testsuite/

	* c-c++-common/Wunused-local-typedefs-2.c: New test.

From-SVN: r191830
2012-09-28 15:32:41 +02:00
Dodji Seketeli 3b4441db79 PR c++/29028 - Missed unused warning on using declaration
In the example of the patch, g++ fails to warn that the variable N::i
(introduced via a using declaration) is unused.

This is because as we want to emit the warning in poplevel, when we
walk the local bindings returned by getdecls, we forget that a
VAR_DECL introduced by a using declaration is represented by a
TREE_LIST which TREE_VALUE is the VAR_DECL, and we wrongly look for a
bare VAR_DECL.

Fixed thus and tested on x86_64-unknown-linux-gnu against trunk.

gcc/cp/

	* decl.c (poplevel<warn_unused*>): Do not forget that some local
	bindings are represented by a TREE_LIST.

gcc/testsuite/

	* g++.dg/warn/Wunused-var-18.C: New test.

From-SVN: r191829
2012-09-28 14:51:30 +02:00
Dodji Seketeli 2be9064ded PR c++/53551 - -Wunused-local-typedefs misses uses
We don't record the use of a typedef when it's used through a
typename.  Fixed thus.

Tested on x86_64-unknown-linux-gnu against trunk.

gcc/cp/

	* decl.c (make_typename_type): Record the use of typedefs.

gcc/testsuite/

	* g++.dg/warn/Wunused-local-typedefs-2.C: New test.

From-SVN: r191828
2012-09-28 14:21:33 +02:00
Jakub Jelinek 42bace41fd re PR target/54716 (Select best typed instruction for bitwise operations)
PR target/54716
	* config/i386/predicates.md (nonimmediate_or_const_vector_operand):
	New predicate.
	* config/i386/i386.c (ix86_expand_vector_logical_operator): New
	function.
	* config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New
	prototype.
	* config/i386/sse.md (<code><mode>3 VI logic): Use it.

	* gcc.target/i386/xorps-sse2.c: Remove xfails.

From-SVN: r191827
2012-09-28 14:20:54 +02:00
Jakub Jelinek 4a2c20ccfa re PR tree-optimization/54713 (error: non-trivial conversion at assignment in gcc.c-torture/compile/pr53410-2.c)
PR tree-optimization/54713
	* fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR
	has vector elements.
	(fold_ternary_loc) <case BIT_FIELD_REF>: Likewise.
	* tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts
	indexes.  Use BIT_FIELD_REF if CONSTRUCTOR has vector elements.
	(lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes.

	* gcc.c-torture/compile/pr54713-1.c: New test.
	* gcc.c-torture/compile/pr54713-2.c: New test.
	* gcc.c-torture/compile/pr54713-3.c: New test.

From-SVN: r191826
2012-09-28 14:18:57 +02:00
Georg-Johann Lay 1a910f8f26 avr.md (adjust_len): Add lpm.
* config/avr/avr.md (adjust_len): Add lpm.
	(reload_in<mode>): Use avr_out_lpm for output.  Use "lpm" for
	adjust_len.
	* config/avr/avr-protos.h (avr_out_lpm): New prototype.
	* config/avr/avr.c (avr_out_lpm): Make global.
	(adjust_insn_length): Handle ADJUST_LEN_LPM.

From-SVN: r191825
2012-09-28 11:37:46 +00:00
Richard Guenther 9aef8e955f re PR lto/47799 (LTO debug info for early inlined functions missing)
2012-09-28  Richard Guenther  <rguenther@suse.de>

	PR lto/47799
	* lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global.
	(lto_output_tree_ref): Handle references to them.
	(output_function): Do not output function arguments again.
	* lto-streamer-in.c (input_function): Do not input arguments
	again, nor overwrite them.

From-SVN: r191824
2012-09-28 11:07:17 +00:00
Richard Guenther b8dbdb1275 cgraph.h (symtab_node_base): Re-order and pack fields.
2012-09-28  Richard Guenther  <rguenther@suse.de>

	* cgraph.h (symtab_node_base): Re-order and pack fields.

From-SVN: r191823
2012-09-28 09:03:00 +00:00
Georg-Johann Lay 9ee9ccb9d9 avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
* config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.

From-SVN: r191821
2012-09-28 08:31:55 +00:00
Georg-Johann Lay 3fd1e31dc5 re PR rtl-optimization/52543 (lower-subreg.c: code bloat of 300%-400% for multi-word memory splits)
PR rtl-optimization/52543
	* config/avr/avr.c (avr_mode_dependent_address_p): Return true for
	all non-generic address spaces.
	(TARGET_SECONDARY_RELOAD): New hook define to...
	(avr_secondary_reload): ...this new static function.
	* config/avr/avr.md (reload_in<mode>): New insns.
	Undo r185605 (mostly):
	* config/avr/avr-protos.h (avr_load_lpm): Remove.
	* config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash loads.
	(avr_out_lpm): Also handle loads > 1 byte.
	(avr_load_lpm): Remove.
	(avr_find_unused_d_reg): New static function.
	(avr_out_lpm_no_lpmx): New static function.
	(adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM.
	* config/avr/avr.md (unspec): Remove UNSPEC_LPM.
	(load_<mode>_libgcc): Use MEM instead of UNSPEC_LPM.
	(load_<mode>, load_<mode>_clobber): Remove.
	(mov<mode>): For multi-byte move from non-generic
	16-bit address spaces: Expand to *mov<mode> again.
	(load<mode>_libgcc): New expander.
	(split-lpmx): Remove split.

From-SVN: r191820
2012-09-28 08:21:06 +00:00
Ian Lance Taylor af710874e9 re PR bootstrap/54732 (Installation failure: libbacktrace rebuilds upon install when built with "make bootstrap-lean")
PR bootstrap/54732
	* configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
	* Makefile.am: Add dependencies for all objects.
	* configure, aclocal.m4, Makefile.in: Rebuild.

From-SVN: r191819
2012-09-28 06:13:00 +00:00
GCC Administrator 694f741409 Daily bump.
From-SVN: r191816
2012-09-28 00:18:37 +00:00
Ian Lance Taylor 588f4f8fc1 re PR other/54726 (libbacktrace segfaults on gcc_asserts with stripped gcc)
PR other/54726
	* elf.c (backtrace_initialize): Set *fileln_fn, not
	state->fileln_fn.

From-SVN: r191811
2012-09-27 19:20:49 +00:00
Dehao Chen 2f13f2de1f tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION.
2012-09-27  Dehao Chen  <dehao@google.com>

	* tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION.
	(extern void protected_set_expr_location): Likewise.
	(function_args_iter_next): Likewise.
	(inlined_function_outer_scope_p): Likewise.
	* input.h (IS_UNKNOWN_LOCATION): Likewise.
	* fold-const.c (expr_location_or): Likewise.
	* lto-cgraph.c (output_node_opt_summary): Likewise.
	* dwarf2out.c (add_src_coords_attributes): Likewise.
	* tree-eh.c (lower_try_finally_dup_block): Likewise.
	* profile.c (branch_prob):
	* cfgexpand.c (expand_gimple_cond): Likewise.
	(expand_gimple_basic_block): Likewise.
	(construct_exit_block): Likewise.
	(gimple_expand_cfg): Likewise.
	* cfgcleanup.c (try_forward_edges): Likewise.
	* tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
	(dump_scope_block): Likewise.
	* ipa-prop.c (ipa_write_jump_function): Likewise.
	* rtl.h (extern void rtl_check_failed_flag): Likewise.
	* gimple.h (gimple_set_location): Likewise.
	(gimple_has_location): Likewise.
	* cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
	(force_nonfallthru_and_redirect): Likewise.
	(fixup_reorder_chain): Likewise.
	(cfg_layout_merge_blocks): Likewise.

From-SVN: r191810
2012-09-27 17:06:22 +00:00
Meador Inge 33adc2a325 gcc-ar.c (main): Handle the returning of the sub-process error code correctly.
2012-09-27  Meador Inge  <meadori@codesourcery.com>

	* gcc-ar.c (main): Handle the returning of the sub-process error
	code correctly.

From-SVN: r191809
2012-09-27 16:05:38 +00:00
Janis Johnson 207f3d820a * gcc.target/arm/unsigned-extend-1.c: Omit -march option.
From-SVN: r191808
2012-09-27 15:49:41 +00:00
Paolo Carlini fb95b3dfae re PR libstdc++/54727 (error: declaration of ‘UINT64_C’ must be available)
2012-09-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/54727
	* config/cpu/i486/opt/bits/opt_random.h: Avoid UINT64_C.

From-SVN: r191806
2012-09-27 12:53:46 +00:00
Ulrich Weigand c2c47e8ff4 lower-subreg.c (enum classify_move_insn): Rename SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE.
ChangeLog:

	* lower-subreg.c (enum classify_move_insn): Rename
	SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE.
	(find_decomposable_subregs): Update.
	(decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter.
	Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE
	if that parameter is true.
	(rest_of_handle_lower_subreg): Call decompose_multiword_subregs
	with DECOMPOSE_COPIES false.
	(rest_of_handle_lower_subreg2): Call decompose_multiword_subregs
	with DECOMPOSE_COPIES true.

testsuite/ChangeLog:

	* gcc.dg/lower-subreg-1.c: Disable on arm-*-* targets.

From-SVN: r191805
2012-09-27 11:10:08 +00:00
Marek Polacek 9472dcecc7 Fix a typo in gcov.texi.
From-SVN: r191804
2012-09-27 11:06:38 +00:00
Jakub Jelinek e1f10dd972 init.c (build_new_1): Don't test TREE_CONSTANT of INTEGER_CST.
* init.c (build_new_1): Don't test TREE_CONSTANT
	of INTEGER_CST.

From-SVN: r191803
2012-09-27 13:01:17 +02:00
Jakub Jelinek 6b74529d9b re PR target/54703 (_mm_sub_pd is incorrectly substituted with vandnps)
PR target/54703
	* simplify-rtx.c (simplify_binary_operation_1): Perform
	(x - (x & y)) -> (x & ~y) optimization only for integral
	modes.

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

From-SVN: r191801
2012-09-27 12:48:07 +02:00
Marc Glisse e481cda684 re PR middle-end/53024 (Support vector_size that is not a power of 2)
2012-09-27  Marc Glisse  <marc.glisse@inria.fr>

	PR c/53024
	PR c++/54427
	* gcc/doc/extend.texi (Vector Extensions): C++ improvements.
	Power of 2 size requirement.

From-SVN: r191800
2012-09-27 10:06:23 +00:00
Richard Guenther e649d346e7 re PR lto/54709 (r191713 breaks Firefox build)
2012-09-27  Richard Guenther  <rguenther@suse.de>

	PR lto/54709
	* lto-symtab.c (resolution_guessed_p): Remove.
	(set_resolution_guessed): Likewise.
	(lto_symtab_register_decl): Remove assert.
	(lto_symtab_resolve_symbols): Do not alter symbol resolutions
	and return the prevailing symbol, checking for multiple prevailing
	symbols here.
	(lto_symtab_merge_decls_1): Use the result from
	lto_symtab_resolve_symbols.  Do not alter symbol resolutions.

	* gcc.dg/lto/pr54709_0.c: New testcase.
	* gcc.dg/lto/pr54709_1.c: Likewise.

From-SVN: r191798
2012-09-27 09:11:18 +00:00
Ian Lance Taylor a80f7a710e compiler: Better error for missing comma in composite literal.
From-SVN: r191795
2012-09-27 05:41:29 +00:00
Ian Lance Taylor e75d8ec9c0 Makefile.in (LIBBACKTRACE): New variable.
* gcc-interface/Makefile.in (LIBBACKTRACE): New variable.
	(LIBS): Add $(LIBBACKTRACE).
	(LIBDEPS): Add $(LIBBACKTRACE).
	(TOOLS_LIBS): Add ../../../libbacktrace/.libs/libbacktrace.a.

From-SVN: r191793
2012-09-27 05:00:45 +00:00
Paolo Carlini 8054b82ee5 random: Add include checks for c++11 and <cstdint>.
2012-09-26  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/ext/random: Add include checks for c++11 and <cstdint>.

From-SVN: r191792
2012-09-27 01:04:30 +00:00
GCC Administrator 238ccc1e5d Daily bump.
From-SVN: r191791
2012-09-27 00:17:50 +00:00
Benjamin Kosnik 957ea7ba30 re PR libstdc++/54314 (undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >')
2012-09-26  Benjamin Kosnik  <bkoz@redhat.com>

       PR libstdc++/54314
       * config/abi/pre/gnu.ver: Add vtable exports.
       * config/abi/pre/gnu-versioned-namespace.ver: Same.

From-SVN: r191788
2012-09-27 00:05:03 +00:00
Benjamin Kosnik 3b7f9f50be Correct truncation on last checkin.
From-SVN: r191787
2012-09-27 00:00:46 +00:00
Janis Johnson 95c01db1e9 * gcc.target/arm/div64-unwinding.c: XFAIL for GNU/Linux.
From-SVN: r191786
2012-09-26 23:57:31 +00:00
Janis Johnson 8fb9e4ae69 * gcc.target/arm/mmx-2.c: Specify -mcpu=iwmmxt.
From-SVN: r191785
2012-09-26 23:56:43 +00:00
Akira Takahashi e80d3fda8e re PR libstdc++/53515 (InputIterator version std::advance needs negative check)
2012-09-26  Akira Takahashi  <faithandbrave@gmail.com>

	PR libstdc++/53515
	* include/bits/stl_iterator_base_funcs.h (__advance(_InputIterator&,
	_Distance, input_iterator_tag)): Add _GLIBCXX_DEBUG_ASSERT(__n >= 0).

From-SVN: r191784
2012-09-26 23:56:39 +00:00
Janis Johnson ef13e9de0c * gcc.target/arm/combine-movs.c: Use effective target arm_thumb2.
From-SVN: r191783
2012-09-26 23:55:53 +00:00
Janis Johnson c70bc52a66 * gcc.target/arm/pr42879.c: Handle big-endian.
From-SVN: r191782
2012-09-26 23:55:00 +00:00
Steve Ellcey 5f11ec71ca re PR web/54711 (Fix --target_board examples on test.html page)
2012-09-26  Steve Ellcey  <sellcey@mips.com>

	PR web/54711
	* doc/install.texi: Fix example.

From-SVN: r191781
2012-09-26 22:47:22 +00:00
Joern Rennecke f3633f55aa contrib-list.mk (LIST): Remove arm-freebsd6, arm-linux, arm-ecos-elf, arm-rtems, arm-elf and arm-wince-pe.
* contrib-list.mk (LIST): Remove arm-freebsd6, arm-linux,
        arm-ecos-elf, arm-rtems, arm-elf and arm-wince-pe.
        Use --enable-obsolete for picochip-elf.

From-SVN: r191780
2012-09-26 23:03:44 +01:00
Dehao Chen 6040bb5fd3 tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void) for function parameter.
2012-09-26  Dehao Chen  <dehao@google.com>

	* tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void)
	for function parameter.
	(remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL.

From-SVN: r191779
2012-09-26 22:02:36 +00:00
Joseph Myers 9c7f5544cb * sv.po: Update.
From-SVN: r191776
2012-09-26 22:47:46 +01:00
Joseph Myers 0526ab6a99 * sv.po: Update.
From-SVN: r191775
2012-09-26 22:47:28 +01:00
Oleg Endo a104e60b67 extend.texi (bswap Builtins): Change signed types to unsigned types.
* doc/extend.texi (bswap Builtins): Change signed types to unsigned
	types.

From-SVN: r191774
2012-09-26 20:51:20 +00:00
Steve Ellcey db9f539414 re PR c/37303 (const compound initializers in structs are written to .data instead of .rodata)
2012-09-26  Steve Ellcey  <sellcey@mips.com>

	PR c/37303
	* gcc.dg/pr37303.c: Check for rdata or rodata.

From-SVN: r191772
2012-09-26 20:33:28 +00:00