Detecting wrong linkage on mips PIC code
Atsushi Nemoto
anemo@mba.ocn.ne.jp
Fri Jun 24 16:58:00 GMT 2005
>>>>> On Thu, 23 Jun 2005 18:01:37 +0100 (BST), "Maciej W. Rozycki" <macro@linux-mips.org> said:
>> Is it possible to detect this sort of error when compiling or linking?
macro> It is. With GCC 4.0.0 I get:
macro> static.c: In function 'main':
macro> static.c:3: error: invalid storage class for function 'random'
Thank you. That's what I want. And grepping the error message in gcc
3.4.x tree, I found that gcc 3.4 also can warn it by "-pedantic"
option.
---
Atsushi Nemoto
More information about the Binutils
mailing list