diff options
author | Martin Liska <mliska@suse.cz> | 2016-09-29 14:58:28 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-09-29 12:58:28 +0000 |
commit | fa0a064ae8968d49a838d6b4272ea79c547a721b (patch) | |
tree | 9ba997f65aeabcf0f9e449331121b3df54331cc3 | |
parent | 0ce1ecc7be817f0f96354b26f0d80f5bf53df764 (diff) | |
download | gcc-fa0a064ae8968d49a838d6b4272ea79c547a721b.zip gcc-fa0a064ae8968d49a838d6b4272ea79c547a721b.tar.gz gcc-fa0a064ae8968d49a838d6b4272ea79c547a721b.tar.bz2 |
objc: update documetation and add test-case of
* doc/extend.texi: Remove limitation of Objective C for
__attribute__((constructor)) and __attribute__((destructor)).
* objc/execute/construct1.m: New test.
From-SVN: r240618
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/objc/execute/construct1.m | 11 |
4 files changed, 20 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26dc3f9..432b790 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-09-29 Martin Liska <mliska@suse.cz> + + * doc/extend.texi: Remove limitation of Objective C for + __attribute__((constructor)) and __attribute__((destructor)). + 2016-09-29 Richard Biener <rguenther@suse.de> PR tree-optimization/77768 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index fcf86d3..49e68d7 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -2508,8 +2508,6 @@ same priority. The priorities for constructor and destructor functions are the same as those specified for namespace-scope C++ objects (@pxref{C++ Attributes}). -These attributes are not currently implemented for Objective-C@. - @item deprecated @itemx deprecated (@var{msg}) @cindex @code{deprecated} function attribute diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2fd9e97..3841aaf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-09-29 Martin Liska <mliska@suse.cz> + + * objc/execute/construct1.m: New test. + 2016-09-29 Richard Biener <rguenther@suse.de> PR tree-optimization/77768 diff --git a/gcc/testsuite/objc/execute/construct1.m b/gcc/testsuite/objc/execute/construct1.m new file mode 100644 index 0000000..3de036d --- /dev/null +++ b/gcc/testsuite/objc/execute/construct1.m @@ -0,0 +1,11 @@ +int i; + +void hello (void) __attribute__ ((constructor)); +void hello (void) { i = 1; } + +int main (void) { + if (i != 1) + return 1; + + return 0; +} |