Message ID | 560AC3E5.7090603@redhat.com |
---|---|
State | New |
Headers | show |
On 09/29/2015 10:01 AM, Jeff Law wrote: > The microblaze port as a "*p++" statement which computes a result that is never used (the memory > result). This removes the spurious memory dereference and the unused value warning. > > Tested by building the microblaze targets in config-all.mk. > > Installed on the trunk. OK.
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 13e930a..8d55423 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2015-09-29 Jeff Law <law@redhat.com> + * config/microblaze/microblaze.c (microblaze_version_to_int): Remove + computation of unused value. + * config/pdp11/pdp11.c (pdp11_branch_cost): New function. * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than inline macro expansion. diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index 6e7745a..ebcf65a 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -1640,7 +1640,7 @@ microblaze_version_to_int (const char *version) { /* Looking for major */ if (*p == '.') { - *v++; + v++; } else {