public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: lars@gnu.cc
To: gcc-gnats@gcc.gnu.org
Subject: optimization/9607: problem with PowerPC compiler with special optimization switches
Date: Fri, 07 Feb 2003 00:26:00 -0000	[thread overview]
Message-ID: <20030207002329.15995.qmail@sources.redhat.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 5041 bytes --]


>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
>Closed-Date:
>Last-Modified:
>Originator:     Lars Göran Larsson
>Release:        3.2.2
>Organization:
>Environment:
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
>Description:
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
2
resulting "Internal compiler error"
Removing any of above switches the error does not occur.
>How-To-Repeat:
Build a powerpc cross compiler with above configuration
create a C file with "void prt(char *fmt,...) { }" line.
And compile it with above switches...
>Fix:
Sorry, unknown how the compiler works or if any of the compiler switches has any conflicts against each other.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
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:
 /home/tuxbox/dbox2/cdk/include
 /home/tuxbox/dbox2/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.2.2/include
 /home/tuxbox/dbox2/cdk/powerpc-tuxbox-linux-gnu/include
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)
                                                                (nil)))))))))))))))))
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:http://www.gnu.org/software/gcc/bugs.html> for instructions.


             reply	other threads:[~2003-02-07  0:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07  0:26 lars [this message]
2003-02-20 20:57 dje

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030207002329.15995.qmail@sources.redhat.com \
    --to=lars@gnu.cc \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).