Mail Archives: djgpp-workers/2003/12/21/12:29:39
Hello.
Eli Zaretskii wrote:
>>Date: Sun, 21 Dec 2003 14:33:52 +0000
>>From: Richard Dawe <rich AT phekda DOT gotadsl DOT co DOT uk>
>>
>>>The fixes would entail modifying the 24 files in libm v204 that were
>>>mentioned in the email. My suggestion is to revert to the sources for
>>>those files in libm v203.
>>
>>That would break the build with gcc 3.3.x (and 3.2.x?). Those changes
>>were made, so that DJGPP 2.04 could be built with gcc 3.3.x (and 3.2.x?).
>
>
> Can you remind what kind of problems were those? I think we should
> look for a solution that fixes them without triggering this new
> problem.
They were errors about type-punning breaking strict aliasing (search the
gcc info docs for -fstrict-aliasing and you should find a section about
it). Using a union is the only valid way of doing type-punning, but it
seems that using it was the wrong solution. By using the union I guess
you're telling the compiler "I know what I'm doing", like with typecasts.
Bye, Rich =]
--
Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ]
"You can't evaluate a man by logic alone."
-- McCoy, "I, Mudd", Star Trek
- Raw text -