Bram Moolenaar wrote: > Matthew Luckie wrote: > >> When I start vim 7.1.175 on my alpha running freebsd, I see a bunch of >> unaligned accesses: >> >> pid 74601 (vim): unaligned access: va=0x1202898cd pc=0x120057068 >> ra=0x120057044 op=ldl >> pid 74601 (vim): unaligned access: va=0x1202898cd pc=0x12005708c >> ra=0x12005707c op=ldl >> pid 74601 (vim): unaligned access: va=0x1202d406d pc=0x120057068 >> ra=0x120057044 op=ldl >> pid 74601 (vim): unaligned access: va=0x1202d406d pc=0x12005708c >> ra=0x12005707c op=ldl >> pid 74601 (vim): unaligned access: va=0x1202d428d pc=0x120057068 >> ra=0x120057044 op=ldl >> pid 74601 (vim): unaligned access: va=0x1202d428d pc=0x12005708c >> ra=0x12005707c op=ldl >> >> The following patch stops these messages. To be honest, I'm not sure >> I've got this right, as all I've done is expand the HI2DI a little. The >> goal I had with this patch was to be able to inspect the di value in gdb >> to see about its alignment. But I found that the simple expansion also >> stopped the unaligned accesses. >> >> Thoughts? > > What happens with the accesses is the same, so I guess it must be a > compiler problem that you work around.
I'm using gcc 3.4.4 (freebsd 6.1) I had figured something along the lines of a compiler problem but wasn't going to jump to that conclusion without running it past vim-dev first. > Did you try with and without optimizer? When compiling for gdb you may > have also disabled the optimizer. I built with -O -g > I'll gladly include the change in Vim, invoking HI2DI() twice wasn't > nice anyway. Thanks! Matthew --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
