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

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

Submitted by:  None
Submitted on:  Wed 02 Feb 2005 04:11:16 AM UTC  
 
Category: gccSeverity: 3 - Normal
Item Group: sw-bugStatus: Fixed
Privacy: PublicAssigned to: Stephane Carrez <ciceron>
Open/Closed: Closed

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

fixed in 3.0.1

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
Sun 08 May 2005 01:12:39 PM UTC, comment #2:

Will be fixed in next release.

Stephane Carrez <ciceron>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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

 

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

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 12 Jun 2005 10:01:52 AM UTCciceronOpen/ClosedOpen=>Closed
Sun 12 Jun 2005 09:56:51 AM UTCciceronStatusIn Progress=>Fixed
Sun 08 May 2005 01:12:39 PM UTCciceronStatusNone=>In Progress
Wed 02 Feb 2005 07:43:10 PM UTCciceronAssigned toNone=>ciceron

Back to the top


Powered by Savane 3.1-cleanup