]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
9 years agoDaily bump.
GCC Administrator [Sun, 21 Feb 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233590

9 years agoDaily bump.
GCC Administrator [Sat, 20 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233576

9 years agoDaily bump.
GCC Administrator [Fri, 19 Feb 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233541

9 years agobackport: re PR fortran/69668 (Error reading namelist opened with DELIM='NONE')
Jerry DeLisle [Thu, 18 Feb 2016 18:23:09 +0000 (18:23 +0000)] 
backport: re PR fortran/69668 (Error reading namelist opened with DELIM='NONE')

2016-02-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from gcc-5-branch.
PR libgfortran/69668
* io/list_read.c (read_character): Remove code related to DELIM_NONE.
* gfortran.dg/namelist_38.f90: Update test.
* gfortran.dg/namelist_84.f90: Update test.

From-SVN: r233528

9 years ago* gcc.dg/pr69522.c: Add empty dg-options.
Marek Polacek [Thu, 18 Feb 2016 11:25:24 +0000 (11:25 +0000)] 
* gcc.dg/pr69522.c: Add empty dg-options.

From-SVN: r233517

9 years agoDaily bump.
GCC Administrator [Thu, 18 Feb 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233509

9 years agobackport: altivec.md (*altivec_lvxl_<mode>_internal): Output correct instruction.
Bill Schmidt [Wed, 17 Feb 2016 17:55:33 +0000 (17:55 +0000)] 
backport: altivec.md (*altivec_lvxl_<mode>_internal): Output correct instruction.

[gcc]

2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
correct instruction.

[gcc/testsuite]

2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2012-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/vec-cg.c: New test.

From-SVN: r233504

9 years agoBackport PR69522 use-after-free fix.
Bernd Schmidt [Wed, 17 Feb 2016 13:13:08 +0000 (13:13 +0000)] 
Backport PR69522 use-after-free fix.

c/
PR c/69522
* c-parser.c (c_parser_braced_init): New arg outer_obstack.  All
callers changed.  If nested_p is true, use it to call
finish_implicit_inits.
* c-tree.h (finish_implicit_inits): Declare.
* c-typeck.c (finish_implicit_inits): New function.  Move code
from ...
(push_init_level): ... here.
(set_designator, process_init_element): Call finish_implicit_inits.

testsuite/
PR c/69522
gcc.dg/pr69522.c: New test.

From-SVN: r233493

9 years agoBackport PR69752 fix from mainline.
Bernd Schmidt [Wed, 17 Feb 2016 13:03:44 +0000 (13:03 +0000)] 
Backport PR69752 fix from mainline.

PR rtl-optimization/69752
* ira.c (update_equiv_regs): When looking for more than a single SET,
also take other side effects into account.

From-SVN: r233491

9 years agoDaily bump.
GCC Administrator [Wed, 17 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233478

9 years agobackport "Don't call call_cgraph_insertion_hooks in simd_clone_create"
Tom de Vries [Tue, 16 Feb 2016 16:22:28 +0000 (16:22 +0000)] 
backport "Don't call call_cgraph_insertion_hooks in simd_clone_create"

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

backport from trunk:
2016-02-16  Tom de Vries  <tom@codesourcery.com>

PR lto/67709
* omp-low.c (simd_clone_create): Remove call to
symtab->call_cgraph_insertion_hooks.

* testsuite/libgomp.fortran/declare-simd-4.f90: New test.

From-SVN: r233465

9 years agobackport "Fix ICE for SIMD clones usage in LTO"
Tom de Vries [Tue, 16 Feb 2016 16:22:18 +0000 (16:22 +0000)] 
backport "Fix ICE for SIMD clones usage in LTO"

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

backport from trunk:
2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>

* omp-low.c (simd_clone_create): Set in_other_partition
for created clones.

* gcc.dg/lto/simd-function_0.c: New test.

From-SVN: r233464

9 years agoDaily bump.
GCC Administrator [Tue, 16 Feb 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233439

9 years agoDaily bump.
GCC Administrator [Mon, 15 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233415

9 years agoDaily bump.
GCC Administrator [Sun, 14 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233403

9 years agobackport: re PR target/67260 ([sh] Register spill bug for sibcall+complex+softfloat)
Oleg Endo [Sat, 13 Feb 2016 08:48:50 +0000 (08:48 +0000)] 
backport: re PR target/67260 ([sh] Register spill bug for sibcall+complex+softfloat)

gcc/
Backport from mainline
2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/67260
* config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
fixed R1_REG scratch reg.

gcc/testsuite/
Backport from mainline
2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/67260
* gcc.target/sh/torture/pr67260.c: New.

From-SVN: r233402

9 years agoDaily bump.
GCC Administrator [Sat, 13 Feb 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233394

9 years agobackport: [multiple changes]
Richard Biener [Fri, 12 Feb 2016 14:04:29 +0000 (14:04 +0000)] 
backport: [multiple changes]

2016-02-12  Richard Biener  <rguenther@suse.de>

Backport from mainline
2016-02-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69715
* tree-ssa.c (execute_update_addresses_taken): Mark non-decl
LHS on calls as non-rewritable.

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

2016-02-01  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69579
* tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
Do not propagate through abnormal PHI results.

* gcc.dg/setjmp-6.c: New testcase.

2016-02-01  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69574
* tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
of asserting return chrec_dont_know.

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

From-SVN: r233378

9 years agoDaily bump.
GCC Administrator [Fri, 12 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233359

9 years agore PR tree-optimization/69308 (ifcombine joins together floating point expression...
Richard Biener [Thu, 11 Feb 2016 13:49:59 +0000 (13:49 +0000)] 
re PR tree-optimization/69308 (ifcombine joins together floating point expression with side effects)

2016-01-18  Richard Biener  <rguenther@suse.de>

PR middle-end/69308
* gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.

From-SVN: r233345

9 years agoBackport PRs 62217, 66375, 66413, 66794, 66823
Richard Biener [Thu, 11 Feb 2016 13:40:31 +0000 (13:40 +0000)] 
Backport PRs 62217, 66375, 66413, 66794, 66823

2016-02-11  Richard Biener  <rguenther@suse.de>

Backport from mainline
2015-02-18  Richard Biener  <rguenther@suse.de>

PR tree-optimization/62217
* tree-ssa-dom.c (cprop_operand): Avoid propagating copies
into BIVs.

* gcc.dg/tree-ssa/cunroll-11.c: New testcase.

2015-06-18  Richard Biener  <rguenther@suse.de>

Backport from mainline
2015-06-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66375
* tree-scalar-evolution.c (follow_ssa_edge_binary): First
add to the evolution before following SSA edges.

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

2015-06-23  Richard Biener  <rguenther@suse.de>

Backport from mainline
2015-06-09  Richard Biener  <rguenther@suse.de>

PR middle-end/66413
* tree-inline.c (insert_init_debug_bind): Unshare value.

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

2015-07-08  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66794
* gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
Free post-dominators.

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

2015-07-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66823
* tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
inverted predicate.

From-SVN: r233344

9 years agobackport: re PR c++/59627 (ICE with OpenMP "declare reduction" and -flto)
Jakub Jelinek [Thu, 11 Feb 2016 09:28:23 +0000 (10:28 +0100)] 
backport: re PR c++/59627 (ICE with OpenMP "declare reduction" and -flto)

Backported from mainline
2016-02-08  Jakub Jelinek  <jakub@redhat.com>

PR c++/59627
* parser.c (cp_parser_omp_declare_reduction): Set assembler name
of the DECL_OMP_DECLARE_REDUCTION_P decls.

* g++.dg/gomp/pr59627.C: New test.

From-SVN: r233336

9 years agobackport: re PR pch/68176 (all pch tests fail on eglibc systems (with bits/predefs.h))
Jakub Jelinek [Thu, 11 Feb 2016 09:27:07 +0000 (10:27 +0100)] 
backport: re PR pch/68176 (all pch tests fail on eglibc systems (with bits/predefs.h))

Backported from mainline
2016-01-28  Jakub Jelinek  <jakub@redhat.com>

PR pch/68176
* files.c (_cpp_find_file): Set file->implicit_preinclude even if
included from file->implicit_preinclude header.

From-SVN: r233335

9 years agobackport: re PR other/69432 (ICE in connect_traces, at dwarf2cfi.c with -O3 -m32...
Jakub Jelinek [Thu, 11 Feb 2016 09:26:31 +0000 (10:26 +0100)] 
backport: re PR other/69432 (ICE in connect_traces, at dwarf2cfi.c with -O3 -m32 -minline-stringops-dynamically)

Backported from mainline
2016-01-22  Jakub Jelinek  <jakub@redhat.com>

PR target/69432
* config/i386/i386.c (expand_small_movmem_or_setmem,
expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
fixes.
(ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
if dynamic_check != -1.

* g++.dg/opt/pr69432.C: New test.

From-SVN: r233334

9 years agobackport: re PR middle-end/67653 (ICE on valid code on x86_64-linux-gnu: verify_gimpl...
Jakub Jelinek [Thu, 11 Feb 2016 09:23:58 +0000 (10:23 +0100)] 
backport: re PR middle-end/67653 (ICE on valid code on x86_64-linux-gnu: verify_gimple failed)

Backported from mainline
2016-01-21  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/67653
* gimplify.c (gimplify_asm_expr): Warn if it is too late to
attempt to mark memory input operand addressable and
call prepare_gimple_addressable in that case.  Don't adjust
input_location for diagnostics, use error_at instead.

* c-c++-common/pr67653.c: New test.
* gcc.dg/torture/pr29119.c: Add dg-warning.

From-SVN: r233332

9 years agobackport: re PR rtl-optimization/68955 (wrong code at -O3 on x86-64-linux-gnu in...
Jakub Jelinek [Thu, 11 Feb 2016 09:23:06 +0000 (10:23 +0100)] 
backport: re PR rtl-optimization/68955 (wrong code at -O3 on x86-64-linux-gnu in 32-bit mode)

Backported from mainline
2016-01-19  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/68955
PR rtl-optimization/64557
* dse.c (record_store, check_mem_read_rtx): Don't call get_addr
here.  Fix up formatting.
* alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.

* gcc.dg/torture/pr68955.c: New test.

From-SVN: r233331

9 years agobackport: re PR tree-optimization/69214 (ICE (segfault) at -Os on x86_64-linux-gnu...
Jakub Jelinek [Thu, 11 Feb 2016 09:22:21 +0000 (10:22 +0100)] 
backport: re PR tree-optimization/69214 (ICE (segfault) at -Os on x86_64-linux-gnu in "fail_abnormal_edge_coalesce")

Backported from mainline
2016-01-11  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/69214
* tree-vrp.c (simplify_cond_using_ranges): Don't propagate
innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
Formatting fix.

* gcc.c-torture/compile/pr69214.c: New test.

From-SVN: r233330

9 years agobackport: re PR target/69713 (Invalid code of optimization in SH)
Oleg Endo [Thu, 11 Feb 2016 09:15:26 +0000 (09:15 +0000)] 
backport: re PR target/69713 (Invalid code of optimization in SH)

gcc/
Backport from mainline
2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/69713
* config/sh/sh.md (casesi_worker_0): Add T_REG use.

From-SVN: r233329

9 years agobackport: re PR fortran/69128 (OpenMP workshare problem with SUM())
Jakub Jelinek [Thu, 11 Feb 2016 09:14:43 +0000 (10:14 +0100)] 
backport: re PR fortran/69128 (OpenMP workshare problem with SUM())

Backported from mainline
2016-01-08  Jakub Jelinek  <jakub@redhat.com>

PR fortran/69128
* trans.h (OMPWS_SCALARIZER_BODY): Define.
(OMPWS_NOWAIT): Renumber.
* trans-stmt.c (gfc_trans_where_3): Only set OMPWS_SCALARIZER_WS
if OMPWS_SCALARIZER_BODY is not set already, and set also
OMPWS_SCALARIZER_BODY until the final loop creation.
* trans-expr.c (gfc_trans_assignment_1): Likewise.
* trans-openmp.c (gfc_trans_omp_workshare): Also clear
OMPWS_SCALARIZER_BODY.
* trans-array.c (gfc_trans_scalarized_loop_end): Don't create
OMP_FOR if OMPWS_SCALARIZER_BODY is set.

* gfortran.dg/gomp/pr69128.f90: New test.

From-SVN: r233328

9 years agobackport: re PR c/68960 (__attribute__ ((aligned ())) is ignored for OpenMP private...
Jakub Jelinek [Thu, 11 Feb 2016 09:13:42 +0000 (10:13 +0100)] 
backport: re PR c/68960 (__attribute__ ((aligned ())) is ignored for OpenMP private variables)

Backported from mainline
2016-01-07  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/68960
* gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
it and DECL_ALIGN too.

* testsuite/libgomp.c/pr68960.c: New test.

From-SVN: r233327

9 years agobackport: re PR target/69015 (ICE: RTL check: expected code 'code_label', have 'retur...
Jakub Jelinek [Thu, 11 Feb 2016 09:12:52 +0000 (10:12 +0100)] 
backport: re PR target/69015 (ICE: RTL check: expected code 'code_label', have 'return' in find_cond_trap, at ifcvt.c:3715 with -fno-if-conversion and __builtin_trap())

Backported from mainline
2016-01-01  Jakub Jelinek  <jakub@redhat.com>

PR target/69015
* ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).

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

From-SVN: r233325

9 years agobackport: re PR rtl-optimization/68376 (wrong code at -O1 and above on x86_64-linux...
Jakub Jelinek [Thu, 11 Feb 2016 09:11:58 +0000 (10:11 +0100)] 
backport: re PR rtl-optimization/68376 (wrong code at -O1 and above on x86_64-linux-gnu)

Backported from mainline
2015-12-10  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/68376
PR rtl-optimization/68670
* ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
or > -1 conditions regardless of negate, and disallow
all other conditions.

* gcc.c-torture/execute/pr68376-2.c (f5, f6, f7, f8): New
tests.
(main): Call them.
* gcc.dg/pr68670-1.c: New test.
* gcc.dg/pr68670-2.c: New test.

2015-11-19  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/68376
* ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.

* gcc.c-torture/execute/pr68376-1.c: New test.
* gcc.c-torture/execute/pr68376-2.c: New test.

From-SVN: r233323

9 years agobackport: re PR tree-optimization/68680 (On-stack VLA does not cause instrumentation...
Jakub Jelinek [Thu, 11 Feb 2016 09:09:58 +0000 (10:09 +0100)] 
backport: re PR tree-optimization/68680 (On-stack VLA does not cause instrumentation with -fstack-protector)

Backported from mainline
2015-12-04  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/68680
* calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
BUILT_IN_ALLOCA{,_WITH_ALIGN}.  Don't check for __builtin_alloca
by name.

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

From-SVN: r233322

9 years agobackport: re PR preprocessor/57580 (Repeated _Pragma message directives in macro...
Jakub Jelinek [Thu, 11 Feb 2016 09:09:00 +0000 (10:09 +0100)] 
backport: re PR preprocessor/57580 (Repeated _Pragma message directives in macro causes problems)

Backported from mainline
2015-12-03  Jakub Jelinek  <jakub@redhat.com>

PR preprocessor/57580
* c-ppoutput.c (print): Change printed field to bool.
(init_pp_output): Set print.printed to false instead of 0.
(scan_translation_unit): Fix up formatting.  Set print.printed
to true after printing something other than newline.
(scan_translation_unit_trad): Set print.printed to true instead of 1.
(maybe_print_line_1): Set print.printed to false instead of 0.
(print_line_1): Likewise.
(do_line_change): Set print.printed to true instead of 1.
(cb_define, dump_queued_macros, cb_include, cb_def_pragma,
dump_macro): Set print.printed to false after printing newline.

* c-c++-common/cpp/pr57580.c: New test.
* c-c++-common/gomp/pr57580.c: New test.

From-SVN: r233321

9 years agobackport: re PR debug/66432 (libgomp.c/appendix-a/a.29.1.c -O2 -g: type mismatch...
Jakub Jelinek [Thu, 11 Feb 2016 09:08:03 +0000 (10:08 +0100)] 
backport: re PR debug/66432 (libgomp.c/appendix-a/a.29.1.c -O2 -g: type mismatch between an SSA_NAME and its symbol)

Backported from mainline
2015-11-21  Jakub Jelinek  <jakub@redhat.com>

PR debug/66432
* tree-inline.c (copy_debug_stmt): If
gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
in decl_debug_args, don't call remap_gimple_op_r on it.

* gcc.dg/debug/pr66432.c: New test.

From-SVN: r233320

9 years agobackport: re PR target/67770 (i386: -fshrink-wrap can interact badly with trampolines)
Jakub Jelinek [Thu, 11 Feb 2016 09:04:19 +0000 (10:04 +0100)] 
backport: re PR target/67770 (i386: -fshrink-wrap can interact badly with trampolines)

Backported from mainline
2015-11-19  Jakub Jelinek  <jakub@redhat.com>

PR target/67770
* config/i386/i386.md (simple_return): Disable if
ix86_static_chain_on_stack is true.

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

From-SVN: r233319

9 years agobackport: re PR preprocessor/60736 (Crash in preprocessor including stdc-predef.h...
Jakub Jelinek [Thu, 11 Feb 2016 09:03:34 +0000 (10:03 +0100)] 
backport: re PR preprocessor/60736 (Crash in preprocessor including stdc-predef.h when it does not exist on glibc-based systems)

Backported from mainline
2015-11-19  Jakub Jelinek  <jakub@redhat.com>

PR preprocessor/60736
* include/cpplib.h (cpp_errno_filename): New prototype.
* errors.c (cpp_errno): Don't handle msgid "" specially, use
_(msgid) instead of msgid as argument to cpp_error.
(cpp_errno_filename): New function.
* files.c (read_file_guts): Use cpp_errno_filename instead of
cpp_errno.
(open_file_failed): Likewise.  Use file->name if file->path is NULL
in diagnostics.

From-SVN: r233318

9 years agoDaily bump.
GCC Administrator [Thu, 11 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233312

9 years agore PR c++/68926 (decltype and sfinae to check for template instance availability...
Jason Merrill [Wed, 10 Feb 2016 19:35:35 +0000 (14:35 -0500)] 
re PR c++/68926 (decltype and sfinae to check for template instance availability fails to compile)

PR c++/68926

* pt.c (resolve_nondeduced_context): Add complain parm.
(do_auto_deduction): Pass it.
* cvt.c (convert_to_void): Likewise.
* decl.c (cp_finish_decl): Likewise.
* init.c (build_new): Likewise.
* rtti.c (get_tinfo_decl_dynamic): Likewise.
* semantics.c (finish_decltype_type): Likewise.
* typeck.c (decay_conversion): Likewise.
* cp-tree.h: Adjust declaration.

From-SVN: r233305

9 years agoConstrain std::valarray functions and operators
Jonathan Wakely [Wed, 10 Feb 2016 11:25:33 +0000 (11:25 +0000)] 
Constrain std::valarray functions and operators

PR libstdc++/69116
* include/bits/valarray_before.h (__fun, __fun_with_valarray): Only
define result_type for types which can be safely used with valarrays.
* testsuite/26_numerics/valarray/69116.cc: New.

From-SVN: r233265

9 years agoDaily bump.
GCC Administrator [Wed, 10 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233257

9 years agoDaily bump.
GCC Administrator [Tue, 9 Feb 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233232

9 years agoDaily bump.
GCC Administrator [Mon, 8 Feb 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233204

9 years agoDaily bump.
GCC Administrator [Sun, 7 Feb 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233197

9 years agoDaily bump.
GCC Administrator [Sat, 6 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233192

9 years agoDaily bump.
GCC Administrator [Fri, 5 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233162

9 years agobackport: re PR target/69644 (ICE with -O on __sync_bool_compare_and_swap with short...
Jakub Jelinek [Thu, 4 Feb 2016 13:59:27 +0000 (14:59 +0100)] 
backport: re PR target/69644 (ICE with -O on __sync_bool_compare_and_swap with short in extract_insn, at recog.c:2286)

Backported from mainline
2016-02-03  Jakub Jelinek  <jakub@redhat.com>

PR target/69644
* config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
Force oldval into register if it does not satisfy reg_or_short_operand
predicate.  Fix up formatting.

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

From-SVN: r233139

9 years agoDaily bump.
GCC Administrator [Thu, 4 Feb 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233117

9 years agoDaily bump.
GCC Administrator [Wed, 3 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233094

9 years agore PR target/67032 (Geode optimizations incorrectly return -NaN)
Uros Bizjak [Tue, 2 Feb 2016 16:10:04 +0000 (17:10 +0100)] 
re PR target/67032 (Geode optimizations incorrectly return -NaN)

PR target/67032
* config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.

From-SVN: r233081

9 years ago[RS6000] lqarx and stqcx. registers
Alan Modra [Tue, 2 Feb 2016 01:29:58 +0000 (11:59 +1030)] 
[RS6000] lqarx and stqcx. registers

lqarx RT and stqcx. RS are valid only with even numbered gprs.  The
predicate to enforce this happens to allow a loophole, closed by this
patch.

PR target/69548
gcc/
* config/rs6000/predicates.md (quad_int_reg_operand): Don't
allow subregs.
gcc/testsuite/
* gcc.target/powerpc/pr69548.c: New test.

From-SVN: r233067

9 years agoDaily bump.
GCC Administrator [Tue, 2 Feb 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233062

9 years agore PR target/68741 (FAIL: tr1/8_c_compatibility/cstdio/functions.cc (test for excess...
John David Anglin [Mon, 1 Feb 2016 20:27:47 +0000 (20:27 +0000)] 
re PR target/68741 (FAIL: tr1/8_c_compatibility/cstdio/functions.cc (test for excess errors))

PR target/68741
* inclhack.def (hpux_vsscanf): New fix.
* fixincl.x: Regenerated.
* tests/base/stdio.h [HPUX_VSSCANF_CHECK]: New test.

From-SVN: r233049

9 years agoDaily bump.
GCC Administrator [Mon, 1 Feb 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233024

9 years agoDaily bump.
GCC Administrator [Sun, 31 Jan 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233013

9 years agoDaily bump.
GCC Administrator [Sat, 30 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233003

9 years ago[PR 69355] Correct hole detection when total_scalarization fails
Martin Jambor [Fri, 29 Jan 2016 23:01:54 +0000 (00:01 +0100)] 
[PR 69355] Correct hole detection when total_scalarization fails

2016-01-29  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/69355
* tree-sra.c (analyze_access_subtree): Correct hole detection when
total_scalarization fails.

testsuite/
* gcc.dg/tree-ssa/pr69355.c: New test.

From-SVN: r233001

9 years agobackport: re PR target/69551 (Wrong code with single element vector insert)
Uros Bizjak [Fri, 29 Jan 2016 19:52:30 +0000 (20:52 +0100)] 
backport: re PR target/69551 (Wrong code with single element vector insert)

Backport from mainline
2016-01-29  Jakub Jelinek  <jakub@redhat.com>

PR target/69551
* config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
SSE1, copy target into the temporary reg first before recursing
on it.

testsuite/ChangeLog:

Backport from mainline
2016-01-29  Jakub Jelinek  <jakub@redhat.com>

PR target/69551
* gcc.target/i386/pr69551.c: New test.

From-SVN: r232996

9 years agore PR target/69459 (wrong code with -O2 and vector arithmetics @ x86_64)
Uros Bizjak [Fri, 29 Jan 2016 18:25:13 +0000 (19:25 +0100)] 
re PR target/69459 (wrong code with -O2 and vector arithmetics @ x86_64)

PR target/69459
* config/i386/constraints.md (C): Only accept constant zero operand.
(BC): New constraint.
* config/i386/sse.md (*mov<mode>_internal): Use BC constraint
instead of C constraint.
* doc/md.texi (Machine Constraints): Update description
of C constraint.

testsuite/ChangeLog:

PR target/69459
* gcc.target/i386/pr69459.c: New test.

From-SVN: r232992

9 years agoDaily bump.
GCC Administrator [Fri, 29 Jan 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232961

9 years agoDaily bump.
GCC Administrator [Thu, 28 Jan 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232909

9 years agoand-1.c: Remove nand test for powerpc*-*-*.
Bill Schmidt [Wed, 27 Jan 2016 17:11:50 +0000 (17:11 +0000)] 
and-1.c: Remove nand test for powerpc*-*-*.

2016-01-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.dg/and-1.c: Remove nand test for powerpc*-*-*.

From-SVN: r232886

9 years agoFix pass number in autopar/pr69110.c
Tom de Vries [Wed, 27 Jan 2016 07:41:49 +0000 (07:41 +0000)] 
Fix pass number in autopar/pr69110.c

2016-01-27  Tom de Vries  <tom@codesourcery.com>

* gcc.dg/autopar/pr69110.c: Fix pass number.

From-SVN: r232866

9 years agoDaily bump.
GCC Administrator [Wed, 27 Jan 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232859

9 years agoHandle DR_NUM_DIMENSIONS == 0 in initialize_data_dependence_relation
Tom de Vries [Tue, 26 Jan 2016 22:18:28 +0000 (22:18 +0000)] 
Handle DR_NUM_DIMENSIONS == 0 in initialize_data_dependence_relation

2016-01-26  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/69110
* tree-data-ref.c (initialize_data_dependence_relation): Handle
DR_NUM_DIMENSIONS == 0.

* gcc.dg/autopar/pr69110.c: New test.

* testsuite/libgomp.c/pr69110.c: New test.

From-SVN: r232854

9 years agoDaily bump.
GCC Administrator [Tue, 26 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232807

9 years agoBackport "Fix PR64091"
Tom de Vries [Mon, 25 Jan 2016 14:21:03 +0000 (14:21 +0000)] 
Backport "Fix PR64091"

2016-01-25  Tom de Vries  <tom@codesourcery.com>

backport from trunk:
2014-11-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/PR64091
* tree-ssa-tail-merge.c (update_debug_stmt): After resetting
the stmt break from the loop over use operands.

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

From-SVN: r232794

9 years agoDaily bump.
GCC Administrator [Mon, 25 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232781

9 years agoDaily bump.
GCC Administrator [Sun, 24 Jan 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232771

9 years agoDaily bump.
GCC Administrator [Sat, 23 Jan 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232758

9 years ago[ARM] Fix PR target/69403: Bug in thumb2_ior_scc_strict_it pattern
Kyrylo Tkachov [Fri, 22 Jan 2016 15:42:30 +0000 (15:42 +0000)] 
[ARM] Fix PR target/69403: Bug in thumb2_ior_scc_strict_it pattern

Backport from mainline
2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/69403
* config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
define_insn_and_split.  Ensure operands[1] and operands[0] do not
get assigned the same register.

* gcc.c-torture/execute/pr69403.c: New test.

From-SVN: r232734

9 years agoBackport PR63681 fix
Bernd Schmidt [Fri, 22 Jan 2016 14:49:22 +0000 (14:49 +0000)] 
Backport PR63681 fix

PR target/63681
* cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
flag_reorder_blocks_and_partition.
* hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.

From-SVN: r232730

9 years agoDaily bump.
GCC Administrator [Fri, 22 Jan 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232714

9 years agoS/390: Fix cfi for GPR 2 FPR saves
Andreas Krebbel [Thu, 21 Jan 2016 15:42:36 +0000 (15:42 +0000)] 
S/390: Fix cfi for GPR 2 FPR saves

gcc/ChangeLog:

2016-01-21  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backported from mainline
2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
reg note to the GPR -> FPR save instructions.

gcc/testsuite/ChangeLog:

2016-01-21  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backported from mainline
2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* gcc.target/s390/gpr2fprsavecfi.c: New test.

From-SVN: r232678

9 years agoDaily bump.
GCC Administrator [Thu, 21 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232642

9 years ago[ARM] PR 67439: Allow matching of *arm32_movhf when -mrestrict-it is on
Kyrylo Tkachov [Wed, 20 Jan 2016 17:05:43 +0000 (17:05 +0000)] 
[ARM] PR 67439: Allow matching of *arm32_movhf when -mrestrict-it is on

Backport from mainline
2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/67439
* config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
predicate.  Set predicable_short_it attr to "no".

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

From-SVN: r232623

9 years agoDaily bump.
GCC Administrator [Wed, 20 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232596

9 years agoia64: don't use dynamic relocations for local symbols
Sergei Trofimovich [Tue, 19 Jan 2016 23:15:12 +0000 (23:15 +0000)] 
ia64: don't use dynamic relocations for local symbols

Backported from trunk for PR other/60465.

From-SVN: r232595

9 years agore PR testsuite/68820 (FAIL: gcc.c-torture/execute/builtins/memops-asm.c execution...
Uros Bizjak [Tue, 19 Jan 2016 18:27:19 +0000 (19:27 +0100)] 
re PR testsuite/68820 (FAIL: gcc.c-torture/execute/builtins/memops-asm.c execution,  -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects)

PR testsuite/68820
* gcc.c-torture/execute/builtins/memops-asm.x: New file.
* gcc.c-torture/execute/builtins/strstr-asm.x: Ditto.
* gcc.c-torture/execute/builtins/strstr-asm.c: Remove dg-options.

From-SVN: r232577

9 years agoDaily bump.
GCC Administrator [Tue, 19 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232544

9 years agoFix C++98 std::signbit<long double>
Jonathan Wakely [Mon, 18 Jan 2016 16:28:16 +0000 (16:28 +0000)] 
Fix C++98 std::signbit<long double>

PR libstdc++/60637
* include/c_global/cmath (signbit) [__cplusplus < 201103L]: Use
__builtin_signbitf or __builtin_signbitl as appropriate.
* testsuite/26_numerics/headers/cmath/60637.cc: New.

From-SVN: r232531

9 years agobackport: re PR tree-optimization/68799 (lto ICE on powerpc64le-linux-gnu builing...
Bill Schmidt [Mon, 18 Jan 2016 03:54:48 +0000 (03:54 +0000)] 
backport: re PR tree-optimization/68799 (lto ICE on powerpc64le-linux-gnu builing python 2.7.x)

2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline:
2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/68799
* gimple-ssa-strength-reduction.c (create_phi_basis): Directly
look up phi candidates in the statement-candidate map.
(phi_add_costs): Likewise.
(record_phi_increments): Likewise.
(phi_incr_cost): Likewise.
(ncd_with_phi): Likewise.
(all_phi_incrs_profitable): Likewise.

From-SVN: r232494

9 years agoDaily bump.
GCC Administrator [Mon, 18 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232488

9 years agoDaily bump.
GCC Administrator [Sun, 17 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232478

9 years agoDaily bump.
GCC Administrator [Sat, 16 Jan 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232458

9 years agoDaily bump.
GCC Administrator [Fri, 15 Jan 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232396

9 years ago[ARM][4.9 backport] Fix PR target/68648
Kyrylo Tkachov [Thu, 14 Jan 2016 17:27:42 +0000 (17:27 +0000)] 
[ARM][4.9 backport] Fix PR target/68648

PR target/68648
* config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
the complement of operands[3] during splitting.

* gcc.dg/torture/pr68648.c: New test.

From-SVN: r232375

9 years agoDaily bump.
GCC Administrator [Thu, 14 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232357

9 years agore PR target/63347 (m68k misoptimisation with -fschedule-insns)
Jeff Law [Wed, 13 Jan 2016 22:55:31 +0000 (15:55 -0700)] 
re PR target/63347 (m68k misoptimisation with -fschedule-insns)

PR target/63347
* haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
that needs to be queued, just queue it for a single cycle.

PR target/63347
* gcc.target/m68k/pr63347.c: New test.

From-SVN: r232354

9 years agoDaily bump.
GCC Administrator [Wed, 13 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232302

9 years agoRemove noexcept from function template that can throw
Jonathan Wakely [Tue, 12 Jan 2016 18:11:28 +0000 (18:11 +0000)] 
Remove noexcept from function template that can throw

PR libstdc++/69092
* include/bits/basic_string.h (basic_string::_S_copy_chars<_Iterator>):
Remove _GLIBCXX_NOEXCEPT.
testsuite/21_strings/basic_string/cons/char/69092.cc: New.

From-SVN: r232289

9 years agolibstdc++/68995 qualify calls to __callable_functor
Jonathan Wakely [Tue, 12 Jan 2016 18:11:20 +0000 (18:11 +0000)] 
libstdc++/68995 qualify calls to __callable_functor

PR libstdc++/68995
* include/std/functional (_Function_handler::_M_invoke): Qualify
__callable_functor.
* testsuite/20_util/function/68995.cc: New.

From-SVN: r232288

9 years ago[Backport][PR69082][ARM]Backport "[PATCH][ARM]Tighten the conditions for
Renlin Li [Tue, 12 Jan 2016 17:32:18 +0000 (17:32 +0000)] 
[Backport][PR69082][ARM]Backport "[PATCH][ARM]Tighten the conditions for
arm_movw, arm_movt".

gcc/

2016-01-12  Renlin Li  <renlin.li@arm.com>

PR target/69082
Backport from mainline.
2015-08-24  Renlin Li  <renlin.li@arm.com>

* config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
* config/arm/arm.c (arm_valid_symbolic_address_p): Define.
* config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
* config/arm/constraints.md ("j"): Add check for high code.

From-SVN: r232284

9 years agoBackport: [Patch AArch64] Reinstate CANNOT_CHANGE_MODE_CLASS to fix pr67609
James Greenhalgh [Tue, 12 Jan 2016 14:04:26 +0000 (14:04 +0000)] 
Backport: [Patch AArch64] Reinstate CANNOT_CHANGE_MODE_CLASS to fix pr67609

gcc/

Backport from mainline.
2015-12-09  James Greenhalgh  <james.greenhalgh@arm.com>

PR rtl-optimization/67609
* config/aarch64/aarch64.c
(aarch64_cannot_change_mode_class): Don't permit word_mode
subregs of full vector modes.
* config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
zero_extract rather than truncate.
(aarch64_movdi_<mode>high): Likewise.

gcc/testsuite/

Backport from mainline.
2015-12-09  James Greenhalgh  <james.greenhalgh@arm.com>

PR rtl-optimization/67609
* gcc.dg/torture/pr67609.c: New.

From-SVN: r232270

9 years agopa.c (pa_emit_move_sequence): Handle floating point reloads for other unsupported...
John David Anglin [Tue, 12 Jan 2016 01:41:59 +0000 (01:41 +0000)] 
pa.c (pa_emit_move_sequence): Handle floating point reloads for other unsupported memory operands.

* config/pa/pa.c (pa_emit_move_sequence): Handle floating point
reloads for other unsupported memory operands.

From-SVN: r232255

9 years agoDaily bump.
GCC Administrator [Tue, 12 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232246

9 years ago[PR 66616] Check for thunks when adding extra constants to clones
Martin Jambor [Mon, 11 Jan 2016 09:59:48 +0000 (10:59 +0100)] 
[PR 66616] Check for thunks when adding extra constants to clones

2016-01-11  Martin Jambor  <mjambor@suse.cz>

PR ipa/66616
* ipa-cp.c (propagate_constants_accross_call): Move thuk check...
(call_passes_through_thunk_p): ...here.
(find_more_scalar_values_for_callers_subset): Perform thunk checks
like propagate_constants_accross_call does.
* cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
flag from the node to the new flag.

testsuite/
* g++.dg/ipa/pr66616.C: New test.

From-SVN: r232213

9 years agoDaily bump.
GCC Administrator [Mon, 11 Jan 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232204

9 years agoDaily bump.
GCC Administrator [Sun, 10 Jan 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232192

9 years agoDaily bump.
GCC Administrator [Sat, 9 Jan 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r232182