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 authentification level.

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

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

Thu 05 Dec 2002 09:48:00 PM UTC, 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 14 Oct 2002 07:06:20 PM UTC, original submission:

For the following code:

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

WORD wT;
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 05 Dec 2002 09:48:00 PM UTCciceronSeverity3 - Normal=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup