This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
compiling .i files
- To: gcc-patches at gcc dot gnu dot org
- Subject: compiling .i files
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 7 Nov 2000 17:36:04 -0800
Otherwise the integrated preprocessor bitches about "# 34"
style line number directives.
r~
* gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
Index: gcc.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/gcc.c,v
retrieving revision 1.176
diff -c -p -d -r1.176 gcc.c
*** gcc.c 2000/11/03 22:24:19 1.176
--- gcc.c 2000/11/08 01:33:54
*************** static struct compiler default_compilers
*** 747,753 ****
%(trad_capable_cpp) -lang-c %{ansi:-std=c89} %(cpp_options)"},
{".i", "@cpp-output"},
{"@cpp-output",
! "%{!M:%{!MM:%{!E:cc1 %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}"},
{".s", "@assembler"},
{"@assembler",
"%{!M:%{!MM:%{!E:%{!S:as %(asm_options) %i %A }}}}"},
--- 747,753 ----
%(trad_capable_cpp) -lang-c %{ansi:-std=c89} %(cpp_options)"},
{".i", "@cpp-output"},
{"@cpp-output",
! "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}"},
{".s", "@assembler"},
{"@assembler",
"%{!M:%{!MM:%{!E:%{!S:as %(asm_options) %i %A }}}}"},