[Bug middle-end/91146] -Werror=array-bounds if compile with -fsanitize=address

2019-07-12 Thread grishalipenko at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91146

--- Comment #2 from Grigorii Lipenko  ---
I remove gtest.h.

#include "small_vector.h"

class A
{
public:
  virtual void f () = 0;
};

class B : public A
{
public:
  void f () override
  {
small_vector v;
v.insert (v.begin (), 1); 
  }
};

int main ()
{
  B b;
  (void)b;
  return 0;
}

I get the warning in this case.
If comment inheritance then the warning disappears.

[Bug middle-end/91146] -Werror=array-bounds if compile with -fsanitize=address

2019-07-12 Thread grishalipenko at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91146

--- Comment #3 from Grigorii Lipenko  ---
Created attachment 46593
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46593&action=edit
llvm small_vector

[Bug target/91148] PowerPC build gets several warnings due to -Wformat-diag

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91148

Richard Biener  changed:

   What|Removed |Added

 Target||powerpc*-*-*

--- Comment #2 from Richard Biener  ---
Just fix them with search&replace?

[Bug tree-optimization/91145] ICE: in vect_build_slp_tree_2, at tree-vect-slp.c:1143 with -march=skylake-avx512 -O3

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91145

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2019-07-12
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener  ---
Mine.

[Bug tree-optimization/91144] [10 regiression] 176.gcc miscompare after r273294

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91144

Richard Biener  changed:

   What|Removed |Added

 CC||rguenth at gcc dot gnu.org
 Blocks||26163
   Target Milestone|--- |10.0

--- Comment #3 from Richard Biener  ---
I can confirm it on x86_64 and yes, it's likely known issues in the benchmark
itself.  The change will run into those more.  I'm not sure I want to track
down exactly what happens though...


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163
[Bug 26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

[Bug libstdc++/88264] Support glibc-style tunables for

2019-07-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88264

--- Comment #3 from Jonathan Wakely  ---
Another useful tunable would be to alter the meaning of the "default" token for
the std::random_device constructor:

if (token == "default")
  {
default_token = true;
fname = "/dev/urandom";
#if defined _GLIBCXX_USE_CRT_RAND_S
which = rand_s;
#elif defined USE_RDSEED
which = rdseed;
#elif defined USE_RDRAND
which = rdrand;
#elif defined _GLIBCXX_USE_DEV_RANDOM
which = device_file;
#else
# error "either define USE_MT19937 above or set the default device here"
#endif
  }

In a build of libstdc++ that defaults to rdrand it would be useful to be able
to force "default" to mean /dev/urandom or /dev/random at runtime, to
workaround RDRAND bugs in AMD processors.

[Bug tree-optimization/91145] [9/10 Regression] ICE: in vect_build_slp_tree_2, at tree-vect-slp.c:1143 with -march=skylake-avx512 -O3

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91145

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
  Known to work||8.3.0
   Target Milestone|--- |9.2
Summary|ICE: in |[9/10 Regression] ICE: in
   |vect_build_slp_tree_2, at   |vect_build_slp_tree_2, at
   |tree-vect-slp.c:1143 with   |tree-vect-slp.c:1143 with
   |-march=skylake-avx512 -O3   |-march=skylake-avx512 -O3
  Known to fail||9.1.0

[Bug rtl-optimization/91136] incorrect move of instruction to delay slot causes application crash in exception handling

2019-07-12 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91136

--- Comment #13 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Jul 12 10:15:39 2019
New Revision: 273436

URL: https://gcc.gnu.org/viewcvs?rev=273436&root=gcc&view=rev
Log:
PR rtl-optimization/91136
* df-core.c (ACCESSING REFS): Fix typos in comment.
* resource.c (mark_target_live_reg): Add artificial defs that occur at
the beginning of the block to the initial set of live registers.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/df-core.c
trunk/gcc/resource.c

[Bug rtl-optimization/91136] incorrect move of instruction to delay slot causes application crash in exception handling

2019-07-12 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91136

--- Comment #14 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Jul 12 10:16:11 2019
New Revision: 273437

URL: https://gcc.gnu.org/viewcvs?rev=273437&root=gcc&view=rev
Log:
PR rtl-optimization/91136
* df-core.c (ACCESSING REFS): Fix typos in comment.
* resource.c (mark_target_live_reg): Add artificial defs that occur at
the beginning of the block to the initial set of live registers.

Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/df-core.c
branches/gcc-9-branch/gcc/resource.c

[Bug rtl-optimization/91136] incorrect move of instruction to delay slot causes application crash in exception handling

2019-07-12 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91136

--- Comment #15 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Jul 12 10:16:51 2019
New Revision: 273438

URL: https://gcc.gnu.org/viewcvs?rev=273438&root=gcc&view=rev
Log:
PR rtl-optimization/91136
* df-core.c (ACCESSING REFS): Fix typos in comment.
* resource.c (mark_target_live_reg): Add artificial defs that occur at
the beginning of the block to the initial set of live registers.

Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/df-core.c
branches/gcc-8-branch/gcc/resource.c

[Bug rtl-optimization/91136] incorrect move of instruction to delay slot causes application crash in exception handling

2019-07-12 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91136

--- Comment #16 from Eric Botcazou  ---
Author: ebotcazou
Date: Fri Jul 12 10:17:42 2019
New Revision: 273439

URL: https://gcc.gnu.org/viewcvs?rev=273439&root=gcc&view=rev
Log:
PR rtl-optimization/91136
* df-core.c (ACCESSING REFS): Fix typos in comment.
* resource.c (mark_target_live_reg): Add artificial defs that occur at
the beginning of the block to the initial set of live registers.

Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/df-core.c
branches/gcc-7-branch/gcc/resource.c

[Bug tree-optimization/90316] [8/9 Regression] large compile time increase in opt / alias stmt walking for Go example

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90316

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #42 from Richard Biener  ---
Fixed as far as I am concerned.

[Bug d/90778] Strange differences in D runtime debug-info between builds

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90778

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||9.1.1
 Resolution|--- |FIXED

--- Comment #3 from Richard Biener  ---
Fixed.  (looks like commits with d/N do not get bugzilla mails)

[Bug target/90972] [9 Regression] ICE in fold_convert_loc, at fold-const.c:2429

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90972

Richard Biener  changed:

   What|Removed |Added

 Depends on||91063

--- Comment #5 from Richard Biener  ---
Fallout in PR91063.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91063
[Bug 91063] [10 Regression] ICE in set_vinfo_for_stmt, at tree-vectorizer.c:676

[Bug tree-optimization/88492] SLP optimization generates ugly code

2019-07-12 Thread hliu at amperecomputing dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88492

Hao Liu  changed:

   What|Removed |Added

 CC||hliu at amperecomputing dot com

--- Comment #4 from Hao Liu  ---
It seems Richard Biener's patch (r272843) can remove the redundant load/store.
r272843 comments as following: 
> 2019-07-01  Richard Biener  
>
>* tree-ssa-sccvn.c (class pass_fre): Add may_iterate
>pass parameter.
>(pass_fre::execute): Honor it.
>* passes.def: Adjust pass_fre invocations to allow iterating,
>add non-iterating pass_fre before late threading/dom.
>
>* gcc.dg/tree-ssa/pr77445-2.c: Adjust.

Tested with Jiangning's case with "gcc -O3", the following code is generated:

  test_slp:
  .LFB0:
.cfi_startproc
adrpx1, .LC0
ldr q0, [x0]
ldr q1, [x1, #:lo12:.LC0]
tbl v0.16b, {v0.16b}, v1.16b
uxtlv1.8h, v0.8b
uxtl2   v0.8h, v0.16b
uxtlv4.4s, v1.4h
uxtlv2.4s, v0.4h
uxtl2   v0.4s, v0.8h
uxtl2   v1.4s, v1.8h
dup s21, v4.s[0]
dup s22, v2.s[1]
dup s3, v0.s[1]
dup s6, v1.s[0]
dup s23, v4.s[1]
dup s16, v2.s[0]
add v3.2s, v3.2s, v22.2s
dup s20, v0.s[0]
dup s17, v1.s[1]
dup s5, v0.s[2]
fmovw0, s3
add v3.2s, v6.2s, v21.2s
dup s19, v2.s[2]
add v17.2s, v17.2s, v23.2s
dup s7, v4.s[2]
fmovw1, s3
add v3.2s, v16.2s, v20.2s
dup s18, v1.s[2]
fmovw3, s17
dup s2, v2.s[3]
fmovw2, s3
add v3.2s, v5.2s, v19.2s
dup s0, v0.s[3]
dup s4, v4.s[3]
add w0, w0, w3
dup s1, v1.s[3]
fmovw3, s3
add v3.2s, v7.2s, v18.2s
add v0.2s, v2.2s, v0.2s
add w1, w1, w2
add w0, w0, w1
fmovw2, s3
add w3, w3, w2
fmovw2, s0
add v0.2s, v1.2s, v4.2s
add w0, w0, w3
fmovw1, s0
add w1, w2, w1
add w0, w0, w1
ret

Although SLP still generates SIMD code, it looks much better than previous code
with memory load/store. Performance is expected to be better as no redundant
load/store.

[Bug tree-optimization/88492] SLP optimization generates ugly code

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88492

--- Comment #5 from Richard Biener  ---
Yeah.  Again, on x86 with -mavx2 we now have right after late FRE:

   [local count: 214748371]:
  vect__1.6_64 = MEM  [(unsigned char *)b_24(D)];
  vect__1.7_63 = VEC_PERM_EXPR ;
  vect__2.9_62 = [vec_unpack_lo_expr] vect__1.7_63;
  vect__2.9_59 = [vec_unpack_hi_expr] vect__1.7_63;
  vect__2.8_57 = [vec_unpack_lo_expr] vect__2.9_62;
  vect__2.8_56 = [vec_unpack_hi_expr] vect__2.9_62;
  vect__2.8_55 = [vec_unpack_lo_expr] vect__2.9_59;
  vect__2.8_54 = [vec_unpack_hi_expr] vect__2.9_59;
  MEM  [(unsigned int *)&tmp] = vect__2.8_57;
  MEM  [(unsigned int *)&tmp + 16B] = vect__2.8_56;
  MEM  [(unsigned int *)&tmp + 32B] = vect__2.8_55;
  MEM  [(unsigned int *)&tmp + 48B] = vect__2.8_54;
  vectp_b.4_65 = b_24(D) + 16;
  _8 = BIT_FIELD_REF ;
  _22 = BIT_FIELD_REF ;
  _30 = _8 + _22;
  _14 = BIT_FIELD_REF ;
  _81 = BIT_FIELD_REF ;
  _43 = _14 + _30;
  _45 = _43 + _81;
  sum_34 = (int) _45;
  _58 = BIT_FIELD_REF ;
  _38 = BIT_FIELD_REF ;
  _72 = _38 + _58;
  _68 = BIT_FIELD_REF ;
  _53 = BIT_FIELD_REF ;
  _29 = _68 + _72;
  _31 = _29 + _53;
  _7 = _31 + _45;
  sum_61 = (int) _7;
  _47 = BIT_FIELD_REF ;
  _88 = BIT_FIELD_REF ;
  _44 = _47 + _88;
  _74 = _44 + _90;
  _73 = _74 + _92;
  _83 = _7 + _73;
  sum_84 = (int) _83;
  _94 = BIT_FIELD_REF ;
  _96 = BIT_FIELD_REF ;
  _71 = _94 + _96;
  _98 = BIT_FIELD_REF ;
  _100 = BIT_FIELD_REF ;
  _70 = _71 + _98;
  _46 = _70 + _100;
  _18 = _46 + _83;
  sum_27 = (int) _18;
  tmp ={v} {CLOBBER};
  return sum_27;

I know the "real" code this testcase is from has actual operations
in place of the b[N] reads, for the above vectorization looks somewhat
pointless given we end up decomposing the result again.

So the appropriate fix would of course be to vectorize the reduction
loop (but that hits the sign-changing reduction issue).

[Bug rtl-optimization/91136] incorrect move of instruction to delay slot causes application crash in exception handling

2019-07-12 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91136

Eric Botcazou  changed:

   What|Removed |Added

   Target Milestone|--- |7.5

--- Comment #17 from Eric Botcazou  ---
Fixed in 7.5.x and upcoming releases.  Thanks for the reduced testcase.

[Bug rtl-optimization/91136] incorrect move of instruction to delay slot causes application crash in exception handling

2019-07-12 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91136

Eric Botcazou  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #18 from Eric Botcazou  ---
.

[Bug libstdc++/89824] Variant jump table reserves space for __variant_cookie twice

2019-07-12 Thread antoshkka at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89824

Antony Polukhin  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Antony Polukhin  ---
Fixed in 9.1

[Bug c++/86375] Lambda call in template parameter causes compile time error

2019-07-12 Thread antoshkka at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86375

--- Comment #1 from Antony Polukhin  ---
This was fixed in GCC 9.1

Please add a test case for the issue and close it as fixed

[Bug c/91149] New: GCC 9 and later incorrectly rejects OpenMP task reduction-modifier on target parallel combined construct

2019-07-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91149

Bug ID: 91149
   Summary: GCC 9 and later incorrectly rejects OpenMP task
reduction-modifier on target parallel combined
construct
   Product: gcc
   Version: 9.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

int r;

void
foo (void)
{
  #pragma omp parallel reduction(task, +: r)
  r++;
  #pragma omp target parallel reduction(task, +: r)
  r++;
}

should be accepted, but we reject the second one due to a pasto.

[Bug tree-optimization/91145] [9 Regression] ICE: in vect_build_slp_tree_2, at tree-vect-slp.c:1143 with -march=skylake-avx512 -O3

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91145

Richard Biener  changed:

   What|Removed |Added

  Known to work||10.0
Summary|[9/10 Regression] ICE: in   |[9 Regression] ICE: in
   |vect_build_slp_tree_2, at   |vect_build_slp_tree_2, at
   |tree-vect-slp.c:1143 with   |tree-vect-slp.c:1143 with
   |-march=skylake-avx512 -O3   |-march=skylake-avx512 -O3
  Known to fail|10.0|

--- Comment #2 from Richard Biener  ---
Fixed on trunk sofar.

[Bug tree-optimization/91145] [9 Regression] ICE: in vect_build_slp_tree_2, at tree-vect-slp.c:1143 with -march=skylake-avx512 -O3

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91145

--- Comment #3 from Richard Biener  ---
Author: rguenth
Date: Fri Jul 12 14:36:50 2019
New Revision: 273445

URL: https://gcc.gnu.org/viewcvs?rev=273445&root=gcc&view=rev
Log:
2019-07-12  Richard Biener  

PR tree-optimization/91145
* tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
chain check.

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

Added:
trunk/gcc/testsuite/gcc.dg/torture/pr91145.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-slp.c

[Bug tree-optimization/91063] [10 Regression] ICE in set_vinfo_for_stmt, at tree-vectorizer.c:676

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91063

--- Comment #4 from Richard Biener  ---
Author: rguenth
Date: Fri Jul 12 14:42:14 2019
New Revision: 273446

URL: https://gcc.gnu.org/viewcvs?rev=273446&root=gcc&view=rev
Log:
2019-07-12  Richard Biener  

Backport from mainline
2019-07-04  Jakub Jelinek  

PR tree-optimization/91063
* tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
stmt from stmts sequence before calling vect_init_vector_1.
Formatting fix.

* gcc.dg/gomp/pr91063.c: New test.

2019-07-04  Richard Biener  

PR ipa/91062
* tree-pass.h (execute_all_ipa_transforms): Add a flag
parameter whether to disable GC collection.
* passes.c (execute_one_ipa_transform_pass): Likewise, and
honor it.
(execute_all_ipa_transforms): Likewise and pass it down.
* cgraph.c (cgraph_node::get_body): Do not invoke garbage
collection from applying IPA transforms.
* cgraphunit.c (cgraph_node::expand): Allow garbage collection
from applying IPA transforms.

2019-06-27  Richard Biener  

PR testsuite/91004
* g++.dg/torture/pr34850.C: Fix overly reduced testcase.

2019-06-26  Richard Biener  

PR ipa/90982
* tree-inline.c (remap_ssa_name): Copy SSA range info.

* g++.dg/torture/pr90982.C: New testcase.

2019-06-24  Richard Biener  

PR tree-optimization/90972
* tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
in common code, dealing with STRING_CST properly.

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

2019-06-21  Richard Biener  

PR debug/90914
* dwarf2out.c (prune_unused_types_walk): Always consider
function-local extern declarations as used.

* g++.dg/debug/pr90914.C: New testcase.

2019-06-18  Richard Biener  

PR debug/90900
* cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
as if optimized away.

* gcc.dg/gomp/pr90900.c: New testcase.

2019-05-07  Richard Biener  

PR lto/90369
* lto-wrapper.c (debug_objcopy): Use the original filename
including archive offset for the filename used for -save-temps.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/debug/pr90914.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr90982.C
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr90900.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr91063.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr90972.c
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cfgexpand.c
branches/gcc-9-branch/gcc/cgraph.c
branches/gcc-9-branch/gcc/cgraphunit.c
branches/gcc-9-branch/gcc/dwarf2out.c
branches/gcc-9-branch/gcc/lto-wrapper.c
branches/gcc-9-branch/gcc/passes.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr34850.C
branches/gcc-9-branch/gcc/tree-inline.c
branches/gcc-9-branch/gcc/tree-pass.h
branches/gcc-9-branch/gcc/tree-vect-stmts.c

[Bug ipa/91062] gcc.dg/ipa/ipa-pta-1.c dump contains garbage when gcc was configured with --enable-checking=all

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91062

--- Comment #7 from Richard Biener  ---
Author: rguenth
Date: Fri Jul 12 14:42:14 2019
New Revision: 273446

URL: https://gcc.gnu.org/viewcvs?rev=273446&root=gcc&view=rev
Log:
2019-07-12  Richard Biener  

Backport from mainline
2019-07-04  Jakub Jelinek  

PR tree-optimization/91063
* tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
stmt from stmts sequence before calling vect_init_vector_1.
Formatting fix.

* gcc.dg/gomp/pr91063.c: New test.

2019-07-04  Richard Biener  

PR ipa/91062
* tree-pass.h (execute_all_ipa_transforms): Add a flag
parameter whether to disable GC collection.
* passes.c (execute_one_ipa_transform_pass): Likewise, and
honor it.
(execute_all_ipa_transforms): Likewise and pass it down.
* cgraph.c (cgraph_node::get_body): Do not invoke garbage
collection from applying IPA transforms.
* cgraphunit.c (cgraph_node::expand): Allow garbage collection
from applying IPA transforms.

2019-06-27  Richard Biener  

PR testsuite/91004
* g++.dg/torture/pr34850.C: Fix overly reduced testcase.

2019-06-26  Richard Biener  

PR ipa/90982
* tree-inline.c (remap_ssa_name): Copy SSA range info.

* g++.dg/torture/pr90982.C: New testcase.

2019-06-24  Richard Biener  

PR tree-optimization/90972
* tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
in common code, dealing with STRING_CST properly.

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

2019-06-21  Richard Biener  

PR debug/90914
* dwarf2out.c (prune_unused_types_walk): Always consider
function-local extern declarations as used.

* g++.dg/debug/pr90914.C: New testcase.

2019-06-18  Richard Biener  

PR debug/90900
* cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
as if optimized away.

* gcc.dg/gomp/pr90900.c: New testcase.

2019-05-07  Richard Biener  

PR lto/90369
* lto-wrapper.c (debug_objcopy): Use the original filename
including archive offset for the filename used for -save-temps.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/debug/pr90914.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr90982.C
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr90900.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr91063.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr90972.c
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cfgexpand.c
branches/gcc-9-branch/gcc/cgraph.c
branches/gcc-9-branch/gcc/cgraphunit.c
branches/gcc-9-branch/gcc/dwarf2out.c
branches/gcc-9-branch/gcc/lto-wrapper.c
branches/gcc-9-branch/gcc/passes.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr34850.C
branches/gcc-9-branch/gcc/tree-inline.c
branches/gcc-9-branch/gcc/tree-pass.h
branches/gcc-9-branch/gcc/tree-vect-stmts.c

[Bug testsuite/91004] [10 regression] Excess errors in g++.dg/torture/pr34850.C starting with r272688

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91004

--- Comment #6 from Richard Biener  ---
Author: rguenth
Date: Fri Jul 12 14:42:14 2019
New Revision: 273446

URL: https://gcc.gnu.org/viewcvs?rev=273446&root=gcc&view=rev
Log:
2019-07-12  Richard Biener  

Backport from mainline
2019-07-04  Jakub Jelinek  

PR tree-optimization/91063
* tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
stmt from stmts sequence before calling vect_init_vector_1.
Formatting fix.

* gcc.dg/gomp/pr91063.c: New test.

2019-07-04  Richard Biener  

PR ipa/91062
* tree-pass.h (execute_all_ipa_transforms): Add a flag
parameter whether to disable GC collection.
* passes.c (execute_one_ipa_transform_pass): Likewise, and
honor it.
(execute_all_ipa_transforms): Likewise and pass it down.
* cgraph.c (cgraph_node::get_body): Do not invoke garbage
collection from applying IPA transforms.
* cgraphunit.c (cgraph_node::expand): Allow garbage collection
from applying IPA transforms.

2019-06-27  Richard Biener  

PR testsuite/91004
* g++.dg/torture/pr34850.C: Fix overly reduced testcase.

2019-06-26  Richard Biener  

PR ipa/90982
* tree-inline.c (remap_ssa_name): Copy SSA range info.

* g++.dg/torture/pr90982.C: New testcase.

2019-06-24  Richard Biener  

PR tree-optimization/90972
* tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
in common code, dealing with STRING_CST properly.

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

2019-06-21  Richard Biener  

PR debug/90914
* dwarf2out.c (prune_unused_types_walk): Always consider
function-local extern declarations as used.

* g++.dg/debug/pr90914.C: New testcase.

2019-06-18  Richard Biener  

PR debug/90900
* cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
as if optimized away.

* gcc.dg/gomp/pr90900.c: New testcase.

2019-05-07  Richard Biener  

PR lto/90369
* lto-wrapper.c (debug_objcopy): Use the original filename
including archive offset for the filename used for -save-temps.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/debug/pr90914.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr90982.C
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr90900.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr91063.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr90972.c
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cfgexpand.c
branches/gcc-9-branch/gcc/cgraph.c
branches/gcc-9-branch/gcc/cgraphunit.c
branches/gcc-9-branch/gcc/dwarf2out.c
branches/gcc-9-branch/gcc/lto-wrapper.c
branches/gcc-9-branch/gcc/passes.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr34850.C
branches/gcc-9-branch/gcc/tree-inline.c
branches/gcc-9-branch/gcc/tree-pass.h
branches/gcc-9-branch/gcc/tree-vect-stmts.c

[Bug debug/90900] [8 Regression] ICE in copy_rtx, at rtl.c:376

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90900

--- Comment #9 from Richard Biener  ---
Author: rguenth
Date: Fri Jul 12 14:42:14 2019
New Revision: 273446

URL: https://gcc.gnu.org/viewcvs?rev=273446&root=gcc&view=rev
Log:
2019-07-12  Richard Biener  

Backport from mainline
2019-07-04  Jakub Jelinek  

PR tree-optimization/91063
* tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
stmt from stmts sequence before calling vect_init_vector_1.
Formatting fix.

* gcc.dg/gomp/pr91063.c: New test.

2019-07-04  Richard Biener  

PR ipa/91062
* tree-pass.h (execute_all_ipa_transforms): Add a flag
parameter whether to disable GC collection.
* passes.c (execute_one_ipa_transform_pass): Likewise, and
honor it.
(execute_all_ipa_transforms): Likewise and pass it down.
* cgraph.c (cgraph_node::get_body): Do not invoke garbage
collection from applying IPA transforms.
* cgraphunit.c (cgraph_node::expand): Allow garbage collection
from applying IPA transforms.

2019-06-27  Richard Biener  

PR testsuite/91004
* g++.dg/torture/pr34850.C: Fix overly reduced testcase.

2019-06-26  Richard Biener  

PR ipa/90982
* tree-inline.c (remap_ssa_name): Copy SSA range info.

* g++.dg/torture/pr90982.C: New testcase.

2019-06-24  Richard Biener  

PR tree-optimization/90972
* tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
in common code, dealing with STRING_CST properly.

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

2019-06-21  Richard Biener  

PR debug/90914
* dwarf2out.c (prune_unused_types_walk): Always consider
function-local extern declarations as used.

* g++.dg/debug/pr90914.C: New testcase.

2019-06-18  Richard Biener  

PR debug/90900
* cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
as if optimized away.

* gcc.dg/gomp/pr90900.c: New testcase.

2019-05-07  Richard Biener  

PR lto/90369
* lto-wrapper.c (debug_objcopy): Use the original filename
including archive offset for the filename used for -save-temps.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/debug/pr90914.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr90982.C
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr90900.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr91063.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr90972.c
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cfgexpand.c
branches/gcc-9-branch/gcc/cgraph.c
branches/gcc-9-branch/gcc/cgraphunit.c
branches/gcc-9-branch/gcc/dwarf2out.c
branches/gcc-9-branch/gcc/lto-wrapper.c
branches/gcc-9-branch/gcc/passes.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr34850.C
branches/gcc-9-branch/gcc/tree-inline.c
branches/gcc-9-branch/gcc/tree-pass.h
branches/gcc-9-branch/gcc/tree-vect-stmts.c

[Bug middle-end/90982] [9 Regression] ICE in make_decl_rtl, at varasm.c:1344

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90982

--- Comment #7 from Richard Biener  ---
Author: rguenth
Date: Fri Jul 12 14:42:14 2019
New Revision: 273446

URL: https://gcc.gnu.org/viewcvs?rev=273446&root=gcc&view=rev
Log:
2019-07-12  Richard Biener  

Backport from mainline
2019-07-04  Jakub Jelinek  

PR tree-optimization/91063
* tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
stmt from stmts sequence before calling vect_init_vector_1.
Formatting fix.

* gcc.dg/gomp/pr91063.c: New test.

2019-07-04  Richard Biener  

PR ipa/91062
* tree-pass.h (execute_all_ipa_transforms): Add a flag
parameter whether to disable GC collection.
* passes.c (execute_one_ipa_transform_pass): Likewise, and
honor it.
(execute_all_ipa_transforms): Likewise and pass it down.
* cgraph.c (cgraph_node::get_body): Do not invoke garbage
collection from applying IPA transforms.
* cgraphunit.c (cgraph_node::expand): Allow garbage collection
from applying IPA transforms.

2019-06-27  Richard Biener  

PR testsuite/91004
* g++.dg/torture/pr34850.C: Fix overly reduced testcase.

2019-06-26  Richard Biener  

PR ipa/90982
* tree-inline.c (remap_ssa_name): Copy SSA range info.

* g++.dg/torture/pr90982.C: New testcase.

2019-06-24  Richard Biener  

PR tree-optimization/90972
* tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
in common code, dealing with STRING_CST properly.

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

2019-06-21  Richard Biener  

PR debug/90914
* dwarf2out.c (prune_unused_types_walk): Always consider
function-local extern declarations as used.

* g++.dg/debug/pr90914.C: New testcase.

2019-06-18  Richard Biener  

PR debug/90900
* cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
as if optimized away.

* gcc.dg/gomp/pr90900.c: New testcase.

2019-05-07  Richard Biener  

PR lto/90369
* lto-wrapper.c (debug_objcopy): Use the original filename
including archive offset for the filename used for -save-temps.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/debug/pr90914.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr90982.C
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr90900.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr91063.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr90972.c
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cfgexpand.c
branches/gcc-9-branch/gcc/cgraph.c
branches/gcc-9-branch/gcc/cgraphunit.c
branches/gcc-9-branch/gcc/dwarf2out.c
branches/gcc-9-branch/gcc/lto-wrapper.c
branches/gcc-9-branch/gcc/passes.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr34850.C
branches/gcc-9-branch/gcc/tree-inline.c
branches/gcc-9-branch/gcc/tree-pass.h
branches/gcc-9-branch/gcc/tree-vect-stmts.c

[Bug lto/90369] error: could not unlink output file

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90369

--- Comment #5 from Richard Biener  ---
Author: rguenth
Date: Fri Jul 12 14:42:14 2019
New Revision: 273446

URL: https://gcc.gnu.org/viewcvs?rev=273446&root=gcc&view=rev
Log:
2019-07-12  Richard Biener  

Backport from mainline
2019-07-04  Jakub Jelinek  

PR tree-optimization/91063
* tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
stmt from stmts sequence before calling vect_init_vector_1.
Formatting fix.

* gcc.dg/gomp/pr91063.c: New test.

2019-07-04  Richard Biener  

PR ipa/91062
* tree-pass.h (execute_all_ipa_transforms): Add a flag
parameter whether to disable GC collection.
* passes.c (execute_one_ipa_transform_pass): Likewise, and
honor it.
(execute_all_ipa_transforms): Likewise and pass it down.
* cgraph.c (cgraph_node::get_body): Do not invoke garbage
collection from applying IPA transforms.
* cgraphunit.c (cgraph_node::expand): Allow garbage collection
from applying IPA transforms.

2019-06-27  Richard Biener  

PR testsuite/91004
* g++.dg/torture/pr34850.C: Fix overly reduced testcase.

2019-06-26  Richard Biener  

PR ipa/90982
* tree-inline.c (remap_ssa_name): Copy SSA range info.

* g++.dg/torture/pr90982.C: New testcase.

2019-06-24  Richard Biener  

PR tree-optimization/90972
* tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
in common code, dealing with STRING_CST properly.

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

2019-06-21  Richard Biener  

PR debug/90914
* dwarf2out.c (prune_unused_types_walk): Always consider
function-local extern declarations as used.

* g++.dg/debug/pr90914.C: New testcase.

2019-06-18  Richard Biener  

PR debug/90900
* cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
as if optimized away.

* gcc.dg/gomp/pr90900.c: New testcase.

2019-05-07  Richard Biener  

PR lto/90369
* lto-wrapper.c (debug_objcopy): Use the original filename
including archive offset for the filename used for -save-temps.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/debug/pr90914.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr90982.C
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr90900.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr91063.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr90972.c
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cfgexpand.c
branches/gcc-9-branch/gcc/cgraph.c
branches/gcc-9-branch/gcc/cgraphunit.c
branches/gcc-9-branch/gcc/dwarf2out.c
branches/gcc-9-branch/gcc/lto-wrapper.c
branches/gcc-9-branch/gcc/passes.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr34850.C
branches/gcc-9-branch/gcc/tree-inline.c
branches/gcc-9-branch/gcc/tree-pass.h
branches/gcc-9-branch/gcc/tree-vect-stmts.c

[Bug target/90972] [9 Regression] ICE in fold_convert_loc, at fold-const.c:2429

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90972

--- Comment #6 from Richard Biener  ---
Author: rguenth
Date: Fri Jul 12 14:42:14 2019
New Revision: 273446

URL: https://gcc.gnu.org/viewcvs?rev=273446&root=gcc&view=rev
Log:
2019-07-12  Richard Biener  

Backport from mainline
2019-07-04  Jakub Jelinek  

PR tree-optimization/91063
* tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
stmt from stmts sequence before calling vect_init_vector_1.
Formatting fix.

* gcc.dg/gomp/pr91063.c: New test.

2019-07-04  Richard Biener  

PR ipa/91062
* tree-pass.h (execute_all_ipa_transforms): Add a flag
parameter whether to disable GC collection.
* passes.c (execute_one_ipa_transform_pass): Likewise, and
honor it.
(execute_all_ipa_transforms): Likewise and pass it down.
* cgraph.c (cgraph_node::get_body): Do not invoke garbage
collection from applying IPA transforms.
* cgraphunit.c (cgraph_node::expand): Allow garbage collection
from applying IPA transforms.

2019-06-27  Richard Biener  

PR testsuite/91004
* g++.dg/torture/pr34850.C: Fix overly reduced testcase.

2019-06-26  Richard Biener  

PR ipa/90982
* tree-inline.c (remap_ssa_name): Copy SSA range info.

* g++.dg/torture/pr90982.C: New testcase.

2019-06-24  Richard Biener  

PR tree-optimization/90972
* tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
in common code, dealing with STRING_CST properly.

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

2019-06-21  Richard Biener  

PR debug/90914
* dwarf2out.c (prune_unused_types_walk): Always consider
function-local extern declarations as used.

* g++.dg/debug/pr90914.C: New testcase.

2019-06-18  Richard Biener  

PR debug/90900
* cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
as if optimized away.

* gcc.dg/gomp/pr90900.c: New testcase.

2019-05-07  Richard Biener  

PR lto/90369
* lto-wrapper.c (debug_objcopy): Use the original filename
including archive offset for the filename used for -save-temps.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/debug/pr90914.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr90982.C
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr90900.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr91063.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr90972.c
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cfgexpand.c
branches/gcc-9-branch/gcc/cgraph.c
branches/gcc-9-branch/gcc/cgraphunit.c
branches/gcc-9-branch/gcc/dwarf2out.c
branches/gcc-9-branch/gcc/lto-wrapper.c
branches/gcc-9-branch/gcc/passes.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr34850.C
branches/gcc-9-branch/gcc/tree-inline.c
branches/gcc-9-branch/gcc/tree-pass.h
branches/gcc-9-branch/gcc/tree-vect-stmts.c

[Bug debug/90914] [9 Regression] ICE in schedule_generic_params_dies_gen, at dwarf2out.c:27153

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90914

--- Comment #7 from Richard Biener  ---
Author: rguenth
Date: Fri Jul 12 14:42:14 2019
New Revision: 273446

URL: https://gcc.gnu.org/viewcvs?rev=273446&root=gcc&view=rev
Log:
2019-07-12  Richard Biener  

Backport from mainline
2019-07-04  Jakub Jelinek  

PR tree-optimization/91063
* tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
stmt from stmts sequence before calling vect_init_vector_1.
Formatting fix.

* gcc.dg/gomp/pr91063.c: New test.

2019-07-04  Richard Biener  

PR ipa/91062
* tree-pass.h (execute_all_ipa_transforms): Add a flag
parameter whether to disable GC collection.
* passes.c (execute_one_ipa_transform_pass): Likewise, and
honor it.
(execute_all_ipa_transforms): Likewise and pass it down.
* cgraph.c (cgraph_node::get_body): Do not invoke garbage
collection from applying IPA transforms.
* cgraphunit.c (cgraph_node::expand): Allow garbage collection
from applying IPA transforms.

2019-06-27  Richard Biener  

PR testsuite/91004
* g++.dg/torture/pr34850.C: Fix overly reduced testcase.

2019-06-26  Richard Biener  

PR ipa/90982
* tree-inline.c (remap_ssa_name): Copy SSA range info.

* g++.dg/torture/pr90982.C: New testcase.

2019-06-24  Richard Biener  

PR tree-optimization/90972
* tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
in common code, dealing with STRING_CST properly.

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

2019-06-21  Richard Biener  

PR debug/90914
* dwarf2out.c (prune_unused_types_walk): Always consider
function-local extern declarations as used.

* g++.dg/debug/pr90914.C: New testcase.

2019-06-18  Richard Biener  

PR debug/90900
* cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
as if optimized away.

* gcc.dg/gomp/pr90900.c: New testcase.

2019-05-07  Richard Biener  

PR lto/90369
* lto-wrapper.c (debug_objcopy): Use the original filename
including archive offset for the filename used for -save-temps.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/debug/pr90914.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr90982.C
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr90900.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/gomp/pr91063.c
branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr90972.c
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/cfgexpand.c
branches/gcc-9-branch/gcc/cgraph.c
branches/gcc-9-branch/gcc/cgraphunit.c
branches/gcc-9-branch/gcc/dwarf2out.c
branches/gcc-9-branch/gcc/lto-wrapper.c
branches/gcc-9-branch/gcc/passes.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
branches/gcc-9-branch/gcc/testsuite/g++.dg/torture/pr34850.C
branches/gcc-9-branch/gcc/tree-inline.c
branches/gcc-9-branch/gcc/tree-pass.h
branches/gcc-9-branch/gcc/tree-vect-stmts.c

[Bug debug/90914] [9 Regression] ICE in schedule_generic_params_dies_gen, at dwarf2out.c:27153

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90914

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||9.1.1
 Resolution|--- |FIXED

--- Comment #8 from Richard Biener  ---
Fixed.

[Bug target/90972] [9 Regression] ICE in fold_convert_loc, at fold-const.c:2429

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90972

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||9.1.1
 Resolution|--- |FIXED
  Known to fail|9.1.1   |9.1.0

--- Comment #7 from Richard Biener  ---
Fixed.

[Bug middle-end/90982] [9 Regression] ICE in make_decl_rtl, at varasm.c:1344

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90982

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||9.1.1
 Resolution|--- |FIXED

--- Comment #8 from Richard Biener  ---
Fixed.

[Bug target/91148] PowerPC build gets several warnings due to -Wformat-diag

2019-07-12 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91148

--- Comment #3 from Segher Boessenkool  ---
12593 |"internal error: builtin function %qs already processed",

That's a fatal_error; users will never see that, *no one* will ever see that.


14747 | error ("builtin function %qs is only valid for the cell processor",
name);

The functions are called __builtin_* already; if anything, we should delete the
"builtin function" part of the error message.

[a lot more like this...]


17392 |"internal error: builtin function %qs had an unexpected "
17393 |"return type %qs", name, GET_MODE_NAME (h.mode[0]));

internal error.  s/builtin function //


rs6000.c:26987:12: warning: misspelled term 'floating point' in format; use
'floating-point' instead [-Wformat-diag]
26987 | error ("use of decimal floating point types in AltiVec types is
invalid");

Is "decimal floating-point" the best style tip we can give here?  Heh.


Anyway, can we have a -Wno-noise option if we have to have these warnings?

[Bug target/91148] PowerPC build gets several warnings due to -Wformat-diag

2019-07-12 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91148

--- Comment #4 from Segher Boessenkool  ---
And I am quite serious about that last point: I have to redirect stderr
to file and search that with a text editor to find the errors, there are
a dozen screenfuls of useless warnings (about two screens per warning)
hiding the real problems.  And no, not most in rs6000 at all.

[Bug target/91135] [9/10 Regression] __linux__ not defined with -mcall-aixdesc on 9.x and ppc64

2019-07-12 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91135

--- Comment #8 from Segher Boessenkool  ---
-mcall-* should change the calling convention, not anything else OS-related.

-mcall-aixdesc is the *default* for powerpc64-linux.

[Bug target/91150] New: [10 Regression] wrong code with -O -mavx512vbmi due to wrong writemask

2019-07-12 Thread zsojka at seznam dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91150

Bug ID: 91150
   Summary: [10 Regression] wrong code with -O -mavx512vbmi due to
wrong writemask
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Keywords: wrong-code
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: zsojka at seznam dot cz
  Target Milestone: ---
  Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu

Created attachment 46594
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46594&action=edit
reduced testcase

Output:
$ x86_64-pc-linux-gnu-gcc -O -mavx512vbmi testcase.c
$ sde64 -- ./a.out
Aborted

At the assembly level, the problem seems to be:
# testcase.c:12:   {
vpxor   xmm2, xmm2, xmm2# tmp117
mov eax, 4294967295 # tmp119,
vmovdqa64   zmm4, ZMMWORD PTR [rsp+8]   # tmp118, b
kmovq   k1, rax # tmp119, tmp119
vmovdqu8zmm4{k1}, zmm2  # tmp118, tmp119, tmp118, tmp117
# testcase.c:11:   a <<= (v64u64) (v64u128)
vpsllvq zmm1, zmm1, zmm4# a, tmp123, tmp118

vmovdqu8 is using the k1 mask to load zeros to given bytes - the mask should be
0x instead (only the lowest-order 16byte word is kept)


$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-273353-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/10.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-273353-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.0 20190710 (experimental) (GCC)

[Bug tree-optimization/91151] New: new test case gcc.dg/tree-ssa/vector-7.c fails with its introduction in r273435

2019-07-12 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91151

Bug ID: 91151
   Summary: new test case gcc.dg/tree-ssa/vector-7.c fails with
its introduction in r273435
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

make -k check-gcc RUNTESTFLAGS=tree-ssa.exp=gcc.dg/tree-ssa/vector-7.c
. . .

# of expected passes1
# of unexpected failures2
FAIL: gcc.dg/tree-ssa/vector-7.c execution test
FAIL: gcc.dg/tree-ssa/vector-7.c scan-tree-dump-not optimized "abort"


Executing on host: /home/seurer/gcc/build/gcc-test2/gcc/xgcc
-B/home/seurer/gcc/build/gcc-test2/gcc/
/home/seurer/gcc/gcc-test2/gcc/testsuite/gcc.dg/tree-ssa/vector-7.c   
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never   -O3 -fdump-tree-optimized  -lm  -o ./vector-7.exe  
 (timeout = 300)
spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test2/gcc/xgcc
-B/home/seurer/gcc/build/gcc-test2/gcc/
/home/seurer/gcc/gcc-test2/gcc/testsuite/gcc.dg/tree-ssa/vector-7.c
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never -O3 -fdump-tree-optimized -lm -o ./vector-7.exe
PASS: gcc.dg/tree-ssa/vector-7.c (test for excess errors)
Setting LD_LIBRARY_PATH to
:/home/seurer/gcc/build/gcc-test2/gcc::/home/seurer/gcc/build/gcc-test2/gcc:/home/seurer/gcc/build/gcc-test2/./gmp/.libs:/home/seurer/gcc/build/gcc-test2/./prev-gmp/.libs:/home/seurer/gcc/build/gcc-test2/./mpfr/src/.libs:/home/seurer/gcc/build/gcc-test2/./prev-mpfr/src/.libs:/home/seurer/gcc/build/gcc-test2/./mpc/src/.libs:/home/seurer/gcc/build/gcc-test2/./prev-mpc/src/.libs:/home/seurer/gcc/build/gcc-test2/./isl/.libs:/home/seurer/gcc/build/gcc-test2/./prev-isl/.libs:/home/seurer/gcc/install/gcc-7.2.0/lib64
Execution timeout is: 300
spawn [open ...]
FAIL: gcc.dg/tree-ssa/vector-7.c execution test
FAIL: gcc.dg/tree-ssa/vector-7.c scan-tree-dump-not optimized "abort"
testcase /home/seurer/gcc/gcc-test2/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp
completed in 1 seconds

=== gcc Summary ===

# of expected passes1
# of unexpected failures2


Program received signal SIGABRT, Aborted.
0x3fffb7cd247c in .raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install
glibc-2.17-260.el7_6.3.ppc64
(gdb) where
#0  0x3fffb7cd247c in .raise () from /lib64/libc.so.6
#1  0x3fffb7cd4688 in .abort () from /lib64/libc.so.6
#2  0x1510 in main () at
/home/seurer/gcc/gcc-test2/gcc/testsuite/gcc.dg/tree-ssa/vector-7.c:26

[Bug tree-optimization/91151] new test case gcc.dg/tree-ssa/vector-7.c fails with its introduction in r273435

2019-07-12 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91151

seurer at gcc dot gnu.org changed:

   What|Removed |Added

 Target||powerpc64*-unknown-linux-gn
   ||u
 CC||rguenth at gcc dot gnu.org,
   ||wschmidt at gcc dot gnu.org
   Host||powerpc64*-unknown-linux-gn
   ||u
  Build||powerpc64*-unknown-linux-gn
   ||u

--- Comment #1 from seurer at gcc dot gnu.org ---
This appears to only occur on BE

[Bug fortran/89782] Can do an internal READ of a character array when it is a parameter, but not a scalar character parameter

2019-07-12 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89782

Jerry DeLisle  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Jerry DeLisle  ---
Fixed on trunk, so closing.

[Bug preprocessor/91152] New: endif-label error when using #pragma with -fdirectives-only

2019-07-12 Thread jpewhacker at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91152

Bug ID: 91152
   Summary: endif-label error when using #pragma with
-fdirectives-only
   Product: gcc
   Version: 9.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: preprocessor
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jpewhacker at gmail dot com
  Target Milestone: ---

Created attachment 46595
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46595&action=edit
test.c

When using "-E -fdirectives-only" some pragmas enclosed in #if blocks will
cause endif-labels warning and also fail to preprocess correctly (the pragma is
remove from the processed output).

The attached program source can demonstrate this behaviour as follows:

 $ gcc -DUSE_OPENMP -fopenmp -E -fdirectives-only -o preprocess.c test.c &&
grep "pragma omp" preprocess.c
 test.c:4:7: warning: extra tokens at end of #endif directive [-Wendif-labels]
 4 | #pragma omp threadprivate(state)
   |   ^

Note the lack of pragma in the pre-processed output


Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin
--enable-initfini-array --with-isl --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-gnu-indirect-function --enable-cet
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 9.1.1 20190503 (Red Hat 9.1.1-1) (GCC)

[Bug tree-optimization/89430] A missing ifcvt optimization to generate csel

2019-07-12 Thread law at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89430

--- Comment #9 from Jeffrey A. Law  ---
Author: law
Date: Fri Jul 12 16:28:43 2019
New Revision: 273449

URL: https://gcc.gnu.org/viewcvs?rev=273449&root=gcc&view=rev
Log:
2019-07-12  Jiangning Liu  

PR tree-optimization/89430
* tree-ssa-phiopt.c (cond_store_replacement): Support conditional
store elimination for local variable without address escape.

PR tree-optimization/89430
* gcc.dg/tree-ssa/pr89430-1.c: New test.
* gcc.dg/tree-ssa/pr89430-2.c: New test.
* gcc.dg/tree-ssa/pr89430-3.c: New test.
* gcc.dg/tree-ssa/pr89430-4.c: New test.
* gcc.dg/tree-ssa/pr89430-5.c: New test.
* gcc.dg/tree-ssa/pr89430-6.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr89430-1.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr89430-2.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr89430-3.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr89430-4.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr89430-5.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr89430-6.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-phiopt.c

[Bug tree-optimization/89430] A missing ifcvt optimization to generate csel

2019-07-12 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89430

Jeffrey A. Law  changed:

   What|Removed |Added

 CC||law at redhat dot com

--- Comment #10 from Jeffrey A. Law  ---
Fixed on the trunk.

[Bug testsuite/78529] gcc.c-torture/execute/builtins/strcat-chk.c failed with lto/O2

2019-07-12 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78529

--- Comment #41 from Wilco  ---
Author: wilco
Date: Fri Jul 12 16:41:01 2019
New Revision: 273450

URL: https://gcc.gnu.org/viewcvs?rev=273450&root=gcc&view=rev
Log:
Turn off ipa-ra in builtins test (PR91059)

The gcc.c-torture/execute/builtins/lib directory contains a reimplementation
of many C library string functions, which causes non-trivial register
allocation
bugs with LTO and static linked libraries.  To fix this long-standing test
issue,
turn off ipa-ra which avoids the register corruption across calls.  All builtin
torture tests now pass on aarch64-none-elf.  Committed as obvious.
See PR78529 for more details.

testsuite/
PR testsuite/78529
* gcc.c-torture/execute/builtins/builtins.exp: Add -fno-ipa-ra.

Modified:
branches/gcc-8-branch/gcc/testsuite/ChangeLog
   
branches/gcc-8-branch/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp

[Bug target/61577] [4.9.0] can't compile on hp-ux v3 ia64

2019-07-12 Thread elowe at elowe dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577

--- Comment #65 from EML  ---
Yes, with that patch on 32bit, I'm not at the error described in comment 58.

I will upload the .final file

[Bug target/61577] [4.9.0] can't compile on hp-ux v3 ia64

2019-07-12 Thread elowe at elowe dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577

--- Comment #66 from EML  ---
Created attachment 46596
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46596&action=edit
Test program using islower

[Bug tree-optimization/79201] missed optimization: sinking doesn't handle calls, swap PRE and sinking

2019-07-12 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201

Jeffrey A. Law  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 CC||law at redhat dot com
 Resolution|--- |FIXED

--- Comment #4 from Jeffrey A. Law  ---
I was trolling through BZs related to an issue I'd recently looked at.  I
stumbled over this along the way.  AFAICT this is fixed on the trunk.  In the
.optimized dump we get the desired:

;; Function f (f, funcdef_no=0, decl_uid=1908, cgraph_uid=1, symbol_order=0)

f (int n)
{
   [local count: 32534378]:
  return 1;

}

[Bug c++/89906] [8 Regression] template template parameter redeclared

2019-07-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89906

Marek Polacek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||mpolacek at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org

--- Comment #6 from Marek Polacek  ---
We need to backport PR86098 to gcc-8-branch.

[Bug testsuite/78529] gcc.c-torture/execute/builtins/strcat-chk.c failed with lto/O2

2019-07-12 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78529

--- Comment #42 from Wilco  ---
Author: wilco
Date: Fri Jul 12 17:00:40 2019
New Revision: 273452

URL: https://gcc.gnu.org/viewcvs?rev=273452&root=gcc&view=rev
Log:
Turn off ipa-ra in builtins test (PR91059)

The gcc.c-torture/execute/builtins/lib directory contains a reimplementation
of many C library string functions, which causes non-trivial register
allocation
bugs with LTO and static linked libraries.  To fix this long-standing test
issue,
turn off ipa-ra which avoids the register corruption across calls.  All builtin
torture tests now pass on aarch64-none-elf.  Committed as obvious.
See PR78529 for more details.

testsuite/
PR testsuite/78529
* gcc.c-torture/execute/builtins/builtins.exp: Add -fno-ipa-ra.

Modified:
branches/gcc-9-branch/gcc/testsuite/ChangeLog
   
branches/gcc-9-branch/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp

[Bug libstdc++/91153] New: New test case 29_atomics/atomic_float/1.cc execution test fails

2019-07-12 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91153

Bug ID: 91153
   Summary: New test case 29_atomics/atomic_float/1.cc execution
test fails
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test2/./gcc/xg++ -shared-libgcc
-B/home/seurer/gcc/build/gcc-test2/./gcc -nostdinc++
-L/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/libstdc++-v3/src
-L/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/home/seurer/gcc/install/gcc-test2/powerpc64-unknown-linux-gnu/bin/
-B/home/seurer/gcc/install/gcc-test2/powerpc64-unknown-linux-gnu/lib/ -isystem
/home/seurer/gcc/install/gcc-test2/powerpc64-unknown-linux-gnu/include -isystem
/home/seurer/gcc/install/gcc-test2/powerpc64-unknown-linux-gnu/sys-include
-B/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/src/.libs
-fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++
-I/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu
-I/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/libstdc++-v3/include
-I/home/seurer/gcc/gcc-test2/libstdc++-v3/libsupc++
-I/home/seurer/gcc/gcc-test2/libstdc++-v3/include/backward
-I/home/seurer/gcc/gcc-test2/libstdc++-v3/testsuite/util
/home/seurer/gcc/gcc-test2/libstdc++-v3/testsuite/29_atomics/atomic_float/1.cc
-std=gnu++2a -fno-diagnostics-show-caret -fdiagnostics-color=never
./libtestc++.a -Wl,--gc-sections
-L/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/libstdc++-v3/src/filesystem/.libs
-lm -o ./1.exe
PASS: 29_atomics/atomic_float/1.cc (test for excess errors)
Setting LD_LIBRARY_PATH to
:/home/seurer/gcc/build/gcc-test2/gcc:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/../libatomic/.libs:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/../libgomp/.libs:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/src/.libs::/home/seurer/gcc/build/gcc-test2/gcc:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/../libatomic/.libs:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/../libgomp/.libs:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/src/.libs::/home/seurer/gcc/build/gcc-test2/gcc:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/../libgomp/.libs:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/src/.libs::/home/seurer/gcc/build/gcc-test2/gcc:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/../libgomp/.libs:/home/seurer/gcc/build/gcc-test2/powerpc64-unknown-linux-gnu/./libstdc++-v3/src/.libs:/home/seurer/gcc/build/gcc-test2/./gmp/.libs:/home/seurer/gcc/build/gcc-test2/./prev-gmp/.libs:/home/seurer/gcc/build/gcc-test2/./mpfr/src/.libs:/home/seurer/gcc/build/gcc-test2/./prev-mpfr/src/.libs:/home/seurer/gcc/build/gcc-test2/./mpc/src/.libs:/home/seurer/gcc/build/gcc-test2/./prev-mpc/src/.libs:/home/seurer/gcc/build/gcc-test2/./isl/.libs:/home/seurer/gcc/build/gcc-test2/./prev-isl/.libs:/home/seurer/gcc/install/gcc-7.2.0/lib64
Execution timeout is: 300
spawn [open ...]
/home/seurer/gcc/gcc-test2/libstdc++-v3/testsuite/29_atomics/atomic_float/1.cc:461:
void test03(): Assertion 'a1 == 4.96l' failed.
FAIL: 29_atomics/atomic_float/1.cc execution test
testcase
/home/seurer/gcc/gcc-test2/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp
completed in 16 seconds

=== libstdc++ Summary ===

# of expected passes1
# of unexpected failures1

[Bug testsuite/78529] gcc.c-torture/execute/builtins/strcat-chk.c failed with lto/O2

2019-07-12 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78529

--- Comment #43 from Wilco  ---
Author: wilco
Date: Fri Jul 12 17:15:13 2019
New Revision: 273453

URL: https://gcc.gnu.org/viewcvs?rev=273453&root=gcc&view=rev
Log:
Turn off ipa-ra in builtins test (PR91059)

The gcc.c-torture/execute/builtins/lib directory contains a reimplementation
of many C library string functions, which causes non-trivial register
allocation
bugs with LTO and static linked libraries.  To fix this long-standing test
issue,
turn off ipa-ra which avoids the register corruption across calls.  All builtin
torture tests now pass on aarch64-none-elf.  Committed as obvious.
See PR78529 for more details.

testsuite/
PR testsuite/78529
* gcc.c-torture/execute/builtins/builtins.exp: Add -fno-ipa-ra.

Modified:
branches/gcc-7-branch/gcc/testsuite/ChangeLog
   
branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp

[Bug testsuite/78529] gcc.c-torture/execute/builtins/strcat-chk.c failed with lto/O2

2019-07-12 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78529

--- Comment #44 from Wilco  ---
Backported fix to all active branches so this should never fail again.

[Bug tree-optimization/91151] new test case gcc.dg/tree-ssa/vector-7.c fails with its introduction in r273435

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91151

--- Comment #2 from Richard Biener  ---
Bah, I didn't actually test the BIG_ENDIAN case ... can you maybe check it and
fix it up or report whether it actually miscompiles?

[Bug target/91150] [10 Regression] wrong code with -O -mavx512vbmi due to wrong writemask

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91150

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |10.0

[Bug tree-optimization/91154] New: [10 Regression] 456.hmmer regression on Haswell

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91154

Bug ID: 91154
   Summary: [10 Regression] 456.hmmer regression on Haswell
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

https://gcc.opensuse.org/gcc-old/SPEC/CINT/sb-czerny-head-64-2006/456_hmmer_big.png

shows two recent regressions, one around June 13th and one around Jul 3th.

[Bug tree-optimization/91154] [10 Regression] 456.hmmer regression on Haswell

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91154

Richard Biener  changed:

   What|Removed |Added

   Keywords||missed-optimization
 Target||x86_64-*-*
   Target Milestone|--- |10.0

[Bug tree-optimization/91151] new test case gcc.dg/tree-ssa/vector-7.c fails with its introduction in r273435

2019-07-12 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91151

--- Comment #3 from seurer at gcc dot gnu.org ---
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
(v4si) { 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f01 }[i]
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
(v4si) { 0x04030201, 0x08070605, 0x0c0b0a09, 0x100f0e0d }[i]


It looks like just a typo in the test case for BE.  

0x0d0e0f01 should be 0x0d0e0f10 based on the LE code.

Tried that and ... it works.

[Bug tree-optimization/91151] new test case gcc.dg/tree-ssa/vector-7.c fails with its introduction in r273435

2019-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91151

--- Comment #4 from Richard Biener  ---
(In reply to seurer from comment #3)
> #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
>   (v4si) { 0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f01 }[i]
> #elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
>   (v4si) { 0x04030201, 0x08070605, 0x0c0b0a09, 0x100f0e0d }[i]
> 
> 
> It looks like just a typo in the test case for BE.  
> 
> 0x0d0e0f01 should be 0x0d0e0f10 based on the LE code.
> 
> Tried that and ... it works.

oops - yes.  care to commit?

[Bug target/91148] PowerPC build gets several warnings due to -Wformat-diag

2019-07-12 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91148

--- Comment #5 from Segher Boessenkool  ---
I have a patch removing "builtin function" where that is redundant.

[Bug c++/86375] Lambda call in template parameter causes compile time error

2019-07-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86375

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2019-07-12
 CC||mpolacek at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Marek Polacek  ---
Will do.

[Bug libstdc++/91153] New test case 29_atomics/atomic_float/1.cc execution test fails

2019-07-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91153

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2019-07-12
   Assignee|unassigned at gcc dot gnu.org  |redi at gcc dot gnu.org
 Ever confirmed|0   |1

[Bug c++/91155] New: __PRETTY_FUNCTION__ gets truncated when char template parameter is '\0'

2019-07-12 Thread d.frey at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91155

Bug ID: 91155
   Summary: __PRETTY_FUNCTION__ gets truncated when char template
parameter is '\0'
   Product: gcc
   Version: 9.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: d.frey at gmx dot de
  Target Milestone: ---

This is a regression against 8.x:

#include 

template< char C > struct dummy {};
template< typename T > void test()
{
std::cout << __PRETTY_FUNCTION__ << std::endl;
}

int main()
{
test< dummy< '\0' > >();
}

Incorrect output with GCC 9.1:

void test() [with T = dummy<'

Correct output with GCC 8.3:

void test() [with T = dummy<'\000'>]

Link: https://godbolt.org/z/SC3nJ7

[Bug target/89096] [7/8/9/10 regression] AIX 7 linker rejects _.ro_ sections by default

2019-07-12 Thread andrew at ishiboo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89096

--- Comment #13 from Andrew Paprocki  ---
What is the other bug number w/ patch that you're referring to?

[Bug tree-optimization/80576] dead strcpy and strncpy followed by memset not eliminated

2019-07-12 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80576

Jeffrey A. Law  changed:

   What|Removed |Added

 CC||law at redhat dot com

--- Comment #3 from Jeffrey A. Law  ---
I happened to stumble across this while looking for something else in BZ.  I
don't think it'd be hard to do this in DSE.  The question I have is how common
this is in practice.

Have you seen this kind of code in the wild?

[Bug target/89096] [7/8/9/10 regression] AIX 7 linker rejects _.ro_ sections by default

2019-07-12 Thread andrew at ishiboo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89096

--- Comment #14 from Andrew Paprocki  ---
I can reproduce this error with a much simpler project, pcre, that uses
autotools and libtool.

Using pcre 8.42 from https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.gz

$ mkdir build
$ cd build
$ CC=gcc-6 CXX=g++-6 OBJECT_MODE=32 CFLAGS="-maix32 -O" CXXFLAGS="-maix32 -O"
../configure --enable-unicode-properties --enable-pcre16 --enable-pcre32
--enable-jit
$ OBJECT_MODE=32 make V=1
...
g++-6 -DHAVE_CONFIG_H -I. -I.. -maix32 -O -MT
pcrecpp_unittest-pcrecpp_unittest.o -MD -MP -MF
.deps/pcrecpp_unittest-pcrecpp_unittest.Tpo -c -o
pcrecpp_unittest-pcrecpp_unittest.o `test -f 'pcrecpp_unittest.cc' || echo
'../'`pcrecpp_unittest.cc
mv -f .deps/pcrecpp_unittest-pcrecpp_unittest.Tpo
.deps/pcrecpp_unittest-pcrecpp_unittest.Po
/bin/sh ./libtool  --tag=CXX   --mode=link g++-6  -maix32 -O   -o
pcrecpp_unittest pcrecpp_unittest-pcrecpp_unittest.o libpcrecpp.la  -lpthreads
libtool: link: g++-6 -maix32 -O -o .libs/pcrecpp_unittest
pcrecpp_unittest-pcrecpp_unittest.o  -L/tmp/pcre/build/.libs -L./.libs
-lpcrecpp -lpcre -L/path/to/gcc/lib -lstdc++ -lm -lpthreads
-Wl,-blibpath:/usr/local/lib:/path/to/gcc/lib:/path/to/gcc/lib/.:/usr/lib:/lib
ld: 0711-308 SEVERE ERROR: Object pcrecpp_unittest-pcrecpp_unittest.o, csect
<_pcrecppunittest.ro_>
The csect is part of the .text section.
collect2: error: ld returned 12 exit status
Makefile:1518: recipe for target 'pcrecpp_unittest' failed
make[1]: *** [pcrecpp_unittest] Error 1

I've narrowed this down to the usage of the -bsvr4 linker flag, which we use
because we depend on passing multiple -R parameters and the linker behavior
described in the man page:

   -R Path
... Multiple instances of this option are
concatenated together with each Path separated by a colon.

If -bsvr4 is placed on the collect2 command line (obtained from -v output of
the link), the link fails with the output above. I know in the past flag
ordering has mattered, and in this case it fails in the same manner when it is
both the first flag and last flag on the command line. This fails without any
usage of -bexpall and -brtl.

[Bug target/89096] [7/8/9/10 regression] AIX 7 linker rejects _.ro_ sections by default

2019-07-12 Thread andrew at ishiboo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89096

--- Comment #15 from Andrew Paprocki  ---
Created attachment 46597
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46597&action=edit
g++-6 -S output of pcrecpp_unittest.cc

Generated with the command line:

g++-6 -DHAVE_CONFIG_H -I. -I.. -maix32 -O -MT
pcrecpp_unittest-pcrecpp_unittest.o -MD -MP -MF
.deps/pcrecpp_unittest-pcrecpp_unittest.Tpo -S ../pcrecpp_unittest.cc

[Bug libstdc++/91156] New: The associated laguerre polynomial should allow nedative arguments.

2019-07-12 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91156

Bug ID: 91156
   Summary: The associated laguerre polynomial should allow
nedative arguments.
   Product: gcc
   Version: 9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: emsr at gcc dot gnu.org
  Target Milestone: ---

The associated Laguerre polynomial should allow negative arguments.
It's not often used for negative arguments but it's a polynomial and it doesn't
do anything nasty for negative arguments.

Unlike the case for associated Lagendre polynomial the origin is not a branch
point.

[Bug target/69142] missing documentation for s/390 zvector builtin features

2019-07-12 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69142

Eric Gallager  changed:

   What|Removed |Added

 CC||egallager at gcc dot gnu.org

--- Comment #1 from Eric Gallager  ---
Andreas, you put yourself as the assignee but didn't change the status to
ASSIGNED; was that intentional?

[Bug rtl-optimization/58036] [meta-bug] alias.c:base_alias_check says stack accesses with different base registers don't alias

2019-07-12 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58036

Eric Gallager  changed:

   What|Removed |Added

 CC||egallager at gcc dot gnu.org

--- Comment #1 from Eric Gallager  ---
I think the "Blocks" field might need to be swapped into the "Depends on"
field; normally meta-bugs depend on more bugs than they block.

[Bug c++/57255] [meta-bug] ref-qualifiers

2019-07-12 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57255

Eric Gallager  changed:

   What|Removed |Added

 CC||egallager at gcc dot gnu.org

--- Comment #1 from Eric Gallager  ---
all the bugs that this one depends upon have been closed; can this one be
closed as well?

[Bug debug/49348] DW_TAG_template_* DIEs missing from template specializations

2019-07-12 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49348

Eric Gallager  changed:

   What|Removed |Added

   Keywords||patch
 Status|ASSIGNED|WAITING
URL||http://gcc.gnu.org/ml/gcc-p
   ||atches/2011-06/msg00873.htm
   ||l
 CC||egallager at gcc dot gnu.org,
   ||jason at gcc dot gnu.org
   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=41736

--- Comment #5 from Eric Gallager  ---
(In reply to Alexandre Oliva from comment #4)
> From Jason's feedback in response to the proposed patch, it looks like this
> is not a bug, after all, and GCC is working as intended.  Is there any
> reason for this bug to remain open?

WAITING on a reply to this

[Bug target/89096] [7/8/9/10 regression] AIX 7 linker rejects _.ro_ sections by default

2019-07-12 Thread dje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89096

--- Comment #16 from David Edelsohn  ---
I applied the patch to GCC to fix this.

ATOS and IBM also are trying to work with CMake to fix the broken patches, but
Kitware isn't being helpful and accommodating.

[Bug c/91149] GCC 9 and later incorrectly rejects OpenMP task reduction-modifier on target parallel combined construct

2019-07-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91149

--- Comment #1 from Jakub Jelinek  ---
Author: jakub
Date: Sat Jul 13 06:29:46 2019
New Revision: 273465

URL: https://gcc.gnu.org/viewcvs?rev=273465&root=gcc&view=rev
Log:
PR c/91149
* c-omp.c (c_omp_split_clauses): Fix a pasto in
OMP_CLAUSE_REDUCTION_TASK handling.

* c-c++-common/gomp/reduction-task-3.c: New test.

Added:
trunk/gcc/testsuite/c-c++-common/gomp/reduction-task-3.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-omp.c
trunk/gcc/testsuite/ChangeLog

[Bug tree-optimization/91157] New: [10 Regression] ICE: verify_gimple failed (error: position plus size exceeds size of referenced object in 'bit_field_ref')

2019-07-12 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91157

Bug ID: 91157
   Summary: [10 Regression] ICE: verify_gimple failed (error:
position plus size exceeds size of referenced object
in 'bit_field_ref')
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: asolokha at gmx dot com
  Target Milestone: ---
Target: x86_64-unknown-linux-gnu

gcc-10.0.0-alpha20190707 snapshot (r273184) ICEs when compiling the following
testcase w/ -mavx512vbmi -fexceptions -fnon-call-exceptions -fsignaling-nans:

typedef long double __attribute__ ((vector_size (4 * sizeof (long double
  v4ldbl;

v4ldbl
uc (v4ldbl gl)
{
  return gl == 0;
}

% x86_64-unknown-linux-gnu-gcc-10.0.0-alpha20190707 -mavx512vbmi -fexceptions
-fnon-call-exceptions -fsignaling-nans -c naoatmj5.c
naoatmj5.c: In function 'uc':
naoatmj5.c:5:1: error: position plus size exceeds size of referenced object in
'bit_field_ref'
5 | uc (v4ldbl gl)
  | ^~
_8 = BIT_FIELD_REF <_1, 128, 0>;
naoatmj5.c:5:1: error: position plus size exceeds size of referenced object in
'bit_field_ref'
_11 = BIT_FIELD_REF <_1, 128, 128>;
naoatmj5.c:5:1: error: position plus size exceeds size of referenced object in
'bit_field_ref'
_14 = BIT_FIELD_REF <_1, 128, 256>;
naoatmj5.c:5:1: error: position plus size exceeds size of referenced object in
'bit_field_ref'
_17 = BIT_FIELD_REF <_1, 128, 384>;
during GIMPLE pass: veclower
naoatmj5.c:5:1: internal compiler error: verify_gimple failed
0xd94a7e verify_gimple_in_cfg(function*, bool)
   
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20190707/work/gcc-10-20190707/gcc/tree-cfg.c:5426
0xc6e519 execute_function_todo
   
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20190707/work/gcc-10-20190707/gcc/passes.c:1963
0xc6f2c6 execute_todo
   
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20190707/work/gcc-10-20190707/gcc/passes.c:2017

Older branches of gcc reject this code but don't ICE.