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 c/32575] GCC 4.2.0 with -ftree-vrp miscompiles a single line of code in SQLite



------- Comment #3 from drh at sqlite dot org  2007-07-22 11:43 -------
Follow-up comments to the original bug report in SQLite
(see the link shown above) report that the same problem
exists in GCC 4.2.1.  A work-around for SQLite was
devised, which was to change a single line of code:

    -  aRoot[j] = pTos[-j].u.i;
    +  aRoot[j] = (pTos-j)->u.i;

There are many other places in the SQLite code that
have similar constructs, but this one instance seems
to be the only one that gives GCC trouble.


-- 


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


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