Commit 738cb232 by Claudiu Zissulescu Committed by Claudiu Zissulescu

[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  <claziss@synopsys.com>

	* config/arc/arc.c (arc_return_address_register): Fix if-condition.

From-SVN: r261623
parent fa685231
2018-06-15 Claudiu Zissulescu <claziss@synopsys.com>
PR target/85968
* config/arc/arc.c (arc_return_address_register): Fix
if-condition.
2018-06-15 Richard Biener <rguenther@suse.de>
PR middle-end/86159
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment