I did a little more experimenting and have simplified the reproduction. The 
following change makes the problem go away:
##########################################
diff --git a/cpu/omap3/sys_info.c b/cpu/omap3/sys_info.c
index 0d592e9..4a172a8 100644
--- a/cpu/omap3/sys_info.c
+++ b/cpu/omap3/sys_info.c
@@ -246,6 +246,8 @@ u32 get_sysboot_value(void)
  */
 void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel)
 {
+       static int andy_var;
+       andy_var++;
        if (osc_clk == S38_4M)
                *sys_clkin_sel = 4;
        else if (osc_clk == S26M)
##########################################

I don't really have any experience looking at dis assemblies, but
nothing seems obviously wrong to me.

I've attached the two dis assemblies for reference.

** Attachment added: "get_sys_clkin_sel with "andy_var++ commented out""
   
https://bugs.launchpad.net/gcc-linaro/+bug/813018/+attachment/2223923/+files/bad.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/813018

Title:
  gcc 4.5 breaks overo in latest x-loader (1.5.1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc-linaro/+bug/813018/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to