This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/45351] many unaligned accesses in libgomp tests
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 19 Jul 2011 14:14:53 +0000
- Subject: [Bug libgomp/45351] many unaligned accesses in libgomp tests
- Auto-submitted: auto-generated
- References: <bug-45351-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45351
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-19 14:14:22 UTC ---
You mean that __alignof (sem_t) is 2, yet librt assumes it is 4 byte aligned?
These proprietary OSes are of terrible quality.
You could add config/osf/sem.h, which would be a copy of config/posix/sem.h,
just gomp_sem_t would be typedef sem_t gomp_sem_t __attribute__((aligned
(__alignof__ (int))));
or something similar, and in configury ensure that this directory is searched
on these buggy OSes before config/posix/.