aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMatt Austern <austern@apple.com>2004-08-18 18:41:01 +0000
committerMatt Austern <austern@gcc.gnu.org>2004-08-18 18:41:01 +0000
commit92b9a671bfb851c12aa3bbb112e7f3d4119d93ed (patch)
treebe98c97c879ab88d6d133546e1ca4c121f91ad04 /gcc
parent4766261de9346c0521b688b1b330a199edbe17e0 (diff)
downloadgcc-92b9a671bfb851c12aa3bbb112e7f3d4119d93ed.zip
gcc-92b9a671bfb851c12aa3bbb112e7f3d4119d93ed.tar.gz
gcc-92b9a671bfb851c12aa3bbb112e7f3d4119d93ed.tar.bz2
Dead code stripping
Dead code stripping * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped. * darwin.c (darwin_file_end): Mark file as potentially strippable. From-SVN: r86203
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/darwin.c1
-rw-r--r--gcc/config/darwin.h2
3 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4445787..2d030e0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-18 Matt Austern <austern@apple.com>
+
+ Dead code stripping
+ * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
+ * darwin.c (darwin_file_end): Mark file as potentially strippable.
+
2004-08-18 Richard Henderson <rth@redhat.com>
* alias.c (readonly_fields_p): Remove.
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 977a4f7..0d3ff8f 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -1252,6 +1252,7 @@ darwin_file_end (void)
destructor_section ();
ASM_OUTPUT_ALIGN (asm_out_file, 1);
}
+ fprintf (asm_out_file, "\t.subsections_via_symbols\n");
}
#include "gt-darwin.h"
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 311c161..2494589 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -898,7 +898,7 @@ enum machopic_addr_class {
#define TARGET_ASM_EH_FRAME_SECTION darwin_eh_frame_section
#define EH_FRAME_SECTION_NAME "__TEXT"
-#define EH_FRAME_SECTION_ATTR ",coalesced,no_toc+strip_static_syms"
+#define EH_FRAME_SECTION_ATTR ",coalesced,no_toc+strip_static_syms+live_support"
#undef ASM_PREFERRED_EH_DATA_FORMAT
#define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) \