From: Claudiu Zissulescu Date: Fri, 15 Jun 2018 11:22:10 +0000 (+0200) Subject: [ARC] Fix warning in arc_return_address_register. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=738cb232062a3f44ac7ce751ec5c0c3c8abc33c7;p=gcc.git [ARC] Fix warning in arc_return_address_register. The if condition in arc_return_address_register which selects the arc return address is not correct. The issue is signalized in bugzilla 85968. gcc/ 2018-06-15 Claudiu Zissulescu * config/arc/arc.c (arc_return_address_register): Fix if-condition. From-SVN: r261623 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 361c6e3a86e..8f0819a07e7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-06-15 Claudiu Zissulescu + + PR target/85968 + * config/arc/arc.c (arc_return_address_register): Fix + if-condition. + 2018-06-15 Richard Biener PR middle-end/86159 diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 477500cd0b2..4d4d248abf5 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -9818,7 +9818,7 @@ arc_return_address_register (unsigned int fn_type) if (ARC_INTERRUPT_P (fn_type)) { - if (((fn_type & ARC_FUNCTION_ILINK1) | ARC_FUNCTION_FIRQ) != 0) + if ((fn_type & (ARC_FUNCTION_ILINK1 | ARC_FUNCTION_FIRQ)) != 0) regno = ILINK1_REGNUM; else if ((fn_type & ARC_FUNCTION_ILINK2) != 0) regno = ILINK2_REGNUM;