This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Hoist up flag_next_runtime
- From: Ziemowit Laski <zlaski at apple dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 28 Jun 2005 14:48:58 -0700
- Subject: PATCH: Hoist up flag_next_runtime
Per preceding discussion with RTH. Will commit as obvious after doing
a sanity build. Afterwards, will similarly sanity-check and commit
my ObjC constant string patch from 21 Jun 2005.
--Zem
[gcc/ChangeLog]
2006-06-28 Ziemowit Laski <zlaski@apple.com>
* c-common.c (flag_next_runtime): Move...
* toplev.c (flag_next_runtime): ... here.
* c-common.h (flag_next_runtime): Move...
* flags.h (flag_next_runtime): ... here.
Index: gcc/c-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.c,v
retrieving revision 1.640
diff -u -3 -p -r1.640 c-common.c
--- gcc/c-common.c 27 Jun 2005 12:17:19 -0000 1.640
+++ gcc/c-common.c 28 Jun 2005 21:14:40 -0000
@@ -334,14 +334,6 @@ int warn_main;
int flag_gen_declaration;
-/* Generate code for GNU or NeXT runtime environment. */
-
-#ifdef NEXT_OBJC_RUNTIME
-int flag_next_runtime = 1;
-#else
-int flag_next_runtime = 0;
-#endif
-
/* Tells the compiler that this is a special run. Do not perform any
compiling, instead we are to test some platform dependent features
and output a C header file with appropriate definitions. */
Index: gcc/c-common.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.h,v
retrieving revision 1.297
diff -u -3 -p -r1.297 c-common.h
--- gcc/c-common.h 26 Jun 2005 21:54:14 -0000 1.297
+++ gcc/c-common.h 28 Jun 2005 21:14:40 -0000
@@ -449,10 +449,6 @@ extern int warn_main;
extern int flag_gen_declaration;
-/* Generate code for GNU or NeXT runtime environment. */
-
-extern int flag_next_runtime;
-
/* Tells the compiler that this is a special run. Do not perform any
compiling, instead we are to test some platform dependent features
and output a C header file with appropriate definitions. */
Index: gcc/flags.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flags.h,v
retrieving revision 1.154
diff -u -3 -p -r1.154 flags.h
--- gcc/flags.h 25 Jun 2005 01:59:54 -0000 1.154
+++ gcc/flags.h 28 Jun 2005 21:14:40 -0000
@@ -181,6 +181,10 @@ extern int flag_shlib;
extern int flag_debug_asm;
+/* Generate code for GNU or NeXT Objective-C runtime environment. */
+
+extern int flag_next_runtime;
+
extern int flag_dump_rtl_in_asm;
/* If one, renumber instruction UIDs to reduce the number of
Index: gcc/toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.963
diff -u -3 -p -r1.963 toplev.c
--- gcc/toplev.c 27 Jun 2005 08:05:27 -0000 1.963
+++ gcc/toplev.c 28 Jun 2005 21:14:40 -0000
@@ -289,6 +289,14 @@ const char *aux_info_file_name;
int flag_shlib;
+/* Generate code for GNU or NeXT Objective-C runtime environment. */
+
+#ifdef NEXT_OBJC_RUNTIME
+int flag_next_runtime = 1;
+#else
+int flag_next_runtime = 0;
+#endif
+
/* Set to the default thread-local storage (tls) model to use. */
enum tls_model flag_tls_default = TLS_MODEL_GLOBAL_DYNAMIC;
--------------------------------------------------------------
Ziemowit Laski 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group Cupertino, CA USA 95014-2083
Apple Computer, Inc. +1.408.974.6229 Fax .5477