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/15438] [3.5 Regression] miscompilation with attribute (__malloc__)


------- 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


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