https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94641
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:1e4a928134e8f17bbcae99f2bac2bbce73ef6f73 commit r9-8882-g1e4a928134e8f17bbcae99f2bac2bbce73ef6f73 Author: Jakub Jelinek <ja...@redhat.com> Date: Tue Apr 21 17:06:31 2020 +0200 ubsan: Avoid -Wpadded warnings [PR94641] -Wpadded warnings aren't really useful for the artificial types that GCC lays out for ubsan. 2020-04-21 Jakub Jelinek <ja...@redhat.com> PR c/94641 * stor-layout.c (place_field, finalize_record_size): Don't emit -Wpadded warning on TYPE_ARTIFICIAL rli->t. * ubsan.c (ubsan_get_type_descriptor_type, ubsan_get_source_location_type, ubsan_create_data): Set TYPE_ARTIFICIAL. * asan.c (asan_global_struct): Likewise. * c-c++-common/ubsan/pr94641.c: New test. (cherry picked from commit 73f8e9dca5ff891ed19001b213fd1f6ce31417e3)