[LLVMbugs] [Bug 394] NEW: [llvm-gcc] still some 64-bit size_t offsets generated

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jul 2 17:54:11 PDT 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=394

           Summary: [llvm-gcc] still some 64-bit size_t offsets generated
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: markus at oberhumer.com


There still seem to be some cases where a long-long offset is generated for
array access on a i386. Please see this example and the translated file.
(Somewhat unrelated, where do all the "const" go ?)

static const char version[] = "1.00";
const char *get_version(void) {
    return version;
}
const char *get_version1(void) {
    return version + 1;
}


static signed char ltmp_0_22[5] = "1.00";
signed char *get_version(void) {
  return (&(ltmp_0_22[0ll]));
}
signed char *get_version1(void) {
  return (&(ltmp_0_22[1ll]));
}



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list