[Bug libfortran/82962] valgrind reports "Conditional jump or move depends on uninitialised value" in EXECUTE_COMMAND_LINE

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 19 18:06:00 GMT 2017


--- Comment #5 from janus at gcc dot gnu.org ---
(In reply to janus from comment #2)
> Since it seems that execute_command_line always sets a return value for the
> exitstat argument, one probably does not need to check against an initial
> value at all:

Sorry, I'm afraid that's actually not true. exitstat is not being set in all
situations (e.g. for asynchronous execution, i.e. with WAIT=.false.).

Therefore the patch in comment #2 is wrong and we're back to the question from
comment #1:

> What's a suitable value for estat_initial?

More information about the Gcc-bugs mailing list