Re: don't access cfun in dump_function_to_file

2021-08-17 Thread Alexandre Oliva
On Jul 28, 2021, Richard Biener wrote: > OK. Thanks, I've finally put this in as well. >> * tree-cfg.c (dump_function_to_file): Use fun, not cfun. -- Alexandre Oliva, happy hackerhttps://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Enginee

Re: don't access cfun in dump_function_to_file

2021-07-28 Thread Richard Biener via Gcc-patches
On Wed, Jul 28, 2021 at 10:12 AM Alexandre Oliva wrote: > > > 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

don't access cfun in dump_function_to_file

2021-07-28 Thread Alexandre Oliva
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. Regstrapped on x86