svn commit: r262696 - head/sys/arm/arm

Ian Lepore ian at FreeBSD.org
Mon Mar 3 14:41:15 UTC 2014


On Mon, 2014-03-03 at 18:49 +1100, Bruce Evans wrote:
> On Sun, 2 Mar 2014, Ian Lepore wrote:
> 
> > Log:
> >  Add __attribute__((used)) so that the delay implementation doesn't get
> >  optimized away as unreferenced, causing linker errors when trying to
> >  resolve the weak reference to the missing function.
> 
> Why not use the standard FreeBSD macro __used?  Hard-coded
> __attribute__(())s are not only unportable; they are gross style bugs.
> They were all replaced by FreeBSD macros in old versions of FreeBSD.

Thanks.  I actually looked for __used and somehow failed to find it.

-- Ian




More information about the svn-src-all mailing list