https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78685
Matthias Urlichs changed:
What|Removed |Added
CC||matthias at urlichs dot de
--- Commen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104081
Matthias Urlichs changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104081
--- Comment #5 from Matthias Urlichs ---
> when I break at line 24 the data is still there but it's lost
> when unwinding frames from the SIGABRT:
Yes, that's exactly the problem.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104081
--- Comment #3 from Matthias Urlichs ---
Sure.
gcc -Og -g -std=c++17 -lstdc++ /tmp/test.cpp
#include
#include
void throw_invalid(const char *a, std::string_view b) {
(void)a; (void)b;
throw;
}
int64_t str_atoi(std::string_view dat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104081
--- Comment #1 from Matthias Urlichs ---
current line is 24, after "throw_invalid" has called abort()
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104081
Bug ID: 104081
Summary: Variable optimized out despite -Og
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103815
Bug ID: 103815
Summary: Misoptimization of a bounded do/while loop
Product: gcc
Version: og10 (devel/omp/gcc-10)
Status: UNCONFIRMED
Severity: normal
Priority: P3