rth [Mon, 21 Mar 2016 23:03:56 +0000 (23:03 +0000)]
PR c++/70273
* decl.c (notice_forced_label_r): New.
(cp_finish_decl): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234386
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 21 Mar 2016 21:13:06 +0000 (21:13 +0000)]
PR c++/70285
* cp-gimplify.c (cp_fold) [COND_EXPR]: Handle bit-fields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234384
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 21 Mar 2016 21:04:32 +0000 (21:04 +0000)]
PR middle-end/70326
* lra.c (restore_scratches): Ignore deleted insns.
* gcc.dg/pr70326.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234383
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 21 Mar 2016 21:03:44 +0000 (21:03 +0000)]
PR tree-optimization/70317
* match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
to HONOR_NANS.
* gcc.dg/pr70317.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234382
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Mon, 21 Mar 2016 19:56:50 +0000 (19:56 +0000)]
PR target/70327
* config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
of ix86_expand_move.
(movoi): Ditto.
(movti): Use general_operand for operand 1 predicate.
testsuite/ChangeLog:
PR target/70327
* gcc.target/i386/pr70327.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234380
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Mon, 21 Mar 2016 19:39:27 +0000 (19:39 +0000)]
HSA: enhance dump output
* hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
insns.
(dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234379
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Mon, 21 Mar 2016 19:33:33 +0000 (19:33 +0000)]
Skip static ctors/dtors in IPA ICF (PR ipa/70306)
* gcc.dg/ipa/pr70306.c: New test.
* ipa-icf.c (sem_function::parse): Skip static
constructors and destructors.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234378
138bc75d-0d04-0410-961f-
82ee72b054a4
thopre01 [Mon, 21 Mar 2016 15:58:41 +0000 (15:58 +0000)]
2016-03-21 Andre Vieira <andre.simoesdiasvieira@arm>
gcc/testsuite/
* gcc.target/arm/attr-align1.c: Skip if M-profile.
* gcc.target/arm/attr-align3.c: Likewise.
* gcc.target/arm/attr_arm.c: Likewise.
* gcc.target/arm/flip-thumb.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234373
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 21 Mar 2016 15:41:13 +0000 (15:41 +0000)]
PR target/70296
* include/cpplib.h (cpp_fun_like_macro_p): New prototype.
* macro.c (cpp_fun_like_macro_p): New function.
* config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
function-like macro, peek following token(s) if it is followed
by CPP_OPEN_PAREN token with optional padding in between, and
if not, don't treat it like a macro.
* gcc.target/powerpc/altivec-36.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234371
138bc75d-0d04-0410-961f-
82ee72b054a4
tschwinge [Mon, 21 Mar 2016 15:31:50 +0000 (15:31 +0000)]
[nvptx] Don't emit sorry for the stabs debug format
* config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
for the stabs debug format.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234370
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 21 Mar 2016 13:50:50 +0000 (13:50 +0000)]
2016-03-21 Richard Biener <rguenther@suse.de>
PR tree-optimization/70310
* tree-vect-generic.c (expand_vector_condition): Fold the built
condition.
* gcc.dg/torture/pr70310.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234369
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Mon, 21 Mar 2016 10:51:04 +0000 (10:51 +0000)]
PR target/70293
gcc/
* config/i386 (define_insn "*vec_dup<mode>"/AVX2): Block
third alternative for AVX-512VL target,
gcc/testsuite/
* gcc.target/i386/pr70293.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234363
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Mon, 21 Mar 2016 10:27:53 +0000 (10:27 +0000)]
Retry to emit global variables in HSA (PR hsa/70234)
PR hsa/70234
* hsa-brig.c (emit_function_directives): Mark unemitted
global variables for emission.
* hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
(get_symbol_for_decl): Likewise.
* hsa.h (struct hsa_symbol): New flag.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234362
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 21 Mar 2016 09:11:37 +0000 (09:11 +0000)]
2016-03-21 Richard Biener <rguenther@suse.de>
PR tree-optimization/70288
* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
we do not estimate unsimplified all-constant conditionals or
switches as optimized away.
* gcc.dg/torture/pr70288-1.c: New testcase.
* gcc.dg/torture/pr70288-2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234361
138bc75d-0d04-0410-961f-
82ee72b054a4
abel [Mon, 21 Mar 2016 07:54:36 +0000 (07:54 +0000)]
PR rtl-optimization/69307
* gcc.target/arm/pr69307.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234360
138bc75d-0d04-0410-961f-
82ee72b054a4
abel [Mon, 21 Mar 2016 07:52:05 +0000 (07:52 +0000)]
gcc/
PR rtl-optimization/69102
* sched-deps.c (sched_analyze_insn): Do not set last_args_size field
when we have a readonly dependency context.
testsuite/
PR rtl-optimization/69102
* gcc.c-torture/compile/pr69102.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234359
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Mon, 21 Mar 2016 00:16:25 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234358
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sun, 20 Mar 2016 00:16:15 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234355
138bc75d-0d04-0410-961f-
82ee72b054a4
jvdelisle [Sat, 19 Mar 2016 20:28:38 +0000 (20:28 +0000)]
2016-03-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/69043
* scanner.c (load_file): Update to use S_ISREG macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234352
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 19 Mar 2016 00:16:17 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234350
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 18 Mar 2016 20:16:05 +0000 (20:16 +0000)]
PR c++/70139
* constexpr.c (cxx_eval_call_expression): Fix trivial copy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234345
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Fri, 18 Mar 2016 19:30:20 +0000 (19:30 +0000)]
PR rtl-optimization/70263
* ira.c (memref_used_between_p): Assert we found END in the insn chain.
(update_equiv_regs): When trying to move a store to after the insn
that sets the source of the store, make sure the store occurs after
the insn that sets the source of the store. When successful note
the REG_EQUIV note created in the dump file.
PR rtl-optimization/70263
* gcc.c-torture/compile/pr70263-1.c: New test.
* gcc.target/i386/pr70263-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234344
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Fri, 18 Mar 2016 19:12:10 +0000 (19:12 +0000)]
David Wohlferd's patch to document more issues with basic asms
* doc/extend.texi: Document more potential problems with basic asms.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234343
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Fri, 18 Mar 2016 19:09:08 +0000 (19:09 +0000)]
Fix PR70278, a problem with the previous split_reg change
PR rtl-optimization/70278
* lra-constraints.c (split_reg): Handle the case where biggest_mode is
VOIDmode.
testsuite/
* gcc.dg/torture/pr70278.c: New test.
* gcc.target/arm/pr70278.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234342
138bc75d-0d04-0410-961f-
82ee72b054a4
dmalcolm [Fri, 18 Mar 2016 17:45:42 +0000 (17:45 +0000)]
PR c/70281: C FE: fix uninitialized range for __builtin_types_compatible_p
gcc/c/ChangeLog:
PR c/70281
* c-parser.c (c_parser_postfix_expression): Set the source range
for uses of "__builtin_types_compatible_p".
gcc/testsuite/ChangeLog:
PR c/70281
* gcc.dg/plugin/diagnostic-test-expressions-1.c
(test_builtin_types_compatible_p): New test function.
* gcc.dg/pr70281.c: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234340
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Fri, 18 Mar 2016 15:44:44 +0000 (15:44 +0000)]
* libsupc++/guard.cc: Revert my last commit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234336
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 18 Mar 2016 15:31:35 +0000 (15:31 +0000)]
PR c++/70147 - handle primary virtual bases
* class.c (vptr_via_virtual_p): New.
(most_primary_binfo): Factor out of build_rtti_vtbl_entries.
* cp-ubsan.c (cp_ubsan_dfs_initialize_vtbl_ptrs): Don't clear
a vptr from any virtual base in a not-in-charge 'structor.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234335
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 18 Mar 2016 15:31:29 +0000 (15:31 +0000)]
Avoid clobbering primary virtual base when not in charge.
* decl.c (build_clobber_this): Factor out of
start_preparsed_function and begin_destructor_body. Handle
virtual bases better.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234334
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 18 Mar 2016 15:31:24 +0000 (15:31 +0000)]
* class.c (build_if_in_charge): Split out from build_base_path.
* init.c (expand_virtual_init, expand_default_init): Use it.
* call.c (build_special_member_call): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234333
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 18 Mar 2016 15:31:18 +0000 (15:31 +0000)]
* calls.c (load_register_parameters): Fix zero size sibcall logic.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234332
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Fri, 18 Mar 2016 15:28:54 +0000 (15:28 +0000)]
Revert:
2015-07-02 Uros Bizjak <ubizjak@gmail.com>
* libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
to avoid unused variable warning.
(__set_and_release): Use __p after __atomic_store to avoid unused
variable warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234331
138bc75d-0d04-0410-961f-
82ee72b054a4
clyon [Fri, 18 Mar 2016 13:58:32 +0000 (13:58 +0000)]
2016-03-18 Christophe Lyon <christophe.lyon@linaro.org>
PR target/70113
* gcc.target/aarch64/pr63304_1.c: Add -mno-fix-cortex-a53-843419.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234330
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Fri, 18 Mar 2016 11:36:30 +0000 (11:36 +0000)]
gcc/
* config/i386/sse.md: Use vpbroadcastq for broadcasting DF
values to 128b regs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234325
138bc75d-0d04-0410-961f-
82ee72b054a4
ienkovich [Fri, 18 Mar 2016 09:36:32 +0000 (09:36 +0000)]
gcc/
PR tree-optimization/70252
* tree-vect-stmts.c (supportable_widening_operation): Check resulting
boolean vector has a proper number of elements.
(supportable_narrowing_operation): Likewise.
gcc/testsuite/
PR tree-optimization/70252
* gcc.dg/pr70252.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234323
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Fri, 18 Mar 2016 09:17:33 +0000 (09:17 +0000)]
Add testcases for pr70161
2016-03-18 Tom de Vries <tom@codesourcery.com>
* gcc.dg/pr70161-2.c: New test.
* gcc.dg/pr70161.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234322
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Fri, 18 Mar 2016 09:17:23 +0000 (09:17 +0000)]
Set dump_file to NULL in cgraph_node::get_body
2016-03-18 Tom de Vries <tom@codesourcery.com>
PR ipa/70269
* cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
* gcc.dg/pr70269.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234321
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 18 Mar 2016 08:25:57 +0000 (08:25 +0000)]
* reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
instead of replace_rtx for DEBUG_INSNs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234320
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 18 Mar 2016 07:59:36 +0000 (07:59 +0000)]
PR c++/70267
* init.c (build_new_1): Complain and return error_mark_node
if alloc_fn is not _Jv_AllocObject function returning pointer.
* g++.dg/ext/java-3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234319
138bc75d-0d04-0410-961f-
82ee72b054a4
vekumar [Fri, 18 Mar 2016 07:49:00 +0000 (07:49 +0000)]
Fix latencies in znver1.md
2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
* config/i386/znver1.md : Fix latencies of FP/SSE/AVX
load type reservations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234318
138bc75d-0d04-0410-961f-
82ee72b054a4
ppalka [Fri, 18 Mar 2016 01:26:50 +0000 (01:26 +0000)]
Fix PR c++/70205 (ICE on valid call to qualified static member function)
gcc/cp/ChangeLog:
PR c++/70205
* search.c (adjust_result_of_qualified_name_lookup): Don't
update the BASELINK_BINFO of DECL if the second call
to lookup_base fails.
gcc/testsuite/ChangeLog:
PR c++/70205
* g++.dg/lookup/pr70205.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234317
138bc75d-0d04-0410-961f-
82ee72b054a4
ppalka [Fri, 18 Mar 2016 01:23:26 +0000 (01:23 +0000)]
Fix PR c++/70218 (illegal access to private field succeeds)
gcc/cp/ChangeLog:
PR c++/70218
* parser.c (cp_parser_lambda_expression): Move call to
pop_deferring_access_checks ahead of the call to
cp_parser_end_tentative_firewall.
gcc/testsuite/ChangeLog:
PR c++/70218
* g++.dg/cpp0x/lambda/lambda-70218.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234316
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 18 Mar 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234315
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 17 Mar 2016 23:00:04 +0000 (23:00 +0000)]
PR c/70280
* c-typeck.c (composite_type): Don't count void_list_node
into len, if the list is terminated by void_list_node, start
with void_list_node instead of NULL for newargs. Stop
at void_list_node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234312
138bc75d-0d04-0410-961f-
82ee72b054a4
ccoutant [Thu, 17 Mar 2016 22:54:19 +0000 (22:54 +0000)]
Sync top-level configure.ac with binutils-gdb.
2016-03-17 Cary Coutant <ccoutant@gmail.com>
* configure.ac: Add mips and s390 to the gold target check.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234309
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Thu, 17 Mar 2016 22:49:15 +0000 (22:49 +0000)]
PR target/70188
* config/pa/constraints.md: Revert 2015-02-13 change. Use
define_constraint for "Q" and "T" constraints.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234308
138bc75d-0d04-0410-961f-
82ee72b054a4
evandro [Thu, 17 Mar 2016 21:20:50 +0000 (21:20 +0000)]
Tweak the pipeline model for Exynos M1
* gcc/config/aarch64/aarch64.c
(exynosm1_tunings): Enable the weak prefetching model.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234307
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 17 Mar 2016 18:43:08 +0000 (18:43 +0000)]
PR c/69407
* c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
operations.
* gcc.dg/atomic-op-6.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234304
138bc75d-0d04-0410-961f-
82ee72b054a4
dmalcolm [Thu, 17 Mar 2016 18:27:47 +0000 (18:27 +0000)]
PR c/70264: fix crash in compatible_locations_p with BUILTINS_LOCATION
In r234088 my fix for PR c++/70105 didn't allow for the possibility that
when comparing a pair of macro expansion histories that one of the
macros in the history might not be located within a line-map, and
PR c/70264 reports a crash due to encountering BUILTINS_LOCATION within
the traversal.
Fixed thusly.
Successfully bootstrapped on x86_64-pc-linux-gnu; adds 4 PASS results
to gcc.sum and 12 to g++.sum.
gcc/ChangeLog:
PR c/70264
* diagnostic-show-locus.c (compatible_locations_p): Handle the case
where one or both locations aren't within a line_map.
gcc/testsuite/ChangeLog:
PR c/70264
* c-c++-common/pr70264.c: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234303
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 17 Mar 2016 15:58:22 +0000 (15:58 +0000)]
PR c++/70144
* cp-tree.h (magic_varargs_p): Return int instead of bool.
* call.c (magic_varargs_p): Return int instead of bool, return 2 for
Cilk+ reductions, otherwise 1 for magic varargs and 0 for normal
varargs.
(build_over_call): If magic_varargs_p == 2, call reject_gcc_builtin,
if magic_varargs_p == 1, call decay_conversion
instead of mark_type_use. Don't store error_mark_node arguments to
argarray, instead return error_mark_node.
* c-c++-common/pr70144-1.c: New test.
* c-c++-common/pr70144-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234297
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 17 Mar 2016 15:56:19 +0000 (15:56 +0000)]
PR c++/70272
* decl.c (begin_destructor_body): Don't insert clobber if
is_empty_class (current_class_type).
* g++.dg/opt/flifetime-dse5.C (main): Remove extra semicolon.
* g++.dg/opt/flifetime-dse6.C: New test.
* g++.dg/tree-ssa/ehcleanup-1.C: Adjust unreachable count.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234296
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Thu, 17 Mar 2016 15:11:35 +0000 (15:11 +0000)]
Properly set flag_pie and flag_pic
We can't set flag_pie to the default when flag_pic == 0, which may be
set by -fno-pic or -fno-PIC, since the default value of flag_pie is
non-zero when GCC is configured with --enable-default-pie. We need
to initialize flag_pic to -1 so that we can tell if -fpic, -fPIC,
-fno-pic or -fno-PIC is used.
Since Darwin defaults to PIC (__PIC__ == 2) and the PIC setting can't
be changed, skip tests of default __PIC__ and __PIE__ setting for
*-*-darwin* targets.
gcc/
PR driver/70192
* opts.c (finish_options): Don't set flag_pie to the default if
-fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
if it is -1.
gcc/testsuite/
PR driver/70192
* gcc.dg/pic-1.c: New test.
* gcc.dg/pic-2.c: Likewise.
* gcc.dg/pic-3.c: Likewise.
* gcc.dg/pic-4.c: Likewise.
* gcc.dg/pie-1.c: Likewise.
* gcc.dg/pie-2.c: Likewise.
* gcc.dg/pie-3.c: Likewise.
* gcc.dg/pie-4.c: Likewise.
* gcc.dg/pie-5.c: Likewise.
* gcc.dg/pie-6.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234295
138bc75d-0d04-0410-961f-
82ee72b054a4
tschwinge [Thu, 17 Mar 2016 15:07:54 +0000 (15:07 +0000)]
Rename GOMP_MAP_FORCE_DEALLOC to GOMP_MAP_DELETE
Also rename the Fortran OMP_MAP_FORCE_DEALLOC to OMP_MAP_DELETE.
include/
* gomp-constants.h (enum gomp_map_kind): Rename
GOMP_MAP_FORCE_DEALLOC to GOMP_MAP_DELETE. Adjust all users.
gcc/fortran/
* gfortran.h (enum gfc_omp_map_op): Rename OMP_MAP_FORCE_DEALLOC
to OMP_MAP_DELETE. Adjust all users.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234294
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Thu, 17 Mar 2016 14:56:43 +0000 (14:56 +0000)]
Add goacc/kernels-alias-{3,4}.f95
2016-03-17 Tom de Vries <tom@codesourcery.com>
* gfortran.dg/goacc/kernels-alias-3.f95: New test.
* gfortran.dg/goacc/kernels-alias-4.f95: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234292
138bc75d-0d04-0410-961f-
82ee72b054a4
amylaar [Thu, 17 Mar 2016 14:10:39 +0000 (14:10 +0000)]
* config/i386/i386.md (*movv4qicc_insn+1..36): Pass
true as ALL_REGS argument to replace_rtx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234290
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 17 Mar 2016 13:43:01 +0000 (13:43 +0000)]
2016-03-17 Richard Biener <rguenther@suse.de>
PR debug/70271
* dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
last.
* g++.dg/debug/pr70271.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234289
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 17 Mar 2016 11:53:53 +0000 (11:53 +0000)]
PR target/70245
* rtl.h (replace_rtx): Add ALL_REGS argument.
* rtlanal.c (replace_rtx): Likewise. If true, use REGNO
equality and assert mode is the same, instead of just rtx pointer
equality.
* config/i386/i386.md (mov + arithmetics with load peephole): Pass
true as ALL_REGS argument to replace_rtx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234285
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Thu, 17 Mar 2016 11:07:10 +0000 (11:07 +0000)]
Set flag_pic to flag_pie for PIE in LTO
Since PIE implies PIC, we should set flag_pic to flag_pie for PIE in
LTO.
PR lto/70258
* lto-lang.c (lto_post_options): Set flag_pic to flag_pie for
PIE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234284
138bc75d-0d04-0410-961f-
82ee72b054a4
ienkovich [Thu, 17 Mar 2016 10:58:26 +0000 (10:58 +0000)]
gcc/
* match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
for boolean vector with vector mode only.
(A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
gcc/testsuite/
* gcc.target/i386/pr70251.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234283
138bc75d-0d04-0410-961f-
82ee72b054a4
schwab [Thu, 17 Mar 2016 10:47:58 +0000 (10:47 +0000)]
Summary: libffi: define FFI_SIZEOF_JAVA_RAW for aarch64 ILP32
* src/aarch64/ffitarget.h (FFI_SIZEOF_JAVA_RAW) [__ILP32__]:
Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234282
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 17 Mar 2016 10:29:36 +0000 (10:29 +0000)]
PR c++/70194
* typeck.c (warn_for_null_address): New function.
(cp_build_binary_op): Call it.
* g++.dg/warn/constexpr-70194.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234281
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Thu, 17 Mar 2016 10:16:38 +0000 (10:16 +0000)]
PR target/70162
* config/rx/rx.c (rx_print_integer): Print negative constants in
decimal.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234280
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 17 Mar 2016 08:01:26 +0000 (08:01 +0000)]
PR target/70261
* rtlanal.c (replace_rtx): Revert 2016-03-16 change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234279
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Thu, 17 Mar 2016 00:21:09 +0000 (00:21 +0000)]
* fr.po: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234278
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Thu, 17 Mar 2016 00:20:21 +0000 (00:20 +0000)]
* fr.po: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234277
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 17 Mar 2016 00:16:12 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234276
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Wed, 16 Mar 2016 23:53:18 +0000 (23:53 +0000)]
PR middle-end/70240
* gcc.c-torture/compile/pr70240.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234273
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Wed, 16 Mar 2016 23:53:10 +0000 (23:53 +0000)]
Revert r231575
PR middle-end/70240
PR middle-end/68215
2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
* tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
Do not gimplify the result.
(do_unop): Adjust call to tree_vec_extract.
(do_binop): Likewise.
(do_compare): Likewise.
(do_plus_minus): Likewise.
(do_negate): Likewise.
(expand_vector_condition): Likewise.
(do_cond): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234272
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Wed, 16 Mar 2016 23:53:01 +0000 (23:53 +0000)]
Gimplify vec_cond_expr with condition inside
PR middle-end/70240
PR middle-end/68215
PR tree-opt/68714
* gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
first operand as is_gimple_condexpr.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234271
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Wed, 16 Mar 2016 21:23:05 +0000 (21:23 +0000)]
PR target/70048
* config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
(aarch64_classify_address): Use it.
(aarch64_legitimize_address): Force all subexpressions of PLUS
into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234269
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 16 Mar 2016 19:37:22 +0000 (19:37 +0000)]
PR c++/70259
* decl.c (start_preparsed_function): Don't clobber an empty base.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234267
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Wed, 16 Mar 2016 18:09:51 +0000 (18:09 +0000)]
2016-03-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* gcc.c-torture/compile/
20151204.c: Skip for avr.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234266
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 16 Mar 2016 17:52:20 +0000 (17:52 +0000)]
PR target/70245
* rtlanal.c (replace_rtx): For REG, if from is a REG,
return to even if only REGNO is equal, and assert
mode is the same.
* g++.dg/opt/pr70245.C: New test.
* g++.dg/opt/pr70245.h: New file.
* g++.dg/opt/pr70245-aux.cc: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234265
138bc75d-0d04-0410-961f-
82ee72b054a4
msebor [Wed, 16 Mar 2016 17:42:41 +0000 (17:42 +0000)]
g++.dg/cpp1y/constexpr-instantiate.C: Correct DejaGnu directives.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234264
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Wed, 16 Mar 2016 17:03:45 +0000 (17:03 +0000)]
Fix bug ID in last commit
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234263
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Wed, 16 Mar 2016 16:58:12 +0000 (16:58 +0000)]
PR rtl-optimization/70024
* reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234262
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Wed, 16 Mar 2016 16:50:18 +0000 (16:50 +0000)]
PR middle-end/70199
* function.h (struct function): Add has_forced_label_in_static.
* gimplify.c (force_labels_r): Set it.
* lto-streamer-in.c (input_struct_function_base): Read it.
* lto-streamer-out.c (output_struct_function_base): Write it.
* tree-inline.c (has_label_address_in_static_1): Remove.
(copy_forbidden): Remove fndecl parameter; test
has_forced_label_in_static.
(inline_forbidden_p): Update call to copy_forbidden.
(tree_versionable_function_p): Likewise.
* ipa-chkp.c (chkp_instrumentable_p): Likewise.
(chkp_versioning): Likewise.
* tree-inline.h (copy_forbidden): Update decl.
testsuite/
* gcc.c-torture/compile/pr70199.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234261
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Wed, 16 Mar 2016 16:14:34 +0000 (16:14 +0000)]
Run dos2unix on gcc.dg/uninit-19.c
* gcc.dg/uninit-19.c: Run dos2unix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234260
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Wed, 16 Mar 2016 15:51:47 +0000 (15:51 +0000)]
PR c/70093
* c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
nested functions returning VM types.
* cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
function being thunked if the result type doesn't have fixed size.
* gimplify.c (gimplify_modify_expr): Also set LHS if the result type
doesn't have fixed size.
* gcc.dg/nested-func-10.c: New test.
* gcc.dg/nested-func-9.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234259
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 16 Mar 2016 13:34:36 +0000 (13:34 +0000)]
PR tree-optimization/68714
* gcc.dg/tree-ssa/pr68714.c: Add -w -Wno-psabi to dg-options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234258
138bc75d-0d04-0410-961f-
82ee72b054a4
tschwinge [Wed, 16 Mar 2016 13:10:20 +0000 (13:10 +0000)]
Nowadays, we use plain -fopenacc to enable OpenACC kernels processing
libgomp/
* testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
-ftree-parallelize-loops/-fopenacc changes.
* testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
Likewise.
* testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
Likewise.
* testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
Likewise.
* testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
Likewise.
* testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
* testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234257
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Wed, 16 Mar 2016 11:57:02 +0000 (11:57 +0000)]
Save call-clobbered registers in _mcount on 32-bit Solaris/x86 (PR target/38239)
PR target/38239
* config/sol2/gmon.c [__i386__] (_mcount): Save and restore
call-clobbered registers.
(internal_mcount): Remove __i386__ handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234256
138bc75d-0d04-0410-961f-
82ee72b054a4
schwab [Wed, 16 Mar 2016 11:44:36 +0000 (11:44 +0000)]
Summary: boehm-gc: add support for aarch64 ILP32
* include/private/gcconfig.h [AARCH64] (ALIGNMENT, CPP_WORDSZ):
Define for __ILP32__.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234255
138bc75d-0d04-0410-961f-
82ee72b054a4
amker [Wed, 16 Mar 2016 10:57:34 +0000 (10:57 +0000)]
* tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
reporting malformed loop nest.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234254
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Wed, 16 Mar 2016 10:21:27 +0000 (10:21 +0000)]
Safely use nodes[0] in possible_polymorphic_call_targets
2016-03-16 Tom de Vries <tom@codesourcery.com>
PR lto/70187
* ipa-devirt.c (possible_polymorphic_call_targets): Move
nodes.length () == 1 test to before first nodes[0] access.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234253
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Wed, 16 Mar 2016 10:04:01 +0000 (10:04 +0000)]
* gcc-interface/Makefile.in: Add support for x86 GNU/Hurd.
* s-osinte-gnu.ads: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234252
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Wed, 16 Mar 2016 09:19:23 +0000 (09:19 +0000)]
Add missing single_pred_p test in scop_detection::merge_sese
2016-03-16 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/68715
* graphite-scop-detection.c (scop_detection::merge_sese): Add missing
single_pred_p test.
* gcc.dg/graphite/pr68715-2.c: New test.
* gcc.dg/graphite/pr68715.c: New test.
* gfortran.dg/graphite/pr68715.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234251
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Wed, 16 Mar 2016 09:19:12 +0000 (09:19 +0000)]
Fix same_close_phi_node
2016-03-16 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/68809
* graphite-scop-detection.c (same_close_phi_node): Test if result types
are the same.
* gcc.dg/graphite/pr68809-2.c: New test.
* gcc.dg/graphite/pr68809.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234250
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 16 Mar 2016 07:02:30 +0000 (07:02 +0000)]
PR c++/70147
* cp-ubsan.c (cp_ubsan_dfs_initialize_vtbl_ptrs): Conditionalize
BINFO_VIRTUAL_P vtable clearing on current_in_charge_parm.
* g++.dg/ubsan/pr70147-2.C (C::C): Initialize A base with invalid
method call to i () as argument. Adjust expected output.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234249
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 16 Mar 2016 07:01:36 +0000 (07:01 +0000)]
PR c++/70147
* cp-ubsan.c (cp_ubsan_maybe_initialize_vtbl_ptrs): Temporarily
set in_base_initializer.
* g++.dg/ubsan/pr70147-1.C: New test.
* g++.dg/ubsan/pr70147-2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234248
138bc75d-0d04-0410-961f-
82ee72b054a4
carlos [Wed, 16 Mar 2016 05:00:58 +0000 (05:00 +0000)]
Cleanup and expand on the 'leaf' function attribute documentation.
Describe the problems that a user might face with indirect functions
and ELF symbol interposition.
gcc/ChangeLog:
2016-03-16 Carlos O'Donell <carlos@redhat.com>
Sandra Loosemore <sandra@codesourcery.com>
* doc/extend.texi (Common Function Attributes): Describe ifunc impact
on leaf attribute. Mention ELF interposition problems.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234247
138bc75d-0d04-0410-961f-
82ee72b054a4
msebor [Wed, 16 Mar 2016 03:00:02 +0000 (03:00 +0000)]
PR c++/58281 - Problem with explicitly instantiated constexpr template
functions
gcc/testsuite/ChangeLog:
2016-03-15 Martin Sebor <msebor@redhat.com>
PR c++/58281
* g++.dg/cpp1y/constexpr-instantiate.C: Add new test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234246
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 16 Mar 2016 00:16:18 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234245
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Wed, 16 Mar 2016 00:11:28 +0000 (00:11 +0000)]
* gcc.c-torture/execute/pr68532.c: Add -fno-common option on
hppa*-*-hpux*.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234242
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Tue, 15 Mar 2016 23:49:40 +0000 (23:49 +0000)]
* gcc.dg/ifcvt-4.c: Add hppa*64*-*-* to skip list.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234241
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Tue, 15 Mar 2016 23:34:49 +0000 (23:34 +0000)]
PR libfortran/69799
* gfortran.dg/coarray_allocate_5.f08: Add "-latomic" option if
libatomic_available.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234240
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Tue, 15 Mar 2016 23:08:45 +0000 (23:08 +0000)]
Fix compiling large files
* line-map.c (new_linemap): Make alloc_size a size_t.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234239
138bc75d-0d04-0410-961f-
82ee72b054a4
amodra [Tue, 15 Mar 2016 22:04:42 +0000 (22:04 +0000)]
Fix thinko in indirect_jump_optimize
PR rtl-optimization/69195
PR rtl-optimization/47992
* ira.c (indirect_jump_optimize): Ignore artificial defs.
Add comments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234235
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Tue, 15 Mar 2016 21:10:11 +0000 (21:10 +0000)]
PR c++/70209
* tree.c (strip_typedefs): Call strip_typedefs again on the
DECL_ORIGINAL_TYPE result.
* g++.dg/ext/attribute-may-alias-4.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234234
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 15 Mar 2016 19:37:37 +0000 (19:37 +0000)]
PR c++/70095
* pt.c (instantiate_decl): Fix call to variable_template_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234231
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 15 Mar 2016 19:37:32 +0000 (19:37 +0000)]
Fix more P0184R0 references.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234230
138bc75d-0d04-0410-961f-
82ee72b054a4