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 inline-asm/43998] inline assembler: can't set clobbering for input register



------- Comment #12 from ebotcazou at gcc dot gnu dot org  2010-05-14 07:10 -------
> the compiler may think that "something" do not modify eax. So next assignment
> may use eax ( mov eax, x ). So, "it does not make sense to have it as a
> clobber" is not correct. does not it ?

Andrew was saying that it doesn't make sense to consider input operands as
clobbered by an inline asm, generically.

> And the second, "Because the way the constraints are implemented inside GCC,
> an input constraint cannot overlap with a clobber." - It definitely the bug.

No, it isn't, it's clearly stated in the manual: "You may not write a clobber
description in a way that overlaps with an input or output operand."


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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