This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-1.1, m68k: bug in volatile pointer ref




On Mon, 11 Jan 1999, Mark Powell wrote:

> For info, this is a copy of a bug report I submitted to egcs-bugs.
> It is very significant for embedded systems.
> 
> ----
> 
> The following bug was observed in egcs-1.1b and egcs-1.1.1 configured
> for m68k-coff.
> 
> Assignment operations through a pointer variable declared volatile
> produce multiple accesses. This can cause incorrect behaviour when the
> destination of the write is a register in a peripheral device and the
> device expects a series of values to be written to the same address.
> 
> The bug is triggered when compiling with no optimisation. Optimisation
> levels of -O1 and above do not exhibit the bug.

I had observed same bug in egcs-1.1b for arm-aout. Should I submit
separate bug report ?

> Mark Powell, Senior Software Engineer, Primagraphics Limited


Thanks,

Aleksey


_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.