* doc/extend.texi: Remove limitation of Objective C for
__attribute__((constructor)) and __attribute__((destructor)).
* objc/execute/construct1.m: New test.
From-SVN: r240618
+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
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
+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
--- /dev/null
+int i;
+
+void hello (void) __attribute__ ((constructor));
+void hello (void) { i = 1; }
+
+int main (void) {
+ if (i != 1)
+ return 1;
+
+ return 0;
+}