optimization problem with 4.4-200

Akira Kobayashi koba at lineo.co.jp
Mon Oct 18 13:03:10 UTC 2010


Dear sir,

I'd like to report you that the problem of optimization was found with the 
following toolchain.
Toolchain : Sourcery G++ Lite 4.4-200 for SuperH GNU/Linux

When compiling the attached code with optimization option 
(-O1, -O2, -O3, -Os), the result was different from the result of no 
optimization (-O0).
Will this problem be fixed in the next release?

Result:
- optimization option = -O0

    ~ # ./test
    MAC=00:00:87:6B:B0:5C

- optimization option = -O1, -O2, -O3 or -Os

    ~ # ./test
    MAC=00:00:00:00:00:00

Your kind attention to the above would be highly appreciated.

Best Regards,
Akira Kobayashi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: application/octet-stream
Size: 690 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/superh-gnu-discuss/attachments/20101018/8251f638/attachment.obj>


More information about the superh-gnu-discuss mailing list