public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/19051] New: m6811-elf-gcc ICE
@ 2004-12-17  8:34 gcc-bugzilla at gcc dot gnu dot org
  2004-12-17 11:04 ` [Bug target/19051] " namsh at kldp dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-12-17  8:34 UTC (permalink / raw)
  To: gcc-bugs


gcc ICE when I did:
===================
$ m6811-elf-g++ -Os -mshort -msoft-reg-count=32 -m68hc12 -c n.cpp

The ICE message is:
===================
n.cpp: In function 'void getNewTableEntry()':
n.cpp:49: error: unable to find a register to spill in class 'D_REGS'
n.cpp:49: error: this is the insn:
(insn:HI 60 59 62 9 (set (reg:HI 59 [ D.1552 ])
        (mult:HI (sign_extend:HI (reg:QI 63))
            (sign_extend:HI (reg/v:QI 14 *_.d1 [orig:55 newIdx ] [55])))) 70 {mulqihi3} (insn_list:REG_DEP_TRUE 59 (nil))
    (expr_list:REG_DEAD (reg/v:QI 14 *_.d1 [orig:55 newIdx ] [55])
        (expr_list:REG_DEAD (reg:QI 63)
            (expr_list:REG_EQUAL (mult:HI (sign_extend:HI (reg/v:QI 14 *_.d1 [orig:55 newIdx ] [55]))
                    (const_int 6 [0x6]))
                (nil)))))
n.cpp:49: internal compiler error: in spill_failure, at reload1.c:1873
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


The m6811-elf-g++ 3.4.4 also generates same ICE.
$ ./m6811-elf-g++ --version
m6811-elf-g++ (GCC) 3.4.4 20041108 (prerelease)

Environment:
System: Linux namsh 2.6.10-rc3n2 #6 Tue Dec 14 15:50:33 KST 2004 i686 athlon i386 GNU/Linux
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: m6811-unknown-none
configured with: ../configure --target=m6811-elf --prefix=/usr/GNUHCS --program-prefix=m6811-elf- --with-gnu-ld --with-gnu-as --disable-shared --enable-languages=c,c++ --without-headers --with-newlib --disable-nls --disable-threads

How-To-Repeat:
Compile the code below with compiler option I described:

// n.cpp
extern signed char g_oldVal, g_newVal;
extern signed char g_base;
extern unsigned char tableA[], tableB[];
extern unsigned char g_AAval, g_APval;
extern unsigned char g_BAval, g_BPval;
extern unsigned int g_ARval, g_ABval;
extern unsigned int g_BRval, g_BBval;

typedef struct {
    unsigned int r;
    unsigned int b;
    unsigned char a;
    unsigned char p;
} TABLEENTRY;

void getNewTableEntry()
{
    signed char oldIdx = g_oldVal, newIdx = g_newVal;
    const signed char maxVal = ((44 * 2) + 6 * 2);

    oldIdx += g_base;
    newIdx += g_base;

    if (oldIdx < 0)
	oldIdx = 0;
    else if (oldIdx > maxVal)
	oldIdx = maxVal;
    if (newIdx < 0)
	newIdx = 0;
    else if (newIdx > maxVal)
	newIdx = maxVal;

    if (oldIdx != newIdx)
    {
	TABLEENTRY *tablePtr;

	tablePtr = (TABLEENTRY *) tableA + newIdx;
	g_ARval = tablePtr->r;
	g_ABval = tablePtr->b;
	g_AAval = tablePtr->a;
	g_APval = tablePtr->p;

	tablePtr = (TABLEENTRY *) tableB + newIdx;
	g_BRval = tablePtr->r;
	g_BBval = tablePtr->b;
	g_BAval = tablePtr->a;
	g_BPval = tablePtr->p;
    }
}
------- Additional Comments From namsh at kldp dot org  2004-12-17 08:34 -------
Fix:
The work-around is:
1. Remove one of the compiler options: -Os or -msoft-reg-count=32
2. Use 'int' instead of 'signed char' for oldIdx/newIdx.

-- 
           Summary: m6811-elf-gcc ICE
           Product: gcc
           Version: 0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: namsh at kldp dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: m6811-unknown-none


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/19051] m6811-elf-gcc ICE
  2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
@ 2004-12-17 11:04 ` namsh at kldp dot org
  2004-12-17 12:42 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: namsh at kldp dot org @ 2004-12-17 11:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From namsh at kldp dot org  2004-12-17 11:04 -------
I used m6811-elf-gccbug to report this bug. And I noticed
the gcc version is disappeared.
m6811-elf-gcc shows:
>Release:	4.0.0 20041216 (experimental)

Why it changed to 0.0? Because of extra version string
like "20041216 (experimental)"?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.0                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/19051] m6811-elf-gcc ICE
  2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
  2004-12-17 11:04 ` [Bug target/19051] " namsh at kldp dot org
@ 2004-12-17 12:42 ` pinskia at gcc dot gnu dot org
  2004-12-18  3:51 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-17 12:42 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/19051] m6811-elf-gcc ICE
  2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
  2004-12-17 11:04 ` [Bug target/19051] " namsh at kldp dot org
  2004-12-17 12:42 ` pinskia at gcc dot gnu dot org
@ 2004-12-18  3:51 ` pinskia at gcc dot gnu dot org
  2005-05-08 17:03 ` ciceron at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-18  3:51 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.4 4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/19051] m6811-elf-gcc ICE
  2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-12-18  3:51 ` pinskia at gcc dot gnu dot org
@ 2005-05-08 17:03 ` ciceron at gcc dot gnu dot org
  2005-05-08 17:42 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ciceron at gcc dot gnu dot org @ 2005-05-08 17:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ciceron at gcc dot gnu dot org  2005-05-08 17:03 -------
Mine.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ciceron at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/19051] m6811-elf-gcc ICE
  2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-05-08 17:03 ` ciceron at gcc dot gnu dot org
@ 2005-05-08 17:42 ` cvs-commit at gcc dot gnu dot org
  2005-05-08 17:48 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-08 17:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-08 17:42 -------
Subject: Bug 19051

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	ciceron@gcc.gnu.org	2005-05-08 17:42:45

Modified files:
	gcc            : ChangeLog 
	gcc/config/m68hc11: m68hc11.md 

Log message:
	PR target/19051
	* config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for operand
	1 and fix constraints.
	("mulqihi3"): Use general_operand for operand 2.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.856&r2=2.2326.2.857
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m68hc11/m68hc11.md.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.54.10.7&r2=1.54.10.8



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/19051] m6811-elf-gcc ICE
  2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-05-08 17:42 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-08 17:48 ` cvs-commit at gcc dot gnu dot org
  2005-05-08 17:52 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-08 17:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-08 17:48 -------
Subject: Bug 19051

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	ciceron@gcc.gnu.org	2005-05-08 17:48:20

Modified files:
	gcc            : ChangeLog 
	gcc/config/m68hc11: m68hc11.md 

Log message:
	PR target/19051
	* config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for operand
	1 and fix constraints.
	("mulqihi3"): Use general_operand for operand 2.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.229&r2=2.7592.2.230
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m68hc11/m68hc11.md.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.67&r2=1.67.28.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/19051] m6811-elf-gcc ICE
  2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-05-08 17:48 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-08 17:52 ` cvs-commit at gcc dot gnu dot org
  2005-05-08 17:53 ` ciceron at gcc dot gnu dot org
  2005-05-08 17:59 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-08 17:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-08 17:52 -------
Subject: Bug 19051

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ciceron@gcc.gnu.org	2005-05-08 17:52:23

Modified files:
	gcc            : ChangeLog 
	gcc/config/m68hc11: m68hc11.md 

Log message:
	PR target/19051
	* config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for operand
	1 and fix constraints.
	("mulqihi3"): Use general_operand for operand 2.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8658&r2=2.8659
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m68hc11/m68hc11.md.diff?cvsroot=gcc&r1=1.68&r2=1.69



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/19051] m6811-elf-gcc ICE
  2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-05-08 17:52 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-08 17:53 ` ciceron at gcc dot gnu dot org
  2005-05-08 17:59 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: ciceron at gcc dot gnu dot org @ 2005-05-08 17:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ciceron at gcc dot gnu dot org  2005-05-08 17:53 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/19051] m6811-elf-gcc ICE
  2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-05-08 17:53 ` ciceron at gcc dot gnu dot org
@ 2005-05-08 17:59 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-08 17:59 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.4.4 4.0.0                 |3.4.3 4.0.0
      Known to work|                            |3.4.4 4.0.1 4.1.0
   Target Milestone|---                         |3.4.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19051


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-05-08 17:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17  8:34 [Bug target/19051] New: m6811-elf-gcc ICE gcc-bugzilla at gcc dot gnu dot org
2004-12-17 11:04 ` [Bug target/19051] " namsh at kldp dot org
2004-12-17 12:42 ` pinskia at gcc dot gnu dot org
2004-12-18  3:51 ` pinskia at gcc dot gnu dot org
2005-05-08 17:03 ` ciceron at gcc dot gnu dot org
2005-05-08 17:42 ` cvs-commit at gcc dot gnu dot org
2005-05-08 17:48 ` cvs-commit at gcc dot gnu dot org
2005-05-08 17:52 ` cvs-commit at gcc dot gnu dot org
2005-05-08 17:53 ` ciceron at gcc dot gnu dot org
2005-05-08 17:59 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).