[llvm-commits] [llvm-gcc-4.2] r68097 - /llvm-gcc-4.2/branches/Apple/Dib/gcc/config/darwin.c
Bill Wendling
isanbard at gmail.com
Tue Mar 31 01:35:22 PDT 2009
Author: void
Date: Tue Mar 31 03:35:22 2009
New Revision: 68097
URL: http://llvm.org/viewvc/llvm-project?rev=68097&view=rev
Log:
--- Merging (from foreign repository) r68080 into '.':
U gcc/config/darwin.c
Move ObjC CFString objects to a writable __DATA section under
-fwritable-strings.
Modified:
llvm-gcc-4.2/branches/Apple/Dib/gcc/config/darwin.c
Modified: llvm-gcc-4.2/branches/Apple/Dib/gcc/config/darwin.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/gcc/config/darwin.c?rev=68097&r1=68096&r2=68097&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/gcc/config/darwin.c (original)
+++ llvm-gcc-4.2/branches/Apple/Dib/gcc/config/darwin.c Tue Mar 31 03:35:22 2009
@@ -1760,7 +1760,11 @@
else
return "__OBJC, __string_object,no_dead_strip";
} else if (!strcmp(IDENTIFIER_POINTER(typename), "__builtin_CFString")) {
- return "__DATA, __cfstring";
+ return
+#ifdef LLVM_CONST_DATA_SECTION
+ (flag_writable_strings) ? LLVM_CONST_DATA_SECTION :
+#endif
+ "__DATA, __cfstring";
} else {
return 0;
}
More information about the llvm-commits
mailing list