From: claziss Date: Fri, 15 Jun 2018 11:22:10 +0000 (+0000) Subject: [ARC] Fix warning in arc_return_address_register. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=26465588631a6dcf5af79b753ce872f03326b7f3;p=thirdparty%2Fgcc.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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261623 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 361c6e3a86e8..8f0819a07e7d 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 477500cd0b29..4d4d248abf5c 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;