https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61901

            Bug ID: 61901
           Summary: cc1 sanitizer runtime error in i386.c
                    classify_argument
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com

After building gcc with -fsanitize=undefined, analyzing the gcc testsuite with
the "sanitized" cc1 I got runtime error messages
"../../gcc-4.9.1/gcc/config/i386/i386.c:6556:60: runtime error: 
load of value 32767, which is not a valid value for type 'x86_64_reg_class'"

The instruction at i386.c:6556 is
"classes[i] = merge_classes (subclasses[i], classes[i]);"
This is in classify_argument.
The reproducers are pr20020-1.c/pr20020-2.c/pr42025-2.c

Reply via email to