Article View: gnu.g++.bug
Article #1604g++ does not supply CPP_SPEC for .cc and .C files
From: Johan Widen
Date: Thu, 12 Jan 1989 21:34
Date: Thu, 12 Jan 1989 21:34
50 lines
2739 bytes
2739 bytes
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
Technical Details
Message-ID:
<JW.89Jan12223430@obelisk.sics.se>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!mcvax!enea!kth!osiris!sics.se!jwShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!mcvax!enea!kth!osiris!sics.se!jw From: jw@sics.se (Johan Widen) Newsgroups: gnu.g++.bug Subject: g++ does not supply CPP_SPEC for .cc and .C files Message-ID: <JW.89Jan12223430@obelisk.sics.se> Date: 12 Jan 89 21:34:30 GMT Sender: news@osiris.sics.se Distribution: gnu Organization: Swedish Institute of Computer Science, Kista Lines: 50