This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Summary of the "Use __unused0" discussion.


libc-alpha,

On January 1st Guillem Jover submitted two patches whose succient
problem definition is as such (quoting Guillem's original email):
~~~
On BSD systems __unused has traditionally been defined to mean the
equivalent of gcc's __attribute__((__unused__)). The problem comes when
defining such macro while trying to build unmodified source code with
BSD origins on systems with glibc ports headers. Separate patches have
been sent to fix the same issue on Linux kernel headers and the main
glibc project.
~~~

Discussion threads:
* http://sourceware.org/ml/libc-ports/2012-01/msg00000.html
* http://sourceware.org/ml/libc-alpha/2012-01/msg00001.html

The arguments against applying the patch are:
* All symbols starting with _ belong to the system.
* Desire to avoid the slippery slope of changing the C library for broken code.

The arguments for applying the patch are:
* There is value in supporting of an existing body of BSD code on glibc-based systems.
* It is a one time change similar to __vector, __block, and even __thread.

There does not appear to be any technical reason to reject the patch.

Comments?

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos@codesourcery.com
+1 (613) 963 1026


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]