gcc 2.7.2 and egcs on the same system
H.J. Lu
hjl@lucon.org
Sat Jan 10 18:31:00 GMT 1998
>
> For my mainline development work, I'd like to use gcc 2.7.2. On the
> same system, I'd like to have egcs installed so that I can see what
> sorts of efficiency I can expect when the code ships. When I tune my
> code, I'll tune it for egcs, but I'll do my debugging on gcc 2.7.2 so
> that I can avoid most compiler instability.
>
> Or at least, that was the idea. Following a suggestion on the FAQ,
> I installed binutils-2.8.1.0.18. That wasn't so smart -- now gcc 2.7.2
> won't compile. Before I get myself any deeper in trouble, could
> someone suggest to me how I get gcc 2.7.2 back into working condition?
> If it helps at all, the system was a RedHat 4.2 system before I
> upgraded binutils.
>
> After that, I'd be interested to hear how to get egcs's auto-configure
> to run without installing the new binutils. The old ones seemed to
> cause a failure, which I can't display here since I can't reproduce it
> since I don't have the old binutils.
>
>
I have been using gcc 2.7.2, 2.7.2.3, 2.8.0 and many egcs releases
on the same machine for a long time. Yes, I am using binutils
2.8.1.0.18. What is your problem? BTW, I install all of them under
/usr and use -V to select which one to use. I also need to patch
specs in gcc 2.7.2. I am enclosing mine here. It is for gcc 2.7.2.
Please notice that *asm: is changed. For 2.7.2.3, you need to change
%{!shared:-lgcc}
to
-lgcc
for *libgcc:.
--
H.J. Lu (hjl@gnu.org)
---
*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}
*asm_final:
%{pipe:-}
*cpp:
%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__} %{posix:-D_POSIX_SOURCE}
*cc1:
*cc1plus:
*endfile:
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
*link:
-m elf_i386 %{shared:-shared} %{!shared: %{!ibcs: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.1}} %{static:-static}}}
*lib:
%{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} %{!ggdb:-lc} %{ggdb:-lg}}
*libgcc:
%{!shared:-lgcc}
*startfile:
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
*switches_need_spaces:
*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}
*predefines:
-D__ELF__ -Dunix -Di386 -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386)
*cross_compile:
0
*multilib:
. ;
More information about the Gcc
mailing list