This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24282] Optimizer ignores register changing (STOSL)
- From: "graeter at hydrixos dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Oct 2005 12:17:27 -0000
- Subject: [Bug middle-end/24282] Optimizer ignores register changing (STOSL)
- References: <bug-24282-11493@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from graeter at hydrixos dot org 2005-10-09 12:17 -------
Subject: Re: Optimizer ignores register changing (STOSL)
pinskia at gcc dot gnu dot org wrote:
> ------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-09 03:11 -------
> In inline-asm if you say that you don't modify a register, you better not
> modify a register. This is not a bug.
But the modified register is a register of the input list, so gcc should
know that it will be used. Or did I misunderstood this [1]:
"5.3 Clobber list
[..] We shoudn?t list the input and output registers in this list.
Because, gcc knows that "asm" uses them (because they are specified
explicitly as constraints)."
cu
FG
[1] (http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html#ss5.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24282