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]

fixinc: darwin_private_extern


Hi Geoff,

CF: the patch below

Could you please add fixinc/tests/base/mach-o/dyld.h ?
Thank you!

Regards, Bruce

RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -r1.188 -r1.189
--- gcc/gcc/fixinc/inclhack.def 2003/12/12 01:19:23     1.188
+++ gcc/gcc/fixinc/inclhack.def 2003/12/19 06:19:26     1.189
@@ -935,6 +935,22 @@
 };
 
 
+/* __private_extern__ doesn't exist in FSF GCC.  Even if it did,
+   why would you ever put it in a system header file?  */
+fix = {
+  hackname  = darwin_private_extern;
+  mach      = "*-*-darwin*";
+  files     = mach-o/dyld.h;
+  select    = "__private_extern__ [a-z_]+ _dyld_";
+  c_fix     = format;
+  c_fix_arg = "extern";
+  c_fix_arg = "__private_extern__";
+  test_text = "__private_extern__ int _dyld_func_lookup(\n"
+             "const char *dyld_func_name,\n"
+             "unsigned long *address);\n";
+};
+
+
 /*
  *  Fix <c_asm.h> on Digital UNIX V4.0:
  *  It contains a prototype for a DEC C internal asm() function,


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