This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15438] [3.5 Regression] miscompilation with attribute (__malloc__)
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2004 08:10:39 -0000
- Subject: [Bug tree-optimization/15438] [3.5 Regression] miscompilation with attribute (__malloc__)
- References: <20040514162618.15438.belyshev@lubercy.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2004-05-17 08:10 -------
Simpler test case:
====================================
int a;
void __attribute__ ((malloc)) *foo ()
{
a = 0;
}
void bar (void)
{
a = 1;
foo ();
if (a)
abort ();
}
====================================
-->
bar ()
{
int<D0> a.0<D1457>;
# a<D1451>_2 = VDEF <a<D1451>_1>;
a<D1451> = 1;
# VUSE <a<D1451>_2>;
foo ();
abort ();
}
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-05-16 14:35:14 |2004-05-17 08:10:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15438