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
+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
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;