[PATCH] Fix PR other/16820 (struct-layout-1 failures on non-I

Steve Ellcey sje@cup.hp.com
Mon Sep 27 17:32:00 GMT 2004


> > I looked into why this test gets a runtime failures on HPPA even after
> > the compile time fixes have been made.  The failure I saw was because
> > the test was checking to see if a structure had 16-byte alignment and it
> > looks to me like HPPA only supports 8 byte alignment.
> 
> That's the case for uninitialized common data on the PA.  The linker only
> supports alignment to a maximum of 8 bytes.  If the -fno-common option is
> used with the tests, all but one passes.  It's failing for a different
> reason (it also fails on x86).

So is there someway to force -fno-common to be used with this test or
has that already been done?  It looked to me like the compile time patch

  http://gcc.gnu.org/ml/gcc-patches/2004-07/msg02654.html

to remove the use of complex.h still hadn't been checked in and I
thought maybe it was because of this runtime problem.

Steve Ellcey
sje@cup.hp.com



More information about the Gcc-patches mailing list