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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |4.8.0
            Summary|Missed jump thread and      |[9/10/11 Regression] Missed
                   |false positive from         |jump thread and false
                   |-Wuninitialized             |positive from
                   |                            |-Wuninitialized
                 CC|                            |msebor at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-03-31
      Known to fail|                            |10.2.0, 11.0, 4.8.4, 4.9.4,
                   |                            |5.5.0, 6.4.0, 7.2.0, 8.3.0,
                   |                            |9.1.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed with GCC 11 as a regression introduced in r192537 (4.8.0 20121017):

$ gcc -O2 -S -Wall -xc++ pr67194.c
pr67194.c: In function ‘void elimination_costs_in_insn(rtx_insn*)’:
pr67194.c:53:28: warning: ‘orig_dup[0]’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
   53 |     *recog_data.dup_loc[i] = orig_dup[i];
      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
pr67194.c:34:7: note: ‘orig_dup[0]’ was declared here
   34 |   rtx orig_dup[30];
      |       ^~~~~~~~

Reply via email to