Commit Graph

129172 Commits

Author SHA1 Message Date
Eric Botcazou
f3d6c7cb76 re PR ada/60411 (Ada bootstrap failure on ARM)
PR ada/60411
	* gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
	* s-linux-android.ads: New file.
	* s-intman-android.adb: Likewise.

From-SVN: r209210
2014-04-08 08:23:56 +00:00
Jan Hubicka
0439a94767 ipa-devirt.c (maybe_record_node): When node is not recorded, set completep to false rather than true.
* ipa-devirt.c (maybe_record_node): When node is not recorded,
	set completep to false rather than true.

From-SVN: r209209
2014-04-08 05:35:11 +00:00
GCC Administrator
0fe1ff6e64 Daily bump.
From-SVN: r209208
2014-04-08 00:17:05 +00:00
Eric Botcazou
3f2f838e02 re PR target/60504 (many Ada testsuite regressions on ARM/Linux)
PR target/60504
	* config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
	ARM_TARGET2_DWARF_FORMAT.

From-SVN: r209201
2014-04-07 21:31:29 +00:00
Jonathan Wakely
631e3e1b75 Fix testsuite bugs.
* testsuite/20_util/exchange/1.cc: Add missing return statements.
	* testsuite/20_util/pair/40925.cc: Avoid most vexing parse.
	* testsuite/22_locale/codecvt_byname/50714.cc: Add missing exception
	specifications.

From-SVN: r209196
2014-04-07 19:40:18 +01:00
Eric Botcazou
aabc3affe5 * gcc-interface/Makefile.in (alpha-vms): Add missing line.
From-SVN: r209195
2014-04-07 17:54:23 +00:00
Charles Baylis
e75c161776 re PR target/60609 (Error: value of 256 too large for field of 1 bytes at 68242)
2014-04-07  Charles Baylis  <charles.baylis@linaro.org>

        PR target/60609
        * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
        (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
        ADDR_DIFF_VEC.


2014-04-07  Charles Baylis  <charles.baylis@linaro.org>

        PR target/60609
        * g++.dg/torture/pr60609.C: New test.

From-SVN: r209191
2014-04-07 15:07:33 +00:00
Richard Biener
d6adff07f1 re PR tree-optimization/60766 (Wrong optimization with -O2)
2014-04-07  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/60766
	* tree-ssa-loop-ivopts.c (cand_value_at): Compute in an
	unsigned type.
	(may_eliminate_iv): Convert cand_value_at result to desired
	type.

	* gcc.dg/torture/pr60766.c: New testcase.

From-SVN: r209190
2014-04-07 14:03:55 +00:00
Jason Merrill
9d7aea5fbc re PR c++/60731 (dynamic library not getting reinitialized on multiple calls to dlopen())
PR c++/60731
	* lib/gcc-dg.exp (dg-build-dso): New.
	(gcc-dg-test-1): Handle dg-do-what "dso".
	* lib/target-supports.exp (add_options_for_dlopen): New.
	(check_effective_target_dlopen): Use it.
	* g++.dg/dso/dlclose1.C: New.
	* g++.dg/dso/dlclose1-dso.cc: New.

From-SVN: r209187
2014-04-07 09:27:45 -04:00
Jason Merrill
da34ade5e6 re PR c++/60731 (dynamic library not getting reinitialized on multiple calls to dlopen())
PR c++/60731
	* common.opt (-fno-gnu-unique): Add.
	* config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.

From-SVN: r209186
2014-04-07 09:27:39 -04:00
Ramana Radhakrishnan
67649cb84c Fix testcase for PR target/60657
From-SVN: r209185
2014-04-07 13:17:11 +00:00
Kyrylo Tkachov
151e9aacd5 haifa-sched.c: Fix outdated function reference and minor grammar errors in introductory comment.
* haifa-sched.c: Fix outdated function reference and minor
	grammar errors in introductory comment.

From-SVN: r209184
2014-04-07 13:16:46 +00:00
Richard Biener
308173e30b re PR c++/60750 (double free after std::move on string inside throw when compiled with optimization)
2014-04-07  Richard Biener  <rguenther@suse.de>

	PR middle-end/60750
	* tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
	for noreturn calls.
	* tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.

	* g++.dg/torture/pr60750.C: New testcase.
	* gcc.dg/tree-ssa/20040517-1.c: Adjust.

From-SVN: r209179
2014-04-07 08:38:23 +00:00
GCC Administrator
f2e9b72b1a Daily bump.
From-SVN: r209173
2014-04-07 00:16:32 +00:00
Denis Chertykov
832e001673 invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
* doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro

From-SVN: r209169
2014-04-06 23:09:36 +04:00
Andreas Schwab
738d6b6d83 * gcc.c-torture/compile/pr60655-1.c: Use __SIZE_TYPE__ for size_t.
From-SVN: r209167
2014-04-06 17:55:12 +00:00
John David Anglin
3c6b370110 re PR testsuite/60671 (FAIL: g++.dg/pr49718.C -std=gnu++98 scan-assembler-times __cyg_profile_func_enter 1)
PR testsuite/60671
	g++.dg/pr49718.C: Adjust scan-assembler-times for hppa*-*-hpux*.

From-SVN: r209166
2014-04-06 16:44:21 +00:00
John David Anglin
6e9467bb8d re PR testsuite/60672 (FAIL: g++.dg/cpp1y/auto-fn25.C -std=gnu++1y (test for errors, line 7))
PR testsuite/60672
	* g++.dg/cpp1y/auto-fn25.C: Require lto.

From-SVN: r209165
2014-04-06 16:31:38 +00:00
John David Anglin
4215e79ffe stdatomic-flag.c: xfail on hppa*-*-hpux*.
* gcc.dg/atomic/stdatomic-flag.c: xfail on hppa*-*-hpux*.

From-SVN: r209164
2014-04-06 16:19:39 +00:00
John David Anglin
a9a302d9f2 re PR debug/55794 (FAIL: g++.dg/debug/dwarf2/non-virtual-thunk.C -std=gnu++98 and -std=gnu++11)
PR debug/55794
	* config/pa/pa.c (pa_output_function_epilogue): Skip address and code
	size accounting for thunks.
	(pa_asm_output_mi_thunk): Use final_start_function() and
	final_end_function() to output function start and end directives.

From-SVN: r209163
2014-04-06 15:17:41 +00:00
GCC Administrator
cce24f8eee Daily bump.
From-SVN: r209160
2014-04-06 00:16:33 +00:00
Dominique d'Humieres
aca5c204e1 warn_conversion_4.f90: Adjust test.
2014-04-05  Dominique d'Humieres <dominiq@lps.ens.fr>

	* gfortran.dg/warn_conversion_4.f90: Adjust test.

From-SVN: r209151
2014-04-05 13:25:36 +02:00
Pitchumani Sivanupandi
576ba35c2a avr-arch.h (avr_mcu_t): Add dev_attribute field to have device specific ISA/ feature information.
* config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have device
	specific ISA/ feature information. Remove short_sp and errata_skip ds.
	Add avr_device_specific_features enum to have device specific info.
	* config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
	errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
	* config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
	updated device specific info.
	* config/avr/avr-mcus.def: Merge device specific details to
	dev_attribute field.
	* config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
	errata_skip.
	* config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
	* config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
	assembler if RMW isa supported by current device.
	* config/avr/genmultilib.awk: Update as device info structure changed.
	* doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro

	* gcc.target/avr/dev-specific-rmw.c: New test.

From-SVN: r209141
2014-04-05 09:51:59 +04:00
Cong Hou
ebc047a210 re PR tree-optimization/60656 (x86 vectorization produces wrong code)
2014-04-04  Cong Hou  <congh@google.com>

    PR tree-optimization/60656
    * tree-vect-stmts.c (supportable_widening_operation):
      Fix a bug that elements in a vector with vect_used_by_reduction
      property are incorrectly reordered when the operation on it is not
      consistant with the one in reduction operation.

2014-04-04  Cong Hou  <congh@google.com>

    PR tree-optimization/60656
    * gcc.dg/vect/pr60656.c: New test.

From-SVN: r209138
2014-04-04 21:27:21 -04:00
GCC Administrator
604fb57809 Daily bump.
From-SVN: r209137
2014-04-05 00:17:03 +00:00
John David Anglin
b680881871 re PR rtl-optimization/60155 (ICE: in get_pressure_class_and_nregs at gcse.c:3438)
PR rtl-optimization/60155
	* gcse.c (record_set_data): New function.
	(single_set_gcse): New function.
	(gcse_emit_move_after): Use single_set_gcse instead of single_set.
	(hoist_code): Likewise.
	(get_pressure_class_and_nregs): Likewise.

From-SVN: r209134
2014-04-04 22:25:51 +00:00
Tobias Burnus
3e0da29a99 check.c (gfc_check_cmplx): Fix typo.
2014-04-04  Tobias Burnus  <burnus@net-b.de>

        * check.c (gfc_check_cmplx): Fix typo.

From-SVN: r209133
2014-04-05 00:16:16 +02:00
Andreas Krebbel
961e89f297 builtin-bswap-6.c: Adjust return value to disable GCC optimization.
2014-04-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.dg/builtin-bswap-6.c: Adjust return value to disable GCC
	optimization.
	* gcc.dg/builtin-bswap-7.c: Likewise.

From-SVN: r209132
2014-04-04 21:58:34 +00:00
Fabien Chêne
090ec70209 decl.c (duplicate_decls): Check for the return of warning_at before emitting a note.
2014-04-04  Fabien Chêne  <fabien@gcc.gnu.org>

	* decl.c (duplicate_decls): Check for the return of warning_at
	before emitting a note.
	(warn_misplaced_attr_for_class_type): Likewise.
	(check_tag_decl): Likewise.

From-SVN: r209131
2014-04-04 23:36:11 +02:00
Eric Botcazou
eabcc72533 * explow.c (probe_stack_range): Emit a final optimization blockage.
From-SVN: r209130
2014-04-04 21:07:48 +00:00
Eric Botcazou
147d38a595 re PR bootstrap/60620 (missing gnattools dependency causes highly parallel build failure with --disable-bootstrap)
PR bootstrap/60620
	* Makefile.def (dependencies): Make gnattools depend on libstdc++-v3. 
	* Makefile.in: Regenerate.

From-SVN: r209129
2014-04-04 20:53:48 +00:00
Paolo Carlini
9119c7faba re PR c++/58207 (ICE in sort_constexpr_mem_initializers due to out of bounds vector access)
/cp
2014-04-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58207
	* semantics.c (sort_constexpr_mem_initializers): Robustify loop.

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

	PR c++/58207
	* g++.dg/cpp0x/constexpr-ice15.C: New.

From-SVN: r209128
2014-04-04 20:11:47 +00:00
Anthony Green
e005b75359 Fix typo in recent patch.
From-SVN: r209127
2014-04-04 19:46:07 +00:00
Patrick Palka
0450fc0b51 re PR c++/44613 (Declaring an array with non-constant length inside a switch corrupts stack pointer.)
PR c++/44613
	* semantics.c (add_stmt): Set STATEMENT_LIST_HAS_LABEL.
	* decl.c (cp_finish_decl): Create a new BIND_EXPR before
	instantiating a variable-sized type.

From-SVN: r209125
2014-04-04 15:36:00 -04:00
Patrick Palka
822cc906fd re PR c++/21113 (Jumps into VLA or VM scope not rejected for C++)
PR c++/21113
	* decl.c (decl_jump_unsafe): Consider variably-modified decls.

From-SVN: r209124
2014-04-04 15:35:54 -04:00
Jan Hubicka
8fe91ca80e re PR lto/59626 (/usr/include/bits/unistd.h:173:1: error: inlining failed in call to always_inline 'readlinkat': recursive inlining)
PR ipa/59626
	* lto-cgraph.c (input_overwrite_node): Check that partitioning
	flags are set only during streaming.
	* ipa.c (process_references, walk_polymorphic_call_targets,
	symtab_remove_unreachable_nodes): Drop bodies of always inline
	after early inlining.
	(symtab_remove_unreachable_nodes): Remove always_inline attribute.
	* gcc.dg/lto/pr59626_0.c: New testcase.
	* gcc.dg/lto/pr59626_1.c: New testcase.

From-SVN: r209123
2014-04-04 18:02:31 +00:00
Ramana Radhakrishnan
88d946326b Fix PR debug/60655 - part 1
This is a partial fix for PR60655 where dwarf2out.c rejects NOT of a
value in const_ok_for_output_1. There is still a problem with the
testcase on armhf where we get operations of the form, const (minus
(const_int) (symref)) without the -fdata-sections option which is just
weird. I'm not yet sure where this is produced from and will not have
the time to dig further today.


As Jakub said on IRC, const_ok_for_output_1 is called only with
partial rtx's and therefore disabling minus (const_int) (symref) might
not be the best thing to do especially if this were part of plus
(symref) (minus (const int) (symref)) and both symrefs were in the
same section.


Bootstrapped and regtested on armhf

Bootstrap and regression test running on x86_64.

Ok to commit ?

regards
Ramana

gcc/

<DATE>   Jakub Jelinek <jakub@redhat.com>
         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	* dwarf2out.c (const_ok_for_output_1): Reject expressions
	containing a NOT.

gcc/testsuite

<DATE>  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	* gcc.c-torture/compile/pr60655-1.c: New test.

From-SVN: r209121
2014-04-04 16:10:07 +00:00
Kyrylo Tkachov
094bc2190a [ARM/AArch64] Reduce divider reservation duration in Cortex-A53 pipeline decription
PR bootstrap/60743
	* config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
	duration.
	(cortex_a53_fdivd): Likewise.

From-SVN: r209119
2014-04-04 15:47:45 +00:00
Fabien Chêne
3fe99aa5ce class.c (find_abi_tags_r): Check for the return of warning before emitting a note.
2014-04-04  Fabien Chêne  <fabien@gcc.gnu.org>

	* class.c (find_abi_tags_r): Check for the return of warning
	before emitting a note.
	(one_inherited_ctor): Likewise.

From-SVN: r209118
2014-04-04 17:19:07 +02:00
Martin Jambor
610c8ef0a4 re PR ipa/60640 (ICE edge points to wrong declaration / verify_cgraph_node failed)
2014-04-04  Martin Jambor  <mjambor@suse.cz>

	PR ipa/60640
        * cgraph.h (cgraph_clone_node): New parameter added to declaration.
        Adjust all callers.
	* cgraph.c (clone_of_p): Also return true if thunks match.
	(verify_edge_corresponds_to_fndecl): Removed extraneous call to
	cgraph_function_or_thunk_node and an obsolete comment.
        * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
        file.
        (build_function_decl_skip_args): Likewise.
	(set_new_clone_decl_and_node_flags): New function.
        (duplicate_thunk_for_node): Likewise.
        (redirect_edge_duplicating_thunks): Likewise.
        (cgraph_clone_node): New parameter args_to_skip, pass it to
        redirect_edge_duplicating_thunks which is called instead of
        cgraph_redirect_edge_callee.
        (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
	moved setting of a lot of flags to set_new_clone_decl_and_node_flags.

testsuite/
        * g++.dg/ipa/pr60640-1.C: New test.
        * g++.dg/ipa/pr60640-2.C: Likewise.
        * g++.dg/ipa/pr60640-3.C: Likewise.
        * g++.dg/ipa/pr60640-4.C: Likewise.

From-SVN: r209097
2014-04-04 16:11:06 +02:00
Bernd Edlinger
57ef133bab re PR fortran/60191 (test case gfortran.dg/dynamic_dispatch_1/3.f03 fail on ARMv7)
2014-04-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR fortran/60191
        * fortran/trans-types.c (gfc_get_function_type): In case of recursion
        build a variadic function type with empty argument list instead of a
        stdarg-like function type with incomplete argument list.

From-SVN: r209091
2014-04-04 13:54:16 +00:00
Jeff Law
fc02bcca01 re PR target/60657 (ICE: error: insn does not satisfy its constraints)
PR target/60657
	* config/arm/predicates.md (const_int_I_operand): New predicate.
	(const_int_M_operand): Similarly.
	* config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
	const_int_operand.
	(insv_t2, extv_reg, extzv_t2): Likewise.
	(load_multiple_with_writeback): Similarly for const_int_I_operand.
	(pop_multiple_with_writeback_and_return): Likewise.
	(vfp_pop_multiple_with_writeback): Likewise

	PR target/60657
	* gcc.target/arm/pr60657.c: New test.

From-SVN: r209085
2014-04-04 07:13:20 -06:00
Richard Biener
45b6259486 re PR middle-end/60746 (ICE segfault in gimple-expr.c:314)
2014-04-04  Richard Biener  <rguenther@suse.de>

	PR ipa/60746
	* tree-ssanames.c (make_ssa_name_fn): Fix assert.
	* gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
	non-GIMPLE_LABELs.
	* gimplify.h (gimple_add_tmp_var_fn): Declare.
	* gimplify.c (gimple_add_tmp_var_fn): New function.
	* gimple-expr.h (create_tmp_reg_fn): Declare.
	* gimple-expr.c (create_tmp_reg_fn): New function.
	* gimple-low.c (record_vars_into): Don't change cfun.
	* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
	code generation without cfun.

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

From-SVN: r209079
2014-04-04 11:52:35 +00:00
Thomas Schwinge
bb609c35be Fix shell scripting.
PR bootstrap/60719
	* Makefile.in (install-driver): Fix shell scripting.

From-SVN: r209072
2014-04-04 10:09:23 +02:00
Fabien Chêne
d4a69ff4cc decl.c (duplicate_decls): Check for the return of permerror before emitting a note.
2014-04-04  Fabien Chêne  <fabien@gcc.gnu.org>

	* decl.c (duplicate_decls): Check for the return of permerror
	before emitting a note.


2014-04-04  Fabien Chêne  <fabien@gcc.gnu.org>

	* g++.old-deja/g++.robertl/eb121.C: Adjust.
	* g++.old-deja/g++.jason/overload21.C: Likewise.
	* g++.old-deja/g++.law/init5.C: Likewise.

From-SVN: r209071
2014-04-04 10:03:19 +02:00
GCC Administrator
2d18d29532 Daily bump.
From-SVN: r209068
2014-04-04 00:16:35 +00:00
Cong Hou
090cd8dc70 re PR tree-optimization/60505 (Warning caused by GCC vectorizer.)
2014-04-03  Cong Hou  <congh@google.com>

PR tree-optimization/60505
    * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
    threshold of number of iterations below which no vectorization will be
    done.
    * tree-vect-loop.c (new_loop_vec_info):
    Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
    * tree-vect-loop.c (vect_analyze_loop_operations):
    Set LOOP_VINFO_COST_MODEL_THRESHOLD.
    * tree-vect-loop.c (vect_transform_loop):
    Use LOOP_VINFO_COST_MODEL_THRESHOLD.
    * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
    of iterations of the loop and see if we should build the epilogue.

2014-04-03  Cong Hou  <congh@google.com>

    PR tree-optimization/60505
    * gcc.dg/vect/pr60505.c: New test.

From-SVN: r209065
2014-04-03 19:05:42 -04:00
Richard Biener
bdc67fd6a4 tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
2014-04-03  Richard Biener  <rguenther@suse.de>

	* tree-streamer.h (struct streamer_tree_cache_d): Add next_idx
	member.
	(streamer_tree_cache_create): Adjust.
	* tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
	to allow optional nodes array.
	(streamer_tree_cache_insert_1): Use next_idx to assign idx.
	(streamer_tree_cache_append): Likewise.
	(streamer_tree_cache_create): Create nodes array optionally
	as specified by parameter.
	* lto-streamer-out.c (create_output_block): Avoid maintaining
	the node array in the writer cache.
	(DFS_write_tree): Remove assertion.
	(produce_asm_for_decls): Free the out decl state hash table
	early.
	* lto-streamer-in.c (lto_data_in_create): Adjust for
	streamer_tree_cache_create prototype change.

From-SVN: r209059
2014-04-03 14:27:02 +00:00
Richard Biener
a0daf6598a tree-streamer-out.c (streamer_write_chain): Do not temporarily set TREE_CHAIN to NULL_TREE.
2014-04-03  Richard Biener  <rguenther@suse.de>

	* tree-streamer-out.c (streamer_write_chain): Do not temporarily
	set TREE_CHAIN to NULL_TREE.

From-SVN: r209058
2014-04-03 14:22:17 +00:00
Richard Biener
f16c88d25f re PR tree-optimization/60740 (ICE in extract_affine w/ -O2 -ftree-loop-linear)
2014-04-03  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/60740
	* graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
	over all GIMPLE_COND operands.

	* gcc.dg/graphite/pr60740.c: New testcase.

From-SVN: r209057
2014-04-03 13:43:23 +00:00