GCJ Compiler error building current CVS trees

Jeffrey A Law law@cygnus.com
Thu Sep 23 12:55:00 GMT 1999


  In message < 199909211955.MAA29869@ferrule.cygnus.com. >you write:
  > Jeff> Well, it looks like the C front-end is being called with
  > Jeff> -fuse-divide-subroutine which isn't any option I'm aware of.
  > Jeff> I'd put my money that it's a bug on the java side.
  > 
  > -fuse-divide-subroutine is a Java option.
  > This bug occurs because we have %{f*} in the "jvgenmain" spec (see
  > gcc/java/jvspec.c).  (gcj can generate a C program and then compile
  > it; this is how we generate a "main" when given the --main option.)
  > 
  > I'm not entirely sure how to fix this.  Presumably some of the -f
  > options given to gcj should be passed down to cc.  I don't see how to
  > filter them except to list all of the C front end's -f options
  > explicitly.  (Which, of course, I don't want to do.)
  > 
  > Any advice?
Not sure.  There may already be some support in the specs for passing around
language specific options to the right place.

Some folks have suggested that unknown -f/-W options should be a warning;
that wouldn't really solve your problem, but it would make it less pressing.

jeff



More information about the Java mailing list