[Bug target/57636] cr16: ICE while building libgcc

2021-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57636

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |4.9.2
 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Andrew Pinski  ---
(In reply to Yaakov Selkowitz from comment #6)
> This is working in 4.9.2, so it seems that indeed fixed it.

So closing.

[Bug target/57636] cr16: ICE while building libgcc

2014-12-24 Thread yselkowi at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57636

--- Comment #6 from Yaakov Selkowitz  ---
This is working in 4.9.2, so it seems that indeed fixed it.


[Bug target/57636] cr16: ICE while building libgcc

2014-02-26 Thread jon at beniston dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57636

--- Comment #5 from Jon Beniston  ---
It's worth trying the fix posted for bug 57232.


[Bug target/57636] cr16: ICE while building libgcc

2013-11-01 Thread gcc at mag32 dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57636

--- Comment #4 from gcc at mag32 dot net ---
Created attachment 31134
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31134&action=edit
-save-temps file

This is the -save-temps file generated when I run the offending command.


[Bug target/57636] cr16: ICE while building libgcc

2013-11-01 Thread gcc at mag32 dot net
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);
   

[Bug target/57636] cr16: ICE while building libgcc

2013-07-08 Thread jon at beniston dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57636

Jon Beniston  changed:

   What|Removed |Added

 CC||jon at beniston dot com

--- Comment #2 from Jon Beniston  ---
This looks similar to bug 57232 which is the same ICE on the RX and LM32 ports.


[Bug target/57636] cr16: ICE while building libgcc

2013-06-18 Thread stefan at astylos dot dk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57636

--- Comment #1 from Stefan Sørensen  ---
Created attachment 30318
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30318&action=edit
Simple testcase that triggers the ICE when built with -Os -g