This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32000] struct-layout-1.exp fails at -O2
- From: "pinskia at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Mar 2008 15:20:13 -0000
- Subject: [Bug target/32000] struct-layout-1.exp fails at -O2
- References: <bug-32000-13767@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gmail dot com 2008-03-25 15:20 -------
Subject: Re: struct-layout-1.exp fails at -O2
No the compiler should be able to load the packed struct no matter
what. If that means doing byte by byte loads then so be it.
-- Pinski
Sent from my iPhone
On Mar 25, 2008, at 7:53, "hjl dot tools at gmail dot com"
<gcc-bugzilla@gcc.gnu.org
> wrote:
>
>
> ------- Comment #2 from hjl dot tools at gmail dot com 2008-03-25
> 14:53 -------
> I think gcc should issue an error for
>
> typedef struct { _Decimal128 f __attribute__((packed)); } packed;
> typedef struct { __m128 f __attribute__((packed)); } packed;
>
> when there is a hardware alignment requirement on a field to be
> packed.
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32000
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32000