This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

compiling .i files


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 }}}}"},

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