* [PATCH] Fix layout in aarch64-tdep.c
@ 2013-02-05 12:58 Marcus Shawcroft
2013-02-05 13:04 ` Pierre Muller
2013-02-05 13:06 ` Pedro Alves
0 siblings, 2 replies; 3+ messages in thread
From: Marcus Shawcroft @ 2013-02-05 12:58 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 369 bytes --]
This patch fixes the gripe:
0a1,2
> gdb/aarch64-tdep.c:776: code: OP eol: Do not use &&, or || at the end
of a line
gdb/aarch64-tdep.c:776: pv_add_constant
(regs[rn], imm)) ||
OK?
/Marcus
ChangeLog:
* aarch64-tdep.c (aarch64_analyze_prologue): Refactor if statement
with trailing || operator.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-aarch64-tdep-layout.diff --]
[-- Type: text/x-patch; name=0001-aarch64-tdep-layout.diff, Size: 607 bytes --]
diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index ac4ed17..ebc78d6 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -773,8 +773,10 @@ aarch64_analyze_prologue (struct gdbarch *gdbarch,
(perhaps because rn is not known) then we should abandon
further prologue analysis. */
if (pv_area_store_would_trash (stack,
- pv_add_constant (regs[rn], imm)) ||
- pv_area_store_would_trash (stack,
+ pv_add_constant (regs[rn], imm)))
+ break;
+
+ if (pv_area_store_would_trash (stack,
pv_add_constant (regs[rn], imm + 8)))
break;
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] Fix layout in aarch64-tdep.c
2013-02-05 12:58 [PATCH] Fix layout in aarch64-tdep.c Marcus Shawcroft
@ 2013-02-05 13:04 ` Pierre Muller
2013-02-05 13:06 ` Pedro Alves
1 sibling, 0 replies; 3+ messages in thread
From: Pierre Muller @ 2013-02-05 13:04 UTC (permalink / raw)
To: 'Marcus Shawcroft', gdb-patches
All changes that simply remove the additional entry in the ARI
web page, and generated a "New ARI warning" message,
can be checked in as obvious.
Thus, please do commit this fix,
the best would be to mention ARI rule in the ChangeLog entry.
Something like
* aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
Refactor if statement to avoid trailing || operator.
Pierre Muller
as ARI maintainer.
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Marcus Shawcroft
> Envoyé : mardi 5 février 2013 13:58
> À : gdb-patches@sourceware.org
> Objet : [PATCH] Fix layout in aarch64-tdep.c
>
> This patch fixes the gripe:
>
> 0a1,2
> > gdb/aarch64-tdep.c:776: code: OP eol: Do not use &&, or || at the end
> of a line
> gdb/aarch64-tdep.c:776: pv_add_constant
> (regs[rn], imm)) ||
>
>
> OK?
>
> /Marcus
>
> ChangeLog:
>
>
> * aarch64-tdep.c (aarch64_analyze_prologue): Refactor if statement
> with trailing || operator.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix layout in aarch64-tdep.c
2013-02-05 12:58 [PATCH] Fix layout in aarch64-tdep.c Marcus Shawcroft
2013-02-05 13:04 ` Pierre Muller
@ 2013-02-05 13:06 ` Pedro Alves
1 sibling, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2013-02-05 13:06 UTC (permalink / raw)
To: Marcus Shawcroft; +Cc: gdb-patches
On 02/05/2013 12:57 PM, Marcus Shawcroft wrote:
> This patch fixes the gripe:
>
> 0a1,2
>> gdb/aarch64-tdep.c:776: code: OP eol: Do not use &&, or || at the end of a line
> gdb/aarch64-tdep.c:776: pv_add_constant (regs[rn], imm)) ||
>
>
> OK?
Of course. Thanks.
--
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-05 13:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-05 12:58 [PATCH] Fix layout in aarch64-tdep.c Marcus Shawcroft
2013-02-05 13:04 ` Pierre Muller
2013-02-05 13:06 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox