rfg@MCC.COM (Ron Guilmette) (02/24/89)
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}\