Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Johan Widen
Thu, 12 Jan 1989 21:34
g++ does not supply CPP_SPEC for .cc and .C files
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads