aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-08-24 01:50:54 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-08-23 18:50:54 -0700
commit2501b16706f1e920917035d6c63f6ed6b840a9df (patch)
tree44f8276a093a295a62ff69d2c364f2fa1ae874af /gcc/config
parentd82bf747536f0e61ac960c718980f26fdf447a43 (diff)
downloadgcc-2501b16706f1e920917035d6c63f6ed6b840a9df.zip
gcc-2501b16706f1e920917035d6c63f6ed6b840a9df.tar.gz
gcc-2501b16706f1e920917035d6c63f6ed6b840a9df.tar.bz2
re PR target/20799 (bad relocs for new/delete overrides)
2005-08-23 Andrew Pinski <pinskia@physics.uc.edu> PR target/20799 * config/darwin.c (machopic_select_section): Remove the hack to mark "::operator new" and "::operator delete" for coalescing even though they are not weak. From-SVN: r103426
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/darwin.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index fd503ef..c7cd1a3 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -1118,28 +1118,6 @@ machopic_select_section (tree exp, int reloc,
else
base_function ();
}
- /* ::operator new and ::operator delete must be coalesced, even
- if not weak. There are 8 variants that we look for. */
- else if (TREE_CODE (exp) == FUNCTION_DECL
- && ! DECL_ONE_ONLY (exp))
- {
- const char * name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (exp));
- if (name[0] == '_' && name[1] == 'Z'
- && ((name[2] == 'n' && (name[3] == 'a' || name[3] == 'w')
- && name[4] == 'm')
- || (name[2] == 'd' && (name[3] == 'a' || name[3] == 'l')
- && name[4] == 'P' && name[5] == 'v')))
- {
- bool delete_p = name[2] == 'd';
- if (name[5 + delete_p] == 0
- || strcmp (name + 5 + delete_p, "KSt9nothrow_t") == 0)
- base_funs[reloc][1] ();
- else
- base_function ();
- }
- else
- base_function ();
- }
else
base_function ();
}