[Bug preprocessor/82176] Feature request: replace __FILE__ with file's basename instead its full name

2019-10-29 Thread fuchedzhy at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82176 --- Comment #10 from Gregory Fuchedzhy --- (In reply to f.hollerer from comment #8) > To my understanding assert() uses __FILE__ and __LINE__. I would like to > have a command line option which let __FILE__ expand to the last path > component (th

[Bug tree-optimization/91812] [7 Regression] GCC ignores volatile modifier

2019-10-24 Thread fuchedzhy at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91812 --- Comment #13 from Gregory Fuchedzhy --- (In reply to Richard Biener from comment #12) > Fixed. Thanks a lot, Richard!

[Bug preprocessor/82176] Feature request: replace __FILE__ with file's basename instead its full name

2019-10-04 Thread fuchedzhy at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82176 --- Comment #5 from Gregory Fuchedzhy --- (In reply to Eric Gallager from comment #3) > *** Bug 91998 has been marked as a duplicate of this bug. *** Not exactly a duplicate, but related. Clang implemented an additional __FILE_NAME__ macro. See

[Bug c/91998] New: Add a __FILE_NAME__ macro

2019-10-04 Thread fuchedzhy at google dot com
: unassigned at gcc dot gnu.org Reporter: fuchedzhy at google dot com Target Milestone: --- It would be handy to have macro similar to __FILE__ but expanding to source *base* file name only. It might be useful for application logs and asserts, especially on embedded systems, where we don&#

[Bug c/91812] GCC ignores volatile modifier

2019-09-18 Thread fuchedzhy at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91812 --- Comment #2 from Gregory Fuchedzhy --- (In reply to Eric Gallager from comment #1) > If you declare ptr like this instead, the assembly comes out looking > different: > volatile unsigned int *volatile ptr; Even seemingly unrelated code change

[Bug c/91812] New: GCC ignores volatile modifier

2019-09-18 Thread fuchedzhy at google dot com
Assignee: unassigned at gcc dot gnu.org Reporter: fuchedzhy at google dot com Target Milestone: --- GCC appears to ignore volatile modifier sometimes. C is probably wrong component for the bug, but I'm not sure where else to put it. $ arm-linux-gnueabi-gcc-8 -v Using built-in