bugGNU Development Chain for 68HC11/68HC12 - Bugs: bug #1416, Gcc generates emind instructions...


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

bug #1416: Gcc generates emind instructions that can't assemble

Submitted by:  Stephane Carrez <ciceron>
Submitted on:  Mon Oct 14 19:06:20 2002  
Category: gccSeverity: 2 - Minor
Item Group: sw-bugStatus: None
Privacy: PublicAssigned to: Stephane Carrez <ciceron>
Open/Closed: Open

Thu Dec 5 21:48:00 2002, comment #1:

Release 2.1 now disables by default the generation of
emin/emax. For emin to work with external symbols, we
must use 16-bit PC relative addressing mode.

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
Mon Oct 14 19:06:20 2002, original submission:

For the following code:

#define MIN(x1,x2) ((x1 > x2)?x2:x1)
typedef unsigned short WORD;

WORD TstMin(void) {
return MIN(wT, 99);

gcc -c -Os -m68hc12 bug.c -mshort generates

ldd #99
emind wT

But the emind does not support 16-bit addresses.

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.


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



Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Thu Dec 5 21:48:00 2002ciceronSeverity3 - Normal=>(Error - Not Found)

Back to the top

Powered by Savane 3.1-cleanup1