https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62225
--- Comment #5 from Sandra Loosemore sandra at codesourcery dot com ---
Thinking about this some more
Why doesn't -g always enable -fvar-tracking by default? It's currently only
enabled if you specify both -g and -O.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62225
Eric Botcazou ebotcazou at gcc dot gnu.org changed:
What|Removed |Added
CC||ebotcazou at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62225
Sandra Loosemore sandra at codesourcery dot com changed:
What|Removed |Added
CC||sandra
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62225
--- Comment #3 from Yao Qi qiyao at gcc dot gnu.org ---
(In reply to Andrew Pinski from comment #1)
I bet if you remove register, it will work. Or compile with variable
tracking turned on.
I compiled the code again with -fvar-tracking, and
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62225
--- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org ---
I bet if you remove register, it will work. Or compile with variable tracking
turned on.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62225
--- Comment #2 from Yao Qi qiyao at gcc dot gnu.org ---
arm-none-eabi gcc mainline (4.10.0 20140818) and 4.9.2 has this problem too.
The test case is compiled with -mthumb flag.
171: Abbrev Number: 6 (DW_TAG_subprogram)
72 DW_AT_external