Article View: gnu.g++.bug
Article #1706BUG in G++ 1.33.0 - -traditional is broke
From: Ron Guilmette
Date: Fri, 24 Feb 1989 00:04
Date: Fri, 24 Feb 1989 00:04
41 lines
2046 bytes
2046 bytes
In G++ 1.33.0, the gcc.c driver fails to pass the -traditional
flag through to the compiler "proper". It does however pass it
thru to the preprocessor. To be consistant with GCC, it should
pass it on to both of these.
This is especially important for now because there is currently no way
to name a particular function whose names has been overloaded. The
only easy way around this problem is to use -traditional so that
you can write symbols with the dollar signs in them.
The following patches fix the problem in gcc.c (G++ 1.33.0):
*** gcc.c Mon Feb 13 02:56:12 1989
--- sun3/gcc.c Thu Feb 23 17:54:50 1989
***************
*** 235,239 ****
%{!M*:%{!E:c++ %{!pipe:%g.cpp} %1 \
%{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
! %{W*} %{w} %{pedantic} %{ansi}\
%{O:-opt}%{!O:-noreg}\
%{v:-version} %{g:-G} %{g0:-G0} %{pg:-p} %{p}\
--- 235,239 ----
%{!M*:%{!E:c++ %{!pipe:%g.cpp} %1 \
%{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
! %{W*} %{w} %{pedantic} %{ansi} %{traditional}\
%{O:-opt}%{!O:-noreg}\
%{v:-version} %{g:-G} %{g0:-G0} %{pg:-p} %{p}\
***************
*** 250,254 ****
%{!M*:%{!E:c++ %{!pipe:%g.cpp} %1 \
%{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
! %{W*} %{w} %{pedantic} %{ansi}\
%{O:-opt}%{!O:-noreg}\
%{v:-version} %{g:-G} %{g0:-G0} %{pg:-p} %{p}\
--- 250,254 ----
%{!M*:%{!E:c++ %{!pipe:%g.cpp} %1 \
%{!Q:-quiet} -dumpbase %i %{Y*} %{d*} %{m*} %{f*}\
! %{W*} %{w} %{pedantic} %{ansi} %{traditional}\
%{O:-opt}%{!O:-noreg}\
%{v:-version} %{g:-G} %{g0:-G0} %{pg:-p} %{p}\
Technical Details
Message-ID:
<8902240004.AA02595@riunite.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: BUG in G++ 1.33.0 - -traditional is broke Message-ID: <8902240004.AA02595@riunite.aca.mcc.com> Date: 24 Feb 89 00:04:02 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 41