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 tree-optimization/42231] [4.4 Regression] Wrong generated code when using a callback function (possible callback function inlining bug ?)



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-11-30 14:46 -------
Confirmed.  Works with 4.5 and with -fno-ipa-cp.

IPA lattices after propagation:

Lattice:
  Node: main:
  Node: callback:
    param [0]: type is CONST 0

which is obviously wrong.  On trunk the same propagation result is achived
but somehow we do not miscompile there.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|c                           |tree-optimization
     Ever Confirmed|0                           |1
           Keywords|                            |wrong-code
      Known to fail|                            |4.4.3
      Known to work|                            |4.3.4 4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-11-30 14:46:30
               date|                            |
            Summary|[4.4.x Regression] Wrong    |[4.4 Regression] Wrong
                   |generated code when using a |generated code when using a
                   |callback function (possible |callback function (possible
                   |callback function inlining  |callback function inlining
                   |bug ?)                      |bug ?)
   Target Milestone|---                         |4.4.3


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


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