<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Dear Duncan Sands:<br><br>   Yes, you are right. This IR is correct.  This bug is caused by  llvm-ld.<br>Edwin has fixed it. Please refer to:<br><br> Edwin <<a ymailto="mailto:edwintorok@gmail.com" href="mailto:edwintorok@gmail.com">edwintorok@gmail.com</a>> changed:<br><br>           What    |Removed                     |Added<br>----------------------------------------------------------------------------<br>             Status|ASSIGNED                    |RESOLVED<br>             Resolution|                     
            |FIXED<br><br><br>Fixed here:<br><a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090921/087797.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090921/087797.html</a><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">发件人:</span></b> Duncan Sands <baldrick@free.fr><br><b><span style="font-weight: bold;">收件人:</span></b> 任坤 <hbrenkun@yahoo.cn><br><b><span style="font-weight: bold;">抄   送:</span></b> llvm <llvmdev@cs.uiuc.edu><br><b><span style="font-weight: bold;">已发送:</span></b> 2009/9/24(周四), 下午11:24:32<br><b><span style="font-weight: bold;">主   题:</span></b> Re: [LLVMdev] About porting llvm-gcc
 frontend.<br></font><br>Hi 浠诲潳,<br><br>> void vfu1(union MYunion  u) {<br>>     u.ui = 99;<br>> }<br><br>here u is passed by copy, so vfu1 has no externally<br>visible effect.  I think you meant: union MYunion *u<br><br>> define void @vfu1(%struct.MYunion* byval align 4 %u) nounwind {<br><br>Here "byval" means that a pointer to a temporary copy of u is being<br>passed, not u itself.  Thus any writes to the %u parameter have no<br>effect outside this function.<br><br>> /3. ***********My question*********/<br>> It  means that function "void vfu1(union MYunion  u)"  modifies global varible myunion.<br><br>This call<br>  vfu1(myunion);<br>does not result in myunion being modified.<br><br>Ciao,<br><br>Duncan.<br></div></div></div><br>


      <hr size=1><a href="http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/">  好玩贺卡等你发,邮箱贺卡全新上线!</a></body></html>