[Bug target/83761] bfin: ICE: in require, at machmode.h:292

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

Andrew Pinski  changed:

   What|Removed |Added

 CC||joel at gcc dot gnu.org

--- Comment #6 from Andrew Pinski  ---
*** Bug 83090 has been marked as a duplicate of this bug. ***

[Bug target/83761] bfin: ICE: in require, at machmode.h:292

2018-01-11 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83761

rsandifo at gcc dot gnu.org  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from rsandifo at gcc dot gnu.org  
---
Thanks, patch applied.

[Bug target/83761] bfin: ICE: in require, at machmode.h:292

2018-01-11 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83761

--- Comment #4 from rsandifo at gcc dot gnu.org  
---
Author: rsandifo
Date: Thu Jan 11 09:54:26 2018
New Revision: 256525

URL: https://gcc.gnu.org/viewcvs?rev=256525&root=gcc&view=rev
Log:
Fix mode_for_size units in caller-save.c (PR83761)

The new opt_mode asserts triggered for replace_reg_with_saved_mem
because it was passing bytes rather than bits to mode_for_size.
Previously we ended up with a BLKmode register instead, but
presumably that didn't matter because this is "only" used for
debug insns.

2018-01-11  Richard Sandiford  

gcc/
PR rtl-optimization/83761
* caller-save.c (replace_reg_with_saved_mem): Pass bits rather
than bytes to mode_for_size.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/caller-save.c

[Bug target/83761] bfin: ICE: in require, at machmode.h:292

2018-01-11 Thread sebastian.hu...@embedded-brains.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83761

--- Comment #3 from Sebastian Huber  ---
Created attachment 43096
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43096&action=edit
Test case.

/home/sh/b-gcc-bfin/./gcc/xgcc -B/home/sh/b-gcc-bfin/./gcc/ -c sum_c8.i -O2 -g

[Bug target/83761] bfin: ICE: in require, at machmode.h:292

2018-01-10 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83761

--- Comment #2 from rsandifo at gcc dot gnu.org  
---
Could you attached preprocessed source?

[Bug target/83761] bfin: ICE: in require, at machmode.h:292

2018-01-10 Thread sebastian.hu...@embedded-brains.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83761

--- Comment #1 from Sebastian Huber  ---
Created attachment 43086
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43086&action=edit
Makefile to build the cross GCC

Use

make clone
make install/bin/bfin-rtems5-ld
make install/bin/bfin-rtems5-gcc

to build the cross GCC to reproduce the problem.