From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Joern Rennecke Cc: crux@pool.informatik.rwth-aachen.de (Bernd Schmidt), egcs@cygnus.com Subject: Re: JUMP_TABLES_IN_TEXT_SECTION Date: Tue, 07 Apr 1998 19:34:00 -0000 Message-id: <29577.891921858@hurl.cygnus.com> References: <199804070035.BAA00222@phal.cygnus.co.uk> X-SW-Source: 1998-04/msg00283.html In message < 199804070035.BAA00222@phal.cygnus.co.uk >you write: > > ! if (JUMP_TABLES_IN_TEXT_SECTION > > ! #if !defined(READONLY_DATA_SECTION) > > ! || 1 > > #endif > > + ) > > + if (next && GET_CODE (next) == JUMP_INSN) > > + { > > I think that would look much nicer if you also changed READONLY_DATA_SECTION > to have a value and be always defined. > Then you could write: > > if ((JUMP_TABLES_IN_TEXT_SECTION || ! READONLY_DATA_SECTION) > && next && GET_CODE (next) == JUMP_INSN) Agreed. And just define a default value (0) so that you only have to change ports which actually want jump tables in the text section. jeff