https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105089
Indu Bhagat changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105089
--- Comment #7 from CVS Commits ---
The master branch has been updated by Indu Bhagat :
https://gcc.gnu.org/g:d634c5d7c78c6ec0fa39d96984460475564519c8
commit r12-8164-gd634c5d7c78c6ec0fa39d96984460475564519c8
Author: Indu Bhagat
Date: Thu A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105089
--- Comment #6 from CVS Commits ---
The master branch has been updated by Indu Bhagat :
https://gcc.gnu.org/g:d0b00e74bf59c73b79471bbe9de19373b8661e20
commit r12-8163-gd0b00e74bf59c73b79471bbe9de19373b8661e20
Author: Indu Bhagat
Date: Thu A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105089
--- Comment #5 from Indu Bhagat ---
(In reply to Andrew Pinski from comment #4)
> (In reply to Indu Bhagat from comment #2)
> > Regarding this above-mentioned case of two variables (one inside the
> > function), CTF emits debug information for f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105089
--- Comment #4 from Andrew Pinski ---
(In reply to Indu Bhagat from comment #2)
> Regarding this above-mentioned case of two variables (one inside the
> function), CTF emits debug information for file-scope and global-scope
> variables only. So
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105089
--- Comment #3 from Indu Bhagat ---
Re: the more "specific" one?, I think if the compiler picks the type from the
defining declaration of the variable, that will be useful (and correct I think)
CTF debug information.
So, for the following-
cas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105089
--- Comment #2 from Indu Bhagat ---
Regarding this above-mentioned case of two variables (one inside the function),
CTF emits debug information for file-scope and global-scope variables only. So
in this example, the declaration of a inside the f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105089
--- Comment #1 from Richard Biener ---
Looks like this is a defect in CTF then? Which should it pick? The more
"specific"? What if there are two?
static const char a[] = "testme";
void foo () { puts (a); }
int main()
{
extern const char a[