[comp.sys.sgi] cc/cpp and -P,-E options

Dan Karron@UCBVAX.BERKELEY.EDU (12/24/90)

My complaint about the cc/cpp options to generate an intermediate .i
file was not well formulated.

What I wanted was a .i file for each .c file compiled. The
actual cc behavior is to generate the .i file and stop.

This makes make bomb on the rest of a makefile. What I had to do was to make
a specific target to get a .i file, or use the default .i rule that
make knows about.

What would be nice is if the cc front end would use the .i intermediate
file instead of stopping. cc pipes the cpp output into lib/cc without the
-E option. In some cases with lots of cc options, nothing is produced at
all. I dont have the specific combination of options that causes this,
but my problem is solved with more work as usual. The man page
qualifies the -E or the -P option with the word "ONLY". Too bad.

Thanks for all who told me that it worked for them. All of the simple
examples did not reproduce the problem I had with multiple cc options to
save all of the intermediate symbol table files and other compiler
temps.

+-----------------------------------------------------------------------------+
| karron@nyu.edu (E-mail alias that will always find me)                      |
| Fax: 212 340 7190           *           Dan Karron, Research Associate      |
| . . . . . . . . . . . . . . *           New York University Medical Center  |
| 560 First Avenue           \*\    Pager <1> (212) 397 9330                  |
| New York, New York 10016    \**\        <2> 10896   <3> <your-number-here>  |
| (212) 340 5210               \***\_________________________________________ |
| Main machine: karron.med.nyu.edu (128.122.135.3) IRIS 85GT                  |
+-----------------------------------------------------------------------------+