public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108978] New: Add __builtin_FILE_NAME() which behaves like the __FILE_NAME__ macro
@ 2023-03-01 2:18 i at maskray dot me
2023-03-01 2:31 ` [Bug c/108978] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: i at maskray dot me @ 2023-03-01 2:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108978
Bug ID: 108978
Summary: Add __builtin_FILE_NAME() which behaves like the
__FILE_NAME__ macro
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: i at maskray dot me
Target Milestone: ---
PR c/42579 added __FILE_NAME__. On the Clang side someone is proposing
__builtin_FILE_NAME (https://reviews.llvm.org/D144878) a la __builtin_FILE .
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/108978] Add __builtin_FILE_NAME() which behaves like the __FILE_NAME__ macro
2023-03-01 2:18 [Bug c/108978] New: Add __builtin_FILE_NAME() which behaves like the __FILE_NAME__ macro i at maskray dot me
@ 2023-03-01 2:31 ` pinskia at gcc dot gnu.org
2023-03-01 2:36 ` pinskia at gcc dot gnu.org
2023-03-01 2:37 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-01 2:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108978
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm, I don't know but maybe __builtin_BASE_FILE should also be added too.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/108978] Add __builtin_FILE_NAME() which behaves like the __FILE_NAME__ macro
2023-03-01 2:18 [Bug c/108978] New: Add __builtin_FILE_NAME() which behaves like the __FILE_NAME__ macro i at maskray dot me
2023-03-01 2:31 ` [Bug c/108978] " pinskia at gcc dot gnu.org
@ 2023-03-01 2:36 ` pinskia at gcc dot gnu.org
2023-03-01 2:37 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-01 2:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108978
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 54561
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54561&action=edit
quick patch
This is a quick hacked patch which adds this. I didn't even test it or add
testcases. It might not even compile because of the use of lbasename. But
someone else should be able to take it and finish it up.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/108978] Add __builtin_FILE_NAME() which behaves like the __FILE_NAME__ macro
2023-03-01 2:18 [Bug c/108978] New: Add __builtin_FILE_NAME() which behaves like the __FILE_NAME__ macro i at maskray dot me
2023-03-01 2:31 ` [Bug c/108978] " pinskia at gcc dot gnu.org
2023-03-01 2:36 ` pinskia at gcc dot gnu.org
@ 2023-03-01 2:37 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-01 2:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108978
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2023-03-01
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-01 2:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01 2:18 [Bug c/108978] New: Add __builtin_FILE_NAME() which behaves like the __FILE_NAME__ macro i at maskray dot me
2023-03-01 2:31 ` [Bug c/108978] " pinskia at gcc dot gnu.org
2023-03-01 2:36 ` pinskia at gcc dot gnu.org
2023-03-01 2:37 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).