]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/66523 (the new clang-based assembler in Xcode 7 on 10.11 fails on libobj...
authorIain Sandoe <iain@codesourcery.com>
Thu, 9 Jul 2015 17:56:23 +0000 (17:56 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Thu, 9 Jul 2015 17:56:23 +0000 (17:56 +0000)
2015-07-09  Iain Sandoe  <iain@codesourcery.com>

PR target/66523
* config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label names from
preservation.

From-SVN: r225624

gcc/ChangeLog
gcc/config/darwin.c

index ba4137d36dab795867a3f2507cbea05b4a507ce7..359014bf600c237ddd48bdb9413e582df8b4a4c4 100644 (file)
@@ -1,3 +1,9 @@
+2015-07-09  Iain Sandoe  <iain@codesourcery.com>
+
+       PR target/66523
+       * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label names from
+       preservation.
+
 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        Backport form mainline
index adf370d4d072febcf085da6138cc67889159f807..f19e56699433dfe34881785ac3b985ea1ee54df8 100644 (file)
@@ -1232,6 +1232,11 @@ darwin_encode_section_info (tree decl, rtx rtl, int first ATTRIBUTE_UNUSED)
 void
 darwin_mark_decl_preserved (const char *name)
 {
+  /* Actually we shouldn't mark any local symbol this way, but for now
+     this only happens with ObjC meta-data.  */
+  if (darwin_label_is_anonymous_local_objc_name (name))
+    return;
+
   fprintf (asm_out_file, "\t.no_dead_strip ");
   assemble_name (asm_out_file, name);
   fputc ('\n', asm_out_file);