An even smaller testcase

Changing INT_MIN to LONG_LONG_MIN in the conditional fixes the build.
(using it this way is arguably a bug in the codebase)


#include <limits.h>

void small(char *dst)

{
        long long y;

        while (1) {
                y = (long long)(*dst) << 8;
                if (y < INT_MIN) {
                        *((int *) dst) = 0;
                } else {
                        *((int *) dst) = 1;
                }
        }
}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/689887

Title:
  armel ICE gcc  4.5

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to