[comp.lang.c++] CC -U or -Y options?

jima@hplsla.HP.COM (Jim Adcock) (09/09/89)

Does anybody know what the -U or -Y options do?

shankar@hpclscu.HP.COM (Shankar Unni) (09/11/89)

> Does anybody know what the -U or -Y options do?

-Uarg   is passed on to cpp, and is the same as saying

  #undef arg

at the top of your source.

-Y is an AT&T'ism for specifying the path to various components. CC only
looks at -Yp,...  , and treats the rest of the argument after the first ","
as a prefix for "cpp". All -Y options are passed on to the C compiler
driver.
-----
Shankar Unni                                   E-Mail: 
Hewlett-Packard California Language Lab.     Internet: shankar@hpda.hp.com
Phone : (408) 447-5797                           UUCP: ...!hplabs!hpda!shankar

dog@cbnewsl.ATT.COM (edward.n.schiebel) (09/11/89)

From article <6590243@hplsla.HP.COM>, by jima@hplsla.HP.COM (Jim Adcock):
> Does anybody know what the -U or -Y options do?
From looking a CC: it seems -U appends its argument to the list of 
arguments passed the c-preprocessor and -Y does the same for the c
compiler.

	Ed Schiebel
	AT&T Bell Labs
	dog@vilya.att.com