ftrapv question

Mathieu Malaterre mmalater@nycap.rr.com
Sun Sep 26 17:58:00 GMT 2004


Andrew Pinski wrote:

> 
> On Sep 25, 2004, at 5:35 PM, Mathieu Malaterre wrote:
> 
>> Hello,
>>
>>     Could someone help me understand why gcc is aborting on this code:
>>
>> #include <stdint.h>
>>
>> int main()
>> {
>>  uint32_t templateID = 0;
>>  uint32_t p = 0;
>>  int i = 0;
>>  uint32_t mask = 0xF0000000;
>>
>>  templateID |= ((templateID & mask) | (p << (32-4*(i+1))));
>> }
> 
> 
> 
> Well it does not fail for me on powerpc-apple-darwin with the current
> mainline.

Ok thanks, I'll try the latest release before sending any of the other 
ftrapv problems I have.

Regards,
Mathieu



More information about the Gcc mailing list