[Bug c/37103] New: possible integer codegen bug

2008-08-12 Thread regehr at cs dot utah dot edu
This is an interesting one... Compiling the code below at all common optimization levels, gcc r139046 generates code that prints hello, as does 4.3.1. Pre-4.3 versions of gcc emit code that prints nothing. I'm pretty sure that the older versions are correct. #include stdio.h int func_72

Re: [Bug c/37103] New: possible integer codegen bug

2008-08-12 Thread Andrew Thomas Pinski
Note for most targets not printing is correct as char is signed by default but for most powerpc targets the opposite is true. You should have explicted included signed for g_99. Sent from my iPhone On Aug 12, 2008, at 22:10, regehr at cs dot utah dot edu [EMAIL PROTECTED] wrote: This