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.
Did you try with and without optimizer? When compiling for gdb you may
have also disabled the optimizer.
I'll gladly include the change in Vim, invoking HI2DI() twice wasn't
nice anyway.
--
There are 2 kinds of people in my world: those who know Unix, Perl, Vim, GNU,
Linux, etc, and those who know COBOL. It gets very difficult for me at
parties, not knowing which group to socialise with :-)
Sitaram Chamarty
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---