Re: [patch] compiler: introduce __used and __maybe_unused

2007-05-03 Thread David Rientjes
__used is defined to be __attribute__((unused)) for all pre-3.4 gcc compilers to suppress warnings for unused functions because perhaps they are referenced only in inline assembly. It is defined to be __attribute__((used)) for gcc 3.4 and later so that the code is still emitted for such

Re: [patch] compiler: introduce __used and __maybe_unused

2007-05-03 Thread Adrian Bunk
On Thu, May 03, 2007 at 05:35:57PM -0700, David Rientjes wrote: >... > There was a mistake in the current implementation of __attribute_used__ > whereas it would be defined to be __attribute__((used)) incorrectly for > gcc 3.3 and later. The unit-at-a-time compilation scheme was only > introduced

[patch] compiler: introduce __used and __maybe_unused

2007-05-03 Thread David Rientjes
__used is defined to be __attribute__((unused)) for all pre-3.4 gcc compilers to suppress warnings for unused functions because perhaps they are referenced only in inline assembly. It is defined to be __attribute__((used)) for gcc 3.4 and later so that the code is still emitted for such

[patch] compiler: introduce __used and __maybe_unused

2007-05-03 Thread David Rientjes
__used is defined to be __attribute__((unused)) for all pre-3.4 gcc compilers to suppress warnings for unused functions because perhaps they are referenced only in inline assembly. It is defined to be __attribute__((used)) for gcc 3.4 and later so that the code is still emitted for such

Re: [patch] compiler: introduce __used and __maybe_unused

2007-05-03 Thread Adrian Bunk
On Thu, May 03, 2007 at 05:35:57PM -0700, David Rientjes wrote: ... There was a mistake in the current implementation of __attribute_used__ whereas it would be defined to be __attribute__((used)) incorrectly for gcc 3.3 and later. The unit-at-a-time compilation scheme was only introduced in

Re: [patch] compiler: introduce __used and __maybe_unused

2007-05-03 Thread David Rientjes
__used is defined to be __attribute__((unused)) for all pre-3.4 gcc compilers to suppress warnings for unused functions because perhaps they are referenced only in inline assembly. It is defined to be __attribute__((used)) for gcc 3.4 and later so that the code is still emitted for such