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 14 Oct 2002 07:06:20 PM UTC  
Category:  gcc Severity:  2 - Minor
Item Group:  sw-bug Status:  None
Privacy:  Public Assigned 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 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 add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2002-12-05 ciceron Severity3 - Normal => (Error - Not Found)

Back to the top

Powered by Savane 3.5