This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37535] New: gcc/libgcc2.c:404: internal compiler error: Floating point exception
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2008 00:56:54 -0000
- Subject: [Bug middle-end/37535] New: gcc/libgcc2.c:404: internal compiler error: Floating point exception
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
/home/dave/gcc-4.4/objdir/./gcc/xgcc -B/home/dave/gcc-4.4/objdir/./gcc/
-B/home/
dave/opt/gnu/gcc/gcc-4.4.0/hppa-linux/bin/
-B/home/dave/opt/gnu/gcc/gcc-4.4.0/hp
pa-linux/lib/ -isystem /home/dave/opt/gnu/gcc/gcc-4.4.0/hppa-linux/include
-isys
tem /home/dave/opt/gnu/gcc/gcc-4.4.0/hppa-linux/sys-include -g -O2 -O2 -g -O2
-
DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wca
st-qual -Wold-style-definition -isystem ./include -fPIC -DELF=1 -DLINUX=1 -g
-
DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I.
-I../.././gcc
-I../../../gcc/libgcc -I../../../gcc/libgcc/. -I../../../gcc/libgcc/../gcc
-I..
/../../gcc/libgcc/../include -DHAVE_CC_TLS -o _mulvdi3.o -MT _mulvdi3.o -MD
-MP
-MF _mulvdi3.dep -DL_mulvdi3 -c ../../../gcc/libgcc/../gcc/libgcc2.c \
-fvisibility=hidden -DHIDE_EXPORTS
../../../gcc/libgcc/../gcc/libgcc2.c: In function '__mulvdi3':
../../../gcc/libgcc/../gcc/libgcc2.c:404: internal compiler error: Floating
poin
t exception
Please submit a full bug report,
Introduced in 140335 or 140337.
Starting program: /home/dave/gcc-4.4/objdir/gcc/cc1 `cat xx.sh`
GNU C (GCC) version 4.4.0 20080915 (experimental) [trunk revision 140378]
(hppa-linux)
compiled by GNU C version 4.4.0 20080915 (experimental) [trunk revision
140378], GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
options passed: -I. -I. -I../.././gcc -I../../../gcc/libgcc
-I../../../gcc/libgcc/. -I../../../gcc/libgcc/../gcc
-I../../../gcc/libgcc/../include -iprefix
/home/dave/gcc-4.4/objdir/gcc/../lib/gcc/hppa-linux/4.4.0/ -isystem
/home/dave/gcc-4.4/objdir/./gcc/include -isystem
/home/dave/gcc-4.4/objdir/./gcc/include-fixed -MD _mulvdi3.d -MF
_mulvdi3.dep -MP -MT _mulvdi3.o -DIN_GCC -DELF=1 -DLINUX=1
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DHAVE_CC_TLS
-DL_mulvdi3 -DHIDE_EXPORTS -isystem
/home/dave/opt/gnu/gcc/gcc-4.4.0/hppa-linux/include -isystem
/home/dave/opt/gnu/gcc/gcc-4.4.0/hppa-linux/sys-include -isystem ./include
../../../gcc/libgcc/../gcc/libgcc2.c -auxbase-strip _mulvdi3.s -g -g -g
-O2 -O2 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wcast-qual -Wold-style-definition -fPIC
-fvisibility=hidden
options enabled: -fPIC -falign-functions -falign-jumps -falign-labels
-fargument-alias -fauto-inc-dec -fbranch-count-reg -fcaller-saves -fcommon
-fcprop-registers -fcrossjumping -fcse-follow-jumps -fdefer-pop
-fdelayed-branch -fdelete-null-pointer-checks -fdwarf2-cfi-asm
-fearly-inlining -feliminate-unused-debug-types -fexpensive-optimizations
-fforward-propagate -ffunction-cse -fgcse -fgcse-lm
-fguess-branch-probability -fident -fif-conversion -fif-conversion2
-findirect-inlining -finline -finline-functions-called-once
-finline-small-functions -fipa-cp -fipa-pure-const -fipa-reference -fira
-fira-share-save-slots -fira-share-spill-slots -fivopts
-fkeep-static-consts -fleading-underscore -fmath-errno -fmerge-constants
-fmerge-debug-strings -fmove-loop-invariants -fomit-frame-pointer
-foptimize-register-move -foptimize-sibling-calls -fpeephole -fpeephole2
-freg-struct-return -fregmove -freorder-blocks -freorder-functions
-frerun-cse-after-loop -fsched-interblock -fsched-spec
-fsched-stalled-insns-dep -fschedule-insns -fschedule-insns2
-fsigned-zeros -fsplit-ivs-in-unroller -fsplit-wide-types
-fstrict-aliasing -fstrict-overflow -fthread-jumps -ftoplevel-reorder
-ftrapping-math -ftree-builtin-call-dce -ftree-ccp -ftree-ch
-ftree-copy-prop -ftree-copyrename -ftree-cselim -ftree-dce
-ftree-dominator-opts -ftree-dse -ftree-fre -ftree-loop-im
-ftree-loop-ivcanon -ftree-loop-optimize -ftree-parallelize-loops=
-ftree-pre -ftree-reassoc -ftree-scev-cprop -ftree-sink -ftree-sra
-ftree-switch-conversion -ftree-ter -ftree-vect-loop-version -ftree-vrp
-funit-at-a-time -fvar-tracking -fzero-initialized-in-bss -mbig-switch
-mgas -mglibc -mno-space-regs
Compiler executable checksum: 284d58e4a72317aed323c67a642295bc
vprintf getchar fgetc_unlocked getc_unlocked getchar_unlocked putchar
fputc_unlocked putc_unlocked putchar_unlocked getline feof_unlocked
ferror_unlocked gnu_dev_major gnu_dev_minor gnu_dev_makedev __strcspn_c1
__strcspn_c2 __strcspn_c3 __strspn_c1 __strspn_c2 __strspn_c3 __strpbrk_c2
__strpbrk_c3 __strtok_r_1c __strsep_1c __strsep_2c __strsep_3c atof atoi atol
atoll __mulvdi3
Analyzing compilation unit
Performing interprocedural optimizations
<visibility> <early_local_cleanups> <summary generate> <cp> <inline>
<static-var> <pure-const>Assembling functions:
__mulvdi3
Program received signal SIGFPE, Arithmetic exception.
$$divoI () at ../../../gcc/libgcc/../gcc/config/pa/milli64.S:439
439 addit,= 0,arg1,r0 /* trap if divisor == 0 */
Current language: auto; currently asm
(gdb) bt
#0 $$divoI () at ../../../gcc/libgcc/../gcc/config/pa/milli64.S:439
#1 0x005b7674 in update_copy_costs (allocno=0x886338, decr_p=1 '\001')
at ../../gcc/gcc/ira-color.c:249
#2 0x005b9228 in assign_hard_reg (allocno=0x886338, retry_p=0 '\0')
at ../../gcc/gcc/ira-color.c:585
#3 0x005bb584 in color_allocnos () at ../../gcc/gcc/ira-color.c:1261
#4 0x005bbb9c in color_pass (loop_tree_node=0x877b30)
at ../../gcc/gcc/ira-color.c:1722
#5 0x005aa700 in ira_traverse_loop_tree (bb_p=0 '\0', loop_node=0x0,
preorder_func=0x6d4800 <__FUNCTION__.29512+4>, postorder_func=0)
at ../../gcc/gcc/ira-build.c:1268
#6 0x005b60e0 in ira_color () at ../../gcc/gcc/ira-color.c:1862
#7 0x005a8d38 in rest_of_handle_ira () at ../../gcc/gcc/ira.c:1773
#8 0x0027e110 in execute_one_pass (pass=0x79e134)
at ../../gcc/gcc/passes.c:1279
#9 0x0027e39c in execute_pass_list (pass=0x79e134)
at ../../gcc/gcc/passes.c:1327
#10 0x0027e3b0 in execute_pass_list (pass=0x79b714)
at ../../gcc/gcc/passes.c:1328
#11 0x0038c128 in tree_rest_of_compilation (fndecl=0x403bd680)
at ../../gcc/gcc/tree-optimize.c:418
#12 0x004e9134 in cgraph_expand_function (node=0x403c8580)
at ../../gcc/gcc/cgraphunit.c:1038
---Type <return> to continue, or q <return> to quit---
#13 0x004eb1fc in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1097
#14 0x00032b1c in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:8071
#15 0x00337d48 in toplev_main (argc=<value optimized out>,
argv=<value optimized out>) at ../../gcc/gcc/toplev.c:979
#16 0x40549554 in __libc_start_main () from /lib/libc.so.6
#17 0x0001f158 in _start ()
--
Summary: gcc/libgcc2.c:404: internal compiler error: Floating
point exception
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
GCC build triplet: hppa-unknown-linux-gnu
GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37535