[PATCH] Fix undefined behavior in h8300 backend

2015-09-21 Thread Jeff Law
This was found when building all configurations using the trunk compiler. A run-of-the-mill problem with left shifting -1. To make sure I didn't muck anything up badly, I went back to Kazu's introduction of this pattern (2003), took his pseudo-code and turned it into a trivial h8300

Fwd: [PATCH] Fix undefined behavior in h8300 backend

2015-09-21 Thread Jeff Law
With the patch this time... Forwarded Message Subject: [PATCH] Fix undefined behavior in h8300 backend Date: Mon, 21 Sep 2015 11:10:04 -0600 From: Jeff Law <l...@redhat.com> To: gcc-patches@gcc.gnu.org This was found when building all configurations using the trunk co