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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-09-09
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes it can be null:
      if (!fdeps_file)
        fdeps_stream = out_stream;
      else if (fdeps_file[0] == '-' && fdeps_file[1] == '\0')
        fdeps_stream = stdout;
      else
        {
          fdeps_stream = fopen (fdeps_file, "w");
          if (!fdeps_stream)
            fatal_error (input_location, "opening dependency file %s: %m",
                         fdeps_file);
        }

      if (fdeps_stream == deps_stream && fdeps_stream != stdout)
        fatal_error (input_location, "%<-MF%> and %<-fdeps-file=%> cannot share
an output file %s: %m",
                     fdeps_file);


Which means out_stream is also deps_stream .

Reply via email to