bugGNU Development Chain for 68HC11/68HC12 - Bugs: bug #18808, internal compiler error in...

 
 

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

bug #18808: internal compiler error in instantiate_virtual_regs_lossage

Submitted by:  Sean D Epagnier <sdepagnier>
Submitted on:  Tue 16 Jan 2007 09:43:52 PM UTC  
 
Category: gccSeverity: 3 - Normal
Item Group: sw-bugStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Mon 22 Jan 2007 05:24:05 PM UTC, comment #2:

I think I have fixed the problem by changing the andhi3
instruction to match a splitable_operand instead of a
general operand.

--- gcc-3.3.5/gcc/config/m68hc11/m68hc11.md 2006-11-02 15:24:29.000000000 -0
700
+++ gcc/gcc-3.3.5/gcc/config/m68hc11/m68hc11.md 2007-01-21 10:25:15.000000000 -0
700
@@ -3125,7 +3125,7 @@
(define_expand "andhi3"
[(set (match_operand:HI 0 "register_operand" "")
(and:HI (match_operand:HI 1 "register_operand" "")
- (match_operand:HI 2 "general_operand" "")))]
+ (match_operand:HI 2 "splitable_operand" "")))]
""
"")

Sean D Epagnier <sdepagnier>
Tue 16 Jan 2007 09:50:01 PM UTC, comment #1:

I hit enter on accident, and there is no way to edit the discussion.

the function is:

void func()
{
short a, *b;
a &= *b;
}

the internal compiler error occurs when compiling as:
m6812-elf-gcc -c test.c

if 'int' is used instead of 'short' the error goes away.
if '|' or '^' is used instead of '&' the error goes away.

Sean D Epagnier <sdepagnier>
Tue 16 Jan 2007 09:43:52 PM UTC, original submission:

place the following code in a file called test.c:

void func()
{
short a, *b;

Sean D Epagnier <sdepagnier>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sdepagnier (Submitted the item)
  •  

    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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup