public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2752] New: dont redefine __attribute__ in error.h with -std=c99
@ 2006-06-10 14:28 vapier at gentoo dot org
  2006-06-10 14:29 ` [Bug libc/2752] " vapier at gentoo dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2006-06-10 14:28 UTC (permalink / raw)
  To: glibc-bugs

we hit a neat little error with some code when including error.h and 
using -std=c99 ... the question is whether this is a feature :)

take for example the attached code ... when built with -std=c99, 
__STRICT_ANSI__ is defined by gcc which causes error.h to macro away the gcc  
__attribute__ extension since gcc doesnt consider __attribute__ to ever be 
defined

perhaps a better idea would be to use __error_attribute__ inside of the header 
so that it doesnt pollute the namespace of the code that includes it ... 
patch attached

-- 
           Summary: dont redefine __attribute__ in error.h with -std=c99
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: vapier at gentoo dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=2752

------- 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] 5+ messages in thread

* [Bug libc/2752] dont redefine __attribute__ in error.h with -std=c99
  2006-06-10 14:28 [Bug libc/2752] New: dont redefine __attribute__ in error.h with -std=c99 vapier at gentoo dot org
@ 2006-06-10 14:29 ` vapier at gentoo dot org
  2006-06-13 15:35 ` drepper at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2006-06-10 14:29 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From vapier at gentoo dot org  2006-06-10 14:29 -------
Created an attachment (id=1078)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1078&action=view)
glibc-error-header-updates.patch


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2752

------- 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] 5+ messages in thread

* [Bug libc/2752] dont redefine __attribute__ in error.h with -std=c99
  2006-06-10 14:28 [Bug libc/2752] New: dont redefine __attribute__ in error.h with -std=c99 vapier at gentoo dot org
  2006-06-10 14:29 ` [Bug libc/2752] " vapier at gentoo dot org
@ 2006-06-13 15:35 ` drepper at redhat dot com
  2006-07-03 21:03 ` vapier at gentoo dot org
  2006-08-12 20:30 ` drepper at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2006-06-13 15:35 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-06-13 15:34 -------
__STRICT_ANSI__ is nonsense.  If you want to write a strict ANSI C program stop
using non-ANSI code from the system.  That flag must go, fix the real reason
instead of working around it.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


http://sourceware.org/bugzilla/show_bug.cgi?id=2752

------- 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] 5+ messages in thread

* [Bug libc/2752] dont redefine __attribute__ in error.h with -std=c99
  2006-06-10 14:28 [Bug libc/2752] New: dont redefine __attribute__ in error.h with -std=c99 vapier at gentoo dot org
  2006-06-10 14:29 ` [Bug libc/2752] " vapier at gentoo dot org
  2006-06-13 15:35 ` drepper at redhat dot com
@ 2006-07-03 21:03 ` vapier at gentoo dot org
  2006-08-12 20:30 ` drepper at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2006-07-03 21:03 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From vapier at gentoo dot org  2006-07-03 21:02 -------
if it's such nonsense, then why not just drop it from error.h ?  if error.h is a
non-ansi header then there's no point in checking for ansi in it

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |


http://sourceware.org/bugzilla/show_bug.cgi?id=2752

------- 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] 5+ messages in thread

* [Bug libc/2752] dont redefine __attribute__ in error.h with -std=c99
  2006-06-10 14:28 [Bug libc/2752] New: dont redefine __attribute__ in error.h with -std=c99 vapier at gentoo dot org
                   ` (2 preceding siblings ...)
  2006-07-03 21:03 ` vapier at gentoo dot org
@ 2006-08-12 20:30 ` drepper at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2006-08-12 20:30 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-08-12 20:30 -------
Stop reopening bugs.  The file is used elsewhere and I don't make any unnecesary
changes.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=2752

------- 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] 5+ messages in thread

end of thread, other threads:[~2006-08-12 20:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-10 14:28 [Bug libc/2752] New: dont redefine __attribute__ in error.h with -std=c99 vapier at gentoo dot org
2006-06-10 14:29 ` [Bug libc/2752] " vapier at gentoo dot org
2006-06-13 15:35 ` drepper at redhat dot com
2006-07-03 21:03 ` vapier at gentoo dot org
2006-08-12 20:30 ` 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).