target/6254: ia64 cross-compiler crashes

cichon@ifn.et.tu-dresden.de cichon@ifn.et.tu-dresden.de
Thu Apr 11 05:17:00 GMT 2002


>Number:         6254
>Category:       target
>Synopsis:       ia64 cross-compiler crashes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 11 04:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gordon Cichon
>Release:        gcc version 3.2 20020410 (experimental)
>Organization:
>Environment:
Suse Linux 7.2
>Description:
The compiler crashes on compiling a simple test program.
Here is the output:

addv.c: In function `addv':
addv.c:8: internal error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

This is the stack at the time of the crash:
#0  0x838879f in htab_find_slot_with_hash (htab=0x84a3e00, element=0xbfffe340,
    hash=2027808484, insert=NO_INSERT)
    at /tmp/gcc/libiberty/hashtab.c:414
#1  0x8388865 in htab_find_slot (htab=0x84a3e00, element=0xbfffe340,
    insert=NO_INSERT) at /tmp/gcc/libiberty/hashtab.c:463
#2  0x810906f in maybe_remove_eh_handler (label=0x40442e88)
    at /tmp/gcc/gcc/except.c:2677
#3  0x80e05c0 in flow_delete_block_noexpunge (b=0x84a4500)
    at /tmp/gcc/gcc/cfgrtl.c:383
#4  0x80e06e2 in flow_delete_block (b=0x84a4500)
    at /tmp/gcc/gcc/cfgrtl.c:421
#5  0x82be97b in try_optimize_cfg (mode=24)
    at /tmp/gcc/gcc/cfgcleanup.c:1621
#6  0x82befac in cleanup_cfg (mode=24)
    at /tmp/gcc/gcc/cfgcleanup.c:1805
#7  0x82438e4 in optimize_sibling_and_tail_recursive_calls ()
    at /tmp/gcc/gcc/sibcall.c:593
#8  0x826d88c in rest_of_compilation (decl=0x40442bb8)
    at /tmp/gcc/gcc/toplev.c:2484
#9  0x8074055 in c_expand_body (fndecl=0x40442bb8, nested_p=0, can_defer_p=1)
    at /tmp/gcc/gcc/c-decl.c:6848
#10 0x8073ba1 in finish_function (nested=0, can_defer_p=1)
    at /tmp/gcc/gcc/c-decl.c:6715
#11 0x804a6ee in yyparse () at c-parse.y:359
#12 0x80592bb in c_common_parse_file ()
    at /tmp/gcc/gcc/c-lex.c:164
#13 0x826c6be in compile_file () at /tmp/gcc/gcc/toplev.c:2032
#14 0x827249e in do_compile () at /tmp/gcc/gcc/toplev.c:5098
#15 0x827250d in toplev_main (argc=8, argv=0xbfffebfc)
    at /tmp/gcc/gcc/toplev.c:5130
#16 0x80c1176 in main (argc=8, argv=0xbfffebfc)
    at /tmp/gcc/gcc/main.c:35
#17 0x40041c6f in __libc_start_main () from /lib/libc.so.6

What is wrong with it? Can't see why it does that...
>How-To-Repeat:
The compiler was configured as follows:
configure --prefix=$HOME/local --enable-languages=c --target=ia64-elf --with-ld=$HOME/bin/myld --with-as=$HOME/bin/myas --disable-c-mbchar --disable-threads --disable-shared --disable-nls
The compiler was called with the following options:
cc1 -da -O2 -fexpensive-optimizations -fstrict-aliasing -o addv.s addv.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="addv.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="addv.c"

CnZvaWQKYWRkdiAoaW50ICogYSwgaW50ICogYiwgaW50ICogYykKewogICAgaW50ICogYV9lbmQg
PSBhICsgNDA5NjsKICAgIHdoaWxlIChhICE9IGFfZW5kKQoJKihjKyspID0gKihhKyspICsgKihi
KyspOwp9Cg==



More information about the Gcc-bugs mailing list