Re: [PATCH] c++ bugfix: inconsistent runtime beahavior when have -O2

2022-06-06 Thread Andrew Pinski via Gcc-patches
On Mon, Jun 6, 2022 at 2:12 AM Hongbo Liu via Gcc-patches wrote: > > Hi, > > This is my first time using email patch, please correct me if there is any > error. Thanks! > > > I found a c++ optimization bug first introduced via > commit 520d5ad337eaa15860a5a964daf7ca46cf31c029, which will make pr

[PATCH] c++ bugfix: inconsistent runtime beahavior when have -O2

2022-06-06 Thread Hongbo Liu via Gcc-patches
Hi, This is my first time using email patch, please correct me if there is any error. Thanks! I found a c++ optimization bug first introduced via commit 520d5ad337eaa15860a5a964daf7ca46cf31c029, which will make program compiled with -O2 have unexpected behavior. How to produce 1. Checkout