This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/33666] New: [4.3 Regression] Type verification failure with pointer to long long conversion


The following fails with 32bit pointers and 64bit long long if the compiler is
built with type-checking enabled.

void __lock_get_list(void *dp)
{
  if (((unsigned int)dp + 1) & ~1ULL)
    ;
}

The original trees look ok:

  if (((long long unsigned int) (dp + 1) & 0x0fffffffffffffffe) != 0)
    {
      (void) 0;
    }


-- 
           Summary: [4.3 Regression] Type verification failure with pointer
                    to long long conversion
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, ice-checking
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org
GCC target triplet: i686-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33666


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]