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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
If you do

gfortran -Wuninitialized test.f90 -fdump-tree-all-all-lineno

and look at test.f90.004t.gimple

you'll see that gfortran generates gimple such as:

      [test.f90:3:0] D.3445 = (sizetype) .help_textD.3381;
      [test.f90:3:0] D.3446 = (bitsizetype) D.3445;
      [test.f90:3:0] D.3438 = D.3446 * 8;
      [test.f90:3:0] D.3439 = (sizetype) .help_textD.3381;
      [test.f90:3:0] [test.f90:3:0] help_textD.3396.dataD.3382 = 0B;

I don't know much about Fortran or gfortran, but that is clearly using an
uninitialized value .help_text.

Interestingly, none of the D.* variables above are used for anything else, so I
wonder what is the purpose of that code.

Reply via email to