diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2019-08-16 09:32:36 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2019-08-16 09:32:36 +0000 |
commit | 12f78d8bed049278229b24c9f0b7f97468fee5c5 (patch) | |
tree | b2d40fc7495f193d4f6800727eff5701adb04315 /gcc/fortran/symbol.c | |
parent | cc19f80ceb27cc3d31d259ebecaad12005acfd7e (diff) | |
download | gcc-12f78d8bed049278229b24c9f0b7f97468fee5c5.zip gcc-12f78d8bed049278229b24c9f0b7f97468fee5c5.tar.gz gcc-12f78d8bed049278229b24c9f0b7f97468fee5c5.tar.bz2 |
[gensupport] PR 91255: Do not error out immediately on set_attr_alternative with define_subst
I'm trying to add a define_subst use in the arm backend but am getting many build errors complaining about:
`set_attr_alternative' is unsupported by `define_subst'
Looking at the gensupport.c code it iterates over all define_insns and errors if any of them have set_attr_alternative.
The usecase I'm targetting doesn't involve patterns with set_attr_alternative, so I would like to make the define_subst handling
more robust to only error out if the define_subst is actually attempted on a set_attr_alternative.
This patch produces the error only if the set_attr_alternative attr matches the subst name.
This allows a build of the arm backend with a define_subst usage to succeed.
PR other/91255
* gensupport.c (has_subst_attribute): Error out on set_attr_alternative
only if subst_name matches curr_attr string.
From-SVN: r274564
Diffstat (limited to 'gcc/fortran/symbol.c')
0 files changed, 0 insertions, 0 deletions