This is the mail archive of the gcc-patches@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]

Re: [PATCH] Make attribute functions pure


    recog_memoized is pure and you do:

      recog_memoized (insn);
      ...
      code = INSN_CODE (insn);

Ooops, that's right: there is code that looks at INSN_CODE directly and that
would be a potential issue.

However, there aren't that many of them and it perhaps might be better
to disallow those accesses if it'll mean we can make these and the
attribute functions pure.


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