This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Detecting wrong linkage on mips PIC code


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]