Add TARGET_SUPPORTS_PIC flag and check that the flag_pic = 2
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>
Sat, 16 Feb 2013 19:32:15 +0000 (19:32 +0000)
committerMichael Eager <eager@gcc.gnu.org>
Sat, 16 Feb 2013 19:32:15 +0000 (19:32 +0000)
commitdebd11d9fb6fd90ef7a675b04cad04407d330688
tree1ea2fd27ec0f8390df307eac7f49d3a42dce468b
parent8ec77be0fc99e3a1ba0abd990175ca5b3bc7cfe9
Add TARGET_SUPPORTS_PIC flag and check that the flag_pic = 2

 * 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.dg/20020312-2.c: Define MicroBlaze PIC register

From-SVN: r196104
gcc/ChangeLog
gcc/config/microblaze/linux.h
gcc/config/microblaze/microblaze.c
gcc/config/microblaze/microblaze.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20020312-2.c