[Bug optimization/13552] gcc 'optimizes' position of label

jbemmel at zonnet dot nl gcc-bugzilla@gcc.gnu.org
Sat Jan 3 11:15:00 GMT 2004


------- Additional Comments From jbemmel at zonnet dot nl  2004-01-03 11:15 -------
Subject: Re:  gcc 'optimizes' position of label

> ------- Additional Comments From pinskia at gcc dot gnu dot org
2004-01-03 01:56 -------
> The code is invalid as you cannot jump out of an asm.

OK, but the case is also valid without the 'jmp' instruction. For the sake
of discussion let's assume valid ASM

> Also you cannot depend on the optimizing compilers not moving labels.

Well, then perhaps this is a feature request and not a bug: I would like gcc
to not move user-defined labels beyond 'asm volatile' statements, especially
ones of which the address is taken





-- 


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



More information about the Gcc-bugs mailing list