bugGNU Development Chain for 68HC11/68HC12 - Bugs: bug #11813, Code generation problem (bset/bclr...

 
 

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

bug #11813: Code generation problem (bset/bclr -m68hc12 -Os indirect addr)

Submitter:  None
Submitted:  Wed 02 Feb 2005 04:11:16 AM UTC
   
 
Category:  gcc Severity:  3 - Normal
Item Group:  sw-bug Status:  Fixed
Privacy:  Public Assigned to:  ciceron
Open/Closed:  Closed

Sun 12 Jun 2005 09:56:51 AM UTC, comment #3: 

fixed in 3.0.1

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

Will be fixed in next release.

Stephane Carrez <ciceron>
Group administrator
Wed 02 Feb 2005 07:43:10 PM UTC, comment #1: 

Yes.  The problem is present in pre-release 2.92 (Aug 2004)
and in gcc 3.4.3 either.

Stephane Carrez <ciceron>
Group administrator
Wed 02 Feb 2005 04:11:16 AM UTC, original submission:  

I think I have found a code generation bug in the version 3.0 release, with the following code snippit:

------
struct Regs
{
volatile unsigned char reg;
};

struct Device
{
struct Regs *regs;
};

struct Device dev0 =
{
(struct Regs *) 0x0100,
};

void init(struct Device *device)
{
device->regs->reg |= 0x01;
device->regs->reg &= ~0x01;
}
------
Compile command:
m6811-elf-gcc -m68hc12 -Os -c bug.c
------
Output:
ccsfaaaa.s: Assembler messages:
ccsfaaaa.s:23: Error: Invalid operand for `bset'
ccsfaaaa.s:24: Error: Invalid operand for `bclr'
------
Compiler details:
m6811-elf-gcc -v
Using built-in specs.
Configured with: ./configure --target=m6811-elf
--program-prefix=m6811-elf- --host=i586-mingw32msvc
--build=i686-pc-linux-gnu --enable-languages=c,c++ --prefix=\usr
Thread model: single
gcc version 3.3.5-m68hc1x-20050129
------
The problem only occurs with optimization enabled, since bset/bclr are not generated without it.


Anonymous

 

(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 4 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-02-02 ciceron Assigned toNone ciceron

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code