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]

[tree-ssa mudflap] ia64 reloc tweak


Hi -

The following patch makes most of the tests run on ia64, and
keeps working the i386 and x86_64 targets, so it can't be too evil.

2003-06-05  Frank Ch. Eigler  <fche@redhat.com>
 
	* c-mudflap.c (mflang_register_call): Give the synthetic decl
	undefined (not zero) size.
	[same for cp-mudflap.c]


Index: c-mudflap.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/c-mudflap.c,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 c-mudflap.c
--- c-mudflap.c	5 Jun 2003 17:29:39 -0000	1.1.2.5
+++ c-mudflap.c	5 Jun 2003 20:17:35 -0000
@@ -86,7 +86,7 @@ mflang_register_call (label, regsize, re
   tree mf_register_fndecl = mflang_lookup_decl ("__mf_register");
 
   /* See gcc-checker's c-bounds.c (declare_private_statics)  */
-  decltype = build_array_type (char_type_node, build_index_type (integer_zero_node));
+  decltype = build_array_type (char_type_node, 0);
   decl = mf_mark (build_decl (VAR_DECL, get_identifier (label), decltype));
 
   TREE_STATIC (decl) = 1;

Index: cp/cp-mudflap.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/Attic/cp-mudflap.c,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 cp-mudflap.c
--- cp/cp-mudflap.c	5 Jun 2003 17:29:40 -0000	1.1.2.5
+++ cp/cp-mudflap.c	5 Jun 2003 20:17:35 -0000
@@ -86,7 +86,7 @@ mflang_register_call (label, regsize, re
   tree mf_register_fndecl = mflang_lookup_decl ("__mf_register");
 
   /* See gcc-checker's c-bounds.c (declare_private_statics)  */
-  decltype = build_array_type (char_type_node, build_index_type (integer_zero_node));
+  decltype = build_array_type (char_type_node, 0);
   decl = mf_mark (build_decl (VAR_DECL, get_identifier (label), decltype));
 
   TREE_STATIC (decl) = 1;


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