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);
                                                                               
                                                                         ^
../../../libgcc/unwind.inc: In function '_Unwind_Resume_or_Rethrow':
../../../libgcc/unwind.inc:261:164: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
   uw_install_context (&this_context, &cur_context);
                                                                               
                                                                               
    ^
../../../libgcc/unwind.inc:261:153: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
   uw_install_context (&this_context, &cur_context);
                                                                               
                                                                         ^
../../../libgcc/config/cr16/unwind-cr16.c: In function 'execute_cfa_program':
../../../libgcc/config/cr16/unwind-cr16.c:1142:30: warning: iteration 1ul
invokes undefined behavior [-Waggressive-loop-optimizations]
        fs->regs.reg[reg].how = REG_SAVED_OFFSET;
                              ^
../../../libgcc/config/cr16/unwind-cr16.c:1140:4: note: containing loop
    for (reg = 16; reg < 32; ++reg)
    ^
../../../libgcc/config/cr16/unwind-cr16.c: In function 'uw_frame_state_for':
../../../libgcc/config/cr16/unwind-cr16.c:1239:1: internal compiler error: in
variable_post_merge_new_vals, at var-tracking.c:4430
 }
 ^
0x90b62a variable_post_merge_new_vals
    ../../gcc/var-tracking.c:4428
0xa42137 htab_traverse_noresize
    ../../libiberty/hashtab.c:784
0x90fb49 dataflow_post_merge_adjust
    ../../gcc/var-tracking.c:4540
0x90fb49 vt_find_locations
    ../../gcc/var-tracking.c:6965
0x915164 variable_tracking_main_1
    ../../gcc/var-tracking.c:10166
0x915164 variable_tracking_main()
    ../../gcc/var-tracking.c:10212
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to