summaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 13de45f74a5..cac61e403c9 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -1048,10 +1048,14 @@ machopic_select_section (tree exp, int reloc,
tree name = TYPE_NAME (TREE_TYPE (exp));
if (TREE_CODE (name) == TYPE_DECL)
name = DECL_NAME (name);
- if (!strcmp (IDENTIFIER_POINTER (name), "NSConstantString"))
- objc_constant_string_object_section ();
- else if (!strcmp (IDENTIFIER_POINTER (name), "NXConstantString"))
- objc_string_object_section ();
+
+ if (!strcmp (IDENTIFIER_POINTER (name), "__builtin_ObjCString"))
+ {
+ if (flag_next_runtime)
+ objc_constant_string_object_section ();
+ else
+ objc_string_object_section ();
+ }
else
base_function ();
}