ebotcazou [Sun, 13 Mar 2016 20:35:48 +0000 (20:35 +0000)]
* config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
(STACK_CHECK_PROTECT): Likewise.
* config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
(STACK_CHECK_PROTECT): Likewise.
* config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
(STACK_CHECK_PROTECT): Likewise.
* config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
* config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
(STACK_CHECK_PROTECT): Likewise.
ada/
* system-vxworks-m68k.ads (Stack_Check_Probes): Set to True.
(Stack_Check_Limits): Set to False.
* system-vxworks-mips.ads (Stack_Check_Probes): Set to True.
(Stack_Check_Limits): Set to False.
* system-vxworks-ppc.ads (Stack_Check_Probes): Set to True.
(Stack_Check_Limits): Set to False.
* system-vxworks-sparcv9.ads (Stack_Check_Probes): Set to True.
(Stack_Check_Limits): Set to False.
* system-vxworks-x86.ads (Stack_Check_Probes): Set to True.
(Stack_Check_Limits): Set to False.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234171
138bc75d-0d04-0410-961f-
82ee72b054a4
tschwinge [Sun, 13 Mar 2016 19:08:21 +0000 (19:08 +0000)]
libgcc_s is required by libstdc++
libgomp/
* testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
always_ld_library_path the path to libgcc_s.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234170
138bc75d-0d04-0410-961f-
82ee72b054a4
jvdelisle [Sun, 13 Mar 2016 17:38:07 +0000 (17:38 +0000)]
2016-03-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Jim MacArthur <jim.macarthur@codethink.co.uk>
PR fortran/69043
* scanner.c (load_file): Check that included file is regular.
PR fortran/69043
* gfortran.dg/include_9.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234169
138bc75d-0d04-0410-961f-
82ee72b054a4
dominiq [Sun, 13 Mar 2016 09:48:20 +0000 (09:48 +0000)]
2016-03-13 Dominique d'Humieres <dominiq@lps.ens.fr>
PR fortran/45076
gfortran.dg/prof/prof.exp: New script.
gfortran.dg/prof/dynamic_dispatch_6.f03: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234168
138bc75d-0d04-0410-961f-
82ee72b054a4
jvdelisle [Sun, 13 Mar 2016 00:19:08 +0000 (00:19 +0000)]
2016-03-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Harold Anlauf <anlauf@gmx.de>
PR fortran/69520
* invoke.texi: Explain use of the 'no-' construct within the
-fcheck= option.
* options.c (gfc_handle_runtime_check_option): Enable use of
'no-' prefix for the various options with -fcheck= to allow
negating previously enabled check options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234167
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sun, 13 Mar 2016 00:16:14 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234166
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Sat, 12 Mar 2016 17:12:29 +0000 (17:12 +0000)]
PR rtl-optimization/69307
* sel-sched.c (choose_best_pseudo_reg): Properly check for hard
registers in modes that span more than one register.
PR rtl-optimization/69307
* gcc.dg/pr69307.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234163
138bc75d-0d04-0410-961f-
82ee72b054a4
vmakarov [Sat, 12 Mar 2016 14:56:24 +0000 (14:56 +0000)]
2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
PR target/69614
* lra-constraints.c (delete_move_and_clobber): New.
(remove_inheritance_pseudos): Use it.
2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
PR target/69614
* gcc.target/arm/pr69614.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234162
138bc75d-0d04-0410-961f-
82ee72b054a4
pault [Sat, 12 Mar 2016 13:59:10 +0000 (13:59 +0000)]
2016-03-12 Paul Thomas <pault@gcc.gnu.org>
PR fortran/70031
* decl.c (gfc_match_prefix): Treat the 'module' prefix in the
same way as the others, rather than fixing it to come last.
(gfc_match_function_decl, gfc_match_subroutine): After errors
in 'copy_prefix', emit them immediately in the case of module
procedures to prevent a later ICE.
PR fortran/69524
* decl.c (gfc_match_submod_proc): Permit 'module procedure'
declarations within the contains section of modules as well as
submodules.
* resolve.c (resolve_fl_procedure): Likewise.
*trans-decl.c (build_function_decl): Change the gcc_assert to
allow all forms of module procedure declarations within module
contains sections.
2016-03-12 Paul Thomas <pault@gcc.gnu.org>
PR fortran/70031
* gfortran.dg/submodule_14.f08: New test
PR fortran/69524
* gfortran.dg/submodule_15.f08: New test
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234161
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sat, 12 Mar 2016 11:32:54 +0000 (11:32 +0000)]
PR ada/70017
* calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
the libcall is LCT_THROW.
* explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
for the checking routine.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234160
138bc75d-0d04-0410-961f-
82ee72b054a4
ppalka [Sat, 12 Mar 2016 02:05:17 +0000 (02:05 +0000)]
Fix PR c++/70106 (type of parenthesized qualified-id has wrong cv-qualifiers)
gcc/cp/ChangeLog:
PR c++/70106
* semantics.c (force_paren_expr): Just build a PAREN_EXPR when
processing_template_decl and EXPR is a SCOPE_REF.
gcc/testsuite/ChangeLog:
PR c++/70106
* g++.dg/cpp1y/paren3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234159
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 12 Mar 2016 00:16:15 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234158
138bc75d-0d04-0410-961f-
82ee72b054a4
meissner [Sat, 12 Mar 2016 00:10:54 +0000 (00:10 +0000)]
[gcc]
2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/70131
* config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
optimization if we have direct move.
(roundu32<mode>2_fprs): Likewise.
[gcc/testsuite]
2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/70131
* gcc.target/powerpc/ppc-round2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234155
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Sat, 12 Mar 2016 00:00:52 +0000 (00:00 +0000)]
* sv.po: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234153
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Fri, 11 Mar 2016 22:38:41 +0000 (22:38 +0000)]
PR target/70123
* lra-remat.c (operand_to_remat): Disallow hard regs in the value t
be rematerialized.
(reg_overlap_for_remat_p): Renamed from input_regno_present_p.
Arguments swapped. All callers changed. Take reg_renumber into
account, and Calculate and compare register ranges for hard regs.
PR target/70123
* gcc.dg/torture/pr70123.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234152
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Fri, 11 Mar 2016 22:32:11 +0000 (22:32 +0000)]
PR tree-optimization/70190
* tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
Handle cases where we can not extract the taken edge, even though we
found a constant value.
PR tree-optimization/70190
* gcc.c-torture/compile/pr70190.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234151
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Fri, 11 Mar 2016 21:07:31 +0000 (21:07 +0000)]
PR tree-optimization/64058
* tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
(num_coalesce_pairs): Move up earlier in file.
(find_coalesce_pair): Initialize the INDEX field for each pair
discovered.
(compare_pairs): No longer sort on the elements in each pair.
Instead break ties with the index of the coalesce pair.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234149
138bc75d-0d04-0410-961f-
82ee72b054a4
dmalcolm [Fri, 11 Mar 2016 19:54:43 +0000 (19:54 +0000)]
Wmisleading-indentation.c: add more test cases for PR c/68187
gcc/testsuite/ChangeLog:
PR c/68187
* c-c++-common/Wmisleading-indentation.c (test43_a): New test
case.
(test43_b): Likewise.
(test43_c): Likewise.
(test43_d): Likewise.
(test43_e): Likewise.
(test43_f): Likewise.
(test43_g): Likewise.
(test44_a): Likewise.
(test44_b): Likewise.
(test44_c): Likewise.
(test44_d): Likewise.
(test44_e): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234146
138bc75d-0d04-0410-961f-
82ee72b054a4
dmalcolm [Fri, 11 Mar 2016 19:48:49 +0000 (19:48 +0000)]
Wmisleading-indentation: add reproducer for PR c/70085
PR c/70085 reported a false-positive from -Wmisleading-indentation.
The warning was fixed by the fix for PR c/68187 (r233972), but it seems
worth capturing the reproducer for PR c/70085 as an additional test case,
as it's slightly different to those seen in PR c/68187.
gcc/testsuite/ChangeLog:
PR c/70085
* c-c++-common/Wmisleading-indentation.c (pr70085): New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234145
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Fri, 11 Mar 2016 15:36:03 +0000 (15:36 +0000)]
[AArch64] Fix gcc.target/aarch64/vect-reduc-or_1.c for -mcpu=cortex-a57
* gcc.target/aarch64/vect-reduc-or_1.c: Add -fno-vect-cost-model to
dg-options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234142
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Fri, 11 Mar 2016 15:27:24 +0000 (15:27 +0000)]
[AArch64] PR target/70002: Make aarch64_set_current_function play nice with pragma resetting
PR target/70002
* config/aarch64/aarch64-protos.h
(aarch64_save_restore_target_globals): New prototype.
* config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
Call the above when popping pragma.
* config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
New function.
(aarch64_set_current_function): Rewrite using the above.
PR target/70002
PR target/69245
* gcc.target/aarch64/pr69245_2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234141
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 11 Mar 2016 12:28:50 +0000 (12:28 +0000)]
PR tree-optimization/70177
* gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
(extract_ops_from_tree): ... this. In the 2 argument
overload remove _1 suffix.
* gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
(extract_ops_from_tree): ... this.
* gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
Adjust callers.
* tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
* tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
extract_ops_from_tree instead of 2 operand one.
* gcc.dg/pr70177.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234140
138bc75d-0d04-0410-961f-
82ee72b054a4
alalaw01 [Fri, 11 Mar 2016 12:27:58 +0000 (12:27 +0000)]
Re: Add -funconstrained-commons to work around PR/69368 (and others) in SPEC2006
gcc/testsuite:
* gfortran.dg/unconstrained_commons.f: Widen regexp to match j_<N>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234139
138bc75d-0d04-0410-961f-
82ee72b054a4
alalaw01 [Fri, 11 Mar 2016 12:08:01 +0000 (12:08 +0000)]
Fix PR/70013
gcc:
PR tree-optimization/70013
* tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
for constant-pool entries.
gcc/testsuite:
* gcc.dg/tree-ssa/sra-20.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234138
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 11 Mar 2016 12:07:01 +0000 (12:07 +0000)]
PR rtl-optimization/70174
* expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
followed by gen_lowpart on force_reg instead of just gen_lowpart.
* gcc.dg/pr70174.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234137
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 11 Mar 2016 12:05:58 +0000 (12:05 +0000)]
PR tree-optimization/70169
* tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
for unknown codes.
* gcc.dg/pr70169.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234136
138bc75d-0d04-0410-961f-
82ee72b054a4
ienkovich [Fri, 11 Mar 2016 11:25:29 +0000 (11:25 +0000)]
gcc/
PR target/70160
* config/i386/i386.c (scalar_chain::convert_reg): Skip uses
of uninitialized values.
gcc/testsuite/
PR target/70160
* gcc.target/i386/pr70160.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234135
138bc75d-0d04-0410-961f-
82ee72b054a4
krebbel [Fri, 11 Mar 2016 07:47:47 +0000 (07:47 +0000)]
S/390: Fix rounding for _Decimal128 to _Decimal32 conversion
We do not have a direct conversion instruction from 128 bit DFP to 32
bit DFP so this needs to be done in two steps. The first needs to be
done with the "prepare for shorter precision rounding mode" in order
to produce a correct result.
gcc/ChangeLog:
2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/s390.md ("trunctddd2"): Turn former define_insn into
define_expand.
("*trunctddd2"): New pattern definition.
("trunctdsd2"): Set prep_for_short_prec rounding mode for the
TD->DD truncation.
gcc/testsuite/ChangeLog:
2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* gcc.target/s390/dfp-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234134
138bc75d-0d04-0410-961f-
82ee72b054a4
krebbel [Fri, 11 Mar 2016 07:24:41 +0000 (07:24 +0000)]
S/390: Define macros for rounding mode constants
This patch replaces a few magic numbers used for floating point
rounding modes with macros. This is mostly a NoOp change apart from:
fixuns_truncdddi2, fixuns_trunctddi2, fixuns_trunc<mode>si2: Replace 5
with DFP_RND_TOWARD_0 (which is 9).
5 as well as 9 represent round towards 0 with the difference that for
5 the new DFP quantum exception is enabled as well. This exception
isn't IEEE754 and we do not have an interface to enable and test it
anyway. So we do not intend to enable it. This so far should not
have any noticable effect since the quantum exception was not
observable through the Posix functions.
Some pattern ("fix_trunc<mode>di2") is already using rounding mode 9
correctly.
gcc/ChangeLog:
2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
definitions for BFP and DFP rounding modes.
("fixuns_truncdddi2", "fixuns_trunctddi2")
("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
("fix_trunctf<mode>2"): Use the new constants instead of magic
numbers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234133
138bc75d-0d04-0410-961f-
82ee72b054a4
krebbel [Fri, 11 Mar 2016 07:23:49 +0000 (07:23 +0000)]
S/390: Rename shift_count_or_setmem_operand to setmem_operand
The shift_count_or_setmem_operand predicate is now only used for
setmem patterns anymore. Rename it together with the related
functions.
gcc/ChangeLog:
2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/constraints.md: Adjust comment.
("Y"): Adjust comment. Rename s390_decompose_shift_count to
s390_decompose_addrstyle_without_index.
* config/s390/predicates.md (shift_count_or_setmem_operand):
Rename to setmem_operand.
* config/s390/s390-protos.h
(s390_decompose_shift_count): Rename to
s390_decompose_addrstyle_without_index.
* config/s390/s390.c (s390_decompose_shift_count)
(s390_mem_constraint, print_shift_count_operand)
(print_operand_address, print_operand): Rename
s390_decompose_shift_count to
s390_decompose_addrstyle_without_index and rename
print_shift_count_operand to print_addrstyle_operand troughout the
file.
* config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
Rename shift_count_or_setmem_operand to setmem_operand.
* config/s390/vx-builtins.md ("vec_insert<mode>")
("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
nonmemory_operand.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234132
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 11 Mar 2016 00:16:14 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234130
138bc75d-0d04-0410-961f-
82ee72b054a4
uweigand [Thu, 10 Mar 2016 23:58:44 +0000 (23:58 +0000)]
PR target/70168
* config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
Handle overlapping retval and newval.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234126
138bc75d-0d04-0410-961f-
82ee72b054a4
cesar [Thu, 10 Mar 2016 22:50:40 +0000 (22:50 +0000)]
libgomp/
PR testsuite/70009
* testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234124
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 10 Mar 2016 20:19:47 +0000 (20:19 +0000)]
* g++.dg/ubsan/pr70135.C: Don't rely on C++17 static_assert.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234120
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Thu, 10 Mar 2016 17:24:16 +0000 (17:24 +0000)]
PR target/7044
* config/aarch64/aarch64.c
(aarch64_override_options_after_change_1): When forcing
flag_omit_frame_pointer to be true, use a special value that can
be detected if this function is called again, thus preventing
flag_omit_leaf_frame_pointer from being forced to be false.
* gcc.target/aarch64/pr70044.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234118
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 10 Mar 2016 17:23:06 +0000 (17:23 +0000)]
PR c++/70001
* constexpr.c (cxx_eval_vec_init_1): For pre_init case, reuse
return value from cxx_eval_constant_expression from earlier
elements if it is valid constant initializer requiring no
relocations.
* g++.dg/cpp0x/constexpr-70001-1.C: New test.
* g++.dg/cpp0x/constexpr-70001-2.C: New test.
* g++.dg/cpp0x/constexpr-70001-3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234117
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Thu, 10 Mar 2016 16:24:26 +0000 (16:24 +0000)]
[AArch64] Fix thinko in handling of -momit-leaf-frame-pointer option
* common/config/aarch64/aarch64-common.c (aarch64_handle_option):
Set x_flag_omit_leaf_frame_pointer when handling
-momit-leaf-frame-pointer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234116
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Thu, 10 Mar 2016 16:11:14 +0000 (16:11 +0000)]
PR lto/69589
* cgraph.c (cgraph_node::dump): Dump split_part and indirect_call_target.
* cgraph.h (cgraph_node): Add indirect_call_target flag.
* ipa.c (has_addr_references_p): Cleanup.
(is_indirect_call_target_p): New.
(walk_polymorphic_call_targets): Do not mark virtuals that may be
called indirectly as local.
(symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
* g++.dg/lto/pr69589_0.C: New testcase
* g++.dg/lto/pr69589_1.C: New testcase
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234115
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Thu, 10 Mar 2016 16:05:59 +0000 (16:05 +0000)]
PR ipa/69630
* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
on cxa_pure_virtual.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234114
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Thu, 10 Mar 2016 16:02:55 +0000 (16:02 +0000)]
PR lto/69589
* tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234113
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Thu, 10 Mar 2016 16:02:00 +0000 (16:02 +0000)]
PR lto/69589
* tree.c (need_assembler_name_p): Only record main variant type names.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234112
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 10 Mar 2016 15:13:01 +0000 (15:13 +0000)]
PR c++/70153
* cp-gimplify.c (cp_fold): Handle UNARY_PLUS_EXPR.
* g++.dg/delayedfold/unary-plus1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234111
138bc75d-0d04-0410-961f-
82ee72b054a4
thopre01 [Thu, 10 Mar 2016 13:43:29 +0000 (13:43 +0000)]
2016-03-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
gcc/testsuite/
* gcc.target/arm/pr45701-1.c: Escape brackets.
* gcc.target/arm/pr45701-2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234109
138bc75d-0d04-0410-961f-
82ee72b054a4
clyon [Thu, 10 Mar 2016 13:29:48 +0000 (13:29 +0000)]
2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
PR target/70113.
* config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
Always define to 0 or 1.
(TARGET_FIX_ERR_A53_843419): New macro.
* config/aarch64/aarch64-elf-raw.h
(TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
* config/aarch64/aarch64-linux.h: Likewise.
* config/aarch64/aarch64.c
(aarch64_override_options_after_change_1): Do not default
aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
843419 is on.
(aarch64_attributes): Handle fix-cortex-a53-843419.
(aarch64_can_inline_p): Likewise.
* config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234108
138bc75d-0d04-0410-961f-
82ee72b054a4
alalaw01 [Thu, 10 Mar 2016 12:19:45 +0000 (12:19 +0000)]
Add -funconstrained-commons to work around PR/69368 (and others) in SPEC2006
gcc/:
* common.opt (funconstrained-commons, flag_unconstrained_commons): New.
* tree.c (array_at_struct_end_p): Do not limit to size of decl for
DECL_COMMONS if flag_unconstrained_commons is set.
* tree-dfa.c (get_ref_base_and_extent): Likewise.
* doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
(funconstrained-commons): Document.
gcc/testsuite:
* gfortran.dg/unconstrained_commons.f: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234106
138bc75d-0d04-0410-961f-
82ee72b054a4
clyon [Thu, 10 Mar 2016 12:03:25 +0000 (12:03 +0000)]
2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
* config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
aarch64-fusion-pairs.def and aarch64-tuning-flags.def
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234105
138bc75d-0d04-0410-961f-
82ee72b054a4
ienkovich [Thu, 10 Mar 2016 10:58:57 +0000 (10:58 +0000)]
gcc/
* tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
has a proper number of elements.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234104
138bc75d-0d04-0410-961f-
82ee72b054a4
amodra [Thu, 10 Mar 2016 10:47:13 +0000 (10:47 +0000)]
PR69195, Reload confused by invalid reg_equiv
Optimizing indirect jumps to direct jumps, and deleting dead insns can
lead to changes in register lifetimes, which in turn can result in bad
reg_equiv info being passed to reload. So do these tasks before
calculating reg_equiv info.
gcc/
PR rtl-optimization/69195
PR rtl-optimization/47992
* ira.c (recorded_label_ref): Delete.
(update_equiv_regs): Return void.
(indirect_jump_optimize): New function.
(ira): Call indirect_jump_optimize and delete_trivially_dead_insns
before regstat_compute_ri. Don't rebuild_jump_labels here.
Delete update_regstat.
gcc/testsuite/
* gcc.dg/pr69195.c: New.
* gcc.dg/pr69238.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234101
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Thu, 10 Mar 2016 08:37:01 +0000 (08:37 +0000)]
Xfail pr46032.c scan if alignment requirements not met
2016-03-10 Tom de Vries <tom@codesourcery.com>
PR testsuite/68915
* gcc.dg/vect/pr46032.c: Xfail scan if alignment requirements not met.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234100
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 10 Mar 2016 08:06:03 +0000 (08:06 +0000)]
2016-03-10 Richard Biener <rguenther@suse.de>
PR tree-optimization/70128
* tree-ssa-structalias.c (set_uids_in_ptset): Set
vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
* gcc.dg/tree-ssa/alias-34.c: New testcase.
* gcc.dg/tree-ssa/alias-35.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234099
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 10 Mar 2016 00:16:15 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234097
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 9 Mar 2016 20:12:19 +0000 (20:12 +0000)]
PR tree-optimization/70152
* tree-sra.c (replace_removed_params_ssa_names): Copy over
SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
* gcc.dg/pr70152.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234092
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 9 Mar 2016 20:06:59 +0000 (20:06 +0000)]
PR target/70086
* config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
instead of gen_sse2_loadlpd.
* config/i386/sse.md (*vec_concatv2df): Rename to...
(vec_concatv2df): ... this.
* gcc.target/i386/pr70086-1.c: New test.
* gcc.target/i386/pr70086-2.c: New test.
* gcc.target/i386/pr70086-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234091
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 9 Mar 2016 20:05:40 +0000 (20:05 +0000)]
PR tree-optimization/70127
* fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
* gcc.c-torture/execute/pr70127.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234090
138bc75d-0d04-0410-961f-
82ee72b054a4
cesar [Wed, 9 Mar 2016 19:39:53 +0000 (19:39 +0000)]
gcc/c/
* c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
when calling c_finish_omp_clauses.
gcc/cp/
* parser.c (cp_parser_oacc_loop): Update cclauses and clauses
when calling c_finish_omp_clauses.
gcc/testsuite/
* c-c++-common/goacc/combined-directives-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234089
138bc75d-0d04-0410-961f-
82ee72b054a4
dmalcolm [Wed, 9 Mar 2016 18:23:27 +0000 (18:23 +0000)]
PR c++/70105: prevent nonsensical underline spew for macro expansions
diagnostic_show_locus can sometimes do the wrong thing when handling
expressions built up from macros.
PR c++/70105 (currently marked as a P3 regression) has an example of
a diagnostic where over 500 lines of irrelevant source are printed,
and underlined, giving >1000 lines of useless spew to stderr.
This patch adds extra sanitization to diagnostic-show-locus.c, so that
we only attempt to print underlines and secondary locations if such
locations are "sufficiently sane" relative to the primary location
of a diagnostic.
This "sufficiently sane" condition is implemented by a new helper
function compatible_locations_p, which requires such locations to
have the same macro expansion hierarchy as the primary location,
using linemap_macro_map_loc_unwind_toward_spelling, effectively
mimicing the expansion performed by LRK_SPELLING_LOCATION.
This may be too strong a condition, but it effectively fixes
PR c++/70105, without removing any underlines in my testing.
Successfully bootstrapped®rtested in combination with the previous
patch on x86_64-pc-linux-gnu; adds 15 new PASS results to g++.sum
and 4 new PASS results to gcc.sum.
gcc/ChangeLog:
PR c/68473
PR c++/70105
* diagnostic-show-locus.c (compatible_locations_p): New function.
(layout::layout): Sanitize ranges using compatible_locations_p.
gcc/testsuite/ChangeLog:
PR c/68473
PR c++/70105
* g++.dg/diagnostic/pr70105.C: New test.
* gcc.dg/plugin/diagnostic-test-expressions-1.c (foo): New decl.
(test_multiple_ordinary_maps): New test function.
libcpp/ChangeLog:
PR c/68473
PR c++/70105
* line-map.c (linemap_macro_map_loc_unwind_toward_spelling): Move
decl...
* include/line-map.h
(linemap_macro_map_loc_unwind_toward_spelling): ...here,
converting from static to extern.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234088
138bc75d-0d04-0410-961f-
82ee72b054a4
dmalcolm [Wed, 9 Mar 2016 18:14:43 +0000 (18:14 +0000)]
PR c++/70105: Defer location expansion until diagnostic_show_locus
gcc/ChangeLog:
PR c/68473
PR c++/70105
* diagnostic-show-locus.c (layout_range::layout_range): Replace
location_range param with three const expanded_locations * and a
bool.
(layout::layout): Replace call to
rich_location::lazily_expand_location with get_expanded_location.
Extract the range and perform location expansion here, passing
the results to the layout_range ctor.
* diagnostic.c (source_range::debug): Delete.
* diagnostic.h (diagnostic_expand_location): Reimplement in terms
of rich_location::get_expanded_location.
* gcc-rich-location.c (get_range_for_expr): Delete.
(gcc_rich_location::add_expr): Reimplement to avoid the
rich_location::add_range overload that took a location_range,
passing a location_t instead.
gcc/testsuite/ChangeLog:
PR c/68473
PR c++/70105
* gcc.dg/plugin/diagnostic_plugin_show_trees.c (show_tree):
Drop range information from call to inform_at_rich_loc.
* gcc.dg/plugin/diagnostic_plugin_test_show_locus.c (add_range):
New.
(test_show_locus): Replace calls to rich_location::add_range with
calls to add_range. Rewrite the tests that used the now-defunct
rich_location ctor taking a source_range. Simplify other tests
by replacing calls to COMBINE_LOCATION_DATA with calls to
make_location.
libcpp/ChangeLog:
PR c/68473
PR c++/70105
* include/line-map.h (source_range::debug): Delete.
(struct location_range): Update comment. Replace
expanded_location fields "m_start", "m_finish", and "m_caret" with
a source_location field: "m_loc".
(class rich_location): Reword comment.
(rich_location::get_loc): Reimplement in terms of a new overloaded
variant which takes an unsigned int.
(rich_location::get_loc_addr): Delete.
(rich_location::add_range): Drop params "start" and "finish" in
favor of param "loc". Drop overloaded variants taking a
source_range or location_range *.
(rich_location::lazily_expand_location): Delete in favor of...
(rich_location::get_expanded_location): New decl.
(rich_location::m_loc): Delete field.
(rich_location::m_column_override): New field.
* line-map.c (rich_location::rich_location): Drop name of
line_maps * param. Update initializations for deletion of field
"m_loc" and addition of field "m_column_override". Reimplement
body as a call to add_range. Delete overloaded variant taking a
source_range.
(rich_location::get_loc): New function.
(rich_location::lazily_expand_location): Delete in favor of...
(rich_location::get_expanded_location): New function.
(rich_location::override_column): Reimplement.
(rich_location::add_range): Drop params "start" and "finish" in
favor of param "loc". Eliminate location expansion in favor of
simply storing loc. Drop overloaded variants taking a
source_range or location_range *.
(rich_location::set_range): Eliminate location expansion.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234087
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 9 Mar 2016 16:41:19 +0000 (16:41 +0000)]
2016-03-09 Richard Biener <rguenther@suse.de>
Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/70138
* tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
Also skip vect_double_reduction_def.
* gcc.dg/vect/pr70138-1.c: New testcase.
* gcc.dg/vect/pr70138-2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234086
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 9 Mar 2016 14:10:58 +0000 (14:10 +0000)]
PR target/70049
* config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
if the operand is "m".
* gcc.target/i386/pr70049.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234085
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 9 Mar 2016 14:01:16 +0000 (14:01 +0000)]
2016-03-09 Richard Biener <rguenther@suse.de>
c-family/
PR c/70143
* c-common.c (strict_aliasing_warning): Add back
alias_sets_conflict_p check.
* gcc.dg/Wstrict-aliasing-bogus-upcast.c: New testcase.
* gcc.dg/Wstrict-aliasing-struct-with-char-member.c: Likewise.
* gcc.dg/Wstrict-aliasing-struct-member.c: Remove again.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234084
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Wed, 9 Mar 2016 13:33:03 +0000 (13:33 +0000)]
* config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234083
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Wed, 9 Mar 2016 13:09:02 +0000 (13:09 +0000)]
Really don't xfail gcc.dg/vect/bb-slp-34.c on aarch64, arm
* gcc.dg/vect/bb-slp-34.c: Really don't xfail on aarch64-*-*,
arm-*-*.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234081
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 9 Mar 2016 09:23:53 +0000 (09:23 +0000)]
PR middle-end/67278
* gcc.dg/simd-7.c: Add -w -Wno-psabi to dg-options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234080
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 9 Mar 2016 09:20:18 +0000 (09:20 +0000)]
PR target/67278
* gcc.dg/simd-8.c: Add -w -Wno-psabi to dg-options.
PR middle-end/70050
* gcc.dg/pr70050.c: Add -w to dg-options. Fix up PR number
in testcase comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234079
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Wed, 9 Mar 2016 09:14:21 +0000 (09:14 +0000)]
Add oacc kernels testcases in libgomp.oacc-fortran
2016-03-09 Tom de Vries <tom@codesourcery.com>
* testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
* testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
* testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
Same.
* testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
* testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
* testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
* testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234078
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Wed, 9 Mar 2016 09:14:05 +0000 (09:14 +0000)]
Add oacc kernels test-cases in gfortran.dg/goacc
2016-03-09 Tom de Vries <tom@codesourcery.com>
* gfortran.dg/goacc/kernels-loop-2.f95: New test.
* gfortran.dg/goacc/kernels-loop-data-2.f95: New test.
* gfortran.dg/goacc/kernels-loop-data-enter-exit-2.f95: New test.
* gfortran.dg/goacc/kernels-loop-data-enter-exit.f95: New test.
* gfortran.dg/goacc/kernels-loop-data-update.f95: New test.
* gfortran.dg/goacc/kernels-loop-data.f95: New test.
* gfortran.dg/goacc/kernels-loop-n.f95: New test.
* gfortran.dg/goacc/kernels-loop.f95: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234077
138bc75d-0d04-0410-961f-
82ee72b054a4
vekumar [Wed, 9 Mar 2016 07:32:11 +0000 (07:32 +0000)]
Fix cost table initialization order for AMD znver1 target.
2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
* config/i386/i386.c (processor_target_table): Fix cost table
intialization order for znver1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234076
138bc75d-0d04-0410-961f-
82ee72b054a4
msebor [Wed, 9 Mar 2016 04:20:07 +0000 (04:20 +0000)]
PR c++/62096 - unexpected warning overflow in implicit constant conversion
gcc/testsuite/ChangeLog:
2016-03-08 Martin Sebor <msebor@redhat.com>
PR c++/62096
* g++.dg/warn/overflow-warn-7.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234075
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 9 Mar 2016 00:16:12 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234074
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 8 Mar 2016 22:30:44 +0000 (22:30 +0000)]
Remove Concepts from -std=c++1z.
gcc/c-family/
* c-opts.c (set_std_cxx1z): Don't enable concepts.
gcc/testsuite/
* lib/g++-dg.exp (g++-dg-runtest): Handle "concepts" in std list.
* lib/target-supports.exp (check_effective_target_concepts): New.
gcc/cp/
* parser.c (cp_parser_diagnose_invalid_type_name): Give helpful
diagnostic for use of "concept".
(cp_parser_requires_clause_opt): And "requires".
(cp_parser_type_parameter, cp_parser_late_return_type_opt)
(cp_parser_explicit_template_declaration): Adjust.
* Make-lang.in (check-c++-all): Add "concepts" to std list.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234069
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 8 Mar 2016 22:30:30 +0000 (22:30 +0000)]
P0036R0: Unary Folds and Empty Parameter Packs
* pt.c (expand_empty_fold): Remove special cases for *,+,&,|.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234068
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 8 Mar 2016 20:05:21 +0000 (20:05 +0000)]
PR c++/70135
* constexpr.c (cxx_eval_loop_expr): Forget saved values of SAVE_EXPRs
even after the last iteration of the loop.
* g++.dg/cpp1y/constexpr-loop4.C: New test.
* g++.dg/ubsan/pr70135.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234064
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 8 Mar 2016 17:49:34 +0000 (17:49 +0000)]
* ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
- becuase -> because.
* ipa-reference.c (ignore_module_statics): Likewise.
* cgraph.c (cgraph_node::get_body): Likewise.
* ipa-inline.c (early_inliner): Likewise.
* ipa-devirt.c (types_same_for_odr): Likewise.
* tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
* config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
cp/
* decl.c (duplicate_decls): Fix spelling - becuase -> because.
lto/
* lto-symtab.h (lto_symtab_prevail_decl): Fix spelling
- becuase -> because.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234061
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Tue, 8 Mar 2016 13:39:09 +0000 (13:39 +0000)]
[obvious] Fix typo in tree-ssa-math-opts.c
* tree-ssa-math-opts.c: Fix typo in comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234058
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 8 Mar 2016 08:05:26 +0000 (08:05 +0000)]
PR target/70110
* config/i386/i386.c (scalar_chain::make_vector_copies,
scalar_chain::convert_reg): Call end_sequence in between
get_insns and emit_conversion_insns rather than after both
calls.
* gcc.dg/pr70110.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234057
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Tue, 8 Mar 2016 01:35:13 +0000 (01:35 +0000)]
* sv.po: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234056
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 8 Mar 2016 00:16:15 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234055
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Mon, 7 Mar 2016 19:54:02 +0000 (19:54 +0000)]
PR target/70064
* config/i386/i386.h (machine_function): Add
pc_thunk_call_expanded flag.
(ix86_pc_thunk_call_expanded): New define.
* config/i386/i386.md (set_got, set_got_labelled): New expanders.
(*set_got): Rename insn pattern from set_got.
(*set_got_labelled): Rename inst pattern from set_got_labelled.
* config/i386/i386.c (ix86_compute_frame_layout): Use
ix86_pc_thunk_call_expanded to prevent red-zone.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234050
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Mon, 7 Mar 2016 18:45:17 +0000 (18:45 +0000)]
[hsa testsuite] New directory for HSA-specific C testcases
2016-03-07 Martin Jambor <mjambor@suse.cz>
* testsuite/lib/libgomp.exp
(check_effective_target_hsa_offloading_selected_nocache): New.
(check_effective_target_hsa_offloading_selected): Likewise.
* testsuite/libgomp.hsa.c/c.exp: Likewise.
* testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
* testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
* testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
* testsuite/libgomp.hsa.c/complex-1.c: Likewise.
* testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
* testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
* testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
* testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
* testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
* testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
* testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
* testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
* testsuite/libgomp.hsa.c/pr69568.c: Likewise.
* testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
* testsuite/libgomp.hsa.c/switch-1.c: Likewise.
* testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234047
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Mon, 7 Mar 2016 18:42:33 +0000 (18:42 +0000)]
[hsa testsuite] Adjust libgomp tests that do not work on host fallback
2016-03-07 Martin Jambor <mjambor@suse.cz>
* testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
non-shared memory accelerators.
* testsuite/libgomp.c/examples-4/device-1.c: Likewise.
* testsuite/libgomp.c/examples-4/target-5.c: Likewise.
* testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
* testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
* testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
* testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
* testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
* testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
* testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234046
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Mon, 7 Mar 2016 18:41:18 +0000 (18:41 +0000)]
[hsa testsuite] Suppress hsa warnings in libgomp tests
2016-03-07 Martin Jambor <mjambor@suse.cz>
* testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
ALWAYS_CFLAGS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234045
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Mon, 7 Mar 2016 18:39:51 +0000 (18:39 +0000)]
[hsa testsuite] Suppress hsa warnings in compiler gomp tests
2016-03-07 Martin Jambor <mjambor@suse.cz>
* c-c++-common/gomp/clauses-1.c: Remove dg-options.
* c-c++-common/gomp/if-1.c: Likewise.
* c-c++-common/gomp/pr61486-2.c: Likewise.
* c-c++-common/gomp/target-teams-1.c: Moved dg-options except -fopenmp
to dg-additional-options.
* g++.dg/gomp/gomp.exp: Pass -Wno-hsa to all tests.
* g++/gomp/target-teams-1.c: Likewise.
* gcc.dg/gomp/gomp.exp: Likewise.
* gcc.dg/gomp/pr68128-2.c: Moved dg-options except -fopenmp to
dg-additional-options.
* gfortran.dg/gomp/gomp.exp: Likewise.
* gfortran.dg/gomp/target1.f90: Remove dg-options.
* gfortran.dg/gomp/target2.f90: Moved dg-options except -fopenmp to
dg-additional-options.
* gfortran.dg/gomp/target3.f90: Remove dg-options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234044
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Mon, 7 Mar 2016 18:37:20 +0000 (18:37 +0000)]
[hsa testsuite] Gridification tests
2016-03-07 Martin Jambor <mjambor@suse.cz>
* lib/target-supports.exp (check_effective_target_offload_hsa): New.
* c-c++-common/gomp/gridify-1.c: New test.
* gfortran.dg/gomp/gridify-1.f90: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234043
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Mon, 7 Mar 2016 18:31:53 +0000 (18:31 +0000)]
[hsa] Consodlidate GTY roots for trees used during expansion to HSA
2016-03-07 Martin Jambor <mjambor@suse.cz>
* hsa.h (hsa_get_ctor_statements): Declare.
(hsa_get_dtor_statements): Likewise.
(hsa_get_kernel_dispatch_type): Likewise.
* hsa.c (hsa_get_ctor_statements): New function.
(hsa_get_dtor_statements): Likewise.
(hsa_get_kernel_dispatch_type): Likewise.
* hsa-brig.c (hsa_cdtor_statements): Removed.
(hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
hsa_get_dtor_statements.
* hsa-gen.c (hsa_kernel_dispatch_type): Removed.
(get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234042
138bc75d-0d04-0410-961f-
82ee72b054a4
thopre01 [Mon, 7 Mar 2016 18:04:31 +0000 (18:04 +0000)]
2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
* gcc.target/arm/pr45701-1.c: Change assembler scan to not
trigger for cortex-r8, when scanning for register r8.
* gcc.target/arm/pr45701-2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234041
138bc75d-0d04-0410-961f-
82ee72b054a4
thopre01 [Mon, 7 Mar 2016 18:04:20 +0000 (18:04 +0000)]
2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
gcc/
* config/arm/arm-cores.def (cortex-r8): New.
* config/arm/arm-tables.opt (cortex-r8): Regenerate.
* config/arm/arm-tune.md: Likewise.
* gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234040
138bc75d-0d04-0410-961f-
82ee72b054a4
msebor [Mon, 7 Mar 2016 17:10:12 +0000 (17:10 +0000)]
PR rtl-optimization/19705 - -fno-branch-count-reg doesn't prevent decrement
and branch instructions on a count register
gcc/ChangeLog:
2016-03-07 Martin Sebor <msebor@redhat.com>
PR rtl-optimization/19705
* doc/invoke.texi (Options That Control Optimization): Clarify
-fno-branch-count-reg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234039
138bc75d-0d04-0410-961f-
82ee72b054a4
ppalka [Mon, 7 Mar 2016 17:09:53 +0000 (17:09 +0000)]
Adjust fix for PR c++/66786
gcc/cp/ChangeLog:
PR c++/66786
* pt.c (get_template_info): Handle PARM_DECL.
(template_class_depth): Check DECL_P instead of
VAR_OR_FUNCTION_DECL_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234038
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Mon, 7 Mar 2016 17:01:54 +0000 (17:01 +0000)]
PR tree-optimization/69740
* cfghooks.c (remove_edge): Request loop fixups if we delete
an edge that might turn an irreducible loop into a natural
loop.
* cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
Move after definition of loops_state_clear.
PR tree-optimization/69740
* gcc.c-torture/compile/pr69740-1.c: New test.
* gcc.c-torture/compile/pr69740-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234036
138bc75d-0d04-0410-961f-
82ee72b054a4
msebor [Mon, 7 Mar 2016 17:01:44 +0000 (17:01 +0000)]
Add style checks to check_GNU_style.sh.
gcc/contrib/ChangeLog:
2016-03-07 Martin Sebor <msebor@redhat.com>
* check_GNU_style.sh (color): New global variable.
Add checks for trailing operators and spaces before left brackets.
Tightened up a check for a trailing left curly brace.
(g, ag, vg): Use color.
(col): Don't complain about excessively long lines with DejaGnu
directives.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234035
138bc75d-0d04-0410-961f-
82ee72b054a4
amker [Mon, 7 Mar 2016 16:39:27 +0000 (16:39 +0000)]
PR rtl-optimization/69052
* rtlanal.c (commutative_operand_precedence): Set higher precedence
to CONST_WIDE_INT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234034
138bc75d-0d04-0410-961f-
82ee72b054a4
wschmidt [Mon, 7 Mar 2016 15:22:34 +0000 (15:22 +0000)]
2016-03-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* lib/target-supports.exp
(check_effective_target_whole_vector_shift): Enable for PPC64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234032
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Mon, 7 Mar 2016 14:50:13 +0000 (14:50 +0000)]
Skip ubsan/asan internal fns with different location in tail-merge
2016-03-07 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/70116
* tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
is_tm_ending stmts and ubsan/asan internal functions.
(find_duplicate): Use it. Don't test is_tm_ending here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234029
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 7 Mar 2016 14:15:56 +0000 (14:15 +0000)]
2016-03-07 Richard Biener <rguenther@suse.de>
PR tree-optimization/70115
* tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
(propagate_constants_for_unrolling): Use replace_uses_by.
* gcc.dg/torture/pr70115.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234027
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Mon, 7 Mar 2016 13:22:07 +0000 (13:22 +0000)]
gcc/
PR middle-end/69916
* omp-low.c (struct oacc_loop): Add ifns.
(new_oacc_loop_raw): Initialize it.
(finish_oacc_loop): Clear mask & flags if no ifns.
(oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
(oacc_loop_xform_loop): Add ifns arg & adjust.
(oacc_loop_process): Adjust oacc_loop_xform_loop call.
gcc/testsuite/
PR middle-end/69916
* c-c-++-common/goacc/pr69916.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234026
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Mon, 7 Mar 2016 11:48:57 +0000 (11:48 +0000)]
PR rtl-opt/70061
* tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
(insert_value_copy_on_edge): Likewise.
* gcc.c-torture/compile/pr70061.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234025
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 7 Mar 2016 11:45:49 +0000 (11:45 +0000)]
2016-03-07 Richard Biener <rguenther@suse.de>
PR testsuite/70109
* gcc.dg/vect/O3-pr36098.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234024
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Mon, 7 Mar 2016 11:45:41 +0000 (11:45 +0000)]
[ARM] Error out of arm_neon.h if compiling for soft-float ABI
* config/arm/arm_neon.h: Show error if using with soft-float ABI.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234023
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Mon, 7 Mar 2016 09:51:31 +0000 (09:51 +0000)]
Only assume 4-byte stack alignment on 32-bit Solaris/x86 (PR target/62281)
PR target/62281
* config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234022
138bc75d-0d04-0410-961f-
82ee72b054a4
clyon [Mon, 7 Mar 2016 09:43:48 +0000 (09:43 +0000)]
2016-03-07 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/arm/pragma_cpp_fma.c: Reset default FPU.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234021
138bc75d-0d04-0410-961f-
82ee72b054a4