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]
Other format: [Raw text]

RE: [fortran] Disable use of -malign-double



> -----Original Message-----
> From: gcc-patches-owner@gcc.gnu.org 
> [mailto:gcc-patches-owner@gcc.gnu.org] On Behalf Of Andrew Pinski
> Sent: Wednesday, 31 January 2007 8:17 p.m.
> To: Steve Kargl
> Cc: fortran@gcc.gnu.org; gcc-patches@gcc.gnu.org
> Subject: Re: [fortran] Disable use of -malign-double
> 
> 
> On Tue, 2007-01-30 at 23:11 -0800, Steve Kargl wrote:
> > The patch is self explanatory.
> > 
> > 2007-01-31  Steven G. Kargl  <kargl@gcc.gnu.org>
> > 
> > 	* options.c (gfc_post_options): Abort if -malign-double
> > 
> > 
> > 
> > Index: options.c
> > ===================================================================
> > --- options.c	(revision 121271)
> > +++ options.c	(working copy)
> > @@ -294,6 +294,9 @@ gfc_post_options (const char **pfilename
> >    if (gfc_option.flag_all_intrinsics)
> >      gfc_option.warn_nonstd_intrinsics = 0;
> >  
> > +  if (TARGET_ALIGN_DOUBLE)
> > +    fatal_error ("-malign-double is incompatible with 
> libgfortran");
> 
> This will not work.  As TARGET_ALIGN_DOUBLE is only defined 
> for the x86
> backend.  Also it could default for some x86 targets.


Windows targets define TARGET_ALIGN_DOUBLE for compatability with native
system libs.

Danny

> 
> -- Pinski
> 


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