public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* -malign-double missing on ppc from g77?
@ 2000-01-31 10:19 Jack Howarth
  2000-01-31 10:24 ` David Edelsohn
  2000-01-31 10:30 ` Michael Meissner
  0 siblings, 2 replies; 3+ messages in thread
From: Jack Howarth @ 2000-01-31 10:19 UTC (permalink / raw)
  To: gcc

Hello,
    I was building the fortran molecular modeling program
CNS this weekend which has a 'make linux-ppc' build option.
In that makefile they define -malign-double for a flag to
pass to g77. This suggests that egcs/gcc's g77 at some point
supported the -malign-double flag. Unfortunately the g77
from 2.95.3 built by Franz Sirl seems to not support
the -malign-double flag. I am wondering why that is the
case and if the absence of -malign-double is likely to
cause major problems in the code when executed. Thanks
in advance for any insights on this issue.
                 Jack

-- 
------------------------------------------------------------------------------
Jack W. Howarth, Ph.D.                                     231 Bethesda Avenue
NMR Facility Director                              Cincinnati, Ohio 45267-0524
Dept. of Molecular Genetics                              phone: (513) 558-4420
Univ. of Cincinnati College of Medicine                    fax: (513) 558-8474

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: -malign-double missing on ppc from g77?
  2000-01-31 10:19 -malign-double missing on ppc from g77? Jack Howarth
@ 2000-01-31 10:24 ` David Edelsohn
  2000-01-31 10:30 ` Michael Meissner
  1 sibling, 0 replies; 3+ messages in thread
From: David Edelsohn @ 2000-01-31 10:24 UTC (permalink / raw)
  To: Jack Howarth; +Cc: gcc

>>>>> "Jack Howarth" writes:

Jack> I was building the fortran molecular modeling program
Jack> CNS this weekend which has a 'make linux-ppc' build option.
Jack> In that makefile they define -malign-double for a flag to
Jack> pass to g77. This suggests that egcs/gcc's g77 at some point
Jack> supported the -malign-double flag. Unfortunately the g77
Jack> from 2.95.3 built by Franz Sirl seems to not support
Jack> the -malign-double flag. I am wondering why that is the
Jack> case and if the absence of -malign-double is likely to
Jack> cause major problems in the code when executed. Thanks
Jack> in advance for any insights on this issue.

	-malign-double is an x86-specific flag to increase the alignment
and improve code performance.  That architecture-specific flag is
unnecessary for PowerPC code.

David
===============================================================================
David Edelsohn                                      T.J. Watson Research Center
dje@watson.ibm.com                                  P.O. Box 218
+1 914 945 4364 (TL 862)                            Yorktown Heights, NY 10598

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: -malign-double missing on ppc from g77?
  2000-01-31 10:19 -malign-double missing on ppc from g77? Jack Howarth
  2000-01-31 10:24 ` David Edelsohn
@ 2000-01-31 10:30 ` Michael Meissner
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Meissner @ 2000-01-31 10:30 UTC (permalink / raw)
  To: Jack Howarth; +Cc: gcc

On Mon, Jan 31, 2000 at 11:32:33AM -0500, Jack Howarth wrote:
> Hello,
>     I was building the fortran molecular modeling program
> CNS this weekend which has a 'make linux-ppc' build option.
> In that makefile they define -malign-double for a flag to
> pass to g77. This suggests that egcs/gcc's g77 at some point
> supported the -malign-double flag. Unfortunately the g77
> from 2.95.3 built by Franz Sirl seems to not support
> the -malign-double flag. I am wondering why that is the
> case and if the absence of -malign-double is likely to
> cause major problems in the code when executed. Thanks
> in advance for any insights on this issue.

No, the powerpc port has never supported -malign-double.  That is an i386
specific option (the -m options are machine specific, each port can define
anything that they need specifically).  The Linux powerpc compiler doesn't need
an align double option, because its ABI already has doubles aligned (the AT&T
System V.4 ABI that is used on the 386 was rather short sighted, and defined
doubles as only needing 4 byte alignment since the 386 didn't need a higher
alignment, and memory was expensive back then -- the 486 and higher all would
prefer doubles to be aligned to 8 byte boundaries, but it is kind of hard to
chanage an ABI once it comes out, especially since it isn't clear who would be
the committee to change it).  If you are sharing binary structures with a 386
using native alignments, your code is already broken, even without the issue of
double alignments.

-- 
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886
Work:	  meissner@redhat.com		phone: 978-486-9304 fax: 978-692-4482
Non-work: meissner@spectacle-pond.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-01-31 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-31 10:19 -malign-double missing on ppc from g77? Jack Howarth
2000-01-31 10:24 ` David Edelsohn
2000-01-31 10:30 ` Michael Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).