https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38925
Eric Gallager changed:
What|Removed |Added
CC||egallager at gcc dot gnu.org
--- Comment
--- Comment #10 from thutt at vmware dot com 2009-01-22 13:59 ---
(In reply to comment #7)
> The problem here is that you are using unitialized local register variables so
> the register allocator does not know any better. Anyways it works correctly
> on
> the trunk and I don't have an
--- Comment #9 from hjl dot tools at gmail dot com 2009-01-22 06:03 ---
One fix is to add a proper intrinsic for vmrun.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38925
--- Comment #8 from pinskia at gcc dot gnu dot org 2009-01-22 04:01 ---
Also I think this is the same as bug 35160.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38925
--- Comment #7 from pinskia at gcc dot gnu dot org 2009-01-22 03:51 ---
The problem here is that you are using unitialized local register variables so
the register allocator does not know any better. Anyways it works correctly on
the trunk and I don't have any other compiler to test wit
--- Comment #4 from hpreg at vmware dot com 2009-01-21 10:19 ---
Andrew,
With respect to your comment #2: initializing all the variables to 0 does not
solve the problem, which is that gcc does not understand that %rbp is
clobbered.
With respect to your comment #3: as explained in the b
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-01-20 21:47 ---
Also I think the inline-asm could be improved so that the inline-asm just marks
the registers that are clobbered instead of doing the mess you are doing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38925
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-01-20 21:34 ---
I think this code is undefined as you are using uninitialized variables for
input of the inline-asm.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added