diff mbox

[microblaze] : Add microblaze_legitimate_pic_operand method

Message ID 5134BEB9.8080004@eagerm.com
State New
Headers show

Commit Message

Michael Eager March 4, 2013, 3:33 p.m. UTC
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.holsgrove@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.
diff mbox

Patch

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.  */