* [PATCH] Typofixes and a trivial change
@ 2014-04-25 14:57 Patrick Palka
2014-04-25 15:12 ` Patrick Palka
0 siblings, 1 reply; 6+ messages in thread
From: Patrick Palka @ 2014-04-25 14:57 UTC (permalink / raw)
To: gcc-patches; +Cc: Patrick Palka
Hi,
This patch fixes a couple of typos in tree-vrp.c and one in
invoke.texi. The patch also reorders the operands of an && condition in
infer_nonnull_range() under the assumption that operand_equal_p() is
much more costly than a simple TREE_TYPE() equality test.
Bootstrapped and regtested on x86_64-unknown-linux-gnu.
Cheers,
Patrick
---
gcc/doc/invoke.texi | 2 +-
gcc/gimple.c | 4 ++--
gcc/tree-vrp.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 8004da8..d6580e4 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -4729,7 +4729,7 @@ Warn if a global function is defined without a previous declaration.
Do so even if the definition itself provides a prototype.
Use this option to detect global functions that are not declared in
header files. In C, no warnings are issued for functions with previous
-non-prototype declarations; use @option{-Wmissing-prototype} to detect
+non-prototype declarations; use @option{-Wmissing-prototypes} to detect
missing prototypes. In C++, no warnings are issued for function templates,
or for inline functions, or for functions in anonymous namespaces.
diff --git a/gcc/gimple.c b/gcc/gimple.c
index 2a278e4..e60da00 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -2565,8 +2565,8 @@ infer_nonnull_range (gimple stmt, tree op, bool dereference, bool attribute)
{
for (unsigned int i = 0; i < gimple_call_num_args (stmt); i++)
{
- if (operand_equal_p (op, gimple_call_arg (stmt, i), 0)
- && POINTER_TYPE_P (TREE_TYPE (gimple_call_arg (stmt, i))))
+ if (POINTER_TYPE_P (TREE_TYPE (gimple_call_arg (stmt, i)))
+ && operand_equal_p (op, gimple_call_arg (stmt, i), 0))
return true;
}
return false;
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 8a31e59..94d7419 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -4478,7 +4478,7 @@ debug_all_value_ranges (void)
/* Given a COND_EXPR COND of the form 'V OP W', and an SSA name V,
create a new SSA name N and return the assertion assignment
- 'V = ASSERT_EXPR <V, V OP W>'. */
+ 'N = ASSERT_EXPR <V, V OP W>'. */
static gimple
build_assert_expr_for (tree cond, tree v)
@@ -6159,7 +6159,7 @@ process_assert_insertions (void)
}
else
{
- y = ASSERT_EXPR <y, x <= y>
+ y = ASSERT_EXPR <y, x >= y>
x = y + 3
}
--
1.9.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Typofixes and a trivial change
2014-04-25 14:57 [PATCH] Typofixes and a trivial change Patrick Palka
@ 2014-04-25 15:12 ` Patrick Palka
2014-04-28 9:01 ` Richard Biener
2014-05-09 20:18 ` Jeff Law
0 siblings, 2 replies; 6+ messages in thread
From: Patrick Palka @ 2014-04-25 15:12 UTC (permalink / raw)
To: GCC Patches
I forgot the ChangeLog entry:
2014-04-25 Patrick Palka <patrick@parcs.ath.cx>
* doc/invoke.texi: Fix typo.
* tree-vrp.c: Fix typos.
* gimple.c (infer_nonnull_range): Reorder operands of an &&
condition.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Typofixes and a trivial change
2014-04-25 15:12 ` Patrick Palka
@ 2014-04-28 9:01 ` Richard Biener
2014-04-28 12:45 ` Patrick Palka
2014-05-09 20:18 ` Jeff Law
1 sibling, 1 reply; 6+ messages in thread
From: Richard Biener @ 2014-04-28 9:01 UTC (permalink / raw)
To: Patrick Palka; +Cc: GCC Patches
On Fri, Apr 25, 2014 at 5:03 PM, Patrick Palka <patrick@parcs.ath.cx> wrote:
> I forgot the ChangeLog entry:
Ok.
Thanks,
Richard.
> 2014-04-25 Patrick Palka <patrick@parcs.ath.cx>
>
> * doc/invoke.texi: Fix typo.
> * tree-vrp.c: Fix typos.
> * gimple.c (infer_nonnull_range): Reorder operands of an &&
> condition.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Typofixes and a trivial change
2014-04-28 9:01 ` Richard Biener
@ 2014-04-28 12:45 ` Patrick Palka
2014-04-29 9:35 ` Richard Biener
0 siblings, 1 reply; 6+ messages in thread
From: Patrick Palka @ 2014-04-28 12:45 UTC (permalink / raw)
To: Richard Biener; +Cc: GCC Patches
On Mon, Apr 28, 2014 at 4:57 AM, Richard Biener
<richard.guenther@gmail.com> wrote:
> On Fri, Apr 25, 2014 at 5:03 PM, Patrick Palka <patrick@parcs.ath.cx> wrote:
>> I forgot the ChangeLog entry:
>
> Ok.
>
> Thanks,
> Richard.
Thanks for reviewing. May someone please commit this for me? Thanks
in advance.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Typofixes and a trivial change
2014-04-28 12:45 ` Patrick Palka
@ 2014-04-29 9:35 ` Richard Biener
0 siblings, 0 replies; 6+ messages in thread
From: Richard Biener @ 2014-04-29 9:35 UTC (permalink / raw)
To: Patrick Palka; +Cc: GCC Patches
On Mon, Apr 28, 2014 at 2:44 PM, Patrick Palka <patrick@parcs.ath.cx> wrote:
> On Mon, Apr 28, 2014 at 4:57 AM, Richard Biener
> <richard.guenther@gmail.com> wrote:
>> On Fri, Apr 25, 2014 at 5:03 PM, Patrick Palka <patrick@parcs.ath.cx> wrote:
>>> I forgot the ChangeLog entry:
>>
>> Ok.
>>
>> Thanks,
>> Richard.
>
> Thanks for reviewing. May someone please commit this for me? Thanks
> in advance.
Done.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Typofixes and a trivial change
2014-04-25 15:12 ` Patrick Palka
2014-04-28 9:01 ` Richard Biener
@ 2014-05-09 20:18 ` Jeff Law
1 sibling, 0 replies; 6+ messages in thread
From: Jeff Law @ 2014-05-09 20:18 UTC (permalink / raw)
To: Patrick Palka, GCC Patches
On 04/25/14 09:03, Patrick Palka wrote:
> I forgot the ChangeLog entry:
>
> 2014-04-25 Patrick Palka <patrick@parcs.ath.cx>
>
> * doc/invoke.texi: Fix typo.
> * tree-vrp.c: Fix typos.
> * gimple.c (infer_nonnull_range): Reorder operands of an &&
> condition.
This is fine. Please install if you haven't done so already.
jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-05-09 20:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-25 14:57 [PATCH] Typofixes and a trivial change Patrick Palka
2014-04-25 15:12 ` Patrick Palka
2014-04-28 9:01 ` Richard Biener
2014-04-28 12:45 ` Patrick Palka
2014-04-29 9:35 ` Richard Biener
2014-05-09 20:18 ` Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).