Am 09.09.25 um 21:27 schrieb Steve Kargl:
On Tue, Sep 09, 2025 at 09:19:28PM +0200, Harald Anlauf wrote:
This broke bootstrap on FreeBSD where warning.


In function 'tree_node* conv_intrinsic_fstat_lstat_stat_sub(gfc_code*)',
      inlined from 'tree_node* gfc_conv_intrinsic_subroutine(gfc_code*)' at 
../../gccx/gcc/fortran/trans-intrinsic.cc:13477:49:
../../gccx/gcc/fortran/trans-intrinsic.cc:5964:31: error: 'unit' may be used 
uninitialized [-Werror=maybe-uninitialized]
   5964 |     tmp = build_call_expr_loc (input_location, tmp, 3, unit, vals,
        |           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   5965 |                                stat ? arg3 : null_pointer_node);


Does the attached work for you?

I made the change that you sent, and it has gotten
me passed the error.  Bootstrap and regression testing
will take about an hour to complete.


OK, pushed as r16-3728-ga1071683674783.

Running the related tests under valgrind did not reveal anything.
The maybe-uninitialized errors are bogus.


Reply via email to