]> git.ipfire.org Git - thirdparty/gcc.git/commit
don't access cfun in dump_function_to_file
authorAlexandre Oliva <oliva@adacore.com>
Sun, 25 Jul 2021 02:05:32 +0000 (23:05 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Tue, 17 Aug 2021 11:00:40 +0000 (08:00 -0300)
commit3ed8da759b52708f6874af2afc6ab56b1fb00cec
tree17171dc4c83202bf9eb92a463039e2aae9e26d6f
parentd1819df86fbe42125cccb2fc2959a0bf51e524d6
don't access cfun in dump_function_to_file

dump_function_to_file takes the function to dump as a parameter, and
parts of it use the local fun variable where cfun would be used
elsewhere.  Others use cfun, presumably in error.  Fixed to use fun
uniformly.  Added a few more tests for non-NULL fun before
dereferencing it.

for  gcc/ChangeLog

* tree-cfg.c (dump_function_to_file): Use fun, not cfun.
gcc/tree-cfg.c