Skip to contentSkip to conversation

C undefined behavior fix

PATCH mike stump 1 participant 1 message Jan 7, 2002

lore
Share & tools
lore

mike stump

author
#0 lore raw
Quoted 5 lines

From: Bernard Dautrevaux <[email protected]>
To: "'Laurent Guerby'" <[email protected]>, [email protected]
Date: Mon, 7 Jan 2002 14:29:15 +0100

It seems to me that you are right,

That's unfortunate.

Quoted 4 lines

but there is other cases; for example:

	X := T(0)*256 + T(1);

compiled on a big endian architecture may well generate just one 16-bit word read...

Not in my word, not in gcc's world. That is just broken and wrong.

If you want/need the gcc doc to expound on this, write it up, and we'll add it.