This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
strange result when compiling w/ -fpreprocessed but w/out -fdumpbase
- From: Joern RENNECKE <joern dot rennecke at st dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 11 Nov 2005 19:34:04 +0000
- Subject: strange result when compiling w/ -fpreprocessed but w/out -fdumpbase
When you compile a file that contains a line directive, e.g.:
# 1 "../../libgcc2.c"
int f ()
{
return 0;
}
using the -fpreprocessed option to cc1, but without -fdumpbase, the base
filename of the
line number directive us used both for the assembly output file and for
debugging dumps
from -da. This can be rather confusing when you can't find neither
output file nor debugging
dumps in the current directory. And at the least, the -fpreprocessed
documentation is wrong
when it states that this option is implicit when the file ends in .i;
this effect of -fpreprocesed
only appears when the option is actually passed to cc1.