aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-04-23 14:38:58 -0400
committerMarek Polacek <polacek@redhat.com>2020-04-23 15:13:55 -0400
commit7291b2edf6f87fba839b0d10c04b2562a5f6bd60 (patch)
treeff03733a96219eb6a43a0b985de63cdaf14a9fbe /gcc/combine.c
parentbca558de2a24b2a78c6a321d6cec384e07759d77 (diff)
downloadgcc-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 'gcc/combine.c')
0 files changed, 0 insertions, 0 deletions