Raja R Harinath <[EMAIL PROTECTED]> writes:

|> Hi,
|> 
|> Peter Eisentraut <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED]
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."


Reply via email to