[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checking if CC supports weak symbols
From: |
Andreas Schwab |
Subject: |
Re: checking if CC supports weak symbols |
Date: |
Fri, 24 Jan 2003 15:32:21 +0100 |
User-agent: |
Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.3.50 (ia64-suse-linux) |
Raja R Harinath <address@hidden> writes:
|> Hi,
|>
|> Peter Eisentraut <address@hidden> writes:
|>
|> > Ralf Corsepius writes:
|> >
|> >> More precisely, I am trying to detect whether a c-compiler supports
|> >> gcc's "function __attribute__((weak))" syntax or not.
|> >
|> > Is there any reason to think that compilers other than GCC support this
|> > syntax?
|>
|> I'm not Ralf, but I can see two different reasons:
|>
|> * not all versions may support the "weak" attribute
|>
|> * The Intel C compiler for Linux is supposed to be able to compile
|> the Linux kernel. New versions the Linux kernel do use weak
|> symbols (possibly with this syntax) -- so maybe the Intel
|> compiler would too.
|>
|> The second is somewhat far-fetched. Support for #pragma weak ... and
|> _Pragma("weak", ...) is likelier.
The Linux kernel source already uses __attribute__ in other contexts, so
icc needs to grok the syntax anyway.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."