This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Alignment of unions with unnamed fields




--On Tuesday, October 01, 2002 01:18:16 PM -0700 Richard Henderson <rth@redhat.com> wrote:

On Tue, Oct 01, 2002 at 11:35:56AM -0700, Mark Mitchell wrote:
+ int main () {
+   if (__alignof__ (struct S) != __alignof__ (union U))
+     return 1;
+ }
C89 does not return 0 by default.
Doh!  Fixed.  Thanks.

--
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]