[Bug c/33949] gcc-4.2.2 generates bad code on ARM
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Oct 30 15:54:00 GMT 2007
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-10-30 15:54 -------
It doesn't matter that you store the address of param to a volatile variable
(this store is not removed), but that
DMA_ADDR_REG = (unsigned long) data;
does not make the stack local live longer than the frame of outer_func and
*data is not used after the assignment. Probably your code kicking off
the DMA engine lacks a memory barrier and a use of DMA_ADDR_REG.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33949
More information about the Gcc-bugs
mailing list