[Bug rtl-optimization/71496] New: Two picbase loads created for libjava code on powerpc-darwin after rev 22022.

iains at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 10 11:36:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71496

            Bug ID: 71496
           Summary: Two picbase loads created for libjava code on
                    powerpc-darwin after rev 22022.
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: iains at gcc dot gnu.org
  Target Milestone: ---

Created attachment 38679
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38679&action=edit
cut-down .java, .class, .s and rtl files for StringBuffer.java

After 22022 for O2 and O3 (m32 and m64) with PIC code, two picbase loads are
created on powerpc-darwin.  This prevents bootstrap with Java.

The attached files include a cut-down version of StringBuffer.java and the
.class file.

$ /GCC/gcc-trunk-apple/gcc/gcj StringBuffer.class --encoding=UTF-8
-Wno-deprecated -fbootstrap-classes
-B/GCC/gcc-trunk-apple/powerpc-apple-darwin9/ppc64/libjava/
-B/GCC/gcc-trunk-apple/powerpc-apple-darwin9/ppc64/libjava/
-B/GCC/gcc-trunk-apple/./gcc/
-B/compilers/gcc-trunk-ni/powerpc-apple-darwin9/bin/
-B/compilers/gcc-trunk-ni/powerpc-apple-darwin9/lib/ -isystem
/compilers/gcc-trunk-ni/powerpc-apple-darwin9/include -isystem
/compilers/gcc-trunk-ni/powerpc-apple-darwin9/sys-include -fclasspath=
-fbootclasspath=/GCC/gcc-trunk/libjava/classpath/lib -c -g -O2 -m64 -save-temps
-dapA
StringBuffer.s:784:FATAL:Symbol L2$pb already defined

$ ../../../gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=../../../gcc/xgcc
Target: powerpc-apple-darwin9
Configured with: /GCC/gcc-trunk/configure --prefix=/compilers/gcc-trunk-ni
--target=powerpc-apple-darwin9 --host=powerpc-apple-darwin9
--build=powerpc-apple-darwin9 --enable-checking=yes --disable-nls
--with-cctools-as --with-as=/usr/local/bootstrap/bin/as --with-ld64
--with-ld=/usr/local/bootstrap/bin/ld --with-pkgversion='iains trunk test'
--enable-version-specific-runtime-libs
--with-sysroot=/usr/local/bootstrap/SDKs/darwin9
--with-gmp=/usr/local/tools/gcc-2016 --enable-languages=c,c++,java
--disable-libstdcxx-pch


More information about the Gcc-bugs mailing list