Bug 42475 - ICE at -O1 and above: internal compiler error: in simplify_subreg, at simplify-rtx.c:4954
Summary: ICE at -O1 and above: internal compiler error: in simplify_subreg, at simplif...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.4.2
: P3 normal
Target Milestone: ---
Assignee: Jakub Jelinek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-23 09:04 UTC by Yavor Doganov
Modified: 2009-12-23 17:09 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2009-12-23 09:39:44


Attachments
preprocessed source (76.27 KB, application/x-gzip)
2009-12-23 09:06 UTC, Yavor Doganov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yavor Doganov 2009-12-23 09:04:35 UTC
This happens only on x86_64-unknown-linux-gnu and x86_64-pc-kfreebsd-gnu.
Complete command:

gcc CynthiuneHeaderCell.m -c \
	      -MMD -MP -I/home/y/yavor/include -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -fgnu-runtime -v -save-temps -fconstant-string-class=NSConstantString -IFrameworks -IFrameworks/Cynthiune/Cynthiune.framework/Headers -I. -I/home/y/yavor/GNUstep/Library/Headers -I/home/y/yavor/local/include/GNUstep -I/home/y/yavor/include/GNUstep \
	       -o obj/CynthiuneHeaderCell.m.o
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --enable-languages=c,c++,objc --with-mpfr=/home/y/yavor CPPFLAGS=-I/home/y/yavor/include
Thread model: posix
gcc version 4.4.2 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-MMD' '-MP' '-I/home/y/yavor/include' '-DGNUSTEP' '-DGNUSTEP_BASE_LIBRARY=1' '-DGNU_GUI_LIBRARY=1' '-DGNU_RUNTIME=1' '-DGNUSTEP_BASE_LIBRARY=1' '-D_REENTRANT' '-fPIC' '-g' '-Wall' '-DDEBUG' '-fno-omit-frame-pointer' '-DGSWARN' '-DGSDIAGNOSE' '-Wno-import' '-O2' '-fno-strict-aliasing' '-fexceptions' '-fobjc-exceptions' '-D_NATIVE_OBJC_EXCEPTIONS' '-fgnu-runtime' '-v' '-save-temps' '-fconstant-string-class=NSConstantString' '-IFrameworks' '-IFrameworks/Cynthiune/Cynthiune.framework/Headers' '-I.' '-I/home/y/yavor/GNUstep/Library/Headers' '-I/home/y/yavor/local/include/GNUstep' '-I/home/y/yavor/include/GNUstep' '-o' 'obj/CynthiuneHeaderCell.m.o' '-shared-libgcc' '-mtune=generic'
 /srv/data/home/y/yavor/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.4.2/cc1obj -E -quiet -v -I/home/y/yavor/include -IFrameworks -IFrameworks/Cynthiune/Cynthiune.framework/Headers -I. -I/home/y/yavor/GNUstep/Library/Headers -I/home/y/yavor/local/include/GNUstep -I/home/y/yavor/include/GNUstep -iprefix /srv/data/home/y/yavor/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/ -MMD obj/CynthiuneHeaderCell.m.d -MP -MQ obj/CynthiuneHeaderCell.m.o -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -DDEBUG -DGSWARN -DGSDIAGNOSE -D_NATIVE_OBJC_EXCEPTIONS CynthiuneHeaderCell.m -mtune=generic -Wall -Wno-import -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -fobjc-exceptions -fgnu-runtime -fconstant-string-class=NSConstantString -g -fworking-directory -O2 -fpch-preprocess -o CynthiuneHeaderCell.mi
ignoring nonexistent directory "/srv/data/home/y/yavor/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../x86_64-unknown-linux-gnu/include"
ignoring duplicate directory "/srv/data/home/y/yavor/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/include"
ignoring duplicate directory "/srv/data/home/y/yavor/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/include-fixed"
ignoring nonexistent directory "/srv/data/home/y/yavor/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../x86_64-unknown-linux-gnu/include"
ignoring nonexistent directory "/home/y/yavor/GNUstep/Library/Headers"
#include "..." search starts here:
#include <...> search starts here:
 /home/y/yavor/include
 Frameworks
 Frameworks/Cynthiune/Cynthiune.framework/Headers
 .
 /home/y/yavor/local/include/GNUstep
 /home/y/yavor/include/GNUstep
 /srv/data/home/y/yavor/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/include
 /srv/data/home/y/yavor/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/include-fixed
 /usr/local/include
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-c' '-MMD' '-MP' '-I/home/y/yavor/include' '-DGNUSTEP' '-DGNUSTEP_BASE_LIBRARY=1' '-DGNU_GUI_LIBRARY=1' '-DGNU_RUNTIME=1' '-DGNUSTEP_BASE_LIBRARY=1' '-D_REENTRANT' '-fPIC' '-g' '-Wall' '-DDEBUG' '-fno-omit-frame-pointer' '-DGSWARN' '-DGSDIAGNOSE' '-Wno-import' '-O2' '-fno-strict-aliasing' '-fexceptions' '-fobjc-exceptions' '-D_NATIVE_OBJC_EXCEPTIONS' '-fgnu-runtime' '-v' '-save-temps' '-fconstant-string-class=NSConstantString' '-IFrameworks' '-IFrameworks/Cynthiune/Cynthiune.framework/Headers' '-I.' '-I/home/y/yavor/GNUstep/Library/Headers' '-I/home/y/yavor/local/include/GNUstep' '-I/home/y/yavor/include/GNUstep' '-o' 'obj/CynthiuneHeaderCell.m.o' '-shared-libgcc' '-mtune=generic'
 /srv/data/home/y/yavor/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.4.2/cc1obj -fpreprocessed CynthiuneHeaderCell.mi -quiet -dumpbase CynthiuneHeaderCell.m -mtune=generic -auxbase-strip obj/CynthiuneHeaderCell.m.o -g -O2 -Wall -Wno-import -version -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -fobjc-exceptions -fgnu-runtime -fconstant-string-class=NSConstantString -o CynthiuneHeaderCell.s
GNU Objective-C (GCC) version 4.4.2 (x86_64-unknown-linux-gnu)
	compiled by GNU C version 4.4.2, GMP version 4.1.4, MPFR version 2.4.1.
warning: GMP header version 4.1.4 differs from library version 4.2.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: b175c3d272f5dca0566abc1b5eef4179
CynthiuneHeaderCell.m: In function '-[CynthiuneHeaderCell drawInteriorWithFrame:inView:]':
CynthiuneHeaderCell.m:100: internal compiler error: in simplify_subreg, at simplify-rtx.c:4954
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Yavor Doganov 2009-12-23 09:06:10 UTC
Created attachment 19379 [details]
preprocessed source
Comment 2 Jakub Jelinek 2009-12-23 09:39:44 UTC
Combiner bug, testing a fix.
Comment 3 Jakub Jelinek 2009-12-23 17:04:22 UTC
Subject: Bug 42475

Author: jakub
Date: Wed Dec 23 17:04:07 2009
New Revision: 155430

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155430
Log:
	PR rtl-optimization/42475
	* combine.c (make_compound_operation) <case SUBREG>: Use mode of
	SUBREG_REG (x) instead of tem's mode.

	* gcc.dg/pr42475.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr42475.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/testsuite/ChangeLog

Comment 4 Jakub Jelinek 2009-12-23 17:07:20 UTC
Subject: Bug 42475

Author: jakub
Date: Wed Dec 23 17:07:04 2009
New Revision: 155431

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155431
Log:
	PR rtl-optimization/42475
	* combine.c (make_compound_operation) <case SUBREG>: Use mode of
	SUBREG_REG (x) instead of tem's mode.

	* gcc.dg/pr42475.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr42475.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/combine.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog

Comment 5 Jakub Jelinek 2009-12-23 17:09:57 UTC
Fixed in 4.4/4.5.