diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-10-26 22:12:22 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-11-11 20:43:31 +0000 |
commit | 9227f81db7a0b38dd14ce4b48ca50c33cf8d5e1c (patch) | |
tree | 9e4363f328b7d4facf4a79492cd0569c87f3116a /gcc/dwarf2out.c | |
parent | b1c9b3c3408c1ec8043f9b9e1a148f84bb7f3b25 (diff) | |
download | gcc-9227f81db7a0b38dd14ce4b48ca50c33cf8d5e1c.zip gcc-9227f81db7a0b38dd14ce4b48ca50c33cf8d5e1c.tar.gz gcc-9227f81db7a0b38dd14ce4b48ca50c33cf8d5e1c.tar.bz2 |
Objective-C++ : Allow prefix attrs on linkage specs.
For Objective-C++, this combines prefix attributes from before and
after top level linkage specs. The "reference implementation" for
Objective-C++ allows this, and system headers depend on it.
e.g.
__attribute__((__deprecated__))
extern "C" __attribute__((__visibility__("default")))
@interface MyClass
...
@end
Would consider the list of prefix attributes to the interface for
MyClass to include both the visibility and deprecated ones.
When we are compiling regular C++, this emits a warning and discards
any prefix attributes before a linkage spec.
gcc/cp/ChangeLog:
* parser.c (cp_parser_declaration): Unless we are compiling for
Ojective-C++, warn about and discard any attributes that prefix
a linkage specification.
Diffstat (limited to 'gcc/dwarf2out.c')
0 files changed, 0 insertions, 0 deletions