This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: JUMP_TABLES_IN_TEXT_SECTION
- To: Bernd Schmidt <crux at pool dot informatik dot rwth-aachen dot de>
- Subject: Re: JUMP_TABLES_IN_TEXT_SECTION
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Mon, 06 Apr 1998 19:50:48 -0400
- Cc: Jeffrey A Law <law at cygnus dot com>, egcs at cygnus dot com
The rs6000 patches seem very odd:
Index: config/rs6000/linux.h
*** config/rs6000/linux.h 1998/04/04 15:45:35 1.1.1.8
--- config/rs6000/linux.h 1998/04/05 11:42:46
*************** the Free Software Foundation, 675 Mass A
*** 67,72 ****
#ifndef USE_GNULIBC_1
#define DEFAULT_VTABLE_THUNKS 1
#endif
!
#undef JUMP_TABLES_IN_TEXT_SECTION
#define JUMP_TABLES_IN_TEXT_SECTION
--- 67,72 ----
#ifndef USE_GNULIBC_1
#define DEFAULT_VTABLE_THUNKS 1
#endif
! #define JUMP_TABLES_IN_TEXT_SECTION 1
#undef JUMP_TABLES_IN_TEXT_SECTION
#define JUMP_TABLES_IN_TEXT_SECTION
You insert JUMP_TABLES_IN_TEXT_SECTION just before it is undefined and
redefined as empty?
Index: config/rs6000/sysv4.h
diff -c -p -r1.1.1.9 sysv4.h
*** config/rs6000/sysv4.h 1998/04/04 16:12:27 1.1.1.9
--- config/rs6000/sysv4.h 1998/04/05 15:27:09
*************** do {
\
*** 330,336 ****
#undef ASM_OUTPUT_EXTERNAL
/* Put jump tables in read-only memory, rather than in .text. */
! #undef JUMP_TABLES_IN_TEXT_SECTION
/* Disable AIX-ism that disables turning -B into -L if the argument
specifies
a
relative file name. This breaks setting GCC_EXEC_PREFIX to D:\path
under
--- 330,336 ----
#undef ASM_OUTPUT_EXTERNAL
/* Put jump tables in read-only memory, rather than in .text. */
! #define JUMP_TABLES_IN_TEXT_SECTION 0
The original version undefined this macro. If you want to redefine it,
you must first undefine it and then define it to avoid warnings about
redefinition. I believe that you need to do this for all places that
previously explicitly undefined the macro.
David