http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57636
gcc at mag32 dot net changed:
What|Removed |Added
CC||gcc at mag32 dot net
--- Comment #3 from gcc at mag32 dot net ---
I am seeing a similar issue when building target CR16 with GCC 4.8.2. Here are
some details:
Exact version of GCC? 4.8.2
System type? ArchLinux (Linux arch-mago 3.11.6-1-ARCH #1 SMP PREEMPT Fri Oct 18
23:22:36 CEST 2013 x86_64 GNU/Linux)
The GCC used (xgcc) is a cross-compiled version for the CR16 target. This issue
triggers when I'm trying to build GCC 4.8.2 for CR16. My host GCC is also
4.8.2. The configure flags used are:
../configure --prefix=/usr/lib/cr16-unknown-elf --bindir=/usr/bin \
--with-sysroot=/usr/lib/cr16-unknown-elf \
--target=/usr/lib/cr16-unknown-elf --without-headers --enable-languages=c \
--with-newlib --disable-libssp --disable-threads --disable-nls \
--disable-shared --disable-multilib --disable-decimal-float \
--disable-libgomp --disable-libmudflap
Commandline used to trigger the bug? (This gets executed by the GCC makefile)
magnus@arch-mago:~/Desktop/archpkgs/cr16-elf-gcc-base/src/gcc-4.8.2/build/cr16-unknown-elf/libgcc#
/home/magnus/Desktop/archpkgs/cr16-elf-gcc-base/src/gcc-4.8.2/build/./gcc/xgcc
-B/home/magnus/Desktop/archpkgs/cr16-elf-gcc-base/src/gcc-4.8.2/build/./gcc/
-B/usr/lib/cr16-unknown-elf/cr16-unknown-elf/bin/
-B/usr/lib/cr16-unknown-elf/cr16-unknown-elf/lib/ -isystem
/usr/lib/cr16-unknown-elf/cr16-unknown-elf/include -isystem
/usr/lib/cr16-unknown-elf/cr16-unknown-elf/sys-include-g -O2 -O2 -g -O2
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
-Dinhibit_libc -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/.
-I../../../libgcc/../gcc -I../../../libgcc/../include -DHAVE_CC_TLS
-DUSE_EMUTLS -o unwind-cr16.o -MT unwind-cr16.o -MD -MP -MF unwind-cr16.dep
-fexceptions -c ../../../libgcc/config/cr16/unwind-cr16.c -fvisibility=hidden
-DHIDE_EXPORTS
What is the compiler output?
../../../libgcc/config/cr16/unwind-cr16.c: In function 'uw_update_context':
../../../libgcc/config/cr16/unwind-cr16.c:1468:28: warning: cast from pointer
to integer of different size [-Wpointer-to-int-cast]
context->ra = (void*)( ( (unsigned)context->ra ) << 1 ) ;
^
../../../libgcc/config/cr16/unwind-cr16.c:1468:17: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
context->ra = (void*)( ( (unsigned)context->ra ) << 1 ) ;
^
In file included from ../../../libgcc/config/cr16/unwind-cr16.c:1661:0:
../../../libgcc/unwind.inc: In function '_Unwind_RaiseException':
../../../libgcc/unwind.inc:135:164: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
uw_install_context (&this_context, &cur_context);
^
../../../libgcc/unwind.inc:135:153: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
uw_install_context (&this_context, &cur_context);
^
In file included from ../../../libgcc/config/cr16/unwind-cr16.c:1661:0:
../../../libgcc/unwind.inc: In function '_Unwind_ForcedUnwind':
../../../libgcc/unwind.inc:211:164: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
uw_install_context (&this_context, &cur_context);
^
../../../libgcc/unwind.inc:211:153: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
uw_install_context (&this_context, &cur_context);
^
../../../libgcc/unwind.inc: In function '_Unwind_Resume':
../../../libgcc/unwind.inc:236:164: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
uw_install_context (&this_context, &cur_context);
^
../../../libgcc/unwind.inc:236:153: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
uw_install_context (&this_context, &cur_context);