summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorshebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-03 20:38:37 +0000
committershebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-03 20:38:37 +0000
commit543fd716b772e49fdbb8e717618c871667bf28de (patch)
tree9f05dec36d23fa7d8b2ab46541f170221c2b6c58 /gcc/config
parenteafc6604ee60b98aca48ea0cb212501416ec2def (diff)
downloadgcc-543fd716b772e49fdbb8e717618c871667bf28de.tar.gz
* darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
case for flag_no_mach_text_sections. (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION. * darwin.c (flag_no_mach_text_sections): Remove. * darwin-protos.h (darwin_init_pragma): Remove decl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43734 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/darwin-protos.h1
-rw-r--r--gcc/config/darwin.c4
-rw-r--r--gcc/config/darwin.h74
3 files changed, 35 insertions, 44 deletions
diff --git a/gcc/config/darwin-protos.h b/gcc/config/darwin-protos.h
index 9b91a193bea..6eb5bfd02d9 100644
--- a/gcc/config/darwin-protos.h
+++ b/gcc/config/darwin-protos.h
@@ -58,7 +58,6 @@ extern void darwin_encode_section_info PARAMS ((tree));
extern void machopic_finish PARAMS ((FILE *));
#ifdef GCC_C_PRAGMA_H
-extern void darwin_init_pragma PARAMS ((int (*) (tree *)));
extern void darwin_pragma_ignore PARAMS ((cpp_reader *));
extern void darwin_pragma_options PARAMS ((cpp_reader *));
extern void darwin_pragma_unused PARAMS ((cpp_reader *));
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 816cd4bbb4f..a3c382cee69 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -46,10 +46,6 @@ static int machopic_data_defined_p PARAMS ((const char *));
static int func_name_maybe_scoped PARAMS ((const char *));
static void update_non_lazy_ptrs PARAMS ((const char *));
-/* Make everything that used to go in the text section really go there. */
-
-int flag_no_mach_text_sections = 0;
-
int
name_needs_quotes (name)
const char *name;
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index aa628c63965..5cebd58b7e7 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -308,17 +308,13 @@ do { text_section (); \
/* Create new Mach-O sections. */
#undef SECTION_FUNCTION
-#define SECTION_FUNCTION(FUNCTION, SECTION, DIRECTIVE, WAS_TEXT, OBJC) \
+#define SECTION_FUNCTION(FUNCTION, SECTION, DIRECTIVE, OBJC) \
void \
FUNCTION () \
{ \
- extern void text_section (); \
extern void objc_section_init (); \
- extern int flag_no_mach_text_sections; \
\
- if (WAS_TEXT && flag_no_mach_text_sections) \
- text_section (); \
- else if (in_section != SECTION) \
+ if (in_section != SECTION) \
{ \
if (OBJC) \
objc_section_init (); \
@@ -361,104 +357,104 @@ do { if (!strcmp (alias_name, name)) \
#define EXTRA_SECTION_FUNCTIONS \
SECTION_FUNCTION (const_section, \
in_const, \
- ".const", 1, 0) \
+ ".const", 0) \
SECTION_FUNCTION (const_data_section, \
in_const_data, \
- ".const_data", 1, 0) \
+ ".const_data", 0) \
SECTION_FUNCTION (cstring_section, \
in_cstring, \
- ".cstring", 1, 0) \
+ ".cstring", 0) \
SECTION_FUNCTION (literal4_section, \
in_literal4, \
- ".literal4", 1, 0) \
+ ".literal4", 0) \
SECTION_FUNCTION (literal8_section, \
in_literal8, \
- ".literal8", 1, 0) \
+ ".literal8", 0) \
SECTION_FUNCTION (constructor_section, \
in_constructor, \
- ".constructor", 0, 0) \
+ ".constructor", 0) \
SECTION_FUNCTION (mod_init_section, \
in_mod_init, \
- ".mod_init_func", 0, 0) \
+ ".mod_init_func", 0) \
SECTION_FUNCTION (mod_term_section, \
in_mod_term, \
- ".mod_term_func", 0, 0) \
+ ".mod_term_func", 0) \
SECTION_FUNCTION (destructor_section, \
in_destructor, \
- ".destructor", 0, 0) \
+ ".destructor", 0) \
SECTION_FUNCTION (objc_class_section, \
in_objc_class, \
- ".objc_class", 0, 1) \
+ ".objc_class", 1) \
SECTION_FUNCTION (objc_meta_class_section, \
in_objc_meta_class, \
- ".objc_meta_class", 0, 1) \
+ ".objc_meta_class", 1) \
SECTION_FUNCTION (objc_category_section, \
in_objc_category, \
- ".objc_category", 0, 1) \
+ ".objc_category", 1) \
SECTION_FUNCTION (objc_class_vars_section, \
in_objc_class_vars, \
- ".objc_class_vars", 0, 1) \
+ ".objc_class_vars", 1) \
SECTION_FUNCTION (objc_instance_vars_section, \
in_objc_instance_vars, \
- ".objc_instance_vars", 0, 1) \
+ ".objc_instance_vars", 1) \
SECTION_FUNCTION (objc_cls_meth_section, \
in_objc_cls_meth, \
- ".objc_cls_meth", 0, 1) \
+ ".objc_cls_meth", 1) \
SECTION_FUNCTION (objc_inst_meth_section, \
in_objc_inst_meth, \
- ".objc_inst_meth", 0, 1) \
+ ".objc_inst_meth", 1) \
SECTION_FUNCTION (objc_cat_cls_meth_section, \
in_objc_cat_cls_meth, \
- ".objc_cat_cls_meth", 0, 1) \
+ ".objc_cat_cls_meth", 1) \
SECTION_FUNCTION (objc_cat_inst_meth_section, \
in_objc_cat_inst_meth, \
- ".objc_cat_inst_meth", 0, 1) \
+ ".objc_cat_inst_meth", 1) \
SECTION_FUNCTION (objc_selector_refs_section, \
in_objc_selector_refs, \
- ".objc_message_refs", 0, 1) \
+ ".objc_message_refs", 1) \
SECTION_FUNCTION (objc_selector_fixup_section, \
in_objc_selector_fixup, \
- ".section __OBJC, __sel_fixup", 0, 1) \
+ ".section __OBJC, __sel_fixup", 1) \
SECTION_FUNCTION (objc_symbols_section, \
in_objc_symbols, \
- ".objc_symbols", 0, 1) \
+ ".objc_symbols", 1) \
SECTION_FUNCTION (objc_module_info_section, \
in_objc_module_info, \
- ".objc_module_info", 0, 1) \
+ ".objc_module_info", 1) \
SECTION_FUNCTION (objc_protocol_section, \
in_objc_protocol, \
- ".objc_protocol", 0, 1) \
+ ".objc_protocol", 1) \
SECTION_FUNCTION (objc_string_object_section, \
in_objc_string_object, \
- ".objc_string_object", 0, 1) \
+ ".objc_string_object", 1) \
SECTION_FUNCTION (objc_constant_string_object_section, \
in_objc_constant_string_object, \
- ".section __OBJC, __cstring_object", 0, 1) \
+ ".section __OBJC, __cstring_object", 1) \
SECTION_FUNCTION (objc_class_names_section, \
in_objc_class_names, \
- ".objc_class_names", 0, 1) \
+ ".objc_class_names", 1) \
SECTION_FUNCTION (objc_meth_var_names_section, \
in_objc_meth_var_names, \
- ".objc_meth_var_names", 0, 1) \
+ ".objc_meth_var_names", 1) \
SECTION_FUNCTION (objc_meth_var_types_section, \
in_objc_meth_var_types, \
- ".objc_meth_var_types", 0, 1) \
+ ".objc_meth_var_types", 1) \
SECTION_FUNCTION (objc_cls_refs_section, \
in_objc_cls_refs, \
- ".objc_cls_refs", 0, 1) \
+ ".objc_cls_refs", 1) \
\
SECTION_FUNCTION (machopic_lazy_symbol_ptr_section, \
in_machopic_lazy_symbol_ptr, \
- ".lazy_symbol_pointer", 0, 0) \
+ ".lazy_symbol_pointer", 0) \
SECTION_FUNCTION (machopic_nl_symbol_ptr_section, \
in_machopic_nl_symbol_ptr, \
- ".non_lazy_symbol_pointer", 0, 0) \
+ ".non_lazy_symbol_pointer", 0) \
SECTION_FUNCTION (machopic_symbol_stub_section, \
in_machopic_symbol_stub, \
- ".symbol_stub", 0, 0) \
+ ".symbol_stub", 0) \
SECTION_FUNCTION (machopic_picsymbol_stub_section, \
in_machopic_picsymbol_stub, \
- ".picsymbol_stub", 0, 0) \
+ ".picsymbol_stub", 0) \
\
void \
objc_section_init () \