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/66700] New: Bogus gimplification of jit code using ptrs to functions


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

            Bug ID: 66700
           Summary: Bogus gimplification of jit code using ptrs to
                    functions
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
            Blocks: 66627
  Target Milestone: ---

https://gcc.gnu.org/ml/jit/2015-q2/msg00131.html noted a problem where a ptr to
a local was being passed as an argument in a function call built using
libgccjit, where the function was a prebuilt one that writes back through the
ptr to the local, but where the local wasn't changing.

The issue seems to be that during gimplification, the argument changes from
  &local
to:
  &local.0

and then "local" gets used later on in the caller, not "local.0".


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66627
[Bug 66627] Tracker bug for jit bugs affecting ravi


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