bugGNU Development Chain for 68HC11/68HC12 - Bugs: bug #12572, internal compiler error; unsigned...

 
 

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

bug #12572: internal compiler error; unsigned short in for loop

Submitted by:  Jefferson Smith <imajeff>
Submitted on:  Tue 05 Apr 2005 08:21:11 PM UTC  
 
Category: gccSeverity: 3 - Normal
Item Group: sw-bugStatus: Fixed
Privacy: PublicAssigned to: Stephane Carrez <ciceron>
Open/Closed: Closed

Sun 12 Jun 2005 10:00:38 AM UTC, comment #3:

Fixed in 3.0.1

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
Sun 08 May 2005 12:47:03 PM UTC, comment #2:

Will be fixed in next release.

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
Tue 05 Apr 2005 09:06:06 PM UTC, comment #1:

Thanks!

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
Tue 05 Apr 2005 08:21:11 PM UTC, original submission:

Using a variable type (unsigned int) to iterate a `for` loop fails to compile when trying to compare with a value larger than the maximum (signed short).

I'm not certain why, but replacing the x<=0x8000 below with x<0xffff also compiles. Just not the values I've tried in between.

=========
int main()
{
unsigned short x;

for (x=1; x<=0x8000; x++) {
asm volatile ("nop");
}

return 0;
}
--------
/usr/local/bin/gcc-m6811-x/m6811-elf-gcc -c -I. -I../../../gel/include/asm-m68hc12/arch-dragon12 -I../../../gel/include -m68hcs12 -g -Os -Wa,-alhs=jeffs_int_err.lst -o jeffs_int_err.o jeffs_int_err.c
jeffs_int_err.c: In function `main':
jeffs_int_err.c:10: error: unrecognizable insn:
(insn:HI 69 47 10 0 (nil) (set (reg:HI 58)
(const_int 32768 [0x8000])) -1 (nil)
(expr_list:REG_EQUAL (const_int 32768 [0x8000])
(nil)))
jeffs_int_err.c:10: internal compiler error: in extract_insn, at recog.c:2175
Please submit a full bug report,
with preprocessed source if appropriate.

Jefferson Smith <imajeff>

 

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 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 12 Jun 2005 10:02:41 AM UTCciceronOpen/ClosedOpen=>Closed
Sun 12 Jun 2005 10:00:37 AM UTCciceronStatusIn Progress=>Fixed
Sun 08 May 2005 12:47:03 PM UTCciceronStatusNone=>In Progress
Tue 05 Apr 2005 09:06:06 PM UTCciceronAssigned toNone=>ciceron
Tue 05 Apr 2005 08:21:11 PM UTCimajeffCarbon-Copy-=>Added -unavailable-

Back to the top


Powered by Savane 3.1-cleanup1