This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Include ggc.h in insn-output.c
- To: Geoff Keating <geoffk at cygnus dot com>
- Subject: Re: Include ggc.h in insn-output.c
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Mon, 24 Jan 2000 16:39:27 -0500
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200001242016.MAA07235@localhost.cygnus.com>
On Mon, Jan 24, 2000 at 12:16:34PM -0800, Geoff Keating wrote:
>
> On rs6000, I have an output pattern that calls ggc_alloc_string:
>
> (define_insn "load_toc_aix_si"
> [(set (match_operand:SI 0 "register_operand" "=r")
> (unspec:SI [(const_int 0)] 7))]
> "! TARGET_ELF && TARGET_32BIT"
> "*
> {
> char buf[30];
> ASM_GENERATE_INTERNAL_LABEL (buf, \"LCTOC\", 0);
> operands[1] = gen_rtx_SYMBOL_REF (Pmode, ggc_alloc_string (buf, -1));
> operands[2] = gen_rtx_REG (Pmode, 2);
> return \"{l|lwz} %0,%1(%2)\";
> }"
> [(set_attr "type" "load")])
>
>
> So I need to have ggc.h included in insn-output.c.
No, looks good.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886
Work: meissner@redhat.com phone: 978-486-9304 fax: 978-692-4482
Non-work: meissner@spectacle-pond.org