JUMP_TABLES_IN_TEXT_SECTION

Jeffrey A Law law@cygnus.com
Tue Apr 7 19:34:00 GMT 1998


  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



More information about the Gcc mailing list