This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Framework support for darwin
On Tue, Mar 02, 2004 at 01:10:57PM -0800, Geoff Keating wrote:
> On Mar 2, 2004, at 12:26 PM, Mike Stump wrote:
> ><frameworkk.diffs.txt>
Breaks any target but darwin.
c-opts.o(.text+0x51a): In function `c_common_handle_option':
/src/gcc-current/gcc/c-opts.c:290: undefined reference to `TARGET_OPTF'
Applying as obvious. You might also want to look at deleting
hook_void_charptr.
* target-def.h (TARGET_OPTF): Delete.
* c-opts.c (TARGET_OPTF): Define.
Index: gcc/target-def.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/target-def.h,v
retrieving revision 1.73
diff -u -p -r1.73 target-def.h
--- gcc/target-def.h 4 Mar 2004 00:18:52 -0000 1.73
+++ gcc/target-def.h 4 Mar 2004 02:27:50 -0000
@@ -361,10 +361,6 @@ Foundation, 59 Temple Place - Suite 330,
TARGET_PRETEND_OUTGOING_VARARGS_NAMED, \
}
-#ifndef TARGET_OPTF
-#define TARGET_OPTF hook_void_charptr
-#endif
-
/* The whole shebang. */
#define TARGET_INITIALIZER \
{ \
Index: gcc/c-opts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-opts.c,v
retrieving revision 1.106
diff -u -p -r1.106 c-opts.c
--- gcc/c-opts.c 4 Mar 2004 00:18:45 -0000 1.106
+++ gcc/c-opts.c 4 Mar 2004 02:27:51 -0000
@@ -46,6 +46,10 @@ Software Foundation, 59 Temple Place - S
# define TARGET_SYSTEM_ROOT NULL
#endif
+#ifndef TARGET_OPTF
+#define TARGET_OPTF(ARG)
+#endif
+
static int saved_lineno;
/* CPP's options. */
--
Alan Modra
IBM OzLabs - Linux Technology Centre