platform/upstream/linaro-gcc.git
8 years ago PR tree-optimization/69740
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

8 years agoAdd style checks to check_GNU_style.sh.
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

8 years ago PR rtl-optimization/69052
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

8 years ago2016-03-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
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

8 years agoSkip ubsan/asan internal fns with different location in tail-merge
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

8 years ago2016-03-07 Richard Biener <rguenther@suse.de>
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

8 years ago gcc/
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

8 years agoPR rtl-opt/70061
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

8 years ago2016-03-07 Richard Biener <rguenther@suse.de>
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

8 years ago[ARM] Error out of arm_neon.h if compiling for soft-float ABI
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

8 years agoOnly assume 4-byte stack alignment on 32-bit Solaris/x86 (PR target/62281)
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

8 years ago2016-03-07 Christophe Lyon <christophe.lyon@linaro.org>
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

8 years ago * gcc-interface/trans.c (statement_node_p): New predicate.
ebotcazou [Mon, 7 Mar 2016 08:46:52 +0000 (08:46 +0000)]
* gcc-interface/trans.c (statement_node_p): New predicate.
(gnat_to_gnu): Invoke it to detect statement nodes.  In ASIS mode, do
not return dummy results for expressions attached to packed array
implementation types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234020 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Always mark
ebotcazou [Mon, 7 Mar 2016 08:08:27 +0000 (08:08 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Always mark
the expression of a renaming manually in case #3.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234018 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 7 Mar 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234017 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago teach mklog to look in the current directory for ChangeLog files
tbsaunde [Sun, 6 Mar 2016 17:36:19 +0000 (17:36 +0000)]
 teach mklog to look in the current directory for ChangeLog files

 when run in repos other than gcc mklog fails to find ChangeLog files
because it looks for $0/../$dir/ChangeLog, but of course if the diff is
for a project other than gcc that might not exist.  It should be fine to
also look for $cwd/$dir/ChangeLog, and use that if we find it.  This
means that for example in binutils-gdb.git you can do git commit,
and then in your editor read git diff HEAD~ | mklog - to generate a
template ChangeLog for that commit.

contrib/ChangeLog:

2016-03-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

* mklog: Look for the ChangeLog file in $cwd.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234014 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/67364
jason [Sun, 6 Mar 2016 06:47:22 +0000 (06:47 +0000)]
PR c++/67364
* constexpr.c (cxx_eval_store_expression): Replace
CONSTRUCTOR_ELTS in nested CONSTRUCTORs, too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234013 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 6 Mar 2016 00:16:15 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234012 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agolibffi: Match upstream soname
rth [Sat, 5 Mar 2016 18:25:20 +0000 (18:25 +0000)]
libffi: Match upstream soname

  * libtool-version: Increase to 7:0:0.
  * libffi.map.in: Increase version numbers to 7.0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234009 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix Multiply costs for AMD -march=znver1.
vekumar [Sat, 5 Mar 2016 17:20:22 +0000 (17:20 +0000)]
Fix Multiply costs for AMD -march=znver1.
2016-03-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>

        * config/i386/i386.c (znver1_cost): Fix Multiply cost.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234008 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
vekumar [Sat, 5 Mar 2016 12:33:09 +0000 (12:33 +0000)]
2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>

        Fix sseimul type attribute.
        * config/i386/znver1.md
        (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
        znver1_sseimul_avx256_load) : Fix the type attribute.
        (znver1_sseimul_di,
        znver1_sseimul_load_di): Fix type attribute, pipe usage and latency.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234007 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * sr.po: Update.
jsm28 [Sat, 5 Mar 2016 12:07:03 +0000 (12:07 +0000)]
* sr.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234006 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70084
jakub [Sat, 5 Mar 2016 06:50:23 +0000 (06:50 +0000)]
PR c++/70084
* tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
to the right type.

* g++.dg/expr/stdarg3.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234004 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/69196
law [Sat, 5 Mar 2016 06:12:09 +0000 (06:12 +0000)]
PR tree-optimization/69196
* gcc.dg/tree-ssa/pr69196-1.c: Limit this to sparc*-*-* and
x86_64-*-*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234003 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c/69973
law [Sat, 5 Mar 2016 05:36:42 +0000 (05:36 +0000)]
PR c/69973
* targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.

PR c/69973
* gcc.dg/pr69973.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234002 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR rtl-optimization/69941
law [Sat, 5 Mar 2016 05:30:10 +0000 (05:30 +0000)]
PR rtl-optimization/69941
* postreload.c (reload_combine_recognize_pattern): Ensure all uses of
the reg share its mode.

PR rtl-optimization/69941
* gcc.dg/torture/pr69941.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234001 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c/69824
law [Sat, 5 Mar 2016 05:22:01 +0000 (05:22 +0000)]
PR c/69824
* c-decl.c (get_parm_info): Don't queue implicit function declarations
for later.

PR c/69824
* gcc.dg/pr69824.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234000 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/69196
law [Sat, 5 Mar 2016 05:10:58 +0000 (05:10 +0000)]
PR tree-optimization/69196
* tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
If the both SSA_NAMEs are anonymous, then consider them unassociated
and include the PHI in the statement count.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233999 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoHandle oacc region in oacc routine
vries [Sat, 5 Mar 2016 02:48:30 +0000 (02:48 +0000)]
Handle oacc region in oacc routine

2016-03-05  Tom de Vries  <tom@codesourcery.com>

* omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
construct in oacc routine.  Check for oacc region in oacc routine.

* c-c++-common/goacc/nesting-fail-1.c (f_acc_routine): New function.
* c-c++-common/goacc-gomp/nesting-fail-1.c (f_acc_routine): New
function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233998 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR c++/66786 (ICE with nested lambdas in variable template)
ppalka [Sat, 5 Mar 2016 01:59:04 +0000 (01:59 +0000)]
Fix PR c++/66786 (ICE with nested lambdas in variable template)

gcc/cp/ChangeLog:

PR c++/66786
* pt.c (template_class_depth): Given a lambda type, iterate
into its LAMBDA_TYPE_EXTRA_SCOPE field instead of its
TYPE_CONTEXT.  Given a VAR_DECL, iterate into its
CP_DECL_CONTEXT.

gcc/testsuite/ChangeLog:

PR c++/66786
* g++.dg/cpp1y/var-templ48.C: New test.
* g++.dg/cpp1y/var-templ49.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233997 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 5 Mar 2016 00:16:14 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233994 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * g++.dg/Wno-frame-address.C: Skip on IA-64.
ebotcazou [Fri, 4 Mar 2016 22:56:18 +0000 (22:56 +0000)]
* g++.dg/Wno-frame-address.C: Skip on IA-64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233988 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/69203
jason [Fri, 4 Mar 2016 22:53:29 +0000 (22:53 +0000)]
PR c++/69203

* cp-tree.h (COND_EXPR_IS_VEC_DELETE): New.
* init.c (build_vec_delete_1): Set it.
* constexpr.c (potential_constant_expression_1) [COND_EXPR]: Check it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233987 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoSync include/plugin-api.h with binutils.
ccoutant [Fri, 4 Mar 2016 22:15:55 +0000 (22:15 +0000)]
Sync include/plugin-api.h with binutils.

2016-03-03  Than McIntosh <thanm@google.com>

* plugin-api.h: Add new hooks to the plugin transfer vector to
to support querying section alignment and section size.
(ld_plugin_get_input_section_alignment): New hook.
(ld_plugin_get_input_section_size): New hook.
(ld_plugin_tag): Add LDPT_GET_INPUT_SECTION_ALIGNMENT
and LDPT_GET_INPUT_SECTION_SIZE.
(ld_plugin_tv): Add tv_get_input_section_alignment and
tv_get_input_section_size.

2016-03-03  Evgenii Stepanov  <eugenis@google.com>

* plugin-api.h (enum ld_plugin_tag): Add LDPT_GET_SYMBOLS_V3.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233986 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * decl.c (start_preparsed_function): Don't emit start clobber at the
jakub [Fri, 4 Mar 2016 22:11:41 +0000 (22:11 +0000)]
* decl.c (start_preparsed_function): Don't emit start clobber at the
start of constructor clones.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233985 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70035
jakub [Fri, 4 Mar 2016 22:10:49 +0000 (22:10 +0000)]
PR c++/70035
* cp-tree.h (cp_ubsan_maybe_initialize_vtbl_ptrs): New prototype.
* decl.c (start_preparsed_function): Call
cp_ubsan_maybe_initialize_vtbl_ptrs if needed.
* cp-ubsan.c (cp_ubsan_dfs_initialize_vtbl_ptrs,
cp_ubsan_maybe_initialize_vtbl_ptrs): New functions.

* g++.dg/ubsan/pr70035.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233984 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/67364
jason [Fri, 4 Mar 2016 22:08:22 +0000 (22:08 +0000)]
PR c++/67364

* constexpr.c (cxx_eval_component_reference): Further tweak.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233982 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago Fix constexpr handling of SAVE_EXPR in loops.
jason [Fri, 4 Mar 2016 22:08:17 +0000 (22:08 +0000)]
Fix constexpr handling of SAVE_EXPR in loops.

* constexpr.c (struct constexpr_ctx): Add save_exprs field.
(cxx_eval_loop_expr): Discard SAVE_EXPR values before looping.
(cxx_eval_constant_expression) [SAVE_EXPR]: Add it to the set.
(cxx_eval_outermost_constant_expr, is_sub_constant_expr): Initialize.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233981 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70062
jakub [Fri, 4 Mar 2016 20:28:27 +0000 (20:28 +0000)]
PR target/70062
* config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
2016-02-22 changes, instead don't recurse if RECUR is already true.
Don't change *dynamic_check if RECUR.  Adjust recursive caller
to pass true to the new argument.
(ix86_expand_set_or_movmem): Adjust decide_alg caller.

* gcc.target/i386/pr70062.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233979 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoRemove c++98_only on g++.dg/template/typename21.C
hjl [Fri, 4 Mar 2016 19:51:53 +0000 (19:51 +0000)]
Remove c++98_only on g++.dg/template/typename21.C

* g++.dg/template/typename21.C: Remove c++98_only.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233977 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoReplace c++98 with c++98_only
hjl [Fri, 4 Mar 2016 19:41:35 +0000 (19:41 +0000)]
Replace c++98 with c++98_only

* g++.dg/template/typename21.C: Replace c++98 with c++98_only.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233975 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70067
jason [Fri, 4 Mar 2016 16:07:20 +0000 (16:07 +0000)]
PR c++/70067

* tree.c (strip_typedefs): Handle TYPENAME_TYPE lookup finding the
same type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233973 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR c/68187: fix overzealous -Wmisleading-indentation (comment #1)
dmalcolm [Fri, 4 Mar 2016 15:50:27 +0000 (15:50 +0000)]
PR c/68187: fix overzealous -Wmisleading-indentation (comment #1)

gcc/c-family/ChangeLog:
PR c/68187
* c-indentation.c (get_visual_column): Move code to determine next
tab stop to...
(next_tab_stop): ...this new function.
(line_contains_hash_if): Delete function.
(detect_preprocessor_logic): Delete function.
(get_first_nws_vis_column): New function.
(detect_intervening_unindent): New function.
(should_warn_for_misleading_indentation): Replace call to
detect_preprocessor_logic with a call to
detect_intervening_unindent.

gcc/testsuite/ChangeLog:
PR c/68187
* c-c++-common/Wmisleading-indentation.c (fn_42_a): New test
function.
(fn_42_b): Likewise.
(fn_42_c): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233972 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR c/68187: fix overzealous -Wmisleading-indentation (comment #0)
dmalcolm [Fri, 4 Mar 2016 15:45:19 +0000 (15:45 +0000)]
PR c/68187: fix overzealous -Wmisleading-indentation (comment #0)

gcc/c-family/ChangeLog:
PR c/68187
* c-indentation.c (should_warn_for_misleading_indentation): When
suppressing warnings about cases where the guard and body are on
the same column, only use the first non-whitespace column in place
of the guard token column when dealing with "else" clauses.
When rejecting aligned BODY and NEXT, loosen the requirement
from equality with the first non-whitespace of guard to simply
that they not be indented relative to it.

gcc/testsuite/ChangeLog:
PR c/68187
* c-c++-common/Wmisleading-indentation.c (fn_40_a): New test
function.
(fn_40_b): Likewise.
(fn_41_a): Likewise.
(fn_41_b): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233971 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70059
jakub [Fri, 4 Mar 2016 14:45:56 +0000 (14:45 +0000)]
PR target/70059
* config/i386/sse.md (vec_set_lo_<mode><mask_name>,
<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
fixes.
(vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.

* gcc.target/i386/avx512f-pr70059.c: New test.
* gcc.target/i386/avx512dq-pr70059.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233968 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAvoid terminating early in LRA, unless -fchecking (PR57676)
bernds [Fri, 4 Mar 2016 14:12:36 +0000 (14:12 +0000)]
Avoid terminating early in LRA, unless -fchecking (PR57676)

gcc/
PR rtl-optimization/57676
* lra-assigns.c (lra_assign): Guard test for maximum iterations
with flag_checking.

gcc/testsuite/
PR rtl-optimization/57676
* gcc.dg/torture/pr57676.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233967 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/
ienkovich [Fri, 4 Mar 2016 13:49:54 +0000 (13:49 +0000)]
gcc/

* tree-vect-patterns.c (search_type_for_mask): Handle
comparison of booleans.

gcc/testsuite/

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233966 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c/69798
mpolacek [Fri, 4 Mar 2016 13:26:25 +0000 (13:26 +0000)]
PR c/69798
* c-parser.c (c_parser_postfix_expression): Call
c_parser_cast_expression rather than c_parser_postfix_expression.

* gcc.dg/cilk-plus/pr69798-1.c: New test.
* gcc.dg/cilk-plus/pr69798-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233965 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[AArch64][testsuite] PR target/70004: Remove check using undefined behaviour
ktkachov [Fri, 4 Mar 2016 11:09:11 +0000 (11:09 +0000)]
[AArch64][testsuite] PR target/70004: Remove check using undefined behaviour

PR target/70004
* gcc.target/aarch64/scalar_shift_1.c: (test_corners_sisd_di):
Delete.
(test_corners_sisd_si): Likewise.
(main): Remove checks of the above.
* gcc.target/aarch64/shift_wide_invalid_1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233964 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * gcc.dg/Wno-frame-address.c: Skip on IA-64.
ebotcazou [Fri, 4 Mar 2016 08:46:33 +0000 (08:46 +0000)]
* gcc.dg/Wno-frame-address.c: Skip on IA-64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233963 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-04 Christophe Lyon <christophe.lyon@linaro.org>
clyon [Fri, 4 Mar 2016 08:43:27 +0000 (08:43 +0000)]
2016-03-04  Christophe Lyon  <christophe.lyon@linaro.org>

* gcc.dg/torture/pr69951.c: Accept argc==0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233962 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-04 Richard Biener <rguenther@suse.de>
rguenth [Fri, 4 Mar 2016 08:31:19 +0000 (08:31 +0000)]
2016-03-04  Richard Biener  <rguenther@suse.de>

PR c++/70054
* c-common.c (strict_aliasing_warning): Use alias_set_subset_of
instead of alias_sets_conflict_p.

* g++.dg/warn/Wstrict-aliasing-bogus-union-2.C: New testcase.
* gcc.dg/Wstrict-aliasing-struct-member.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233961 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
jakub [Fri, 4 Mar 2016 07:39:21 +0000 (07:39 +0000)]
* doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
Fix @xref usage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233960 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoS/390: Set GOARCH to the current target when testing multiarch.
krebbel [Fri, 4 Mar 2016 07:33:16 +0000 (07:33 +0000)]
S/390: Set GOARCH to the current target when testing multiarch.

The attached patch fixes a test failure of go.test/test/env.go on
s390x biarch.  Bootstrapped and regression tested on s390x biarch
and s390.

gcc/testsuite/ChangeLog

2016-03-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>

PR testsuite/69766
* go.test/go-test.exp: S/390: Set GOARCH to the current target when
testing multiarch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233959 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR debug/69947
jakub [Fri, 4 Mar 2016 07:27:15 +0000 (07:27 +0000)]
PR debug/69947
* dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
all other ops that have dw_val_class_die_ref operands,
and DW_OP_GNU_entry_value.

* gcc.dg/guality/pr69947.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233958 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * method.c (synthesized_method_walk): operator= can also be constexpr.
jason [Fri, 4 Mar 2016 01:48:33 +0000 (01:48 +0000)]
* method.c (synthesized_method_walk): operator= can also be constexpr.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233956 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Get
jason [Fri, 4 Mar 2016 01:45:48 +0000 (01:45 +0000)]
* pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Get
LAMBDA_EXPR_RETURN_TYPE from the instantiated closure.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233955 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/67164
jason [Fri, 4 Mar 2016 01:45:43 +0000 (01:45 +0000)]
PR c++/67164

* pt.c (copy_template_args): New.
(tsubst_pack_expansion): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233954 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 4 Mar 2016 00:16:16 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233953 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * call.c (build_aggr_conv): Use get_nsdmi.
jason [Thu, 3 Mar 2016 22:43:14 +0000 (22:43 +0000)]
* call.c (build_aggr_conv): Use get_nsdmi.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233947 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/51406
jason [Thu, 3 Mar 2016 22:43:09 +0000 (22:43 +0000)]
PR c++/51406

* typeck.c (build_static_cast_1): Avoid folding back to lvalue.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233946 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/67364
jason [Thu, 3 Mar 2016 22:43:03 +0000 (22:43 +0000)]
PR c++/67364

* constexpr.c (cxx_eval_component_reference): Just return an empty
CONSTRUCTOR for an empty class.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233945 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR ada/70017
jakub [Thu, 3 Mar 2016 20:52:40 +0000 (20:52 +0000)]
PR ada/70017
* gcc.dg/pr70017.c (foo): Store 0 to first element of each array.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233944 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[ARM] PR rtl-optimization/69904: Disallow copying/duplicating of load-exclusive opera...
ktkachov [Thu, 3 Mar 2016 17:25:43 +0000 (17:25 +0000)]
[ARM] PR rtl-optimization/69904: Disallow copying/duplicating of load-exclusive operations

PR rtl-optimization/69904
* config/arm/arm.c (arm_cannot_copy_insn_p):
Return true for load-exclusive instructions.

* gcc.target/arm/pr69904.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233941 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70021
jakub [Thu, 3 Mar 2016 14:32:15 +0000 (14:32 +0000)]
PR target/70021
* tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
the pattern no matter if it is used just by non-pattern, pattern
or mix thereof.
(process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
* tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
oprnd1 def_stmt is in pattern, don't look through it.

* gcc.dg/vect/pr70021.c: New test.
* gcc.target/i386/pr70021.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233940 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix passing object names to make_sunver.pl
ro [Thu, 3 Mar 2016 13:40:30 +0000 (13:40 +0000)]
Fix passing object names to make_sunver.pl

* Makefile.am (libffi.map-sun): Properly convert
$(libffi_la_OBJECTS) to object names.
* Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233938 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR middle-end/70050
mpolacek [Thu, 3 Mar 2016 11:42:19 +0000 (11:42 +0000)]
PR middle-end/70050
* match.pd (X % -Y): Add INTEGRAL_TYPE_P check.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233937 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoTabify libffi/Makefile.am
ro [Thu, 3 Mar 2016 10:30:25 +0000 (10:30 +0000)]
Tabify libffi/Makefile.am

* Makefile.am (libffi.map-sun): Tabify:
* Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233936 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[Patch testsuite] Change xfail conditions for bb-slp-34.c
jgreenhalgh [Thu, 3 Mar 2016 10:18:05 +0000 (10:18 +0000)]
[Patch testsuite] Change xfail conditions for bb-slp-34.c

gcc/testsuite/

* gcc.dg/vect/bb-slp-34.c: Don't XFAIL for ARM/AArch64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233935 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoSkip properly debug stmt in optimize_mask_stores (PR
marxin [Thu, 3 Mar 2016 10:08:09 +0000 (10:08 +0000)]
Skip properly debug stmt in optimize_mask_stores (PR

PR tree-optimization/70043
* tree-vect-loop.c (optimize_mask_stores): Move iterator to
previous statement if we see a debug statement.
* gfortran.dg/vect/pr70043.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233934 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * gnat.dg/specs/task1.ads: New test.
ebotcazou [Thu, 3 Mar 2016 09:56:30 +0000 (09:56 +0000)]
* gnat.dg/specs/task1.ads: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233932 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoInvoke gdb with -batch to avoid prompts
ro [Thu, 3 Mar 2016 09:46:03 +0000 (09:46 +0000)]
Invoke gdb with -batch to avoid prompts

* lib/gcc-gdb-test.exp (gdb-test): Make log message match command.
Invoke gdb with -batch.
* lib/gcc-simulate-thread.exp (simulate-thread): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233930 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agolibitm: Introduce target macro TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
krebbel [Thu, 3 Mar 2016 09:31:57 +0000 (09:31 +0000)]
libitm: Introduce target macro TARGET_BEGIN_TRANSACTION_ATTRIBUTE.

The attached patch adds the a target specific attribute via the
new target macro TARGET_BEGIN_TRANSACTION_ATTRIBUTE to the
function begin_transaction().  S/390 uses this to set the
soft-float target attribute which is needed to fix a crash with
-m31.

As there seems to be no place in libitm to document internal macros like
USE_HTM_FASTPATH or the new macro, I've put the documentation in a
comment where the macro is used.

2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
function attribute to disable floating point in begin_transaction() on
S/390.
* beginend.cc (begin_transaction): Use
TARGET_BEGIN_TRANSACTION_ATTRIBUTE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233929 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-03 Richard Biener <rguenther@suse.de>
rguenth [Thu, 3 Mar 2016 09:12:53 +0000 (09:12 +0000)]
2016-03-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/55936
* tree-vrp.c (compare_name_with_value): Add use_equiv_p
parameter and guard unsafe equivalence use.
(vrp_evaluate_conditional_warnv_with_ops): Always use
safe equivalences but not via the quadratic compare_names
helper.

* gcc.dg/tree-ssa/vrp06.c: Remove XFAIL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233928 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-03 Michael Collison <michael.collison@linaro.org>
collison [Thu, 3 Mar 2016 07:42:02 +0000 (07:42 +0000)]
2016-03-03  Michael Collison  <michael.collison@linaro.org>

PR target/70014
* config/arm/arm.md (*subsi3_carryin_const): Change predicate
for operand 1 to s_register_operand. Change predicate for operand
2 to arm_not_immediate_operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233927 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR libffi/70024
rth [Thu, 3 Mar 2016 01:40:29 +0000 (01:40 +0000)]
PR libffi/70024

  * Makefile.am (libffi_version_script): Look in cwd for libffi.map.
  (libffi_version_dep, libffi.map-sun): Likewise.
  (libffi.map): New target.
  * libffi.map.in: Rename from libffi.map.  Add required defines,
  includes, and conditionals.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233926 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 3 Mar 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233925 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR rtl-optimization/69942
law [Thu, 3 Mar 2016 00:11:03 +0000 (00:11 +0000)]
PR rtl-optimization/69942
* gcc.dg/ifcvt-5.c: Use "word_mode" rather than "int" to limit the
effects of argument promotions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233922 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR libffi/70024
rth [Wed, 2 Mar 2016 23:28:11 +0000 (23:28 +0000)]
PR libffi/70024

  * Makefile.am (libffi_version_script): New.
  (libffi_version_dep): New.
  (libffi_version_info): New.
  (libffi_la_LDFLAGS): Include libffi_version_info, libffi_version_script.
  (libffi_la_DEPENDENCIES): Include libffi_version_dep.
  * acinclude.m4 (LIBAT_ENABLE, LIBAT_CHECK_LINKER_FEATURES): New.
  (LIBAT_ENABLE_SYMVERS, LIBAT_BUILD_VERSIONED_SHLIB): New.
  (LIBAT_BUILD_VERSIONED_SHLIB_GNU): New.
  (LIBAT_BUILD_VERSIONED_SHLIB_SUN): New.
  * configure.ac: Invoke LIBAT_ENABLE_SYMVERS.
  * libffi.map: New file.
  * libtool-version: Increase to 5.0.0.
  * Makefile.in, configure: Rebuild.
  * man/Makefile.in, testsuite/Makefile.in: Rebuild.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233921 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix recent ChangeLog entry
law [Wed, 2 Mar 2016 21:56:25 +0000 (21:56 +0000)]
Fix recent ChangeLog entry

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233918 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoRegenerate doc/tm.texi
hjl [Wed, 2 Mar 2016 21:46:55 +0000 (21:46 +0000)]
Regenerate doc/tm.texi

* doc/tm.texi: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233917 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR rtl-opt/67145
rth [Wed, 2 Mar 2016 21:09:54 +0000 (21:09 +0000)]
PR rtl-opt/67145

  * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
  simplification when all args are positive non-fixed registers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233916 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoMinor ChangeLog formatting fixes.
jakub [Wed, 2 Mar 2016 20:30:48 +0000 (20:30 +0000)]
Minor ChangeLog formatting fixes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233915 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
manu [Wed, 2 Mar 2016 20:17:15 +0000 (20:17 +0000)]
2016-03-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>

       * target.def(lra_p): Specify that new ports should use LRA.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233914 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR libgomp/69555
jakub [Wed, 2 Mar 2016 19:16:14 +0000 (19:16 +0000)]
PR libgomp/69555
* gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
gimplify_type_sizes the type they refer to.
(omp_notice_variable): Handle reference vars to VLAs.
* omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE reference
to VLA decls in the second pass instead of first pass.

* testsuite/libgomp.c++/pr69555-1.C: New test.
* testsuite/libgomp.c++/pr69555-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233913 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/69987
law [Wed, 2 Mar 2016 18:45:26 +0000 (18:45 +0000)]
PR tree-optimization/69987
* gfortran.dg/pr69987.f90: Use "-w" to avoid failures when the
target does not support -fprefetch-loop-arrays.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233912 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agolibbacktrace/
chefmax [Wed, 2 Mar 2016 16:32:55 +0000 (16:32 +0000)]
libbacktrace/

2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>

* elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
avoid possible crash.
(elf_add): Don't set *fileline_fn to elf_nodebug value in case of
missing debug info anymore.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233911 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * gcc.target/i386/bmi2-bzhi-2.c: Change to runtime test.
uros [Wed, 2 Mar 2016 15:38:21 +0000 (15:38 +0000)]
* gcc.target/i386/bmi2-bzhi-2.c: Change to runtime test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233910 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoHandle addr_expr and component_ref in graphite-ast-to-ast
vries [Wed, 2 Mar 2016 15:10:34 +0000 (15:10 +0000)]
Handle addr_expr and component_ref in graphite-ast-to-ast

2016-03-02  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/68659
* graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
new_expr == NULL_TREE.
(get_new_name): Handle ADDR_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233909 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago Correct ChangeLog for revision 233907.
amker [Wed, 2 Mar 2016 14:16:00 +0000 (14:16 +0000)]
Correct ChangeLog for revision 233907.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233908 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/69052
amker [Wed, 2 Mar 2016 14:10:56 +0000 (14:10 +0000)]
PR tree-optimization/69052
* loop-invariant.c (canonicalize_address): New function.
(inv_can_prop_to_addr_use): Check validity of address expression
which is canonicalized by above function.

gcc/testsuite/ChangeLog
PR tree-optimization/69052
* gcc.target/i386/pr69052.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233907 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agodecl alignment not respected
amodra [Wed, 2 Mar 2016 14:05:21 +0000 (14:05 +0000)]
decl alignment not respected

This patch cures a problem with ICF of read-only variables at the
intersection of -fsection-anchors, -ftree-loop-vectorize, and targets
with alignment restrictions.

What happens with the testcase is:
- "c" is referenced in a constructor, thus make_decl_rtl for "c",
- make_decl_rtl puts "c" in an anchor block (-fsection-anchors),
- anchor block contents can't move, so "c" alignment can't change by
  ipa_increase_alignment (-ftree-loop-vectorize),
- however "a" alignment can be increased,
- ICF aliases "a" to "c".
So we have a decl for "a" saying it is aligned to 128 bits, using mem
for "c" which is only 16 bit aligned.

PR ipa/69990
gcc/
* ipa-icf.c (sem_variable::merge): Do not merge an alias with
larger alignment.
gcc/testsuite/
gcc.dg/pr69990.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233906 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c/68062
jakub [Wed, 2 Mar 2016 13:11:21 +0000 (13:11 +0000)]
PR c/68062
* c-c++-common/vector-compare-4.c: Add -Wno-psabi to dg-options.

PR middle-end/70022
* gcc.dg/pr70022.c: Add -w -Wno-psabi to dg-options.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233905 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70028
jakub [Wed, 2 Mar 2016 13:10:36 +0000 (13:10 +0000)]
PR target/70028
* config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
(*movhi_internal): Put mask moves from and to memory separately
from moves from/to GPRs.

* gcc.target/i386/pr70028.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233904 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-02 Richard Biener <rguenther@suse.de>
rguenth [Wed, 2 Mar 2016 12:44:15 +0000 (12:44 +0000)]
2016-03-02  Richard Biener  <rguenther@suse.de>

* genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
GENERIC expressions in GIMPLE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233902 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-02 Richard Biener <rguenther@suse.de>
rguenth [Wed, 2 Mar 2016 10:04:43 +0000 (10:04 +0000)]
2016-03-02  Richard Biener  <rguenther@suse.de>

* config/i386/i386.c (type_natural_mode): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233901 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
nickc [Wed, 2 Mar 2016 09:53:05 +0000 (09:53 +0000)]
* config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233900 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPrint markers to stderr to avoid races with sanitizer output
mkuvyrkov [Wed, 2 Mar 2016 09:38:09 +0000 (09:38 +0000)]
Print markers to stderr to avoid races with sanitizer output

* c-c++-common/asan/swapcontext-test-1.c,
* c-c++-common/tsan/thread_leak.c,
* g++.dg/tsan/aligned_vs_unaligned_race.C,
* g++.dg/tsan/benign_race.C,
* g++.dg/tsan/fd_close_norace.C,
* g++.dg/tsan/fd_close_norace2.C: Print markers to stderr to avoid
races with sanitizer output

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233899 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-02 Richard Biener <rguenther@suse.de>
rguenth [Wed, 2 Mar 2016 08:55:42 +0000 (08:55 +0000)]
2016-03-02  Richard Biener  <rguenther@suse.de>
Uros Bizjak  <ubizjak@gmail.com>

PR target/67278
* config/i386/i386.c (type_natural_mode): Handle XFmode vectors.

* gcc.dg/simd-8.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233898 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-02 Richard Biener <rguenther@suse.de>
rguenth [Wed, 2 Mar 2016 08:16:16 +0000 (08:16 +0000)]
2016-03-02  Richard Biener  <rguenther@suse.de>

PR middle-end/67278
* tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.

* gcc.dg/simd-7.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233897 138bc75d-0d04-0410-961f-82ee72b054a4