This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: java/3248: problem with java option -femit-class-files
- To: Haj dot Ten dot Brugge at net dot HCC dot nl, tromey at cygnus dot com, gcc-bugs at gcc dot gnu dot org
- Subject: Re: java/3248: problem with java option -femit-class-files
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Tue, 10 Jul 2001 19:47:59 -0700 (PDT)
- References: <20010706011116.4799.qmail@sourceware.cygnus.com><87ofqyzrgj.fsf@creche.redhat.com>
- Reply-To: apbianco at cygnus dot com
Tom Tromey writes:
> You could also put the error in lang-specs.h. That is probably simpler.
So should I check that in instead?
./A
2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* lang-specs.h: Forbit the use if `-femit-class-file{s}' without
`-fsyntax-only.' Fixes PR java/3248.
Index: lang-specs.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lang-specs.h,v
retrieving revision 1.19
diff -u -p -r1.19 lang-specs.h
--- lang-specs.h 2001/03/02 01:03:47 1.19
+++ lang-specs.h 2001/07/11 02:45:05
@@ -32,6 +32,8 @@ The Free Software Foundation is independ
{"@java",
"%{fjni:%{femit-class-files:%e-fjni and -femit-class-files are incompatible}}\
%{fjni:%{femit-class-file:%e-fjni and -femit-class-file are incompatible}}\
+ %{femit-class-file:%{!fsyntax-only:%e-femit-class-file should used along with -fsyntax-only}}\
+ %{femit-class-files:%{!fsyntax-only:%e-femit-class-file should used along with -fsyntax-only}}\
%{!E:jc1 %i %(jc1) %(cc1_options) %{+e*} %{I*}\
%{MD} %{MMD} %{M} %{MM} %{MA} %{MT*} %{MF*}\
%{!fsyntax-only:%(invoke_as)}}", 0},