Le 08/10/2015 11:06, Maxim Ostapenko a écrit :
Hi,

running UBSan bootstrap on trunk, I've run to the such issue:

/home/max/workspace/downloads/svn/trunk/gcc/fortran/parse.c: In function
‘gfc_statement decode_statement()’:
/home/max/workspace/downloads/svn/trunk/gcc/fortran/parse.c:368:51:
error: ‘m’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
    if (!(in_specification_block && m == MATCH_ERROR))

Actually, the situation is pretty much similar to PR sanitizer/67867
fixed by Marek in r228569. This tiny patch just initializes m with
MATCH_NO value.
By fixing this, UBSan bootstrap can proceed, although I see some errors
detected (will report them later).

Is this OK for trunk?

Yes, of course.
Thanks

Mikael

Reply via email to