]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Improve attribute exclusion handling
authorAndrew Carlotti <andrew.carlotti@arm.com>
Mon, 6 Nov 2023 16:20:47 +0000 (16:20 +0000)
committerAndrew Carlotti <andrew.carlotti@arm.com>
Sat, 16 Dec 2023 00:38:42 +0000 (00:38 +0000)
commit73d5d3e2b29a3ebd538b6e55f0c8d62621342317
treea4ef8af823d30477668ad61f499914fe2e39f0b9
parentb26bbd1be31666c2cc83527e89dba6684d97735b
ada: Improve attribute exclusion handling

Change the handling of some attribute mutual exclusions to use the
generic attribute exclusion lists, and fix some asymmetric exclusions by
adding the exclusions for always_inline after noinline or target_clones.

Aside from the new always_inline exclusions, the only change is
functionality is the choice of warning message displayed.  All warnings
about attribute mutual exclusions now use the same message.

gcc/ada/ChangeLog:

* gcc-interface/utils.cc (attr_noinline_exclusions): New.
(attr_always_inline_exclusions): Ditto.
(attr_target_exclusions): Ditto.
(attr_target_clones_exclusions): Ditto.
(gnat_internal_attribute_table): Add new exclusion lists.
(handle_noinline_attribute): Remove custom exclusion handling.
(handle_target_attribute): Ditto.
(handle_target_clones_attribute): Ditto.
gcc/ada/gcc-interface/utils.cc