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/40909] GCC mis-optimizes GDB



------- Comment #6 from sezeroz at gmail dot com  2009-07-30 19:30 -------
(In reply to comment #5)
> Yep:
> 
> extern __inline__ int __attribute__((__cdecl__)) stat(const char
> *_Filename,struct stat *_Stat) {
>   return _stat64i32(_Filename,(struct _stat64i32 *)_Stat);
> }
> 
> that isn't going to fly.
[...]
> I suggest you mark _stat32i64 with attribute((may_alias)).

Why does 4.4 not have any problem with this?


-- 


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


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