[Bug middle-end/104081] Variable optimized out despite -Og
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 18 09:46:43 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104081
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
when I break at line 24 the data is still there but it's lost when unwinding
frames from the SIGABRT:
(gdb) bt
#0 0x00007ffff70cc18b in raise () from /lib64/libc.so.6
#1 0x00007ffff70cd585 in abort () from /lib64/libc.so.6
#2 0x00007ffff7a66016 in ?? () from /usr/lib64/libstdc++.so.6
#3 0x00007ffff7a718dc in ?? () from /usr/lib64/libstdc++.so.6
#4 0x00007ffff7a71947 in std::terminate() () from /usr/lib64/libstdc++.so.6
#5 0x00007ffff7a71c3d in __cxa_rethrow () from /usr/lib64/libstdc++.so.6
#6 0x000000000040055f in throw_invalid (a=a@entry=0x4006aa "not a number",
b=...) at t.C:6
#7 0x00000000004005f8 in str_atoi (data=...) at t.C:26
#8 0x0000000000400610 in main () at /usr/include/c++/11/bits/char_traits.h:371
is that what you mean?
More information about the Gcc-bugs
mailing list