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]

[PATCH, committed] AIX rtti symbol fix


	Symbols with "_ZTI" are another case where GCC references the
symbol before defining it.  The AIX assembler is not multi-pass, so this
causes failures.  As with the vtable kludge, this patch changes GCC's
behavior on AIX XCOFF to not emit the storage class decoration which
tricks the assembler into not behaving as badly.

David


	* config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
	symbol handling.

Index: rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.619
diff -c -p -r1.619 rs6000.c
*** rs6000.c	1 Apr 2004 03:50:34 -0000	1.619
--- rs6000.c	5 Apr 2004 16:39:57 -0000
*************** toc_hash_eq (const void *h1, const void 
*** 13332,13337 ****
--- 13332,13338 ----
    (strncmp ("_vt.", name, strlen("_vt.")) == 0		\
    || strncmp ("_ZTV", name, strlen ("_ZTV")) == 0	\
    || strncmp ("_ZTT", name, strlen ("_ZTT")) == 0	\
+   || strncmp ("_ZTI", name, strlen ("_ZTI")) == 0	\
    || strncmp ("_ZTC", name, strlen ("_ZTC")) == 0) 
  
  void


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