main() return code wrong if -noopt
|
|
Bugzilla Link |
692 |
Created on |
Mar 30, 2010 20:09 |
Resolution |
FIXED |
Resolved on |
Apr 11, 2010 08:33 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Attachments |
foldersliceneeded.sac |
Extended Description
Created an attachment (id=683)
source code to reproduce fault
The attached, if compiled with -noopt, prints the correct value of z (zero),
but the return value from main, printed with:
a.out; echo $?
returns 177. Which isn't even close to zero.
The -b11 code, as far as I can see, is harmless.
If compiled with no options, the code operates correctly.
This on my HEAVILY modified version:
developer rev 16776:MODIFIED linux-gnu_x86_64
(Tue Mar 30 14:20:28 EDT 2010 by sac)