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]

Re: inline function with throw() decl C++ egcs-1.1.2 i686 linux


> 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


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