r277608 - in /branches/gcc-9-branch/gcc: Change...
tschwinge@gcc.gnu.org
tschwinge@gcc.gnu.org
Wed Oct 30 10:50:00 GMT 2019
Author: tschwinge
Date: Wed Oct 30 10:50:58 2019
New Revision: 277608
URL: https://gcc.gnu.org/viewcvs?rev=277608&root=gcc&view=rev
Log:
Avoid '-Wmaybe-uninitialized' diagnostic in 'gcc/dwarf2out.c'
With '--enable-checking=yes,extra,rtl':
In file included from [...]/source-gcc/gcc/coretypes.h:433,
from [...]/source-gcc/gcc/dwarf2out.c:60:
[...]/source-gcc/gcc/machmode.h: In function 'dw_loc_descr_node* mem_loc_descriptor(rtx, machine_mode, machine_mode, var_init_status)':
[...]/source-gcc/gcc/machmode.h:520:42: error: 'int_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized]
520 | ? mode_size_inline (mode) : mode_size[mode]);
| ^~~~
[...]/source-gcc/gcc/dwarf2out.c:15464:19: note: 'int_mode' was declared here
15464 | scalar_int_mode int_mode, inner_mode, op1_mode;
| ^~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [dwarf2out.o] Error 1
Backport trunk r270903.
2019-05-06 Richard Biener <rguenther@suse.de>
* dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/dwarf2out.c
More information about the Gcc-cvs
mailing list