re PR inline-asm/8832 (traditional "asm volatile" code is illegally optimized)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Thu, 9 Jan 2003 11:13:07 +0000 (12:13 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 9 Jan 2003 11:13:07 +0000 (11:13 +0000)
commit4c46ea235323cd0283d998d9860d8596811a704c
tree111c11b5a4cc31685a7092d95fa33e235dc2f666
parentf56e86bd9c96aed9d101e8f3893719fb29866c58
re PR inline-asm/8832 (traditional "asm volatile" code is illegally optimized)

PR inline-asm/8832
* tree.h (expand_asm): New prototype.
* stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
to do so.
* c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
down to expand_asm.
* c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
* rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
(volatile_refs_p) [ASM_INPUT]: Likewise.
(side_effects_p) [ASM_INPUT]: Likewise.

From-SVN: r61099
gcc/ChangeLog
gcc/c-semantics.c
gcc/c-typeck.c
gcc/rtlanal.c
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/old-style-asm-1.c [new file with mode: 0644]
gcc/tree.h