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 regression/36082] -finline-functions miscompiles tail recursion



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-04-29 21:24 -------
It is more than unportable, it contains undefined code as you violate C/C++
aliasing rules:

        d = *(unsigned long *)e1;
        *(unsigned long *)e1 = *(unsigned long *)e2;
        *(unsigned long *)e2 = d;

You are accessing a bucket_entry_t as unsigned long.

*** This bug has been marked as a duplicate of 21920 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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