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: [email protected]
ReportedBy: [email protected]
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.