public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/3440] New: locale.h macros like LC_ALL are not usable in #if
@ 2006-10-31 20:08 eggert at gnu dot org
2006-10-31 20:09 ` [Bug libc/3440] " eggert at gnu dot org
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: eggert at gnu dot org @ 2006-10-31 20:08 UTC (permalink / raw)
To: glibc-bugs
In
<https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=index.tpl&source=L&listname=austin-group-l&id=9979>
Geoff Clare reported some conformance issues with glibc headers that
define some macros using techniques that do not work inside #if, even
though C99 and POSIX require that the macros work in #if. I recently
reported some of them against the math component (glibc bug 3439).
locale.h has some issues too, though, with macros like LC_ALL.
I'll attach an (untested but obvious) patch against glibc head.
--
Summary: locale.h macros like LC_ALL are not usable in #if
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: eggert at gnu dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=3440
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/3440] locale.h macros like LC_ALL are not usable in #if
2006-10-31 20:08 [Bug libc/3440] New: " eggert at gnu dot org
@ 2006-10-31 20:09 ` eggert at gnu dot org
2006-11-10 16:24 ` drepper at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: eggert at gnu dot org @ 2006-10-31 20:09 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From eggert at gnu dot org 2006-10-31 20:09 -------
Created an attachment (id=1396)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1396&action=view)
patch for LC_ALL etc. to be usable in #if
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3440
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/3440] locale.h macros like LC_ALL are not usable in #if
2006-10-31 20:08 [Bug libc/3440] New: " eggert at gnu dot org
2006-10-31 20:09 ` [Bug libc/3440] " eggert at gnu dot org
@ 2006-11-10 16:24 ` drepper at redhat dot com
2006-11-10 19:06 ` eggert at gnu dot org
2007-02-17 8:59 ` drepper at redhat dot com
3 siblings, 0 replies; 6+ messages in thread
From: drepper at redhat dot com @ 2006-11-10 16:24 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2006-11-10 16:24 -------
I don't want to change this. It's a pointless requirement which just makes it
harder to debug programs since the macros might not be available in the debug info.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3440
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/3440] locale.h macros like LC_ALL are not usable in #if
2006-10-31 20:08 [Bug libc/3440] New: " eggert at gnu dot org
2006-10-31 20:09 ` [Bug libc/3440] " eggert at gnu dot org
2006-11-10 16:24 ` drepper at redhat dot com
@ 2006-11-10 19:06 ` eggert at gnu dot org
2007-02-17 8:59 ` drepper at redhat dot com
3 siblings, 0 replies; 6+ messages in thread
From: eggert at gnu dot org @ 2006-11-10 19:06 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From eggert at gnu dot org 2006-11-10 19:06 -------
But this patch does not make it harder to debug programs, since it is already
the case that macros like LC_ALL are typically unavailable in the debug info.
<locale.h> has "#define LC_ALL __LC_ALL", and unless you use something like
gcc -g3, gdb won't see the LC_ALL.
If you like, I can rework the patch so that macros like __LC_ALL are
available in the debug info, but I doubt whether any normal users would
care so I don't see the point.
A better possibility is to rework this patch so that LC_ALL is typically
available in the debug info, while still conforming to C99 and POSIX.
This would require changing locale.h as well. I can submit that patch
if you prefer.
(The patches for math.h and fenv.h -- bug 3439 -- are in a different category;
I'll look at them a bit later.)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3440
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/3440] locale.h macros like LC_ALL are not usable in #if
2006-10-31 20:08 [Bug libc/3440] New: " eggert at gnu dot org
` (2 preceding siblings ...)
2006-11-10 19:06 ` eggert at gnu dot org
@ 2007-02-17 8:59 ` drepper at redhat dot com
3 siblings, 0 replies; 6+ messages in thread
From: drepper at redhat dot com @ 2007-02-17 8:59 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2007-02-17 08:59 -------
More of this macro nonsense.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://sourceware.org/bugzilla/show_bug.cgi?id=3440
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-05-10 12:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-3440-131@http.sourceware.org/bugzilla/>
2012-04-27 10:50 ` [Bug libc/3440] locale.h macros like LC_ALL are not usable in #if jsm28 at gcc dot gnu.org
2012-05-10 12:42 ` jsm28 at gcc dot gnu.org
2006-10-31 20:08 [Bug libc/3440] New: " eggert at gnu dot org
2006-10-31 20:09 ` [Bug libc/3440] " eggert at gnu dot org
2006-11-10 16:24 ` drepper at redhat dot com
2006-11-10 19:06 ` eggert at gnu dot org
2007-02-17 8:59 ` drepper at redhat 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).