]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nil_method.c (nil_method): No longer varardic.
authorJan Hubicka <jh@suse.cz>
Tue, 10 Sep 2002 12:14:38 +0000 (14:14 +0200)
committerAndreas Jaeger <aj@gcc.gnu.org>
Tue, 10 Sep 2002 12:14:38 +0000 (14:14 +0200)
2002-09-10  Jan Hubicka  <jh@suse.cz>

* nil_method.c (nil_method): No longer varardic.

From-SVN: r57001

libobjc/ChangeLog
libobjc/nil_method.c

index db5a9386dfe97ff4ec54ce25984fb06b32852a1d..3b9c4c1cfc3168faf08e4fd472c926417fe688a0 100644 (file)
@@ -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.
index 800b0e3bf53f2befde459e5b894253ac37357a92..47201d69cc12ce0739d93b08d57a37da86aef1ca 100644 (file)
@@ -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;
 }