This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: inline function with throw() decl C++ egcs-1.1.2 i686 linux
- To: dme at uk dot research dot att dot com
- Subject: Re: inline function with throw() decl C++ egcs-1.1.2 i686 linux
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Tue, 20 Jul 1999 08:01:37 +0200
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <3793502B.5CC62D04@uk.research.att.com>
> Bug report below. Basically, the result of an extern
> function called from within an inlined function gets
> trashed under certain conditions with -O2.
Thanks for your bug report. Unfortunately, it was not an executable
test case, so my analysis may be incomplete. gcc-2.95 19990717 -O2
generates, for the relevant fragment
.LEHB34:
addl $-8,%esp
pushl $0
leal -112(%ebp),%ebx
pushl %ebx
call gettimeofday
addl $16,%esp
testl %eax,%eax
je .L35
addl $-12,%esp
pushl $.LC0
call perror
.LEHB36:
so it appears to perform the test of the gettimeofday result properly.
Of course, a lot of code generation aspects where changed for gcc
2.95, so one cannot be certain whether this particular bug has been
fixed.
Regards,
Martin