public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "osv at javad dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/21571] ICE in rs6000.c with -msdata=default.
Date: Wed, 22 Jun 2005 16:00:00 -0000	[thread overview]
Message-ID: <20050622160011.15709.qmail@sourceware.org> (raw)
In-Reply-To: <20050514170038.21571.osv@javad.ru>


------- Additional Comments From osv at javad dot ru  2005-06-22 16:00 -------
Reproducible on 4.1.0 (mainline) by adding -ffast-math to the command-line:

$ ppc-eabi-gcc -v -msdata=default -ffast-math -c test.cc -o test.o
Using built-in specs.
Target: ppc-eabi
Configured with: ../../gcc/configure --prefix=/home/osv/try/ppc-rtems/tools
--target=ppc-eabi --disable-haifa --disable-newlib-hw-fp --with-gnu-as
--with-gnu-ld -with-newlib --with-cpu=505
Thread model: single
gcc version 4.1.0 20050620 (experimental)
 /home/osv/try/ppc-rtems/tools/libexec/gcc/ppc-eabi/4.1.0/cc1plus -quiet -v
test.cc -quiet -dumpbase test.cc -msdata=default -mcpu=505 -auxbase-strip test.o
-version -ffast-math -o /tmp/ccM8Vbir.s
ignoring nonexistent directory
"/home/osv/try/ppc-rtems/tools/lib/gcc/ppc-eabi/4.1.0/../../../../ppc-eabi/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /home/osv/try/ppc-rtems/tools/lib/gcc/ppc-eabi/4.1.0/../../../../include/c++/4.1.0
 /home/osv/try/ppc-rtems/tools/lib/gcc/ppc-eabi/4.1.0/../../../../include/c++/4.1.0/ppc-eabi
 /home/osv/try/ppc-rtems/tools/lib/gcc/ppc-eabi/4.1.0/../../../../include/c++/4.1.0/backward
 /home/osv/try/ppc-rtems/tools/lib/gcc/ppc-eabi/4.1.0/include
 /home/osv/try/ppc-rtems/tools/lib/gcc/ppc-eabi/4.1.0/../../../../ppc-eabi/include
End of search list.
GNU C++ version 4.1.0 20050620 (experimental) (ppc-eabi)
	compiled by GNU C version 2.95.4 20011002 (Debian prerelease).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 53cb6b81161433cf05f625e722038621
test.cc: In function 'void foo()':
test.cc:2: internal compiler error: in find_addr_reg, at
config/rs6000/rs6000.c:16845
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Compilation exited abnormally with code 1 at Wed Jun 22 19:58:09


In case it helps to debug the problem, here is the insn that causes the ICE:

(insn 9 32 10 (set (mem/i:DF (symbol_ref:SI ("zero") [flags 0x6] <var_decl
0x401dcf68 zero>) [0 zero+0 S8 A64])
        (reg:DF 9 %r9 [118])) 350 {*movdf_hardfloat32} (nil)
    (nil))

... and here is stack backtrace:

#0  fancy_abort (file=0x89c7b60 "../../../gcc/gcc/config/rs6000/rs6000.c", 
    line=16845, function=0x89cefcd "find_addr_reg")
    at ../../../gcc/gcc/diagnostic.c:588
#1  0x08727607 in find_addr_reg (addr=0x40143e60)
    at ../../../gcc/gcc/config/rs6000/rs6000.c:16845
#2  0x08541701 in output_350 (operands=0x8a011a0, insn=0x401bf140)
    at ../../../gcc/gcc/config/rs6000/rs6000.md:7726
#3  0x08457c69 in get_insn_template (code=350, insn=0x401bf140)
    at ../../../gcc/gcc/final.c:1584
#4  0x08458c65 in final_scan_insn (insn=0x401bf140, file=0x8a7cc38, 
    optimize=0, nopeepholes=0, seen=0xbfffe690)
    at ../../../gcc/gcc/final.c:2385
#5  0x08457b85 in final (first=0x401bc200, file=0x8a7cc38, optimize=0)
    at ../../../gcc/gcc/final.c:1569
#6  0x086c916c in rest_of_handle_final () at ../../../gcc/gcc/passes.c:293
#7  0x086cbb26 in rest_of_compilation () at ../../../gcc/gcc/passes.c:1747
#8  0x08275f83 in execute_one_pass (pass=0x89ea220)
    at ../../../gcc/gcc/tree-optimize.c:629
#9  0x0827608c in execute_pass_list (pass=0x89ea220)
    at ../../../gcc/gcc/tree-optimize.c:666
#10 0x08276600 in tree_rest_of_compilation (fndecl=0x401de074)
    at ../../../gcc/gcc/tree-optimize.c:829
#11 0x0819a260 in expand_body (fn=0x401de074)
    at ../../../gcc/gcc/cp/semantics.c:3018
#12 0x0872f12e in cgraph_expand_function (node=0x401de414)
    at ../../../gcc/gcc/cgraphunit.c:968
#13 0x0872f3c4 in cgraph_expand_all_functions ()
    at ../../../gcc/gcc/cgraphunit.c:1034
#14 0x0872f9a0 in cgraph_optimize () at ../../../gcc/gcc/cgraphunit.c:1168
#15 0x08119d72 in cp_finish_file () at ../../../gcc/gcc/cp/decl2.c:3104
#16 0x08049d3f in finish_file () at ../../../gcc/gcc/cp/cp-lang.c:113
#17 0x08239dad in c_common_parse_file (set_yydebug=0)
    at ../../../gcc/gcc/c-opts.c:1119
#18 0x0867e3e3 in compile_file () at ../../../gcc/gcc/toplev.c:966
#19 0x0867fb58 in do_compile () at ../../../gcc/gcc/toplev.c:1902
#20 0x0867fbc5 in toplev_main (argc=16, argv=0xbfffea14)
    at ../../../gcc/gcc/toplev.c:1934
#21 0x08247e96 in main (argc=16, argv=0xbfffea14) at ../../../gcc/gcc/main.c:35

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21571


  reply	other threads:[~2005-06-22 16:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-14 17:00 [Bug target/21571] New: " osv at javad dot ru
2005-06-22 16:00 ` osv at javad dot ru [this message]
2005-06-22 16:10 ` [Bug target/21571] " pinskia at gcc dot gnu dot org
2005-06-22 16:11 ` pinskia at gcc dot gnu dot org
2005-06-27 13:43 ` oakad at yahoo dot com
2005-06-29 18:21 ` osv at javad dot ru
2005-07-01 14:46 ` osv at javad dot ru
2005-08-22  1:27 ` amodra at bigpond dot net dot au
2005-08-22  3:25 ` amodra at bigpond dot net dot au
2005-08-22 10:38 ` amodra at bigpond dot net dot au
2005-08-23  3:00 ` cvs-commit at gcc dot gnu dot org
2005-08-23  3:07 ` cvs-commit at gcc dot gnu dot org
2005-08-23  3:10 ` amodra at bigpond dot net dot au
2005-08-23 11:34 ` pinskia at gcc dot gnu dot org

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=20050622160011.15709.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).