Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/csu/i386_elf




On May 17, 2006, at 2:07 PM, David Laight wrote:

Why not:
#if __GNUC_PREREQ__(4, 0)
#define __weak_reference(t, n) extern t n __attribute__((__weakref__))
#else
#define __weak_reference(t, n) extern t n; __asm(".weak "_C_LABEL_STRING(#n))
#endif

so the code just becomes:

__weak_reference(int, _DYNAMIC);

(Or does this cause too much grief with weak functions?)

Way too much weak function grief.


-- thorpej




Home | Main Index | Thread Index | Old Index