[LLVMbugs] [Bug 18292] New: Incorrect intptr_t type on aarch64 (cross compiling from x86_64)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 20 09:02:01 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18292
Bug ID: 18292
Summary: Incorrect intptr_t type on aarch64 (cross compiling
from x86_64)
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: simon.hosie at arm.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11758
--> http://llvm.org/bugs/attachment.cgi?id=11758&action=edit
testcase
The type eventually comes from system /usr/include/stdint.h, but the header
that led me there belongs to Clang, so I _assume_ this is a Clang issue, and
may be a general problem with cross-compilation.
intptr_t and uintptr_t come out as 32-bit types when cross-compiling for
aarch64, on my system.
intptr.c attached. Command line:
% clang --target=aarch64-linux-gnu -c intptr.c
output:
intptr.c:9:9: warning: cast to 'void *' from smaller integer type 'int'
[-Wint-to-void-pointer-cast]
y = (void *)((intptr_t)&x ^ 0x5555aaaa);
^
1 warning generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131220/41d6198a/attachment.html>
More information about the llvm-bugs
mailing list