]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
9 years agoDaily bump.
GCC Administrator [Thu, 17 Mar 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234274

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

From-SVN: r234243

9 years agoFix thinko in indirect_jump_optimize
Alan Modra [Tue, 15 Mar 2016 22:05:22 +0000 (08:35 +1030)] 
Fix thinko in indirect_jump_optimize

PR rtl-optimization/69195
PR rtl-optimization/47992
* ira.c (indirect_jump_optimize): Ignore artificial defs.
Add comments.

From-SVN: r234237

9 years agoBackport PR69941 patch from mainline.
Bernd Schmidt [Tue, 15 Mar 2016 03:10:31 +0000 (03:10 +0000)] 
Backport PR69941 patch from mainline.

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.

From-SVN: r234209

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

From-SVN: r234203

9 years agoOnly assume 4-byte stack alignment on Solaris/x86 (PR target/62281)
Rainer Orth [Mon, 14 Mar 2016 10:03:12 +0000 (10:03 +0000)] 
Only assume 4-byte stack alignment on Solaris/x86 (PR target/62281)

Backport from mainline:
2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR target/62281
* config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.

Revert:
2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR libgomp/60107
* config/i386/sol2-9.h: New file.
* config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
*-*-solaris2.9*): Use it.

From-SVN: r234180

9 years agore PR fortran/45076 ([OOP] gfortran.dg/dynamic_dispatch_6.f03 ICEs with -fprofile...
Dominique d'Humieres [Mon, 14 Mar 2016 09:21:32 +0000 (10:21 +0100)] 
re PR fortran/45076 ([OOP] gfortran.dg/dynamic_dispatch_6.f03 ICEs with -fprofile-use)

2016-03-13  Dominique d'Humieres  <dominiq@lps.ens.fr>

PR fortran/45076
gfortran.dg/prof/prof.exp: New script.
gfortran.dg/prof/dynamic_dispatch_6.f03: New test.

From-SVN: r234178

9 years agoDaily bump.
GCC Administrator [Mon, 14 Mar 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234173

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

From-SVN: r234164

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

From-SVN: r234156

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

From-SVN: r234128

9 years agoPR69195, Reload confused by invalid reg_equiv
Alan Modra [Thu, 10 Mar 2016 10:48:58 +0000 (21:18 +1030)] 
PR69195, Reload confused by invalid reg_equiv

Optimizing indirect jumps to direct jumps, and deleting dead insns can
lead to changes in register lifetimes, which in turn can result in bad
reg_equiv info being passed to reload.  So do these tasks before
calculating reg_equiv info.

gcc/
PR rtl-optimization/69195
PR rtl-optimization/47992
* ira.c (recorded_label_ref): Delete.
(update_equiv_regs): Return void.
(indirect_jump_optimize): New function.
(ira): Call indirect_jump_optimize and delete_trivially_dead_insns
before regstat_compute_ri.  Don't rebuild_jump_labels here.
gcc/testsuite/
* gcc.dg/pr69195.c: New.
* gcc.dg/pr69238.c: New.

From-SVN: r234103

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

From-SVN: r234095

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

From-SVN: r234072

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

From-SVN: r234053

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

From-SVN: r234015

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

From-SVN: r234010

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

From-SVN: r233992

9 years agore PR target/70059 (Invalid codegen on AVX-512 when using _mm512_inserti64x4(x, y...
Jakub Jelinek [Fri, 4 Mar 2016 14:59:23 +0000 (15:59 +0100)] 
re PR target/70059 (Invalid codegen on AVX-512 when using _mm512_inserti64x4(x, y, 0))

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.

From-SVN: r233970

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

From-SVN: r233951

9 years agore PR c++/65061 (Issue with using declaration and member class template)
Jason Merrill [Thu, 3 Mar 2016 18:43:01 +0000 (13:43 -0500)] 
re PR c++/65061 (Issue with using declaration and member class template)

PR c++/65061
* parser.c (cp_parser_template_name): Call strip_using_decl.

From-SVN: r233942

9 years agoInvoke gdb with -batch to avoid prompts
Rainer Orth [Thu, 3 Mar 2016 10:04:28 +0000 (10:04 +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.

From-SVN: r233933

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

From-SVN: r233923

9 years ago* gcc.target/i386/pr70007.c: Tweak.
Eric Botcazou [Wed, 2 Mar 2016 08:01:30 +0000 (08:01 +0000)] 
* gcc.target/i386/pr70007.c: Tweak.

From-SVN: r233896

9 years agoDaily bump.
GCC Administrator [Wed, 2 Mar 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r233872

9 years agore PR rtl-optimization/70007 (wrong code with -mbmi2)
Eric Botcazou [Tue, 1 Mar 2016 22:36:15 +0000 (22:36 +0000)] 
re PR rtl-optimization/70007 (wrong code with -mbmi2)

PR rtl-optimization/70007
* gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
references present in REG_EQUAL notes attached to non-SET patterns.

From-SVN: r233869

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

From-SVN: r233830

9 years agore PR fortran/60126 (Internal compiler error with code using pointer reshaping (gfort...
Harald Anlauf [Mon, 29 Feb 2016 06:09:47 +0000 (06:09 +0000)] 
re PR fortran/60126 (Internal compiler error with code using pointer reshaping (gfortran 4.8.2))

2016-02-29  Harald Anlauf  <anlauf@gmx.de>

PR fortran/60126
* gfortran.dg/pr60126.f90: New test.

From-SVN: r233802

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

From-SVN: r233799

9 years agobackport: re PR fortran/61156 (Internal compiler error for Fortran files when specify...
Jerry DeLisle [Sun, 28 Feb 2016 18:16:56 +0000 (18:16 +0000)] 
backport: re PR fortran/61156 (Internal compiler error for Fortran files when specifying a file instead of an include directory with -I)

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

Backported from mainline
PR fortran/61156
* scanner.c (add_path_to_list): If include path is not a directory,
issue a fatal error.

* gfortran.dg/include_6.f90: Update test.

From-SVN: r233793

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

From-SVN: r233784

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

From-SVN: r233773

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

From-SVN: r233730

9 years agobackport: Make-lang.in: Invoke gperf with -L C++.
Bernd Edlinger [Thu, 25 Feb 2016 15:36:41 +0000 (15:36 +0000)] 
backport: Make-lang.in: Invoke gperf with -L C++.

2016-02-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Backported from mainline
        2016-02-19  Jakub Jelinek  <jakub@redhat.com>
                    Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * Make-lang.in: Invoke gperf with -L C++.
        * cfns.gperf: Remove prototypes for hash and libc_name_p
        inlines.
        * cfns.h: Regenerated.
        * except.c (nothrow_libfn_p): Adjust.

From-SVN: r233721

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

From-SVN: r233688

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

From-SVN: r233650

9 years agoHandle C++11 <math.h> overloads on Solaris 11
Rainer Orth [Tue, 23 Feb 2016 12:15:20 +0000 (12:15 +0000)] 
Handle C++11 <math.h> overloads on Solaris 11

Backport from mainline
2015-11-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
* acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): New test.
* configure.ac: Use it.
* configure: Regenerate.
* config.h.in: Regenerate.

* include/c_global/cmath [__cplusplus >= 201103L]
(std::fpclassify): Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO.
(std::isfinite): Likewise.
(std::isinf): Likewise.
(std::isnan): Likewise.
(std::isnormal): Likewise.
(std::signbit): Likewise.
(std::isgreater): Likewise.
(std::isgreaterequal): Likewise.
(std::isless): Likewise.
(std::islessequal): Likewise.
(std::islessgreater): Likewise.
(std::isunordered): Likewise.
(std::acosh): Likewise.
(std::asinh): Likewise.
(std::atanh): Likewise.
(std::cbrt): Likewise.
(std::copysign): Likewise.
(std::erf): Likewise.
(std::erfc): Likewise.
(std::exp2): Likewise.
(std::expm1): Likewise.
(std::fdim): Likewise.
(std::fma): Likewise.
(std::fmax): Likewise.
(std::fmin): Likewise.
(std::hypot): Likewise.
(std::ilogb): Likewise.
(std::lgamma): Likewise.
(std::llrint): Likewise.
(std::llround): Likewise.
(std::log1p): Likewise.
(std::log2): Likewise.
(std::logb): Likewise.
(std::lrint): Likewise.
(std::lround): Likewise.
(std::nearbyint): Likewise.
(std::nextafter): Likewise.
(std::nexttoward): Likewise.
(std::remainder): Likewise.
(std::remquo): Likewise.
(std::rint): Likewise.
(std::round): Likewise.
(std::scalbln): Likewise.
(std::scalbn): Likewise.
(std::tgamma): Likewise.
(std::trunc): Likewise.
* include/tr1/cmath [_GLIBCXX_USE_C99_MATH_TR1] (std::tr1::acosh):
Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO.
(std::tr1::asinh): Likewise.
(std::tr1::atanh): Likewise.
(std::tr1::cbrt): Likewise.
(std::tr1::copysign): Likewise.
(std::tr1::erf): Likewise.
(std::tr1::erfc): Likewise.
(std::tr1::exp2): Likewise.
(std::tr1::expm1): Likewise.
(std::tr1::fabs): Likewise.
(std::tr1::fdim): Likewise.
(std::tr1::fma): Likewise.
(std::tr1::fmax): Likewise.
(std::tr1::fmin): Likewise.
(std::tr1::hypot): Likewise.
(std::tr1::ilogb): Likewise.
(std::tr1::lgamma): Likewise.
(std::tr1::llrint): Likewise.
(std::tr1::llround): Likewise.
(std::tr1::log1p): Likewise.
(std::tr1::log2): Likewise.
(std::tr1::logb): Likewise.
(std::tr1::lrint): Likewise.
(std::tr1::lround): Likewise.
(std::tr1::nearbyint): Likewise.
(std::tr1::nextafter): Likewise.
(std::tr1::nexttoward): Likewise.
(std::tr1::remainder): Likewise.
(std::tr1::remquo): Likewise.
(std::tr1::rint): Likewise.
(std::tr1::scalbln): Likewise.
(std::tr1::scalbn): Likewise.
(std::tr1::tgamma): Likewise.
(std::tr1::trunc): Likewise.
(std::tr1::pow): Likewise.

* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
Restrict dg-xfail-if, dg-excess-errors to *-*-solaris2.10*.

From-SVN: r233628

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

From-SVN: r233618

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

From-SVN: r233595

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