Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2012 04:12:00 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244578 - head/usr.bin/indent
Message-ID:  <201212220412.qBM4C02C003881@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Sat Dec 22 04:11:59 2012
New Revision: 244578
URL: http://svnweb.freebsd.org/changeset/base/244578

Log:
  Make struct fstate aligned to the same as an int as its pointer is cast to
  an int pointer in args.c. This fixes an issue with ARM where the struct
  will be byte aligned but an int pointer must be 4 byte aligned.

Modified:
  head/usr.bin/indent/indent_globs.h

Modified: head/usr.bin/indent/indent_globs.h
==============================================================================
--- head/usr.bin/indent/indent_globs.h	Sat Dec 22 01:17:49 2012	(r244577)
+++ head/usr.bin/indent/indent_globs.h	Sat Dec 22 04:11:59 2012	(r244578)
@@ -213,7 +213,7 @@ struct fstate {
     char        font[4];
     char        size;
     int         allcaps:1;
-};
+} __aligned(sizeof(int));
 char       *chfont(struct fstate *, struct fstate *, char *);
 
 struct fstate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212220412.qBM4C02C003881>