This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/55165] New: Build failure for x86_64-w64-mingw32
- From: "vanboxem.ruben at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Nov 2012 14:26:26 +0000
- Subject: [Bug other/55165] New: Build failure for x86_64-w64-mingw32
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55165
Bug #: 55165
Summary: Build failure for x86_64-w64-mingw32
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: other
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: vanboxem.ruben@gmail.com
Building GCC master on 1 November 2012 for build=x86_64-gnu-linux
host=x86_64-w64-mingw32 results in this error during the make all-target-libgcc
step:
/home/ruben/mingw-w64/src/gcc/gcc/stmt.c: In function 'void
compute_cases_per_edge(gimple)':
/home/ruben/mingw-w64/src/gcc/gcc/stmt.c:2064:54: error: cast from 'void*' to
'long int' loses precision [-fpermissive]
case_edge->aux = (void *)((long)(case_edge->aux) + 1);
^
/home/ruben/mingw-w64/src/gcc/gcc/stmt.c:2064:59: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
case_edge->aux = (void *)((long)(case_edge->aux) + 1);
^
/home/ruben/mingw-w64/src/gcc/gcc/stmt.c: In function 'void
expand_case(gimple)':
/home/ruben/mingw-w64/src/gcc/gcc/stmt.c:2179:57: error: cast from 'void*' to
'long int' loses precision [-fpermissive]
case_edge->probability / (long)(case_edge->aux),
^
This is due to the fact that a pointer is not an int.