This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/79956] [7 Regression] many new -Wmaybe-uninitialized warnings with bootstrap-O3


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

--- Comment #32 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #31)
> Fixed. Thanks.

Is the issue with the execute_command_line_* functions
also resolved?  The code could quite obviously be simplified to

void
execute_command_line_i4 (const char *command, GFC_LOGICAL_4 *wait,
                         GFC_INTEGER_4 *exitstat, GFC_INTEGER_4 *cmdstat,
                         char *cmdmsg, gfc_charlen_type command_len,
                         gfc_charlen_type cmdmsg_len)
{
  bool w = wait ? *wait : true;
  int estat, cstat;

  if (exitstat)
    estat = *exitstat;

  execute_command_line (command, w, &estat, cmdstat ? &cstat : NULL,
                        cmdmsg, command_len, cmdmsg_len);

  if (exitstat)
    *exitstat = estat;
  if (cmdstat)
    *cmdstat = cstat;
}

but I don't know if this fixes the issue.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]