aboutsummaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-09-10 14:14:38 +0200
committerAndreas Jaeger <aj@gcc.gnu.org>2002-09-10 14:14:38 +0200
commitedf4d41e2473cd3405566db0672be40e34e52b41 (patch)
tree75a1e892164cfdb523b2433448f8b2d486784f1f /libobjc
parent908d0841de39280aa8126a3b1a08b28c18acf354 (diff)
downloadgcc-edf4d41e2473cd3405566db0672be40e34e52b41.zip
gcc-edf4d41e2473cd3405566db0672be40e34e52b41.tar.gz
gcc-edf4d41e2473cd3405566db0672be40e34e52b41.tar.bz2
nil_method.c (nil_method): No longer varardic.
2002-09-10 Jan Hubicka <jh@suse.cz> * nil_method.c (nil_method): No longer varardic. From-SVN: r57001
Diffstat (limited to 'libobjc')
-rw-r--r--libobjc/ChangeLog4
-rw-r--r--libobjc/nil_method.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog
index db5a938..3b9c4c1 100644
--- a/libobjc/ChangeLog
+++ b/libobjc/ChangeLog
@@ -1,3 +1,7 @@
+2002-09-10 Jan Hubicka <jh@suse.cz>
+
+ * nil_method.c (nil_method): No longer varardic.
+
2002-07-02 Rodney Brown <rbrown64@csc.com.au>
* objc/encoding.h: Fix formatting.
diff --git a/libobjc/nil_method.c b/libobjc/nil_method.c
index 800b0e3..47201d6 100644
--- a/libobjc/nil_method.c
+++ b/libobjc/nil_method.c
@@ -29,8 +29,12 @@ Boston, MA 02111-1307, USA. */
#include "runtime.h"
+/* nil_method is declared with variable arguments but the runtime calls it
+ in a way that does not setup the variable arguments correctly. Some Architectures
+ that have special arg calling conventions like x86-64 do need every function with
+ variable arguments called the correct way. */
id
-nil_method (id receiver, SEL op __attribute__ ((__unused__)), ...)
+nil_method (id receiver, SEL op __attribute__ ((__unused__)))
{
return receiver;
}