From 0dee87df1cd74705df5a3f40c1e5e911254c3db5 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Thu, 9 Jul 2015 17:56:23 +0000 Subject: [PATCH] re PR target/66523 (the new clang-based assembler in Xcode 7 on 10.11 fails on libobjc/NXConstStr.m) 2015-07-09 Iain Sandoe PR target/66523 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label names from preservation. From-SVN: r225624 --- gcc/ChangeLog | 6 ++++++ gcc/config/darwin.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba4137d36dab..359014bf600c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-07-09 Iain Sandoe + + PR target/66523 + * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label names from + preservation. + 2015-07-07 Kaz Kojima Backport form mainline diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index adf370d4d072..f19e56699433 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -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); -- 2.47.2