This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[libobjc] fix to nil_method


Hi,
on the libobjc the nil_method is declared as varardic function, however
the calls to it (appears to be autmatically generated by objc) are not.
x86_64 requires all calls to varardic functions to eighter have varardic
prototype or no prototype at all, so objc breaks.  WOuld be the attached patch OK?

Honza

Tue Aug 27 22:58:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
	* nil_method.c (nil_method): No longer varardic.
Index: nil_method.c
===================================================================
RCS file: /cvs/gcc/egcs/libobjc/nil_method.c,v
retrieving revision 1.4
diff -c -3 -p -r1.4 nil_method.c
*** nil_method.c	2 Jul 2002 19:42:38 -0000	1.4
--- nil_method.c	27 Aug 2002 20:57:21 -0000
*************** Boston, MA 02111-1307, USA.  */
*** 30,36 ****
  #include "runtime.h"
  
  id
! nil_method (id receiver, SEL op __attribute__ ((__unused__)), ...)
  {
    return receiver;
  }
--- 30,36 ----
  #include "runtime.h"
  
  id
! nil_method (id receiver, SEL op __attribute__ ((__unused__)))
  {
    return receiver;
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]