This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: PR testsuite/21865 (really a middle-end vector bug)
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: dave at hiauly1 dot hia dot nrc dot ca, rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Jun 2005 08:16:16 -0700 (PDT)
- Subject: Re: Patch: PR testsuite/21865 (really a middle-end vector bug)
> We don't actually have to xfail it. We can use -fno-common. Only
> common and malloc'd data are subject to the 8-byte alignment limitation.
> I noticed that local data can now be aligned up to the preferred stack
> boundary of the target in most circumstances.
>
> Dave
Sounds good, here is a new patch tested on PA32 and PA64. OK for
checkin?
testsuite ChangeLog:
2005-06-29 Steve Ellcey <sje@cup.hp.com>
PR testsuite/21969
* gcc.dg/torture/pr21817.c: Use -fno-common for hppa*-*-* targets.
*** gcc.orig/gcc/testsuite/gcc.dg/torture/pr21817-1.c Tue Jun 28 16:48:01 2005
--- gcc/gcc/testsuite/gcc.dg/torture/pr21817-1.c Wed Jun 29 08:14:00 2005
***************
*** 1,4 ****
--- 1,8 ----
+ /* hppa*-*-hpux* needs -fno-common so that value can be given a 16
+ byte alignment. */
+
/* { dg-do compile } */
+ /* { dg-options "-fno-common" { target { hppa*-*-hpux* } } } */
typedef float v4sf __attribute__((vector_size(16)));
v4sf value;