This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] C undefined behavior fix
- From: Alan Cox <alan at lxorguk dot ukuu dot org dot uk>
- To: guerby at acm dot org (Laurent Guerby)
- Cc: alan at lxorguk dot ukuu dot org dot uk (Alan Cox), dewar at gnat dot com, gcc at gcc dot gnu dot org,linux-kernel at vger dot kernel dot org, paulus at samba dot org,trini at kernel dot crashing dot org, velco at fadata dot bg
- Date: Sun, 6 Jan 2002 19:43:43 +0000 (GMT)
- Subject: Re: [PATCH] C undefined behavior fix
> I haven't done my homework, but I assume the code behind readb use inline
> assembly and not C on most platforms?
It depends on the platform. Its all nicely wrapped in platform specific
macros and using things like volatile to get the right results. Whatever
gcc invents we can cope with for a weird port because we can make them asm