This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Adjust omp-low test for alignment
- From: Mikael Pettersson <mikpe at it dot uu dot se>
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Cc: Richard Henderson <rth at redhat dot com>, Richard Henderson <rth at twiddle dot net>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 2 Dec 2011 16:33:01 +0100
- Subject: Re: Adjust omp-low test for alignment
- References: <4ED17EB4.4070807@twiddle.net> <alpine.BSF.2.00.1111282343070.66213@dair.pair.com> <4ED529B1.8060406@redhat.com> <alpine.BSF.2.00.1111291557020.92717@dair.pair.com> <alpine.BSF.2.00.1112020805140.48193@dair.pair.com>
Hans-Peter Nilsson writes:
> BTW, on the topic, I cringe whenever I
> see futexes expressed as plain "int", they absolutely have to
> have at least natural alignment which is not always true e.g. in
> structs. People, please keep the atomic types
> target-overridable in libraries.
+1 for m68k-linux, where plain "int" only has 16-bit alignment
(by SW convention, Linux-capable HW tolerates 8-bit alignment),
but futexes must be 32-bit aligned (or at least not cross page
boundaries).