This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2752
  dont redefine __attribute__ in error.h with -std=c99 Last modified: 2006-08-12 20:30:40
     Query page      Enter new bug
Bug#: 2752   Hardware:   Reporter: Mike Frysinger <vapier@gentoo.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: INVALID   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
glibc-error-header-updates.patch glibc-error-header-updates.patch patch 2006-06-10 14:29 Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2752 depends on: Show dependency tree
Show dependency graph
Bug 2752 blocks:

Additional Comments:


Leave as RESOLVED INVALID
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-06-10 14:28
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

------- Additional Comment #1 From Mike Frysinger 2006-06-10 14:29 -------
Created an attachment (id=1078)
glibc-error-header-updates.patch

------- Additional Comment #2 From Ulrich Drepper 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.

------- Additional Comment #3 From Mike Frysinger 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

------- Additional Comment #4 From Ulrich Drepper 2006-08-12 20:30 -------
Stop reopening bugs.  The file is used elsewhere and I don't make any unnecesary
changes.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In