lkml.org 
[lkml]   [2000]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Preventing gcc from aligning stack???
On Wed, Jan 26, 2000 at 02:19:35PM +0100, Jamie Lokier wrote:
> David Weinehall wrote:
> > > > sched.c:77: warning: alignment of `aligned_data' is greater than maximum
> > > > object file alignment
> > >
> > > That's not i386 is it?
> >
> > 486.

It doesn't matter which machine is chosen (the machine type only sets the
default alignments). I believe the original problem is for System V.4 targets
(Linux ELF is a SVR4 target) in 2.7.2.3 did not set MAX_OFILE_ALIGNMENT, which
meant that the compiler assumed that the maximum alignment was 4 or 8 bytes.
Under 2.95 and beyond, the compiler knows you can specify higher 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.068 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site