On 10/25/18 12:35 PM, Martin Sebor wrote:
> While testing the optimize and target attributes and comparing
> the results to what the manual describes I noticed that some
> syntactic forms aren't fully documented for both attributes.
> Specifically, the optimize attribute doesn't mention that each
> string argument can be a comma-separated list of -f option
> suffixes, e.g., like so:
>
> __attribute__ ((optimize ("foo,bar"))) void f (void);
>
> (The target attribute does mention it.)
>
> The attached patch amends the manual to describe this feature
> consistently and in some detail. While I was there, I also made
> a few minor changes for consistency: besides adding the full
> syntactic form of the attribute (including arguments), I removed
> the quotes around the string argument (typically, in @var{string}
> the string isn't quoted), and corrected a minor grammatical issue.
>
> Martin
>
> gcc-doc-attr-optimize-target.diff
>
> gcc/ChangeLog:
>
> * doc/extend.texi (optimize): Clarify/expand attribute documentation.
> (target, pragma GCC optimize, pragma GCC target): Ditto.
OK
jeff