This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Unreviewed patch


----- Original Message -----
From: "Richard Henderson" <rth@redhat.com>
Sent: Sunday, February 11, 2001 6:11 PM


> On Sun, Feb 11, 2001 at 02:44:39PM +0200, Laurynas Biveinis wrote:
> > http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01085.html
> >
> > It's a compiler driver fix for DJGPP, so gcc no longer
> > errorneously appends executable suffix to output file.
>
> I'd rather all the dos-based systems work the same way
> wrt extensions.  And really those are the only systems
> with extensions still.

  There's still a problem with the driver mechanism, because the .exe
extension is attached or not depending on the host machine type, rather than
the target machine type.  This is wrong-but-right-by-accident on a native
compiler, and just plain wrong on a cross compiler (I ran into it on the
vxworks port).

  FWIW, I've made a similar patch in my local source tree; my one allows the
target header to provide definitions TARGET_OBJECT_SUFFIX and
TARGET_EXECUTABLE_SUFFIX which override OBJECT_SUFFIX and EXECUTABLE_SUFFIX
in the part of the driver that generates output files (but not the parts of
the driver that search for files on the host).  However, IMO the most
properly correct way to do it would be for configure to work out the
appropriate extensions to use for host and target files.  I haven't looked
at it any further than that because I don't understand auto* stuff.

   DaveK




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]