bugGNU Development Chain for 68HC11/68HC12 - Bugs: bug #3671, logicalhi3_zexthi_ashift8 compiler...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3671: logicalhi3_zexthi_ashift8 compiler error

Submitted by:  None
Submitted on:  Sun 18 May 2003 09:10:46 AM UTC  
 
Category: gccSeverity: 3 - Normal
Item Group: sw-bugStatus: Fixed
Privacy: PublicAssigned to: Stephane Carrez <ciceron>
Open/Closed: Closed

Sat 28 Feb 2004 01:09:40 PM UTC, comment #1:

Fixed in release 2.90.

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
Sun 18 May 2003 09:10:46 AM UTC, original submission:

When you compile:

extern volatile unsigned char _io_ports[];

int main(void)
{
unsigned short x;
int i = 0;

x = (_io_ports[0x00] << 8) | _io_ports[0x00];

if (x >> i)
{
_io_ports[0x00] = 0;
}

return 0;
}

with the following options:

m6811-elf-gcc -S -Os -m68hc12 bug.c -mshort

the compiler fails:
bug.c: In function `main':
bug.c:16: Unable to find a register to spill in class `D_OR_S_REGS'.
bug.c:16: This is the insn:
(insn 24 23 29 (set (reg/v:HI 0 x [53])
(ior:HI (zero_extend:HI (reg:QI 0 x [61]))
(ashift:HI (subreg:HI (reg:QI 2 y [57]) 0)
(const_int 8 [0x8])))) 92 {*logicalhi3_zexthi_ashift8} (insn_list 15 (insn_list 22 (nil)))
(expr_list:REG_DEAD (reg:QI 2 y [57])
(expr_list:REG_DEAD (reg:QI 0 x [61])
(nil))))
bug.c:16: confused by earlier errors, bailing out

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 28 Feb 2004 01:09:40 PM UTCciceronStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Sun 18 May 2003 09:44:00 AM UTCciceronAssigned toNone=>NA

Back to the top


Powered by Savane 3.1-cleanup1