Patch [gcc-2_95-branch]: Add missing parameter in i386.md (was: Re: BUG: Creating shared C++ libs using -march=pentiumpro broken on the release branch)
Manfred Hollstein
manfredh@redhat.com
Sun Jul 2 10:40:00 GMT 2000
Hi there,
the behaviour described in my earlier bug report is caused by a
missing paramter to the call of `load_pic_register' in
exception_receiver. Fixed by the patch below.
OK to install?
Cheers, manfred
On Wed, 28 June 2000, 21:24:33 +0200, manfredh@redhat.com wrote:
> Hi there,
>
> Since the patch to "load_pic_register" has been applied to
> config/i386/i386.md on the "gcc-2_95-branch", creating shared C++
> libraries using the "-march=pentiumpro" flag became impossible. I did
> an update on the branch today (2000/06/28 16:24:00 +0200), configured
> like this:
>
> $ env CC=gcc CFLAGS="-O9 -march=pentiumpro -fomit-frame-pointer" \
> CXXFLAGS="-O9 -march=pentiumpro -g" LDFLAGS= LINGUAS="de es fr it"\
> /bin/sh ../gcc-2.95.3/configure --host=i686-redhat6-linux-gnu \
> --target=i686-redhat6-linux-gnu --srcdir=../gcc-2.95.3 \
> --prefix=/opt/gnu --exec-prefix=/opt/gnu/H-ia32-linux \
> --with-gnu-as --with-gnu-ld --enable-shared \
> --enable-version-specific-runtime-libs --enable-threads=yes \
> --with-local-prefix=/opt/gnu --enable-languages=c,gcov,c++ \
> --enable-nls --verbose
>
> followed by a
>
> $ make bootstrap
>
> So far, no problems. But, running "make check" reveals lots of
> failures in the C++ are, all of which are similar to this:
>
> /home/gnu/work/GNU/gcc-2.95.3-i686-redhat6-linux-gnu/i686-redhat6-linux-gnu//libstdc++/libstdc++.so: undefined reference to `LPR0'
> collect2: ld returned 1 exit status
[...]
2000-07-02 Manfred Hollstein <manfredh@redhat.com>
* i386.md (exception_receiver): Add missing parameter in
call to load_pic_register.
diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el gcc-2.95.3.orig/gcc/config/i386/i386.md gcc-2.95.3/gcc/config/i386/i386.md
--- gcc-2.95.3.orig/gcc/config/i386/i386.md Sat Jan 22 16:02:52 2000
+++ gcc-2.95.3/gcc/config/i386/i386.md Sun Jul 2 19:18:03 2000
@@ -8190,7 +8190,7 @@ byte_xor_operation:
"flag_pic"
"
{
- load_pic_register ();
+ load_pic_register (1);
DONE;
}")
More information about the Gcc-patches
mailing list