[PATCH] Implement no_stack_protect attribute.

Martin Liška mliska@suse.cz
Mon May 25 13:10:30 GMT 2020


On 5/21/20 4:53 PM, Martin Sebor wrote:
> On 5/21/20 5:28 AM, Martin Liška wrote:
>> On 5/18/20 10:37 PM, Martin Sebor wrote:
>>> I know there are some somewhat complex cases the attribute exclusion
>>> mechanism isn't general enough to handle but this seems simple enough
>>> that it should work.  Unless I'm missing something that makes it not
>>> feasible I would suggest to use it.
>>
>> Hi Martin.
>>
>> Do we have a better place where we check for attribute collision?
> 
> If by collision you mean the same thing as the mutual exclusion I was
> talking about then that's done by creating an attribute_spec::exclusions
> array like for instance attr_cold_hot_exclusions in c-attribs.c and
> pointing to it from the attribute_spec entries for each of
> the mutually exclusive attributes in the attribute table.  Everything
> else is handled automatically by decl_attributes.
> 
> Martin

Thanks, I'm sending updated version of the patch that utilizes the conflict
detection.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-no_stack_protect-attribute.patch
Type: text/x-patch
Size: 13915 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200525/4cebdda3/attachment.bin>


More information about the Gcc-patches mailing list