This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17884] [4.0 Regression] asm 'volatile' is not honored as documented
- From: "amacleod at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2004 20:02:23 -0000
- Subject: [Bug tree-optimization/17884] [4.0 Regression] asm 'volatile' is not honored as documented
- References: <20041007193056.17884.fjahanian@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From amacleod at redhat dot com 2004-10-07 20:02 -------
ok, so how is this suppose to work again?
Entering SSA->normal, I see:
double FFF;
double DDD;
double fpenv;
double sum;
# BLOCK 0
# PRED: ENTRY [100.0%] (fallthru,exec)
sum_3 = DDD_1 + FFF_2;
__asm__ __volatile__("mtfsf 255,%0"::"f" fpenv_4);
return sum_3;
# SUCC: EXIT [100.0%]
is the volatile in ASM suppose to block all movement across it or something?
There is nothing in the asm instruction indicating it has anything to do with
sum_3....
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17884