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]

Re: Include ggc.h in insn-output.c


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

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