Commit Graph

128685 Commits

Author SHA1 Message Date
Jakub Jelinek
79c7fda6d5 re PR middle-end/60175 (ICE on gcc.dg/asan/nosanitize-and-inline.c)
PR middle-end/60175
	* function.c (expand_function_end): Don't emit
	clobber_return_register sequence if clobber_after is a BARRIER.
	* cfgexpand.c (construct_exit_block): Append instructions before
	return_label to prev_bb.

From-SVN: r208267
2014-03-03 08:25:50 +01:00
Bill Schmidt
715a5c85f7 constraints.md: Document reserved use of "wc".
2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* config/rs6000/constraints.md: Document reserved use of "wc".

From-SVN: r208266
2014-03-03 01:33:24 +00:00
GCC Administrator
dbdbf36aa9 Daily bump.
From-SVN: r208265
2014-03-03 00:16:41 +00:00
Jan Hubicka
9ffbf2714b re PR lto/60150 (ICE in function_and_variable_visibility, at ipa.c:1000)
PR ipa/60150
	* ipa.c (function_and_variable_visibility): When dissolving comdat
	group, also set all symbols to local.
	* g++.dg/lto/pr60150.H: New testcase.
	* g++.dg/lto/pr60150_0.C: New testcase.
	* g++.dg/lto/pr60150_1.C: New testcase.

From-SVN: r208262
2014-03-02 22:19:37 +00:00
Jan Hubicka
993df21e9a re PR ipa/60306 (Incorrect devirtualization "pure virtual method called")
PR ipa/60306

	Revert:
	2013-12-14   Jan Hubicka  <jh@suse.cz>
        PR middle-end/58477
        * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.

	* testsuite/g++.dg/ipa/devirt-29.C: New testcase

From-SVN: r208261
2014-03-02 20:51:48 +00:00
Jon Beniston
9b0af790b7 re PR bootstrap/48230 (bootstrapping gcc-4.6.0-RC-20110321 fails for lm32-rtems*)
PR bootstrap/48230
	PR bootstrap/50927
	PR bootstrap/52466
	PR target/46898
	* config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
	  (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.  
	* config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
	(simple_return, *simple_return): New patterns     
	* config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
	* configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.

From-SVN: r208260
2014-03-02 19:58:24 +00:00
Bernd Edlinger
f1e443c838 re PR fortran/60236 (gfortran.dg/vect/pr32380.f fails on ARM)
2014-03-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR fortran/60236
        * gfortran.dg/vect/pr32380.f: Fix expected test results.

From-SVN: r208257
2014-03-02 18:06:49 +00:00
GCC Administrator
355a4de364 Daily bump.
From-SVN: r208254
2014-03-02 00:16:53 +00:00
Edward Smith-Rowland
2c5c8866a1 re PR c++/50025 ([DR 1288] C++0x initialization syntax doesn't work for class members of reference type)
2014-03-01  Edward Smith-Rowland  <3dw4rd@verizon.net>

	PR c++/50025
	* g++.dg/cpp0x/pr50025.C: New.

From-SVN: r208251
2014-03-01 22:51:25 +00:00
Adam Butcher
234b1504b1 re PR c++/60377 ([c++1y] ICE with invalid function parameter in conjunction with auto parameter)
Fix PR c++/60377.

	PR c++/60377
	* parser.c (cp_parser_parameter_declaration_clause): Unwind generic
	function scope on parse error in function parameter list.

	PR c++/60377
	* g++.dg/cpp1y/pr60377.C: New testcase.

From-SVN: r208250
2014-03-01 21:28:18 +00:00
Mikael Morin
2ce2989002 re PR fortran/60341 (ICE compiling Nonmem 6.2.0)
fortran/
        PR fortran/60341
        * frontend-passes.c (optimize_comparison): Guard two union
        accesses with the corresponding tag checks.

testsuite/
        PR fortran/60341
        * gfortran.dg/str_comp_optimize_1.f90: New test.

From-SVN: r208249
2014-03-01 21:14:54 +00:00
Paolo Carlini
c582aac943 method.c (implicitly_declare_fn): Remove redundant DECL_TEMPLATE_RESULT and STRIP_TEMPLATE uses.
/cp
2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>

	* method.c (implicitly_declare_fn): Remove redundant
	DECL_TEMPLATE_RESULT and STRIP_TEMPLATE uses.
	* semantics.c (is_instantiation_of_constexpr): Likewise.
	* error.c (dump_function_decl): Likewise.

2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>

	* dwarf2out.c (gen_subprogram_die): Tidy.

From-SVN: r208248
2014-03-01 21:14:00 +00:00
Jason Merrill
fe96264ffc re PR c++/60379 (pugixml build failure caused by r207001)
PR c++/60379
	* semantics.c (begin_maybe_infinite_loop): Use
	fold_non_dependent_expr_sfinae.

From-SVN: r208247
2014-03-01 14:40:33 -05:00
Jason Merrill
abb839ecac re PR c++/58845 (Operator || and && broken for vectors)
PR c++/58845
	* typeck.c (cp_build_binary_op): Sorry on vector&&vector.

From-SVN: r208243
2014-03-01 09:14:25 -05:00
Oleg Endo
19305875c2 re PR target/60071 ([SH] internal compiler error: in final_scan_insn, at final.c:2963)
PR target/60071
	* config/sh/sh.md (*mov_t_msb_neg): Split into ...
	(*mov_t_msb_neg_negc): ... this new insn.

	PR target/60071
	* gcc.c-torture/compile/pr60071.c: New.

From-SVN: r208242
2014-03-01 13:16:37 +00:00
Jason Merrill
570215f99d re PR c++/58678 (pykde4-4.11.2 link error (devirtualization too trigger happy))
PR c++/58678
	* ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
	function.

From-SVN: r208241
2014-02-28 19:17:09 -05:00
GCC Administrator
e73cafdee1 Daily bump.
From-SVN: r208240
2014-03-01 00:17:05 +00:00
Joey Ye
dc11d79b74 re PR libgcc/60166 (ARM default NAN encoding violates EABI)
2014-02-28  Joey Ye  <joey.ye@arm.com>

        PR libgcc/60166
        * config/arm/sfp-machine.h (_FP_NANFRAC_H,
        _FP_NANFRAC_S, _FP_NANFRAC_D, _FP_NANFRAC_Q):
        Set to zero.

From-SVN: r208229
2014-02-28 21:53:40 +00:00
Janus Weil
3c3f892bf0 re PR fortran/60359 ([OOP] symbol `__io_MOD___copy_character_1' is already defined)
2014-02-28  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/60359
	* class.c (find_intrinsic_vtab): Prevent duplicate creation of copy
	procedure for characters.


2014-02-28  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/60359
	* gfortran.dg/unlimited_polymorphic_16.f90: New.

From-SVN: r208227
2014-02-28 22:30:04 +01:00
Paolo Carlini
f1ee5eaf07 re PR c++/58610 ([c++11] ICE with constexpr of class with template constructor)
/cp
2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58610
	* cp-tree.h (DECL_DELETED_FN): Use LANG_DECL_FN_CHECK.
	* call.c (print_z_candidate): Remove STRIP_TEMPLATE use.
	* lambda.c (maybe_add_lambda_conv_op): Likewise.

/testsuite
2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58610
	* g++.dg/cpp0x/constexpr-ice11.C: New.

From-SVN: r208226
2014-02-28 20:20:21 +00:00
Paolo Carlini
c5b001b5f0 re PR c++/60314 ([C++1y] ICE with decltype(auto) when generating debug information)
2014-02-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60314
	* dwarf2out.c (is_cxx_auto): Handle decltype(auto).

/testsuite
2014-02-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60314
	* g++.dg/cpp1y/auto-fn24.C: New.

From-SVN: r208225
2014-02-28 16:51:21 +00:00
Ian Bolton
5750e120d4 Define __ARM_NEON for aarch64 by default unless general_regs_only
From-SVN: r208224
2014-02-28 14:27:08 +00:00
Uros Bizjak
84d7e31285 * ChangeLog: Fix whitespace.
From-SVN: r208223
2014-02-28 14:55:32 +01:00
Richard Biener
fba7c56424 re PR tree-optimization/60280 (gcc.target/arm/ivopts.c and gcc.target/arm/ivopts-2.c failed caused by preserving loop structure.)
2014-02-28  Richard Biener  <rguenther@suse.de>

	PR target/60280
	* tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
	previous fix and only allow to remove trivial pre-headers
	and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
	(remove_forwarder_block): Properly update the latch of
	a loop.

From-SVN: r208222
2014-02-28 13:14:23 +00:00
Alexandre Oliva
0618dee54e re PR debug/59992 (Compilation of insn-recog.c too slow due to var-tracking)
PR debug/59992
* cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
(cselib_preserved_hash_table): New.
(preserve_constants_and_equivs): Move preserved vals to it.
(cselib_find_slot): Look it up first.
(cselib_init): Initialize it.
(cselib_finish): Release it.
(dump_cselib_table): Dump it.

From-SVN: r208221
2014-02-28 12:57:40 +00:00
Alexandre Oliva
22414f3ffc re PR debug/59992 (Compilation of insn-recog.c too slow due to var-tracking)
PR debug/59992
* cselib.c (remove_useless_values): Skip to avoid quadratic
behavior if the condition moved from...
(cselib_process_insn): ... here holds.

From-SVN: r208220
2014-02-28 12:57:06 +00:00
Alexandre Oliva
2e08491710 re PR debug/57232 (wcstol.c:213:1: internal compiler error)
PR debug/57232
* var-tracking.c (vt_initialize): Apply the same condition to
preserve the CFA base value.

From-SVN: r208219
2014-02-28 12:45:36 +00:00
Joey Ye
9910c53c49 PR target/PR60169
2014-02-28  Joey Ye  <joey.ye@arm.com>

        PR target/PR60169
	* config/arm/arm.c (thumb_far_jump_used_p): Don't change
	if reload in progress or completed.

testsuite:
	* gcc.target/arm/thumb1-far-jump-3.c: New case.

From-SVN: r208217
2014-02-28 12:02:13 +00:00
GCC Administrator
070f030948 Daily bump.
From-SVN: r208212
2014-02-28 00:16:34 +00:00
Tobias Burnus
ef271341a4 re PR middle-end/60147 (ICE with -fdump-tree-original and NAMELIST)
2014-02-28  Tobias Burnus  <burnus@net-b.de>

        PR middle-end/60147
        * tree-pretty-print.c (dump_generic_node, print_declaration):
        Handle NAMELIST_DECL.

From-SVN: r208209
2014-02-28 00:24:20 +01:00
Paolo Carlini
ae9b3eb926 re PR c++/60253 (ICE passing class object through ellipsis (...))
/cp
2014-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60253
	* call.c (convert_arg_to_ellipsis): Return error_mark_node after
	error_at.

/testsuite
2014-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60253
	* g++.dg/overload/ellipsis2.C: New.

From-SVN: r208208
2014-02-27 23:15:20 +00:00
H.J. Lu
c4f6267be5 Copy changes from doc/tm.texi to doc/tm.texi.in
* doc/tm.texi.in (Condition Code Status): Update documention for
	relative locations of cc0-setter and cc0-user.

From-SVN: r208205
2014-02-27 11:54:56 -08:00
Jeff Law
7a76df7f95 re PR rtl-optimization/52714 (ICE in fixup_reorder_chain, at cfglayout.c:880)
PR rtl-optimization/52714
	* combine.c (try_combine): When splitting an unrecognized PARALLEL
	into two independent simple sets, if I3 is a jump, ensure the
	pattern we place into I3 is a (set (pc) ...)

	PR rtl-optimization/52714
	* gcc.c-torture/compile/pr52714.c: New test.

From-SVN: r208204
2014-02-27 12:28:40 -07:00
Mikael Pettersson
728acca06e re PR rtl-optimization/49847 (NULL deref in fold_rtx (prev_insn_cc0 == NULL))
PR rtl-optimization/49847
	* cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
	are in different blocks.
	* doc/tm.texi (Condition Code Status): Update documention for
	relative locations of cc0-setter and cc0-user.

	 PR rtl-optimization/49847
	 * g++.dg/pr49847.C: New test.

Co-Authored-By: Jeff Law <law@redhat.com>

From-SVN: r208203
2014-02-27 12:02:18 -07:00
Jason Merrill
b076556843 re PR c++/58648 ([c++11] ICE with variadic template)
PR c++/58648
	* g++.dg/cpp0x/variadic153.C: New.

From-SVN: r208202
2014-02-27 12:06:35 -05:00
Vladimir Makarov
93aaa05d1c re PR target/59222 (gcc.c-torture/compile/20050622-1.c ICEs at -O1 and above for aarch64-elf ILP32)
2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/59222
	* lra.c (lra_emit_add): Check SUBREG too.

From-SVN: r208201
2014-02-27 17:06:02 +00:00
Jason Merrill
7fce82f589 re PR c++/60353 (Firefox build failure #3 caused by r208157)
PR c++/60353
	PR c++/55877
	* decl2.c (tentative_decl_linkage): Don't mess with functions that
	are not yet defined.

From-SVN: r208200
2014-02-27 11:20:59 -05:00
Andreas Schwab
1ee6eb01a9 m68k.c (m68k_option_override): Disable -flive-range-shrinkage for classic m68k.
* config/m68k/m68k.c (m68k_option_override): Disable
-flive-range-shrinkage for classic m68k.
(m68k_override_options_after_change): Likewise.

From-SVN: r208198
2014-02-27 11:10:55 +00:00
Marek Polacek
bb0d8e8488 re PR middle-end/59223 (-Wmaybe-uninitialized and -Wuninitialized relationships)
PR middle-end/59223
	* tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
	-Wmaybe-uninitialized.
testsuite/
	* c-c++-common/pr59223.c: New test.

From-SVN: r208196
2014-02-27 08:05:21 +00:00
GCC Administrator
6f45986acc Daily bump.
From-SVN: r208191
2014-02-27 00:17:10 +00:00
Alan Modra
3e17cad201 correct bug number
From-SVN: r208187
2014-02-27 08:47:39 +10:30
Alan Modra
3157b8795f re PR target/57935 (ICE in rs6000_secondary_reload_inner:15181, type = load)
PR target/57935
	* reload1.c (emit_input_reload_insns): When reload_override_in,
	set old to rl->in_reg when rl->in_reg is a subreg.

From-SVN: r208186
2014-02-27 08:27:40 +10:30
Jason Merrill
4be3d4fa52 re PR c++/30301 (Invalid static member of anonymous class or union diagnosed too late)
PR c++/30301
	* g++.dg/parse/unnamed2.C: New.

From-SVN: r208185
2014-02-26 16:44:48 -05:00
Jason Merrill
c34396266f re PR c++/60347 (r208153 breaks Firefox build)
PR c++/60347
	PR lto/53808
	* class.c (clone_function_decl): Don't note_vague_linkage_fn.
	* init.c (build_vtbl_address): Do it here.

From-SVN: r208184
2014-02-26 16:32:41 -05:00
Jason Merrill
ca7e759d96 re PR c++/59231 (gcc misses [-Werror=sign-compare] when inside a template)
PR c++/59231
	PR c++/11586
	PR c++/14710
	PR c++/57132
gcc/
	* c-common.c (shorten_compare): Don't check
	c_inhibit_evaluation_warnings.
gcc/cp/
	* pt.c (struct warning_sentinel): New.
	(tsubst_copy_and_build): Use it instead of
	c_inhibit_evaluation_warnings.

From-SVN: r208183
2014-02-26 16:28:08 -05:00
Tim Shen
91bb5cd9a6 regex.tcc (match_results<>::format, [...]): Update __out after calling std::copy.
2014-02-26  Tim Shen  <timshen91@gmail.com>

	* include/bits/regex.tcc (match_results<>::format,
	regex_replace<>): Update __out after calling std::copy.
	* testsuite/28_regex/algorithms/regex_replace/char/dr2213.cc:
	Add testcase.
	* testsuite/28_regex/match_results/format.cc: Likewise.

From-SVN: r208179
2014-02-26 19:45:15 +00:00
Jason Merrill
b0ff7fe1d2 re PR c++/54440 ([c++11] g++ prematurely applying rule that a template parameter pack cannot be followed by a template parameter)
PR c++/54440
	* pt.c (get_template_parm_index): New.
	(fixed_parameter_pack_p_1, fixed_parameter_pack_p): New.
	(process_template_parm): Allow bare packs in template template
	parm template parms.
	(coerce_template_parameter_pack): Handle fixed template template
	parm packs and fixed packs not at the end of the parm list.
	(coerce_template_parms): Handle template parm packs not at the end
	of the parm list.
	(gen_elem_of_pack_expansion_instantiation): Handle a decl expansion.

From-SVN: r208178
2014-02-26 12:08:20 -05:00
Jason Merrill
f3417723b7 re PR c++/60182 (g++ segfault within template expansion using "using" aliasing)
PR c++/60182
	* pt.c (unify): Ignore alias templates when deducing a template
	template parameter.

From-SVN: r208177
2014-02-26 12:01:12 -05:00
Jason Merrill
1bd3ed56ef re PR c++/60345 (r208159 causes Firefox build error)
PR c++/60345
	* g++.dg/conversion/ref1.C: New.

From-SVN: r208176
2014-02-26 11:51:14 -05:00
Jason Merrill
2f75f5154f re PR c++/60345 (r208159 causes Firefox build error)
PR c++/60345
	Revert:
	DR 1571
	* call.c (reference_binding): Recurse on user-defined conversion.
	(convert_like_real) [ck_ref_bind]: Explain cv-qual mismatch.

From-SVN: r208175
2014-02-26 11:48:22 -05:00