[PATCH] Cleanup patches to build libgcj on x86/linux

Alexandre Oliva aoliva@redhat.com
Wed Aug 2 20:20:00 GMT 2000


On Aug  2, 2000, Tom Tromey <tromey@cygnus.com> wrote:

Bryce> "An extern "C" directive specifies the linkage convention
Bryce> (only) and does not affect the semantics of the function. In
Bryce> particular, a function declared extern "C" still obeys the C++
Bryce> type checking and argument conversion rules and not the weaker
Bryce> C rules."

> Doesn't that make it impossible to use g++ with system headers on
> legacy systems?  The SunOS headers never use prototypes.

IIRC, system headers are still recognized as such, and less strict
type-checking is applied to functions declared in them.  I'm not sure
if the same exception applies to functions declared as `extern "C"'.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Java-patches mailing list