[Bug tree-optimization/98775] missing optimization opportunity on nbody

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98775 --- Comment #2 from Richard Biener --- A quick check comparing GCC 10 to GCC 11 shows an improvement from 3.5s to 2.7s on a Zen2 machine (with -march=native).

[Bug c++/98744] [11 Regression] ICE in gimple_call_arg, at gimple.h:3246 since r11-6735-g424deca72b63e644

2021-01-21 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98744 --- Comment #5 from Martin Liška --- > > Jason, is it possible a wrong constructor is emitted to the IL? > Thank you Martin for the analysis. That explains why the bisection point to Jason's revision. @Jason: Can you please take a look?

[Bug ipa/96431] [11 regression] ipa-clone-2.c fails since r11-2482-g13cdbb6a97c3d853cd380e5a03be8e0d35966c1e

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96431 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/98625] UBSAN: gcc/cp/module.cc:977:15: runtime error: left shift of negative value -1

2021-01-21 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98625 Martin Liška changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2021-01-21 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 98625, which changed state. Bug 98625 Summary: UBSAN: gcc/cp/module.cc:977:15: runtime error: left shift of negative value -1 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98625 What|Removed

[Bug rtl-optimization/98777] New: [11 Regression] ICE in update_equiv at gcc/lra-constraints.c:504 since r11-6819-g4334b52427420312

2021-01-21 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98777 Bug ID: 98777 Summary: [11 Regression] ICE in update_equiv at gcc/lra-constraints.c:504 since r11-6819-g4334b52427420312 Product: gcc Version: 11.0 St

[Bug rtl-optimization/98777] [11 Regression] ICE in update_equiv at gcc/lra-constraints.c:504 since r11-6819-g4334b52427420312

2021-01-21 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98777 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to fail|

[Bug inline-asm/98778] New: asm() accepts certain "i" (symbol) constructs despite -fpie for x86-64

2021-01-21 Thread jbeulich at suse dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98778 Bug ID: 98778 Summary: asm() accepts certain "i" (symbol) constructs despite -fpie for x86-64 Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug testsuite/97299] [11 regression] gcc.dg/vect/slp-reduc-3.c fails after r11-3563

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97299 --- Comment #7 from Richard Biener --- Created attachment 50017 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50017&action=edit patch OK, so the arm fails are because they use load_lanes. Which means adjusting like /* { dg-final { scan-

[Bug testsuite/97299] [11 regression] gcc.dg/vect/slp-reduc-3.c fails after r11-3563

2021-01-21 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97299 --- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #7 from Richard Biener --- > Created attachment 50017 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50017&action=edit > patch [...] > Rainer, can you test the atta

[Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #25 from Richard Biener --- How about allocating memory by other means (brk/mmap) instead? That is, run your own simple allocator? I suppose gcov never frees things (until the end) so it could be quite simple one? And fall back to

[Bug testsuite/98224] [11 regression] gcc.dg/Walloca-2.c XPASSes

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98224 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug testsuite/98241] [11 regression] gcc.dg/pr78973.c XPASSes

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98241 --- Comment #1 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:8afef308b49c9d8dfe38fab7bbb5f6bb070b093d commit r11-6830-g8afef308b49c9d8dfe38fab7bbb5f6bb070b093d Author: Richard Biener Date:

[Bug testsuite/98241] [11 regression] gcc.dg/pr78973.c XPASSes

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98241 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug testsuite/98325] [11 regression] gcc.dg/pr25376.c fails after r11-5027

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98325 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/98694] GCC produces incorrect code for loops with -O3 for skylake-avx512 and icelake-server

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98694 Richard Biener changed: What|Removed |Added Summary|[11 Regression] GCC |GCC produces incorrect code

[Bug libstdc++/94080] -mabi=ieeelongdouble and -mfloat128 cause libstc++ header breakage

2021-01-21 Thread wschmidt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94080 --- Comment #2 from Bill Schmidt --- Let's see, with patches from late last year, can this be closed now?

[Bug tree-optimization/85804] [8/9/10/11 Regression][AArch64] Mis-compilation of loop with strided array access and xor reduction

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85804 Richard Biener changed: What|Removed |Added Status|NEW |WAITING --- Comment #12 from Richard Bi

[Bug testsuite/97299] [11 regression] gcc.dg/vect/slp-reduc-3.c fails after r11-3563

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97299 --- Comment #9 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:f46a40112caa7e039d949beda94386ff4e436a35 commit r11-6831-gf46a40112caa7e039d949beda94386ff4e436a35 Author: Richard Biener Date:

[Bug testsuite/97299] [11 regression] gcc.dg/vect/slp-reduc-3.c fails after r11-3563

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97299 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|REOPENED

[Bug fortran/96320] gfortran 8-10 shape mismatch in assumed-length dummy argument character array

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96320 --- Comment #28 from CVS Commits --- The master branch has been updated by Paul Thomas : https://gcc.gnu.org/g:eaf883710c0039eca5caea5115e848adb4ab67bd commit r11-6832-geaf883710c0039eca5caea5115e848adb4ab67bd Author: Paul Thomas Date: Thu J

[Bug ipa/98078] ICE in cgraph_add_edge_to_call_site_hash, at cgraph.c:698 since r6-1705-gd88511aec7338a93

2021-01-21 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98078 --- Comment #4 from Martin Jambor --- Actually no, that would be papering over a bigger problem. After looking at the issue a bit more, I proposed a patch on the mailing list: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/563962.html

[Bug libgcc/98779] New: [arm] libgcc incompatible with -mpure-code

2021-01-21 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98779 Bug ID: 98779 Summary: [arm] libgcc incompatible with -mpure-code Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc

[Bug debug/98780] New: Missing line table entry for inlined stmt at -g -O0

2021-01-21 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98780 Bug ID: 98780 Summary: Missing line table entry for inlined stmt at -g -O0 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c++/98750] does not detect dead code

2021-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98750 Jonathan Wakely changed: What|Removed |Added Ever confirmed|1 |0 Status|WAITING

[Bug c++/98744] [11 Regression] ICE in gimple_call_arg, at gimple.h:3246 since r11-6735-g424deca72b63e644

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98744 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #6

[Bug debug/98780] Missing line table entry for inlined stmt at -g -O0

2021-01-21 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98780 --- Comment #1 from Tom de Vries --- At final, we have: ... (note 113 30 112 2 0x7f53d1836de0 NOTE_INSN_BLOCK_BEG) (note 112 113 31 2 0x7f53d1836e40 NOTE_INSN_BLOCK_BEG) (call_insn 31 112 114 2 (call (mem:QI (symbol_ref:DI ("bar") [flags 0x41] )

[Bug target/98694] GCC produces incorrect code for loops with -O3 for skylake-avx512 and icelake-server

2021-01-21 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98694 --- Comment #11 from Hongtao.liu --- (In reply to Richard Biener from comment #10) > Fixed on trunk, latent on the branch(es) where we don't have a testcase(?) Yes, not sure about the backport.

[Bug tree-optimization/98772] Widening patterns causing missed vectorization

2021-01-21 Thread joelh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98772 --- Comment #2 from Joel Hutton --- Yes, it is aarch64, I have updated the field.

[Bug libstdc++/98781] New: Poor std::hash for bitset and vector

2021-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98781 Bug ID: 98781 Summary: Poor std::hash for bitset and vector Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ABI Severity: normal Priority: P3

[Bug libstdc++/98781] Poor std::hash for bitset and vector

2021-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98781 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/98335] [9/10/11 Regression] Poor code generation for partial struct initialization

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98335 --- Comment #5 from Jakub Jelinek --- So I think we want to improve that + /* If more than a word remains, then make sure to keep the + starting point at least word aligned. */ + if (last_live - first_live > UNITS_PER_WORD) +*trim_head

[Bug target/92095] [8/9/10 regression] internal error with -O1 -mcpu=niagara2 -fPIE

2021-01-21 Thread romain.naour at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92095 Romain Naour changed: What|Removed |Added CC||romain.naour at gmail dot com --- Comment

[Bug libstdc++/98731] s390x: Large classes of std::bitset and std::vector hash the same

2021-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98731 Jonathan Wakely changed: What|Removed |Added Target|s390x-linux-gnu |s390x-linux-gnu, |

[Bug inline-asm/98778] asm() accepts certain "i" (symbol) constructs despite -fpie for x86-64

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98778 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug inline-asm/98778] asm() accepts certain "i" (symbol) constructs despite -fpie for x86-64

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98778 --- Comment #2 from Jakub Jelinek --- In particular it is up to the inline asm writer to ensure that the result is PIC compatible through a wise choice of constraints etc.

[Bug target/98348] [10/11 Regression] GCC 10.2 AVX512 Mask regression from GCC 9

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98348 --- Comment #15 from Jakub Jelinek --- I haven't seen the patch posted to gcc-patches, have I missed it? Patch review should happen there.

[Bug c++/98295] [8/9/10/11 Regression] ICE in verify_ctor_sanity, at cp/constexpr.c:4312

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98295 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #2 from Jakub Jelinek --- Martin, can you please have a look? Thanks.

[Bug ipa/98690] [10/11 Regression] unexpected "'removed_return.213' may be used uninitialized in this function" causes crash since r10-3311-gff6686d2e5f797d6

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98690 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Sta

[Bug tree-optimization/97960] [8/9/10/11 Regression] Wrong code at -O3 since r8-6511-g3ae129323d

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97960 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug c++/97627] [9/10/11 Regression] loop end condition missing - endless loop with -fPIC

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97627 --- Comment #8 from Jakub Jelinek --- Still broken on current 10 branch, as written works fine on the trunk due to the C++ FE loop changes. Bin, did you have time to look into this yet?

[Bug c++/97627] [9/10/11 Regression] loop end condition missing - endless loop with -fPIC

2021-01-21 Thread amker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97627 --- Comment #9 from bin cheng --- (In reply to Jakub Jelinek from comment #8) > Still broken on current 10 branch, as written works fine on the trunk due to > the C++ FE loop changes. > Bin, did you have time to look into this yet? I am very sor

[Bug inline-asm/98778] asm() accepts certain "i" (symbol) constructs despite -fpie for x86-64

2021-01-21 Thread jbeulich at suse dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98778 --- Comment #3 from jbeulich at suse dot com --- (In reply to Jakub Jelinek from comment #2) > In particular it is up to the inline asm writer to ensure that the result is > PIC compatible through a wise choice of constraints etc. Perhaps the des

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #3 from Martin Jambor --- So SRA sees statements: n[0][2] = "\t\x02\b"; and later _11 = n[0][3][4294967294]; The latter loads a scalar sitting inside what the store above initialized (according to get_ref_base_and_extent) and so

[Bug target/98618] aarch64: oob adrp offset causes relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98618 --- Comment #6 from CVS Commits --- The releases/gcc-9 branch has been updated by Wilco Dijkstra : https://gcc.gnu.org/g:1e18f4bbd8318db1e606f7092a224e4bb21a8a26 commit r9-9193-g1e18f4bbd8318db1e606f7092a224e4bb21a8a26 Author: Wilco Dijkstra D

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #4 from Jakub Jelinek --- The return n[0][3][-2U]; access is UB in the program, so if it would be reached, it can do anything, but the important thing is that it is guarded with while (g) where g is always 0 during the exection of the

[Bug c++/98530] [11 Regression] g++.dg/modules/string-1_b.C etc. FAIL

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98530 --- Comment #4 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:3c1cf7350bff6ba03faaa61b44d74bf8a06c6543 commit r11-6834-g3c1cf7350bff6ba03faaa61b44d74bf8a06c6543 Author: Nathan Sidwell Date:

[Bug c++/98530] [11 Regression] g++.dg/modules/string-1_b.C etc. FAIL

2021-01-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98530 Nathan Sidwell changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libgomp/98738] task-detach-6.f90 hangs intermittently

2021-01-21 Thread kcy at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98738 --- Comment #9 from Kwok Yeung --- I have a patch for this now. In addition to posting other semaphores in omp_fulfill_event, GOMP_taskwait also needs to be made aware of detached tasks. Also, task_running_count should not include completed tasks

[Bug c++/98624] UBSAN: gcc/cp/module.cc:5895:29: runtime error: member call on null pointer of type 'struct module_state'

2021-01-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98624 Nathan Sidwell changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2021-01-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 98624, which changed state. Bug 98624 Summary: UBSAN: gcc/cp/module.cc:5895:29: runtime error: member call on null pointer of type 'struct module_state' https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98624 What

[Bug libgomp/98738] task-detach-6.f90 hangs intermittently

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98738 --- Comment #10 from Jakub Jelinek --- I've been wondering whether it wouldn't be best to pass through omp_eventhandle_t the pointer to the gomp_task rather than some particular semaphore and in omp_fulfill_event then decide based on that task,

[Bug tree-optimization/98772] Widening patterns causing missed vectorization

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98772 --- Comment #3 from Richard Biener --- But the issue seems to be t.c:3:22: note: ==> examining statement: _34 = *pix1_19; t.c:3:22: missed: permutation requires at least three vectors _34 = *pix1_19; t.c:3:22: missed: unsupported load perm

[Bug target/96372] [11 regression] arm/ivopts.c fails since r11-2012

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96372 --- Comment #3 from CVS Commits --- The master branch has been updated by Andrea Corallo : https://gcc.gnu.org/g:0568f801effcea6f4e066c40bc346513d6b946c5 commit r11-6836-g0568f801effcea6f4e066c40bc346513d6b946c5 Author: Andrea Corallo Date:

[Bug target/98348] [10/11 Regression] GCC 10.2 AVX512 Mask regression from GCC 9

2021-01-21 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98348 --- Comment #16 from Hongtao.liu --- (In reply to Jakub Jelinek from comment #15) > I haven't seen the patch posted to gcc-patches, have I missed it? > Patch review should happen there. https://gcc.gnu.org/pipermail/gcc-patches/2021-January/5629

[Bug ada/98773] [11 regression] Bootstrap failure: "Trmsgggg" conflicts with declaration

2021-01-21 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98773 Rainer Orth changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #5 from Martin Jambor --- Right, the issue is that SRA depends on get_ref_base_and_extent to figure out what is being accessed (and so whether it is safe) and that function believes the load is safely from within the array.

[Bug sanitizer/95693] [8/9/10/11 Regression] Incorrect error from undefined behavior sanitizer

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95693 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #6 from Jakub Jelinek --- get_ref_base_and_extent is not the right API to check for the UBs caused by out of bounds accesses, tree_could_trap_p is.

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #7 from Martin Jambor --- Even our constant folding thinks the unsigned expression wraps around. If I tell SRA to fold the expression if the base is a string_cst, the invalid dereference is avoided. My experiment was (I am not propo

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #8 from Jakub Jelinek --- 503 poly_offset_int woffset 504 = wi::sext (wi::to_poly_offset (index) 505 - wi::to_poly_offset (low_bound), 506

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #9 from Richard Biener --- (In reply to Jakub Jelinek from comment #8) > 503 poly_offset_int woffset > 504 = wi::sext (wi::to_poly_offset (index) > 505 - wi::to_pol

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #10 from Martin Jambor --- OK, adding an additional check whether tree_could_trap_p is of course easy. I'll wait a little while if the discussion about get_ref_base_and_extent perhaps leads to a different solution but if not, I will

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #11 from Richard Biener --- (In reply to Richard Biener from comment #9) > (In reply to Jakub Jelinek from comment #8) > > 503 poly_offset_int woffset > > 504 = wi::sext (wi::to_poly_offset (index) >

[Bug rtl-optimization/98782] New: IRA artificially creating spills due to BB frequencies

2021-01-21 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98782 Bug ID: 98782 Summary: IRA artificially creating spills due to BB frequencies Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ra Severity: normal Prior

[Bug rtl-optimization/98782] IRA artificially creating spills due to BB frequencies

2021-01-21 Thread jgreenhalgh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98782 James Greenhalgh changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/98697] shl not vectorized for v16qi and v8hi with MVE

2021-01-21 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98697 --- Comment #2 from Christophe Lyon --- Why would this be different from right shift, where we don't miss the optimization?

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 Jakub Jelinek changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org --- Comment

[Bug driver/98783] New: Wrong ouput of "-O3 -Q --help=optimizers" on gcc built with --enable-frame-pointer

2021-01-21 Thread hasse.christoph at cern dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98783 Bug ID: 98783 Summary: Wrong ouput of "-O3 -Q --help=optimizers" on gcc built with --enable-frame-pointer Product: gcc Version: 10.2.0 Status: UNCONFIRMED Seve

[Bug testsuite/98325] [11 regression] gcc.dg/pr25376.c fails after r11-5027

2021-01-21 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98325 seurer at gcc dot gnu.org changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLV

[Bug target/98730] vceqzq_p64 does not generate vceq with immediate 0

2021-01-21 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98730 rsandifo at gcc dot gnu.org changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org

[Bug ipa/93385] [10/11 Regression] wrong code with u128 modulo at -O2 -fno-dce -fno-ipa-cp -fno-tree-dce

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93385 --- Comment #39 from Jakub Jelinek --- What happened to that patch series? Has it been committed without showing it up in the PR, something else?

[Bug other/98689] [11 Regression] FAIL: gcc.dg/torture/stackalign/builtin-return-1.c -O1 execution test

2021-01-21 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98689 John David Anglin changed: What|Removed |Added Summary|FAIL: |[11 Regression] FAIL:

[Bug tree-optimization/98772] Widening patterns causing missed vectorization

2021-01-21 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98772 rsandifo at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2021-01-21

[Bug target/98730] vceqzq_p64 does not generate vceq with immediate 0

2021-01-21 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98730 --- Comment #3 from Christophe Lyon --- At expand time, we have: (insn 13 12 14 2 (set (reg:V2SI 121 [ _11 ]) (neg:V2SI (eq:V2SI (subreg:V2SI (reg:DI 116 [ _6 ]) 0) (subreg:V2SI (reg:DI 118 [ _8 ]) 0 "arm_neon.h":2404:

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 --- Comment #13 from Jakub Jelinek --- Created attachment 50021 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50021&action=edit gcc11-pr98255.patch The full patch would be I think this. Am going to bootstrap/regtest it just to see what i

[Bug target/92095] [8/9/10 regression] internal error with -O1 -mcpu=niagara2 -fPIE

2021-01-21 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92095 --- Comment #10 from Eric Botcazou --- > This patch produce a regression on sparcv8 SS10 platform. > > In Buildroot we have a defconfig qemu_sparc_ss10_defconfig that was working > (booting) with gcc 7.4, 8.3 and 9.2. But it doesn't boot anymore

[Bug c++/98672] constexpr function - for loop with return statement doesn't get recognized as constexpr subexpression

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98672 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:0fb7aa205afebe178c06683037ccd4c41104337a commit r11-6840-g0fb7aa205afebe178c06683037ccd4c41104337a Author: Jakub Jelinek Date: Th

[Bug c++/98672] constexpr function - for loop with return statement doesn't get recognized as constexpr subexpression

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98672 --- Comment #3 from Jakub Jelinek --- Fixed on the trunk. I think we need to backport this at least to 10.3 eventually.

[Bug target/97981] [11 regression] 32-bit x86 'gcc.dg/atomic/c11-atomic-exec-1.c' execution test since r11-5188-g32934a4f45a72144

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97981 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/98531] [11 Regression] g++.dg/modules/xtreme-header-2_a.H etc. FAIL

2021-01-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98531 --- Comment #5 from Nathan Sidwell --- Created attachment 50022 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50022&action=edit reduced testcase, this is not solaris-specific, but solaris happened to tickle it uniquely

[Bug c++/97597] [11 Regression] ICE in build_over_call, at cp/call.c:9034

2021-01-21 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97597 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/98730] vceqzq_p64 does not generate vceq with immediate 0

2021-01-21 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98730 --- Comment #4 from rsandifo at gcc dot gnu.org --- Hmm, yeah, looks like it might be a cost issue then. arm_rtx_costs_internal seems to give CONST_VECTOR a cost of 1 or 4 instructions, whereas a zero CONST_VECTOR is free in this context. Altho

[Bug target/98618] aarch64: oob adrp offset causes relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98618 --- Comment #7 from CVS Commits --- The releases/gcc-8 branch has been updated by Wilco Dijkstra : https://gcc.gnu.org/g:c9569046bd8ba2671833d600b3bdbdb7de593873 commit r8-10736-gc9569046bd8ba2671833d600b3bdbdb7de593873 Author: Wilco Dijkstra

[Bug target/98618] aarch64: oob adrp offset causes relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21

2021-01-21 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98618 Wilco changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/97742] [10/11 Regression] endless loop with code reduced by creduce/cvise

2021-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97742 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug fortran/98573] Dynamic type lost on assignment

2021-01-21 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98573 Paul Thomas changed: What|Removed |Added CC||pault at gcc dot gnu.org Assigne

[Bug c++/98624] UBSAN: gcc/cp/module.cc:5895:29: runtime error: member call on null pointer of type 'struct module_state'

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98624 --- Comment #4 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:7944753fad501194eb8a828d6b74270e79d14a4d commit r11-6841-g7944753fad501194eb8a828d6b74270e79d14a4d Author: Nathan Sidwell Date:

[Bug c++/98624] UBSAN: gcc/cp/module.cc:5895:29: runtime error: member call on null pointer of type 'struct module_state'

2021-01-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98624 Nathan Sidwell changed: What|Removed |Added Resolution|--- |FIXED Status|REOPENED

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2021-01-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 98624, which changed state. Bug 98624 Summary: UBSAN: gcc/cp/module.cc:5895:29: runtime error: member call on null pointer of type 'struct module_state' https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98624 What

[Bug middle-end/90248] [8/9/10/11 Regression] larger than 0 compare fails with -ffinite-math-only -funsafe-math-optimizations

2021-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90248 --- Comment #15 from Jakub Jelinek --- Created attachment 50024 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50024&action=edit gcc11-pr90248.patch So, I think at minimum we want this, i.e. turn the bogus simplifications into simplificati

[Bug fortran/98573] Dynamic type lost on assignment

2021-01-21 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98573 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug driver/98783] Wrong ouput of "-O3 -Q --help=optimizers" on gcc built with --enable-frame-pointer

2021-01-21 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98783 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gcc do

[Bug c++/71879] Error in unevaluated context breaks SFINAE

2021-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71879 --- Comment #3 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:f645da0e4ab9438dfd0c047c710c7ec6a7d6d8f3 commit r11-6842-gf645da0e4ab9438dfd0c047c710c7ec6a7d6d8f3 Author: Patrick Palka Date: Th

[Bug c++/71879] Error in unevaluated context breaks SFINAE

2021-01-21 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71879 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/96623] [11 Regression] ICE in inject_parm_decls, at cp/parser.c:23893

2021-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96623 --- Comment #4 from Marek Polacek --- And an extended test to check that various variables are in scope: constexpr int x = 0; struct A { int a1; void foo (int p) { int foovar; struct B { int b1; void bar1 () noexcept(x);

[Bug rtl-optimization/98777] [11 Regression] ICE in update_equiv at gcc/lra-constraints.c:504 since r11-6819-g4334b52427420312

2021-01-21 Thread vmakarov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98777 --- Comment #1 from Vladimir Makarov --- Thank you for reporting this. I've reproduced the bug on riscv64 and started to work on fixing it.

[Bug tree-optimization/96963] [10/11 Regression] -Wstringop-overflow false positive on -O3 or -O2 -ftree-vectorize when assigning consecutive char struct members

2021-01-21 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96963 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223

2021-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

  1   2   >