[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

2022-12-06 Thread ahmad at a3f dot at via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 Ahmad Fatoum changed: What|Removed |Added CC||ahmad at a3f dot at --- Comment #14

[Bug c/98049] New: False positive when compiling with -Os -Wmaybe-uninitialized

2020-11-29 Thread ahmad at a3f dot at via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: ahmad at a3f dot at Target Milestone: --- Created attachment 49642 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49642&action=edit C Source reproducing the erroneous warning

[Bug c++/82985] GCC 7.2.1 crashes when compiling DSO (Direct Sparse Odometry) on Linux Ubuntu 17.10

2017-11-14 Thread ahmad at a3f dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82985 --- Comment #11 from Ahmad Fatoum --- (In reply to Ahmad Fatoum from comment #10) > (In reply to BlenderEi from comment #9) > > What do you say, is this useful? > > Hi Adam, > > --save-temps saves some temporary files ( *.i, *.s, *.o) which m

[Bug c++/82985] GCC 7.2.1 crashes when compiling DSO (Direct Sparse Odometry) on Linux Ubuntu 17.10

2017-11-14 Thread ahmad at a3f dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82985 Ahmad Fatoum changed: What|Removed |Added CC||ahmad at a3f dot at --- Comment #10 from

[Bug c++/82952] Hang compiling with g++ -fsanitize=undefined -Wduplicated-branches

2017-11-11 Thread ahmad at a3f dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82952 Ahmad Fatoum changed: What|Removed |Added Target||x86_64-pc-linux-gnu Host|

[Bug c++/82952] Hang compiling with g++ -fsanitize=undefined -Wduplicated-branches

2017-11-11 Thread ahmad at a3f dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82952 --- Comment #1 from Ahmad Fatoum --- Created attachment 42587 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42587&action=edit File that hangs g++ I didn't manage to reduce it by much, because of the halting problem. At least it reliably s

[Bug c++/82952] New: Hang compiling with g++ -fsanitize=undefined -Wduplicated-branches

2017-11-11 Thread ahmad at a3f dot at
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ahmad at a3f dot at Target Milestone: --- I ran into this while building Wireshark with g++ 7.2.1 revision 253932 on openSUSE Tumbleweed x86_64. Running: g++ -c hangs.cpp -std=c++11

[Bug c/80130] New: Wrong diagnostic: dereferencing type-punned pointer

2017-03-21 Thread ahmad at a3f dot at
: c Assignee: unassigned at gcc dot gnu.org Reporter: ahmad at a3f dot at Target Milestone: --- /* gcc -c -Wstrict-aliasing -fstrict-aliasing snippet.c */ union punu { char _Alignas(_Alignof(int)) buf[sizeof(int)]; int i; }; extern char _Alignas(_Alignof(int)) buf

[Bug middle-end/72795] Missed optimization of external-linkage variables in presence of barriers

2016-08-03 Thread ahmad at a3f dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72795 --- Comment #2 from Ahmad Fatoum --- The write that can't be optimized away is the final assignment to x. The `movl$1, x(%rip)` prior to the barrier should've been optimized out, IMO.

[Bug middle-end/72795] New: Missed optimization of external-linkage variables in presence of barriers

2016-08-03 Thread ahmad at a3f dot at
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ahmad at a3f dot at Target Milestone: --- Godbolt link: https://godbolt.org/g/egb73f int x; static int y; int f() { x = 1; asm volatile(""