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 jit/64722] On 2nd time libgccjit is run in-process on i686, generated code clobbers %ebx register


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64722

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can you explain it?  Usually when this function is called, pic_offset_table_rtx
is NULL and your i386.h macro relies on that.
When initializing default target during initialization it is NULL of course,
and apparently even in target_reinit, when it is called with freshly cleared
heap object for the non-default target.
It is just when jit calls the initialization again without clearing all the
variables...
So I believe my proposed change is correct.

In any case, perhaps jit shouldn't reinitialize everything all the time, at
least if the compilation options don't change.


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