https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116487

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
<source>: In function 'b':
<source>:19:18: warning: 'bf' is used uninitialized [-Wuninitialized]
   19 |   *bh = bg ^= bf || 0;
      |               ~~~^~~~
<source>:16:11: note: 'bf' was declared here
   16 |   int64_t bf;
      |           ^~

<source>: In function 'main':
<source>:34:10: warning: iteration 1 invokes undefined behavior
[-Waggressive-loop-optimizations]
   34 |     c[i] = crc;
      |     ~~~~~^~~~~
<source>:27:12: note: within this loop
   27 |   for (; i < 256; i++) {
      |          ~~^~~~~


Undefined behavior == different output at different optimization level.

Reply via email to