attribs: fix typedefs in generic code [PR105492]
commited12749a3c9d9569a2c23df2e0db2136dcd3512d
authorJason Merrill <jason@redhat.com>
Thu, 5 May 2022 15:03:44 +0000 (5 11:03 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 16 May 2022 21:32:46 +0000 (16 17:32 -0400)
tree59dcadc8531bd38bb052c0ffdd4e5c0b40210f73
parent2402dc6b982c4dacac2360830f0edc123c588110
attribs: fix typedefs in generic code [PR105492]

In my patch for PR100545 I added an assert to check for broken typedefs in
set_underlying_type, and it found one in this case:
rs6000_handle_altivec_attribute had the same problem as
handle_mode_attribute.  So let's move the fixup into decl_attributes.

PR c/105492

gcc/ChangeLog:

* attribs.cc (decl_attributes): Fix broken typedefs here.

gcc/c-family/ChangeLog:

* c-attribs.cc (handle_mode_attribute): Don't fix broken typedefs
here.
gcc/attribs.cc
gcc/c-family/c-attribs.cc