[Bug tree-optimization/17884] [4.0 Regression] asm 'volatile' is not honored as documented

fjahanian at apple dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 8 19:25:00 GMT 2004


------- Additional Comments From fjahanian at apple dot com  2004-10-08 19:25 -------
Following test case shows that 'volatile' is not needed to prevent removal of an 'asm'.

% cat t.c
int main()
{
        asm ("nop");
}

% mygccm5o -S -O4 t.c
% cat t.s
.text
        .align 2
        .globl _main
_main:
        nop
        blr
        .subsections_via_symbols


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17884



More information about the Gcc-bugs mailing list