This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: rs6000 load_toc
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Sep 2002 16:54:33 -0400
- Subject: Re: rs6000 load_toc
else if (TARGET_ELF && !TARGET_AIX)
abort ();
else if (TARGET_32BIT)
{
rs6000_maybe_dead (emit_insn (gen_load_toc_aix_si (dest)));
else
rs6000_maybe_dead (emit_insn (gen_load_toc_aix_di (dest)));
}
I would much rather have the abort() at the end if none of the cases are
handled. The revised structure does not act as a self-test.
else if (DEFAULT_ABI == ABI_AIX)
{
if (TARGET_32BIT)
rs6000_maybe_dead (emit_insn (gen_load_toc_aix_si (dest)));
else
rs6000_maybe_dead (emit_insn (gen_load_toc_aix_di (dest)));
}
else
abort();
Thanks, David