Bug 56372 - Missing libgcj caused ICE (stack overflow) in jc1
Summary: Missing libgcj caused ICE (stack overflow) in jc1
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.7.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-18 09:06 UTC by Karlson2k
Modified: 2016-09-30 22:52 UTC (History)
0 users

See Also:
Host: i686-pc-mingw32
Target: i686-w64-mingw32, x86_64-w64-mingw32
Build: i686-pc-mingw32
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karlson2k 2013-02-18 09:06:58 UTC
When building cross-compiler, this command caused stack overflow

i686-pc-mingw32-gcj -o ecjx.exe -findirect-dispatch --main=org.eclipse.jdt.internal.compiler.batch.GCCMain ../../../../source/gcc-4.7.2/libjava/../ecj.jar ecjx.o

That internally calls

"t:/dvlp/mingw-w64-i686/libexec/gcc/i686-w64-mingw32/4.7.2/jc1.exe" "../../../../source/gcc-4.7.2/libjava/../ecj.jar" "-fhash-synchronization" "-fuse-divide-subroutine" "-fcheck-references" "-fuse-boehm-gc" "-fkeep-inline-functions" "-quiet" "-dumpbase" "ecj.jar" "-mtune=generic" "-march=pentium3" "-auxbase" "ecj" "-g1" "-findirect-dispatch" "-fbootclasspath=./;T:/dvlp/mingw-w64-i686/share/java/libgcj-4.7.2.jar" "-o" "C:\Users\UserName\AppData\Local\Temp\ccgbcsCW.s"

If libgcj-4.7.2.jar is missing than jc1.exe is closed with error (stack overflow). Even with increased stack to 140 MB.
Situation with missing libgcj is not valid, but I believe that jc1 must print some error message and not to crash.
Comment 1 Andrew Pinski 2016-09-30 22:52:07 UTC
Closing as won't fix as the Java front-end has been removed from the trunk.