This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bugs using -fPIC on linux (i86 RedHat 5.0)?
- To: marius at ace dot funcom dot com
- Subject: Re: Bugs using -fPIC on linux (i86 RedHat 5.0)?
- From: Joel Sherrill <joel at OARcorp dot com>
- Date: Tue, 30 Dec 1997 09:22:32 -0600 (CST)
- cc: egcs at cygnus dot com
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