[Bug debug/90901] New: Debug information broken when compiled with gdwarf-split

2019-06-17 Thread rajpal.gusain at gmail dot com
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: rajpal.gusain at gmail dot com Target Milestone: --- % g++ --version g++ (GCC) 8.3.0 % gdb --version GNU gdb (GDB) 8.3 % readelf --version GNU readelf (GNU Binutils) 2.32 I couldn&#

[Bug debug/90901] Debug information broken when compiled with gdwarf-split

2019-06-18 Thread rajpal.gusain at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90901 --- Comment #2 from Rajpal Singh --- (In reply to Richard Biener from comment #1) > You may want to check GCC 9.1 which received some fixes for -gsplit-dwarf > which is otherwise in a sorry and unmaintained state... Thanks Richard for your sugge

[Bug debug/90901] Debug information broken when compiled with gdwarf-split

2019-06-18 Thread rajpal.gusain at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90901 --- Comment #3 from Rajpal Singh --- I did try with g++ 9.1.0 and I still see similar/same issue. % g++ --version g++ (GCC) 9.1.0 % readelf -w readelf: Error: Unknown macro opcode 52 seen readelf: Error: Unknown macro opcode 12 seen re

[Bug tree-optimization/100197] g++ emits spurious Wstring-compare warnings on strcmp()

2022-07-28 Thread rajpal.gusain at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100197 --- Comment #2 from Rajpal Singh --- I also get similar error when one of the argument string is constant and I believe it's related. I tried it with g++ 11.2 'int strncmp(const char*, const char*, size_t)' of strings of length 1 and 6 and boun

[Bug c++/102932] New: Wrong implementation of abs with O3

2021-10-25 Thread rajpal.gusain at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: rajpal.gusain at gmail dot com Target Milestone: --- Looks like while optimizing abs, optimizer trips and produces wrong result Test case: #include #include using namespace std; int main() { int left , right ; cout <<

[Bug c++/102932] Wrong implementation of abs with O3

2021-10-25 Thread rajpal.gusain at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102932 --- Comment #3 from Rajpal Singh --- (In reply to Tee KOBAYASHI from comment #1) > Signed integer overflow. You can use -fwrapv. Thanks ! Yes, it's signed integer overflow, is there any way to catch it statically at compile time ?