[Mono-bugs] [Bug 60331][Maj] Changed - PowerPC JIT generates ba for branches between basic blocks

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 17 Jun 2004 10:34:02 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=60331

--- shadow/60331	2004-06-17 02:16:08.000000000 -0400
+++ shadow/60331.tmp.32292	2004-06-17 10:34:02.000000000 -0400
@@ -3,15 +3,15 @@
 Version: unspecified
 OS: Mac OS X 10.3
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
-Priority: Normal
+Priority: Major
 Component: misc
-AssignedTo: mono-bugs@ximian.com                            
+AssignedTo: lupus@ximian.com                            
 ReportedBy: pcbeard@mac.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: PowerPC JIT generates ba for branches between basic blocks
@@ -72,6 +72,19 @@
 
 
 ------- Additional Comments From pcbeard@mac.com  2004-06-17 02:15 -------
 This patch works by preferring relative branching to absolute branches, falling back on 
 thunks only if absolute branches won't work. This seems to catch all of the interesting 
 cases for ahead of time compilation.
+
+------- Additional Comments From miguel@ximian.com  2004-06-17 10:34 -------
+The problem with this approach is that it will only "mask" the problem,
+it seems fixed for *most* cases, but will fail silently and with 
+unexpected results afterwards.
+
+Imagine that the generated image exceeds the 32 meg range that the
+relative branch can use.
+
+I think the right approach would be to generate a relocation and
+handle that later.  
+
+