This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Problems with gcc + exceptions + -pedantic + libiberty.h
- From: DJ Delorie <dj at delorie dot com>
- To: levon at movementarian dot org
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 7 Jan 2002 19:07:04 -0500
- Subject: Re: Problems with gcc + exceptions + -pedantic + libiberty.h
- References: <20020107235319.GA93680@compsoc.man.ac.uk>
Since Linux is specifically mentioned in libiberty.h, and linux is the
one having the problem, I suppose it would be acceptable for the
linux-specific case to do something different in libiberty.h.
However, a better solution is to add the gcc-specific prototype
detection logic to some common area, and teach projects to use it.
Then, libiberty.h can default to "no prototype" unless the detection
tells it what to do.