Bugs using -fPIC on linux (i86 RedHat 5.0)?
Joel Sherrill
joel@OARcorp.com
Tue Dec 30 07:25:00 GMT 1997
On Tue, 30 Dec 1997, Martin von Loewis wrote:
> It is explained in the 'Bugs/Reporting' section of the gcc manual.
> Invoke 'gcc -E source.c >source.i', and ship the resulting .i file.
> Please use the same -I, -D, and -U option you've used when compiling
> the file.
>
> The advantage of including preprocessed source compared to original
> source is that the maintainers don't need to worry about differences
> in header files anymore. Without the proper header files, the bug
> might not be reproducable.
I try to take the output of the preprocess phase and cut it down farther
until I have a very small example which reproduces the problem. Typically
lots of the types and prototypes in the header files are really unused and
can be removed from the preprocessed output. Smaller problem cases are
usually easier to debug.
--joel
Joel Sherrill Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (205) 722-9985
More information about the Gcc
mailing list