On 02/10/2013 10:40 PM, David Holsgrove wrote:
Add microblaze_legitimate_pic_operand method

Prevents ICE where insn contains an invalid address

Changelog

2013-02-11  David Holsgrove <david.holsgr...@xilinx.com>

  * config/microblaze/microblaze.c
    (microblaze_valid_pic_const): New function
    (microblaze_legitimate_pic_operand): Likewise
  * config/microblaze/microblaze.h
    (LEGITIMATE_PIC_OPERAND_P): calls new
    function microblaze_legitimate_pic_operand

Committed revision 196434.

Added
        * config/microblaze/microblaze-protos.h
        (microblaze_legitimate_pic_operand): Declare.


Index: gcc/config/microblaze/microblaze-protos.h
===================================================================
--- gcc/config/microblaze/microblaze-protos.h   (revision 196431)
+++ gcc/config/microblaze/microblaze-protos.h   (working copy)
@@ -49,6 +49,7 @@
 extern void microblaze_declare_object (FILE *, const char *, const char *,
    const char *, int);
 extern void microblaze_asm_output_ident (const char *);
+extern int microblaze_legitimate_pic_operand (rtx);
 #endif  /* RTX_CODE */

 /* Declare functions in microblaze-c.c.  */

--
Michael Eager    ea...@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

Reply via email to