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

Submitter:  Stephane Carrez <ciceron>
Submitted:  Mon 14 Oct 2002 07:06:20 PM UTC
Category:  gcc Severity:  2 - Minor
Item Group:  sw-bug Status:  None
Privacy:  Public Assigned to:  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>
Group administrator
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>
Group administrator


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

No files currently attached


   bug dependencies.

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.


Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2002-12-05 ciceron Severity3 - Normal None

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code