This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch: TLS for FR-V (FDPIC ABI)
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 27 Jan 2005 06:31:04 -0200
- Subject: Re: patch: TLS for FR-V (FDPIC ABI)
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <20050126000303.GA930@redhat.com>
On Jan 25, 2005, Aldy Hernandez <aldyh@redhat.com> wrote:
> (Alex, do we have a copy of the TLS FDPIC ABI on-line, to point folks to?).
I'm not sure. I'll try to find out.
> This has been tested on frv-elf under the simulator. It has also been
> tested, on a Red Hat local tree on actual hardware, and used to build
> glibc, the Linux kernel, and a few other things ;-).
> I'm committing to mainline.
You missed part of a patch, included below. I'm checking it in.
> 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
> * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
> * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
> * config/frv/frv.c (TLS_BIAS): Define.
> (frv_output_dwarf_dtprel): New.
The date above is most definitely wrong. The code was written last
year. The date is significant for copyright purposes.
Anyhow, here's the patch for the bit missed before.
Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
Index: gcc/config/frv/frv.c
===================================================================
RCS file: /cvs/uberbaum/gcc/config/frv/frv.c,v
retrieving revision 1.79
diff -u -p -r1.79 frv.c
--- gcc/config/frv/frv.c 26 Jan 2005 00:07:07 -0000 1.79
+++ gcc/config/frv/frv.c 27 Jan 2005 08:27:16 -0000
@@ -7903,6 +7903,11 @@ frv_class_likely_spilled_p (enum reg_cla
default:
break;
+ case GR8_REGS:
+ case GR9_REGS:
+ case GR89_REGS:
+ case FDPIC_FPTR_REGS:
+ case FDPIC_REGS:
case ICC_REGS:
case FCC_REGS:
case CC_REGS:
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}