This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40909] GCC mis-optimizes GDB
- From: "sezeroz at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2009 19:30:30 -0000
- Subject: [Bug c/40909] GCC mis-optimizes GDB
- References: <bug-40909-17355@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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