This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


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