This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/9607: problem with PowerPC compiler with special optimization switches

>Number:         9607
>Category:       optimization
>Synopsis:       problem with PowerPC compiler with special optimization switches
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 07 00:26:00 UTC 2003
>Originator:     Lars Göran Larsson
>Release:        3.2.2
gcc-3.2.2/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=powerpc-linux-gnu --prefix=/home/ppc/cdk --with-cpu=823 --enable-target-optspace --enable-languages=c,c++ --enable-shared --enable-threads --disable-nls --nfp
When compiling for PowerPC with following options
powerpc-gcc-3.2.2  -O  -msoft-float -mstring -fforce-addr
and following C file with the below line
resulting "Internal compiler error"
Removing any of above switches the error does not occur.
Build a powerpc cross compiler with above configuration
create a C file with "void prt(char *fmt,...) { }" line.
And compile it with above switches...
Sorry, unknown how the compiler works or if any of the compiler switches has any conflicts against each other.
Content-Type: text/plain; name="err.txt"
Content-Disposition: inline; filename="err.txt"

Reading specs from /home/tuxbox/dbox2/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=powerpc-tuxbox-linux-gnu --prefix=/home/tuxbox/dbox2/cdk --with-cpu=823 --enable-target-optspace --enable-languages=c,c++ --enable-shared --enable-threads --disable-nls --nfp
Thread model: posix
gcc version 3.2.2
 /home/tuxbox/dbox2/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.2.2/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__ -D__PPC -D__powerpc -Acpu=powerpc -Amachine=powerpc -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_CALL_SYSV -D_SOFT_FLOAT -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine=bigendian -D_ARCH_PPC -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix err.c -quiet -dumpbase err.c -msoft-float -mstring -O -version -fforce-addr -o /tmp/ccPrLoPT.s
GNU CPP version 3.2.2 (cpplib) (PowerPC GNU/Linux)
GNU C version 3.2.2 (powerpc-tuxbox-linux-gnu)
	compiled by GNU C version 2.95.4 20011002 (Debian prerelease).
ignoring nonexistent directory "/home/tuxbox/dbox2/cdk/powerpc-tuxbox-linux-gnu/sys-include"
#include "..." search starts here:
#include <...> search starts here:
End of search list.
err.c: In function `prt':
err.c:3: unrecognizable insn:
(insn 17 16 20 (parallel[ 
            (set (mem:SI (reg/f:SI 115) [0 S4 A32])
                (reg:SI 4 r4))
            (clobber (scratch:SI))
            (set (mem:SI (reg/f:SI 116) [0 S4 A32])
                (reg:SI 5 r5))
            (set (mem:SI (reg/f:SI 117) [0 S4 A32])
                (reg:SI 6 r6))
            (set (mem:SI (reg/f:SI 118) [0 S4 A32])
                (reg:SI 7 r7))
            (set (mem:SI (reg/f:SI 119) [0 S4 A32])
                (reg:SI 8 r8))
            (set (mem:SI (reg/f:SI 120) [0 S4 A32])
                (reg:SI 9 r9))
            (set (mem:SI (reg/f:SI 121) [0 S4 A32])
                (reg:SI 10 r10))
        ] ) -1 (insn_list 4 (insn_list 6 (insn_list 8 (insn_list 10 (insn_list 12 (insn_list 14 (insn_list 16 (nil))))))))
    (expr_list:REG_DEAD (reg:SI 10 r10)
        (expr_list:REG_DEAD (reg/f:SI 121)
            (expr_list:REG_DEAD (reg:SI 9 r9)
                (expr_list:REG_DEAD (reg/f:SI 120)
                    (expr_list:REG_DEAD (reg:SI 8 r8)
                        (expr_list:REG_DEAD (reg/f:SI 119)
                            (expr_list:REG_DEAD (reg:SI 7 r7)
                                (expr_list:REG_DEAD (reg/f:SI 118)
                                    (expr_list:REG_DEAD (reg:SI 6 r6)
                                        (expr_list:REG_DEAD (reg/f:SI 117)
                                            (expr_list:REG_DEAD (reg:SI 5 r5)
                                                (expr_list:REG_DEAD (reg/f:SI 116)
                                                    (expr_list:REG_DEAD (reg:SI 4 r4)
                                                        (expr_list:REG_DEAD (reg/f:SI 115)
                                                            (expr_list:REG_UNUSED (scratch:SI)
err.c:3: Internal compiler error in extract_insn, at recog.c:2148
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]