diff options
author | Martin Sebor <msebor@redhat.com> | 2021-01-12 12:58:27 -0700 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-01-12 13:03:00 -0700 |
commit | 5a9cfad2de92f2d65585774acb524b3fa17621b5 (patch) | |
tree | 2466054153dcd0396ea2b4d4b5918849c0ddfdc8 /gcc/go | |
parent | 728fee7a7980addedfdb48e6dbcedc60054974f0 (diff) | |
download | gcc-5a9cfad2de92f2d65585774acb524b3fa17621b5.zip gcc-5a9cfad2de92f2d65585774acb524b3fa17621b5.tar.gz gcc-5a9cfad2de92f2d65585774acb524b3fa17621b5.tar.bz2 |
Avoid a couple more ICEs in print_mem_ref (PR c/98597).
Resolves:
PR c/98597 - ICE in -Wuninitialized printing a MEM_REF
PR c/98592 - ICE in gimple_canonical_types_compatible_p while formatting
gcc/c-family/ChangeLog:
PR c/98597
PR c/98592
* c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
has pointer type. Remove redundant code. Avoid calling
gimple_canonical_types_compatible_p.
gcc/testsuite/ChangeLog:
PR c/98597
PR c/98592
* g++.dg/warn/Wuninitialized-13.C: New test.
gcc.dg/uninit-39.c: New test.
#
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions