public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/42579]  New: [PATCH] support for obtaining file basename
@ 2010-01-02 10:09 rmh dot gcc at aybabtu dot com
  2010-01-02 10:12 ` [Bug c/42579] " rmh dot gcc at aybabtu dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: rmh dot gcc at aybabtu dot com @ 2010-01-02 10:09 UTC (permalink / raw)
  To: gcc-bugs

Please consider this patch.  It adds support for obtaining file basename via
__FILE_BASENAME__.

This would be used by GNU GRUB.  I'll provide some explanation on why this is
very necessary for us:

  - Bootloader code is very critical; a bug can render system unbootable. 
Additionally, it needs to support a wide range of hardware and firmware. 
Because of this, we put extensive debugging support into GRUB.  Debug
statements currently rely on __FILE__.

  - We want to support $srcdir != $objdir build setups, and continue supporting
them.

  - Some parts of bootstrap code tend to be very size constrained.  Every byte
counts, and each debug statement is taking unnecessary space because accessing
a file in $srcdir requires either an absolute path or at least a number of
'../' components (in Debian, that would be two of them).

Because of this, I would find it very useful if GCC provided __FILE_BASENAME__,
or at least an equivalent facility.


-- 
           Summary: [PATCH] support for obtaining file basename
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rmh dot gcc at aybabtu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42579


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-06-01  7:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-42579-4@http.gcc.gnu.org/bugzilla/>
2012-08-31  8:00 ` [Bug c/42579] [PATCH] support for obtaining file basename asierllano at gmail dot com
2012-08-31  8:04 ` asierllano at gmail dot com
2021-05-20  8:13 ` cvs-commit at gcc dot gnu.org
2021-05-20  8:14 ` clyon at gcc dot gnu.org
2021-05-31 16:17 ` rdiezmail-gcc at yahoo dot de
2021-05-31 16:20 ` rdiezmail-gcc at yahoo dot de
2021-06-01  7:44 ` clyon at gcc dot gnu.org
2010-01-02 10:09 [Bug c/42579] New: " rmh dot gcc at aybabtu dot com
2010-01-02 10:12 ` [Bug c/42579] " rmh dot gcc at aybabtu dot com
2010-01-02 11:06 ` rguenth at gcc dot gnu dot org
2010-01-02 11:39 ` rmh dot gcc at aybabtu dot com
2010-04-30  9:55 ` cfriedt at visible-assets dot com

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).