[Bug debug/78685] -Og generates too many ""s

2024-06-14 Thread matthias at urlichs dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78685 Matthias Urlichs changed: What|Removed |Added CC||matthias at urlichs dot de

[Bug middle-end/104081] Variable optimized out despite -Og

2024-06-14 Thread matthias at urlichs dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104081 Matthias Urlichs changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/104081] Variable optimized out despite -Og

2022-01-18 Thread matthias at urlichs dot de via Gcc-bugs
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.

[Bug middle-end/104081] Variable optimized out despite -Og

2022-01-18 Thread matthias at urlichs dot de via Gcc-bugs
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

[Bug c++/104081] Variable optimized out despite -Og

2022-01-18 Thread matthias at urlichs dot de via Gcc-bugs
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()

[Bug c++/104081] New: Variable optimized out despite -Og

2022-01-18 Thread matthias at urlichs dot de via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: matthias at urlichs dot de Target Milestone: --- I expect the optimizer, when confronted with "-Og", to keep my variables debuggable. (I also expect (of me) to not make terminally stupid mistakes like the one exhibited

[Bug c/103815] New: Misoptimization of a bounded do/while loop

2021-12-23 Thread matthias at urlichs dot de via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: matthias at urlichs dot de Target Milestone: --- This code, which calculates an integer square root ..: #include uint16_t int_sqrt32(uint32_t x) { uint16_t res=0; uint16_t add

[Bug c++/55772] "Jump crosses initialization" error spurious when var is unused

2012-12-21 Thread matthias at urlichs dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55772 Matthias Urlichs changed: What|Removed |Added Severity|normal |enhancement --- Comment #2 f

[Bug c++/55772] New: "Jump crosses initialization" error spurious when var is unused

2012-12-20 Thread matthias at urlichs dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55772 Bug #: 55772 Summary: "Jump crosses initialization" error spurious when var is unused Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED