Message ID | 1445376433-14658-10-git-send-email-rth@redhat.com |
---|---|
State | New |
Headers | show |
On 10/20/2015 03:27 PM, Richard Henderson wrote: > --- > gcc/tree-ssa-address.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I think this change is fine. Needs a testcase though. I'll also note you need ChangeLogs for all these patches. I know you know that, so it's just a reminder that they're often helpful for reviewers. Jeff
On 10/21/2015 03:55 AM, Jeff Law wrote: > On 10/20/2015 03:27 PM, Richard Henderson wrote: >> --- >> gcc/tree-ssa-address.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > I think this change is fine. Needs a testcase though. > > I'll also note you need ChangeLogs for all these patches. I know you know > that, so it's just a reminder that they're often helpful for reviewers. I wrote them for v1, but then failed to copy them over into the messages for v2. Sorry about that. Certainly they'll be present in the actual commit. r~
diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c index 042f9c9..bd10ae7 100644 --- a/gcc/tree-ssa-address.c +++ b/gcc/tree-ssa-address.c @@ -388,7 +388,7 @@ create_mem_ref_raw (tree type, tree alias_ptr_type, struct mem_address *addr, } else { - base = build_int_cst (ptr_type_node, 0); + base = build_int_cst (build_pointer_type (type), 0); index2 = addr->base; }