Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: function returning struct by value, assign it to struct, fails with -o3

$
0
0

[quote user="Roger44834"]Running with -O3 has the effect, that sometimes myStruct gets other values.[/quote]

Sometimes myStruct gets other values?  Anything is possible, but inconsistent behavior like that does not usually indicate a compiler problem.  It is more likely that something else is going wrong, and this is the only symptom you currently see.  Perhaps the stack is overflowing?  Or some interrupt fails to preserve all of its state?  

Thanks and regards,

-George


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>