diff options
author | Marek Polacek <polacek@redhat.com> | 2020-04-23 14:38:58 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2020-04-23 15:13:55 -0400 |
commit | 7291b2edf6f87fba839b0d10c04b2562a5f6bd60 (patch) | |
tree | ff03733a96219eb6a43a0b985de63cdaf14a9fbe /libgo | |
parent | bca558de2a24b2a78c6a321d6cec384e07759d77 (diff) | |
download | gcc-7291b2edf6f87fba839b0d10c04b2562a5f6bd60.zip gcc-7291b2edf6f87fba839b0d10c04b2562a5f6bd60.tar.gz gcc-7291b2edf6f87fba839b0d10c04b2562a5f6bd60.tar.bz2 |
c-family: Fix ICE on attribute with -fgnu-tm [PR94733]
find_tm_attribute was using TREE_PURPOSE to get the attribute name,
which is breaking now that we preserve the C++11-style attribute
format past decl_attributes. So use get_attribute_name which can
handle both formats of attributes.
PR c++/94733
* c-attribs.c (find_tm_attribute): Use get_attribute_name instead of
TREE_PURPOSE.
* g++.dg/tm/attrib-5.C: New test.
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions