Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/gnu/dist/toolchain/gcc/config/alpha Pull up revision 1....
details: https://anonhg.NetBSD.org/src/rev/11fb92252fdf
branches: netbsd-1-6
changeset: 529490:11fb92252fdf
user: tron <tron%NetBSD.org@localhost>
date: Sun Nov 24 16:17:23 2002 +0000
description:
Pull up revision 1.10 (requested by mycroft in ticket #742):
Fix SELECT_SECTION() so that C++ run-time type info constructors do not go in
.rodata on PIC systems, which was causing text relocations (and associated
performance loss).
diffstat:
gnu/dist/toolchain/gcc/config/alpha/netbsd.h | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (27 lines):
diff -r 235512784564 -r 11fb92252fdf gnu/dist/toolchain/gcc/config/alpha/netbsd.h
--- a/gnu/dist/toolchain/gcc/config/alpha/netbsd.h Sun Nov 24 16:08:58 2002 +0000
+++ b/gnu/dist/toolchain/gcc/config/alpha/netbsd.h Sun Nov 24 16:17:23 2002 +0000
@@ -402,7 +402,9 @@
#define SELECT_SECTION(DECL,RELOC) \
{ \
- if (TREE_CODE (DECL) == STRING_CST) \
+ if (flag_pic && RELOC) \
+ data_section (); \
+ else if (TREE_CODE (DECL) == STRING_CST) \
{ \
if (! flag_writable_strings) \
const_section (); \
@@ -411,11 +413,7 @@
} \
else if (TREE_CODE (DECL) == VAR_DECL) \
{ \
- if ((flag_pic && RELOC) \
- || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
- || !DECL_INITIAL (DECL) \
- || (DECL_INITIAL (DECL) != error_mark_node \
- && !TREE_CONSTANT (DECL_INITIAL (DECL)))) \
+ if (! DECL_READONLY_SECTION (DECL, RELOC)) \
{ \
int size = int_size_in_bytes (TREE_TYPE (DECL)); \
if (size >= 0 && size <= g_switch_value) \
- Prev by Date:
[src/netbsd-1-6]: src/doc Pullup of tickets 716, 717, 722 and 732.
- Next by Date:
[src/netbsd-1-6]: src/doc Pullup of tickets 734, 740, 741, 881 and 904.
- Previous by Thread:
[src/netbsd-1-6]: src/doc Pullup of tickets 716, 717, 722 and 732.
- Next by Thread:
[src/netbsd-1-6]: src/doc Pullup of tickets 734, 740, 741, 881 and 904.
- Indexes:
Home |
Main Index |
Thread Index |
Old Index