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

Submitter:  Jefferson Smith <imajeff>
Submitted:  Tue 05 Apr 2005 08:21:11 PM UTC
Category:  gcc Severity:  3 - Normal
Item Group:  sw-bug Status:  Fixed
Privacy:  Public Assigned to:  ciceron
Open/Closed:  Closed

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

Fixed in 3.0.1

Stephane Carrez <ciceron>
Group administrator
Sun 08 May 2005 12:47:03 PM UTC, comment #2: 

Will be fixed in next release.

Stephane Carrez <ciceron>
Group administrator
Tue 05 Apr 2005 09:06:06 PM UTC, comment #1: 


Stephane Carrez <ciceron>
Group administrator
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])
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>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-06-12 ciceron Open/ClosedOpen Closed
2005-06-12 ciceron StatusIn Progress Fixed
2005-05-08 ciceron StatusNone In Progress
2005-04-05 ciceron Assigned toNone ciceron
2005-04-05 imajeff Carbon-Copy- Added -email is unavailable-

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code