[PATCH] Java: expand divide, expand conversions

Per Bothner per@bothner.com
Tue Jul 20 16:17:00 GMT 1999


Tom Tromey <tromey@cygnus.com> writes:

> Does -pedantic affect code generation in the other gcc front ends?  Or
> is it a front-end option only?

Well, when I think about it, -pedantic is primarily for *restricting*
what the compiler accepts - i.e. produce diagnotics for certain
extensions etc.  It may not be appropiate for something that changes
the semantics of a program.  For that, historically -ansi has been
used, optionally combined with -pedantic, it seems.  Of course -ansi
is not a suitable option name for Java - but then it is hardly that
for C or C++ either.  But there seems to be a family of flags -std=XXX
that may be suitable.
-- 
	--Per Bothner
bothner@pacbell.net  per@bothner.com   http://home.pacbell.net/bothner/


More information about the Java mailing list