Author: yug
Date: 2012-05-09 04:56:49 -0400 (Wed, 09 May 2012)
New Revision: 3926
Modified:
trunk/osprey/be/cg/x8664/cgtarget.cxx
Log:
fix for bug962.
function symbols should be allowed as "i" constraint,
since they are link time constants.
Code Review: Lai Jian-Xin.
Modified: trunk/osprey/be/cg/x8664/cgtarget.cxx
===================================================================
--- trunk/osprey/be/cg/x8664/cgtarget.cxx 2012-05-07 07:17:13 UTC (rev
3925)
+++ trunk/osprey/be/cg/x8664/cgtarget.cxx 2012-05-09 08:56:49 UTC (rev
3926)
@@ -3621,11 +3621,15 @@
load = NULL;
}
}
+
+ // bug916 open64.net, &var.field is allowed as "i"
+ // bug962 open64.net, function symbol is allowed as "i"
if (!(load && (WN_operator(load) == OPR_INTCONST ||
(WN_operator(load) == OPR_LDA &&
- // &var.field is also allowed, bug916 open64.net
(ST_sym_class(WN_st(load)) == CLASS_VAR ||
- ST_sym_class(WN_st(load)) == CLASS_CONST))))) {
+ ST_sym_class(WN_st(load)) == CLASS_CONST ||
+ ST_sym_class(WN_st(load)) == CLASS_FUNC
+ ))))) {
ErrMsgSrcpos(EC_Invalid_Asm_Constrain, WN_Get_Linenum(asm_wn),
": Cannot find immediate operand for ASM");
}
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Open64-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open64-devel