jw@sics.se (Johan Widen) (01/13/89)
While trying to compile test.hello.cc in libg++ (under SunOS 4) I discovered
that g++ did not supply the CPP_SPEC for this file. This resulted in
</usr/include/sun3/a.out.h> (included by <a.out.h>) not being included.
The following diff seemed to fix the problem:
*** gcc.c~ Sun Jan 1 22:54:02 1989
--- gcc.c Sun Jan 1 22:58:57 1989
***************
*** 213,219 ****
{".C",
"cpp -+ %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{T} \
-undef -D__GNU__ -D__GNUG__ %{ansi:-T -D__STRICT_ANSI__} %{!ansi:%p}\
! %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic} %{Wcomment} %{Wall}\
%i %{!M*:%{!E:%g.cpp}}%{E:%{o*}}%{M*:%{o*}}\n\
%{!M*:%{!E:c++ %g.cpp %{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
%{W*} %{w} %{pedantic} %{ansi}\
--- 213,220 ----
{".C",
"cpp -+ %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{T} \
-undef -D__GNU__ -D__GNUG__ %{ansi:-T -D__STRICT_ANSI__} %{!ansi:%p}\
! %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
! %{Wcomment} %{Wall} %C\
%i %{!M*:%{!E:%g.cpp}}%{E:%{o*}}%{M*:%{o*}}\n\
%{!M*:%{!E:c++ %g.cpp %{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
%{W*} %{w} %{pedantic} %{ansi}\
***************
*** 225,231 ****
{".cc",
"cpp -+ %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{T} \
-undef -D__GNU__ -D__GNUG__ %{ansi:-T -D__STRICT_ANSI__} %{!ansi:%p}\
! %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic} %{Wcomment} %{Wall}\
%i %{!M*:%{!E:%g.cpp}}%{E:%{o*}}%{M*:%{o*}}\n\
%{!M*:%{!E:c++ %g.cpp %{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
%{W*} %{w} %{pedantic} %{ansi}\
--- 226,233 ----
{".cc",
"cpp -+ %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{T} \
-undef -D__GNU__ -D__GNUG__ %{ansi:-T -D__STRICT_ANSI__} %{!ansi:%p}\
! %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
! %{Wcomment} %{Wall} %C\
%i %{!M*:%{!E:%g.cpp}}%{E:%{o*}}%{M*:%{o*}}\n\
%{!M*:%{!E:c++ %g.cpp %{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
%{W*} %{w} %{pedantic} %{ansi}\
--
Johan Widen
SICS, PO Box 1263, S-164 28 KISTA, SWEDEN
Tel: +46 8 752 15 32 Ttx: 812 61 54 SICS S Fax: +46 8 751 72 30
Internet: jw@sics.se or {mcvax,munnari,ukc,unido}!enea!sics.se!jw