Bug 30644 - gcj -fsyntax-only does not work properly
Summary: gcj -fsyntax-only does not work properly
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 18:32 UTC by Tom Tromey
Modified: 2007-01-30 18:34 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
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 Tom Tromey 2007-01-30 18:32:26 UTC
gcj -fsyntax-only should compile a .java file and throw away the
results.  (Arguably it should verify the resulting bytecode as well.)
This doesn't happen on trunk... it runs jc1 but not ecj1:

opsy. gcj -v -fsyntax-only -Werror HelloWorld.java
Using built-in specs.
Reading specs from /home/tromey/gnu/4.2/install/lib/gcc/i686-pc-linux-gnu/4.2.0/../../../libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: i686-pc-linux-gnu
Configured with: ../trunk/configure --prefix=/home/tromey/gnu/4.2/install --enable-languages=c++,java,fortran --enable-threads=posix --enable-checking=yes --enable-java-awt=gtk --disable-static --disable-bootstrap --enable-java-maintainer-mode
Thread model: posix
gcc version 4.2.0 20070116 (prerelease)
 /home/tromey/gnu/4.2/install/libexec/gcc/i686-pc-linux-gnu/4.2.0/jc1 HelloWorld.java -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase HelloWorld.java -mtune=generic -auxbase HelloWorld -g1 -Werror -version -fsyntax-only -o /dev/null
GNU Java version 4.2.0 20070116 (prerelease) (i686-pc-linux-gnu)
        compiled by GNU C version 4.1.1 20060525 (Red Hat 4.1.1-1).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
    ./
    /home/tromey/gnu/4.2/install/share/java/libgcj-4.2.0.jar/ (system) (zip)
Comment 1 Tom Tromey 2007-01-30 18:34:01 UTC
Duh.  I was running 4.2.  Sorry for the noise.