Add TARGET_SUPPORTS_PIC flag and check that the flag_pic = 2

Changelog

2013-02-11  Edgar E. Iglesias  <edgar.igles...@gmail.com>

 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
 * config/microblaze/microblaze.c (microblaze_option_override):
    Bail out early for PIC modes when target does not support PIC.

gcc/testsuite/Changelog

2013-02-11  Edgar E. Iglesias  <edgar.igles...@gmail.com>

 * gcc.dg/20020312-2.c: Define MicroBlaze PIC register

Attachment: 0001-gcc-microblaze-Bailout-early-for-PIC-modes-when-targ.patch
Description: 0001-gcc-microblaze-Bailout-early-for-PIC-modes-when-targ.patch

Reply via email to