This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: driver/26885: [4.1/4.2 regression] -m64 -m32 no longer creates 32-bit object
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: "H. J. Lu" <hjl at lucon dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Apr 2006 03:07:39 -0400
- Subject: Re: PATCH: driver/26885: [4.1/4.2 regression] -m64 -m32 no longer creates 32-bit object
- References: <20060427005656.GA10566@lucon.org> <200604270059.k3R0xOf2021258@earth.phy.uc.edu>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Apr 26, 2006 at 08:59:24PM -0400, Andrew Pinski wrote:
> >
> > This updated patch simplifies cancel_option and prune_options a little
> > bit.
>
> I rather not change the driver. It seems like there is better way of doing
> this. Maybe the assembly can support a .machine instead. (I would hope
> that is a goal in general anyways).
I think it is much better to change the driver. Gas supports .machine
only on ppc and pdp11 AFAIK (and even then, on ppc you can't change whether
you are assembling ELF32 or ELF64 with it, you can only use -a32 resp. -a64
cmdline option for that) and -m32/-m64 isn't the only mutually exclusive
pair and GCC driver should do the right thing with all of them.
I think H.J.'s patch goes in the right direction.
Jakub