This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] stmt.c: Resort to the binary tree method if neithercasesi or tablejump is available.


Hi Richard,

> > Currently, it is not honored when -fPIC is
> > in effect, causing every dispatch table to use a difference of two
> > labels.  This way I can generate a diapatch table with a GP-relative
> > reloc for each label.
> 
> Alpha manages just fine without doing this.

OK, I got it.  The trick is to simply ignore REL and stick gprel32.  I
can do the same on H8.

#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
  fprintf (FILE, "\t.%s $L%d\n", TARGET_ABI_WINDOWS_NT ? "long" : "gprel32", \
	   (VALUE))

Thanks!

Kazu Hirata


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]