From: Daniel Jacobowitz <dan@codesourcery.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org, Mark Kettenis <kettenis@gnu.org>
Subject: Re: [PATCH,Testsuite] Add .align 2 for labels on Thumb
Date: Fri, 13 Aug 2010 13:28:00 -0000 [thread overview]
Message-ID: <20100813132811.GA20656@caradoc.them.org> (raw)
In-Reply-To: <20100812132153.GC24769@qiyaows>
On Thu, Aug 12, 2010 at 09:21:55PM +0800, Yao Qi wrote:
> On Thu, Aug 12, 2010 at 08:34:39AM -0400, Daniel Jacobowitz wrote:
> > On Thu, Aug 12, 2010 at 07:49:08PM +0800, Yao Qi wrote:
> > > In original test case, breakpoint is set on insn nop, while main
> > > branches to insn push, so breakpoint is not hit.
> > >
> > > 0000000a <func_loopfb_start>:
> > > a: bf00 nop
> > >
> > > 0000000c <func_loopfb>:
> > > c: b480 push {r7}
> > >
> > > I thought this nop is generated for alignment, so I added '.align 2'
> > > for label func_loopfb_start to force it to be equal to func_loopfb. I
> > > make a mistake here.
> > >
> > > I don't know why nop is generated on label func_loopfb_start, and once
> > > '.align 2' is added, nop is *not* generated, so failures go away by
> > > accident.
> >
> > Can you use func_loopfb instead of func_loopfb_start in the .S file?
> > Or, can you define func_loopfb_start as asm ("func_loopfb_start =
> > func_loopfb")?
> >
> > A third option is to address Mark's concern by using ".p2align 4"; I
> > believe that is 16-byte alignment on all platforms gas supports, and
> > this test probably requires gas in practice already.
>
> Yeah, update my patch by replacing '.align 2' with '.p2align 4'.
> Is that OK?
Looks fine to me. Mark, what do you think?
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2010-08-13 13:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 8:18 Yao Qi
2010-08-12 9:38 ` Mark Kettenis
2010-08-12 11:49 ` Yao Qi
2010-08-12 12:35 ` Daniel Jacobowitz
2010-08-12 12:45 ` Andreas Schwab
2010-08-12 13:22 ` Yao Qi
2010-08-13 13:28 ` Daniel Jacobowitz [this message]
2010-08-16 15:39 ` Yao Qi
2010-08-16 18:19 ` Mark Kettenis
2010-08-18 3:22 ` Yao Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100813132811.GA20656@caradoc.them.org \
--to=dan@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=kettenis@gnu.org \
--cc=yao@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox