This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fixinc: darwin_private_extern
- From: Bruce Korb <bkorb at veritas dot com>
- To: geoffk at gcc dot gnu dot org
- Cc: GCC-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 19 Dec 2003 09:30:28 -0800
- Subject: fixinc: darwin_private_extern
- Reply-to: bkorb at veritas dot com
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,