From: Andrew Pinski Date: Fri, 31 Dec 2004 22:07:47 +0000 (+0000) Subject: re PR target/19211 (GNAT bug box compiling a-exexda.adb with stage1 compiler) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83cf88cb40a79defe23c60245a6bfc4a582616ba;p=gcc.git re PR target/19211 (GNAT bug box compiling a-exexda.adb with stage1 compiler) 2004-12-31 Andrew Pinski PR target/19211 * config/darwin.c (machopic_legitimize_pic_address): If the orig is subregister return orig. From-SVN: r92776 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 900328b7df9..57c6b945df3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-12-31 Andrew Pinski + + PR target/19211 + * config/darwin.c (machopic_legitimize_pic_address): If the orig + is subregister return orig. + 2004-12-31 Zdenek Dvorak * tree-scalar-evolution.c (instantiate_parameters_1): Copy the diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index ad3981e9200..4738fee911c 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -754,7 +754,8 @@ machopic_legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg) else #endif /* HAVE_lo_sum */ { - if (GET_CODE (orig) == REG) + if (REG_P (orig) + || GET_CODE (orig) == SUBREG) { return orig; }