Commit Graph

119750 Commits

Author SHA1 Message Date
Marc Glisse
93100c6b5b re PR c++/54427 (Expose more vector extensions)
2012-10-25  Marc Glisse  <marc.glisse@inria.fr>

	PR c++/54427

gcc/
	* tree.c (signed_or_unsigned_type_for): Handle vectors.

gcc/cp/
	* typeck.c (build_x_conditional_expr): Handle VEC_COND_EXPR.
	* call.c (build_conditional_expr_1): Likewise.

gcc/c-family/
	* c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.

gcc/testsuite/
	* g++.dg/ext/vector19.C: New testcase.

From-SVN: r192808
2012-10-25 13:02:42 +00:00
Jan Hubicka
6ced940d17 ipa-inline.c (recursive_inlining): Redirect to master clone before testing profitability.
* ipa-inline.c (recursive_inlining): Redirect to master
	clone before testing profitability.

From-SVN: r192807
2012-10-25 12:23:08 +00:00
Ralf Corsepius
43a8f1a1c3 config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.
2012-10-25  Ralf Corsépius <ralf.corsepius@rtems.org>

	* config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.

From-SVN: r192805
2012-10-25 14:06:06 +02:00
Richard Biener
9c370032cf re PR target/54902 (, ICE (segfault) building on arm-linux-gnueabi)
2012-10-25  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/54902
	* tree-ssa-pre.c (fini_eliminate): Return TODO.
	(do_pre): Adjust.
	(execute_fre): Likewise.
	* tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
	blocks before computing dominators.

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

From-SVN: r192804
2012-10-25 11:16:12 +00:00
Paolo Carlini
3a969a32ff re PR c++/34892 (ICE with ellipsis in default template argument)
/cp
2012-10-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/34892
	* parser.c (cp_parser_template_parameter): When
	cp_parser_parameter_declaration parsed a default argument don't
	see if *is_parameter_pack needs setting.

/testsuite
2012-10-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/34892
	* g++.dg/template/crash114.C: New.

From-SVN: r192802
2012-10-25 09:12:22 +00:00
Richard Sandiford
dc3e0b5501 expr.c (emit_block_move_via_loop): Use simplify_gen_binary rather than gen_rtx_PLUS.
gcc/
	* expr.c (emit_block_move_via_loop): Use simplify_gen_binary
	rather than gen_rtx_PLUS.

From-SVN: r192801
2012-10-25 09:08:09 +00:00
Ralf Corsepius
76c7836112 config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.
2012-10-25  Ralf Corsépius <ralf.corsepius@rtems.org>

	* config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.

From-SVN: r192799
2012-10-25 10:08:04 +02:00
Vladimir Makarov
15652f68ab re PR bootstrap/55068 (AIX bootstrap in push_reload() after LRA merge)
2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>

	PR bootstrap/55068
	PR regression/55050
	* ira.c (setup_reg_renumber): Fix assert.
	* ira-emit.c (emit_move_list): Update equivalences only for LRA.

From-SVN: r192797
2012-10-25 04:19:43 +00:00
Sebastian Huber
6f28886030 config.host (powerpc-*-rtems*): Add rs6000/t-savresfgpr to tmake_file.
2012-10-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	* config.host (powerpc-*-rtems*): Add rs6000/t-savresfgpr to
	tmake_file.

From-SVN: r192795
2012-10-25 05:30:23 +02:00
Vladimir Makarov
926cd61f45 re PR bootstrap/55067 (AIX bootstrap failure due to lra.c loc_t)
2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>

	PR bootstrap/55067
	* lra.c: Rename loc to sloc and loc_t to sloc_t.

From-SVN: r192794
2012-10-25 02:31:31 +00:00
GCC Administrator
4ede4ee462 Daily bump.
From-SVN: r192792
2012-10-25 00:19:23 +00:00
Sharad Singhai
2042a83100 rs6000.c (rs6000_density_test): Use dump_enabled_p instead of dump_kind_p.
2012-10-24  Sharad Singhai  <singhai@google.com>

	* config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
          instead of dump_kind_p.

From-SVN: r192788
2012-10-24 23:09:30 +00:00
Manuel López-Ibáñez
dfa3226153 re PR c++/54928 (Infinite output with after ICE with macro)
2012-10-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c++/54928
	* tree-diagnostic.c (maybe_unwind_expanded_macro_loc):
	Use diagnostic_append_note.
	* diagnostic.c (diagnostic_build_prefix): Make diagnostic const.
	(default_diagnostic_finalizer): Do not destroy prefix here.
	(diagnostic_report_diagnostic): Destroy it here.
	(diagnostic_append_note): New.
	* diagnostic.h (diagnostic_append_note): Declare.

From-SVN: r192786
2012-10-24 22:01:50 +00:00
H.J. Lu
0931831120 Require fpic on gcc.target/i386/pr55049-1.c
From-SVN: r192785
2012-10-24 14:52:57 -07:00
H.J. Lu
e95bc7ac87 Add a testcase for PR bootstrap/55049
PR bootstrap/55049
	* gcc.target/i386/pr55049-1.c: New test.

From-SVN: r192784
2012-10-24 14:49:36 -07:00
Ian Lance Taylor
32061319f7 re PR target/55061 (libbacktrace build fails during bootstrap on powerpc-apple-darwin9)
PR target/55061
	* configure.ac: Check whether -funwind-tables option works.
	* configure: Rebuild.

From-SVN: r192782
2012-10-24 21:09:55 +00:00
Sharad Singhai
45c29893a6 MAINTAINERS (Write After Approval): Add myself.
2012-10-24  Sharad Singhai  <singhai@google.com>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r192781
2012-10-24 20:42:02 +00:00
Daniel Kruegler
6c5173c05f type_traits (common_type): Implement LWG 2141.
2012-10-24  Daniel Krugler  <daniel.kruegler@gmail.com>

	* include/std/type_traits (common_type): Implement LWG 2141.
	* testsuite/20_util/duration/requirements/sfinae_friendly_1.cc:
	Update.
	* testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise.
	* testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
	Likewise.
	* testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
	Likewise.
	* testsuite/20_util/common_type/requirements/typedefs-2.cc: Likewise.

From-SVN: r192780
2012-10-24 20:37:05 +00:00
Vladimir Makarov
6e5769ce15 re PR rtl-optimization/55055 (RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1123)
2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/55055
	* lra-spills.c (alter_subregs): New function.
	(lra_hard_reg_substitution): Use it.

From-SVN: r192779
2012-10-24 20:02:08 +00:00
Torvald Riegel
eb00e95920 Clarify ABI requirements for data-logging functions.
* libitm.texi: Clarify ABI requirements for data-logging functions.

From-SVN: r192778
2012-10-24 19:52:18 +00:00
Torvald Riegel
b679c81340 Ask dispatch whether it requires serial mode.
* retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
	it requires serial mode instead of assuming that for certain
	dispatchs.
	* dispatch.h (abi_dispatch::requires_serial): New.
	(abi_dispatch::abi_dispatch): Adapt.
	* method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
	* method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
	* method-serial.cc (serialirr_dispatch::serialirr_dispatch,
	serial_dispatch::serial_dispatch,
	serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.

From-SVN: r192777
2012-10-24 19:52:02 +00:00
Ian Lance Taylor
1a6c552d12 mksysinfo: Define SIGPOLL and SIGCLD if necessary.
From-SVN: r192775
2012-10-24 19:00:44 +00:00
Eric Christopher
9d294e36f9 MAINTAINERS: Update email address.
2012-10-24  Eric Christopher  <echristo@gmail.com>

	    * MAINTAINERS: Update email address.

From-SVN: r192774
2012-10-24 18:26:01 +00:00
Sharad Singhai
73fbfcad22 dumpfile.c (dump_enabled_p): Make it inline and move the definition to dumpfile.h.
2012-10-24  Sharad Singhai  <singhai@google.com>

	* dumpfile.c (dump_enabled_p): Make it inline and move the definition
	to dumpfile.h.
	(dump_kind_p): Deleted. Functionality replaced by dump_enabled_p.
	Make alt_dump_file extern.
	* dumpfile.h (dump_enabled_p): Move inline definition here.
	(dump_kind_p): Delete declaration.
	Add extern declaration of alt_dump_file.
	* toplev.c: Move dump_file and dump_file_name to dumpfile.c.
	* tree-vect-loop-manip.c: Replace all uses of dump_kind_p with
	dump_enabled_p.
	* tree-vectorizer.c: Likewise.
	* tree-vect-loop.c: Likewise.
	* tree-vect-data-refs.c: Likewise.
	* tree-vect-patterns.c: Likewise.
	* tree-vect-stmts.c: Likewise.
	* tree-vect-slp.c: Likewise.

From-SVN: r192773
2012-10-24 17:58:14 +00:00
Richard Sandiford
c1a4d0b580 expmed.c (lowpart_bit_field_p): Add missing == 0 check.
gcc/
	* expmed.c (lowpart_bit_field_p): Add missing == 0 check.

From-SVN: r192772
2012-10-24 17:53:42 +00:00
Vladimir Makarov
65875a301e re PR bootstrap/55049 (bootstrap failed with --with-multilib-list=m32,m64,mx32)
2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>

	PR bootstrap/55049
	* lra-constraints.c (extract_loc_address_regs): Pass top_p for
	ZERO_EXTEND operand.

From-SVN: r192771
2012-10-24 17:35:37 +00:00
Vladimir Makarov
911598e362 re PR bootstrap/55048 (libjava bootstrap failure on trunk after LRA merge)
2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>

	PR bootstrap/55048
	* lra-constraints.c (update_ebb_live_info): Skip
	non-NOTE_INSN_BASIC_BLOCK notes.

From-SVN: r192770
2012-10-24 15:35:12 +00:00
Janus Weil
7780fd2a13 re PR fortran/55037 ([OOP] ICE with local allocatable variable of abstract type)
2012-10-24  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55037
	* trans-expr.c (gfc_conv_procedure_call): Move a piece of code and
	remove an assert.

2012-10-24  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55037
	* gfortran.dg/class_dummy_4.f03: New.

From-SVN: r192768
2012-10-24 17:23:25 +02:00
Haakan Younes
c2d9083df2 re PR libstdc++/55047 (operator() in std::exponential_distribution may call log(0))
2012-10-24   Haakan Younes  <hyounes@google.com>
	     Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/55047
	* include/bits/random.h (exponential_distribution<>::operator):
	Fix formula to std::log(result_type(1) - __aurng()).
	* include/bits/random.tcc: Likewise, everywhere.

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

From-SVN: r192762
2012-10-24 12:20:19 +00:00
Dominique d'Humieres
c6c084858c force-parallel-6.c: Adjust the loops.
2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>

        * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.

From-SVN: r192761
2012-10-24 09:46:06 +00:00
Jakub Jelinek
bca3cc973b re PR rtl-optimization/55010 (Internal consistency failure : invalid rtl sharing found in the insn)
PR rtl-optimization/55010
	* cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
	before passing it to simplify_relational_operation.

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

From-SVN: r192760
2012-10-24 11:13:09 +02:00
Jakub Jelinek
848be0946c re PR debug/54828 (ICE in based_loc_descr at dwarf2out.c:10560 with -g -O0)
PR debug/54828
	* gimple.h (is_gimple_sizepos): New inline function.
	* gimplify.c (gimplify_one_sizepos): Use it.  Remove useless
	final assignment to expr variable.
	* tree.c (RETURN_TRUE_IF_VAR): Return true also if
	!TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
	into a local temporary.

	* g++.dg/debug/pr54828.C: New test.

From-SVN: r192759
2012-10-24 11:08:56 +02:00
David S. Miller
9106d8d215 Use define_memory_constraint on sparc when necessary.
* config/sparc/constraints.md ("T", "W"): Change
	definitions to use define_memory_constraint.  Do not match
	'reg'.
	* config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM
	handling code, update comment.

From-SVN: r192757
2012-10-23 22:59:27 -07:00
Ian Lance Taylor
f4b2452702 extend.texi (Extended Asm): The '+' constraint does not require a register.
* doc/extend.texi (Extended Asm): The '+' constraint does not
	require a register.

From-SVN: r192756
2012-10-24 04:45:55 +00:00
Jeff Law
f6778644d5 tree-ssa-threadedge.c (thread_across_edge): Remove unused parameter in call to cond_arg_set_in_bb.
* tree-ssa-threadedge.c (thread_across_edge): Remove unused
        parameter in call to cond_arg_set_in_bb.

From-SVN: r192754
2012-10-23 18:43:24 -06:00
GCC Administrator
b3df8bd757 Daily bump.
From-SVN: r192753
2012-10-24 00:18:36 +00:00
Dominique d'Humieres
1767c93c30 vect-82_64.c: Adjust the dump file.
2012-10-23  Dominique d'Humieres  <dominiq@lps.ens.fr>

        * gcc.dg/vect/vect-82_64.c: Adjust the dump file.
        * gcc.dg/vect/vect-83_64.c: Likewise.

From-SVN: r192750
2012-10-24 00:16:55 +00:00
Paolo Carlini
7c7e8c7809 re PR c++/54922 ([C++11][DR 1359] constexpr constructors require initialization of all union members)
/cp
2012-10-23  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/54922
	* semantics.c (cx_check_missing_mem_inits): Handle anonymous union
	members.

/testsuite
2012-10-23  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/54922
	* g++.dg/cpp0x/constexpr-union4.C: New.

From-SVN: r192749
2012-10-23 23:43:21 +00:00
Eric Botcazou
0d6414b24c re PR bootstrap/54820 (ada: cannot find -lstdc++ since 4.8.0 20121002)
PR bootstrap/54820
	* configure.ac (have_static_libs): Force 'no' for GCC version < 4.5.
	* configure: Regenerate.

From-SVN: r192748
2012-10-23 22:57:43 +00:00
Richard Earnshaw
a780583f82 * MAINTAINERS (aarch64): Add Marcus and myself.
From-SVN: r192747
2012-10-23 22:29:38 +00:00
Jeff Law
daf6135363 tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused debugging argument.
* tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused
        debugging argument.

From-SVN: r192746
2012-10-23 15:27:52 -06:00
Jeff Law
c0258754e4 re PR tree-optimization/54985 (dom optimization erroneous remove conditional goto.)
PR tree-optimization/54985
        * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function
        * extracted
        from thread_across_edge.
        (thread_across_edge): Use it in all cases where we might thread
        across a back edge.

        * gcc.c-torture/execute/pr54985.c: New test.

From-SVN: r192745
2012-10-23 14:33:49 -06:00
Vladimir Makarov
44b94bdb07 lra-constraints.c (update_ebb_live_info): Process empty blocks.
2012-10-23  Vladimir Makarov  <vmakarov@redhat.com>

	* lra-constraints.c (update_ebb_live_info): Process empty blocks.

From-SVN: r192743
2012-10-23 20:10:27 +00:00
Richard Sandiford
b8ab7fc844 expmed.c (store_split_bit_field): Update the calls to extract_fixed_bit_field.
gcc/
	* expmed.c (store_split_bit_field): Update the calls to
	extract_fixed_bit_field.  In the big-endian case, always
	use the mode of OP0 to count the number of significant bits.
	(extract_bit_field_1): Remove unit, offset, bitpos and
	byte_offset from the outermost scope.  Express conditions in terms
	of bitnum rather than offset, bitpos and byte_offset.  Move the
	computation of MODE1 to the block that needs it.  Use MODE unless
	the TMODE-based mode_for_size calculation succeeds.  Split the
	plain move cases into two, one for memory accesses and one for
	register accesses.  Generalize the memory case, freeing it from
	the old register-based endian checks.  Move the INT_MODE calculation
	above the code that needs it.  Use simplify_gen_subreg to handle
	multiword OP0s.  If the field still spans several words, pass it
	directly to extract_split_bit_field.  Assume after that point
	that both targets and register sources fit within a word.
	Replace x-prefixed variables with non-prefixed forms.
	Compute the bitpos for ext(z)v register operands directly in the
	chosen unit size, rather than going through an intermediate
	BITS_PER_WORD unit size.  Simplify the containment check
	used when forcing OP0 into a register.  Update the call to
	extract_fixed_bit_field.
	(extract_fixed_bit_field): Replace the bitpos and offset parameters
	with a single bitnum parameter, of the same form as extract_bit_field.
	Assume that OP0 contains the full field.  Simplify the memory offset
	calculation and containment check for volatile bitfields.  Make the
	offset explicit when volatile bitfields force a misaligned access.
	Remove WARNED and fix long lines.  Assert that the processed OP0
	has an integral mode.
	(store_split_bit_field): Update the call to store_fixed_bit_field.

From-SVN: r192741
2012-10-23 19:17:35 +00:00
Richard Sandiford
bebf0797d8 expmed.c (lowpart_bit_field_p): New function.
gcc/
	* expmed.c (lowpart_bit_field_p): New function.
	(store_bit_field_1): Remove unit, offset, bitpos and byte_offset
	from the outermost scope.  Express conditions in terms of bitnum
	rather than offset, bitpos and byte_offset.  Split the plain move
	cases into two, one for memory accesses and one for register accesses.
	Allow simplify_gen_subreg to fail rather than calling validate_subreg.
	Move the handling of multiword OP0s after the code that coerces VALUE
	to an integer mode.  Use simplify_gen_subreg for this case and assert
	that it succeeds.  If the field still spans several words, pass it
	directly to store_split_bit_field.  Assume after that point that
	both sources and register targets fit within a word.  Replace
	x-prefixed variables with non-prefixed forms.  Compute the bitpos
	for insv register operands directly in the chosen unit size, rather
	than going through an intermediate BITS_PER_WORD unit size.
	Update the call to store_fixed_bit_field.
	(store_fixed_bit_field): Replace the bitpos and offset parameters
	with a single bitnum parameter, of the same form as store_bit_field.
	Assume that OP0 contains the full field.  Simplify the memory offset
	calculation.  Assert that the processed OP0 has an integral mode.
	(store_split_bit_field): Update the call to store_fixed_bit_field.

From-SVN: r192740
2012-10-23 19:14:09 +00:00
Paul Koning
a17d5a9841 re PR debug/54508 (Wrong debug information emitted if data members not referenced)
PR debug/54508
* dwarf2out.c (prune_unused_types_prune): If pruning a class and
not all its children were marked, add DW_AT_declaration flag.

* g++.dg/debug/dwarf2/pr54508.C: New.

From-SVN: r192739
2012-10-23 14:44:27 -04:00
Jakub Jelinek
22531fb195 re PR c++/54844 (ice tsubst_copy, at cp/pt.c:12352)
PR c++/54844
	* pt.c (tsubst_copy, tsubst_copy_and_build) <case SIZEOF_EXPR>: Use
	tsubst instead of tsubst_copy* on types.

	* g++.dg/template/sizeof14.C: New test.

From-SVN: r192736
2012-10-23 20:04:55 +02:00
Ian Lance Taylor
8d672b2640 runtime: Disable crash tests that runs go tool.
From-SVN: r192735
2012-10-23 18:01:06 +00:00
Jakub Jelinek
66f2cabce6 re PR c++/54988 (fpmath=sse target pragma causes inlining failure because of target specific option mismatch)
PR c++/54988
	* decl2.c (cplus_decl_attributes): Don't return early
	if attributes is NULL.

	* c-c++-common/pr54988.c: New test.

From-SVN: r192734
2012-10-23 19:55:56 +02:00
Marcus Shawcroft
d507e9a340 AArch64 [8/10] Fixup botched commit.
From-SVN: r192733
2012-10-23 17:36:39 +00:00