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 middle-end/24282] Optimizer ignores register changing (STOSL)



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


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