optimizer discards sign information

Xi Ruoyao xry111@xry111.site
Wed Apr 10 09:52:42 GMT 2024


On Wed, 2024-04-10 at 17:51 +0800, LIU Hao wrote:
> 在 2024-04-10 17:44, Xi Ruoyao 写道:
> > You only get a "different result" when an undefined behavior
> > happens,
> > thus it **is** a valid point to say there is no wrong-code issue.
> > 
> > > It's a real bug. There are many PRs on bugzilla.
> > 
> > You may argue it's a missed-optimization, but we were discussing
> > about
> > wrong-code or not.
> 
> Nobody in this thread has been thinking it's wrong code.

No, the OP is still thinking it's a wrong-code.

See the latest reply from him.


-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Gcc-help mailing list