aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-12-19 12:46:40 +0100
committerJakub Jelinek <jakub@redhat.com>2020-12-19 12:46:40 +0100
commit9032d2b2414ed22e53a9980a51b835d3caf83c48 (patch)
treedd0f75fc0f4732b67a58b2027458661015e5c5d7 /gcc/expr.c
parentb1a2242e24fe984711214b7546cb993cfe45ace8 (diff)
downloadgcc-9032d2b2414ed22e53a9980a51b835d3caf83c48.zip
gcc-9032d2b2414ed22e53a9980a51b835d3caf83c48.tar.gz
gcc-9032d2b2414ed22e53a9980a51b835d3caf83c48.tar.bz2
bswap: Fix up a thinko with empty CONSTRUCTORs [PR98378]
The code I've added recently in find_bswap_or_nop for VECTOR CONSTRUCTORs is missing punt on an important case - namely empty CONSTRUCTORs, because in that case the loop will not initialize *n and the code after the loop will then use the uninitialized structure. 2020-12-19 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/98378 * gimple-ssa-store-merging.c (find_bswap_or_nop): Punt if CONSTRUCTOR has no elements.
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions