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]

970924/i386-linux-gnulibc1: exception handling problem


Mark Mitchell <mmitchell@usa.net> writes:
> 
>     Mumit> The following code causes an internal compiler error (not
>     Mumit> present in earlier snapshots). Ditto for -O, -O -g, -O2 -g,
>     Mumit> etc.
> 
> I thought this was probably member-template related, but in fact it
> only happens with -O, and goes away with -fsjlj-exceptions (but not
> -fno-exceptions, is that broken?), so I suspect a problem in the new
> exception-handling code.  (Note that I didn't apply Jason's recent
> patches, so it might well be that they fix this bug.)
> 

Here's the code again:

========= cut here
#include <stack>
#include <vector>


int main()
{
  priority_queue< int > pq;
  return 0;
}

========= end

Still there in 970924 for i386-linux-gnulibc1 (but at least egcs
bootstraps now).

Wonder why does -fno-exceptions does not work as Mark notes?

% c++ -O2 -c pqueue-test.cc                         << Fail
% c++ -O2 -c pqueue-test.cc -fno-exceptions         << Fail
% c++ -O2 -c pqueue-test.cc -fsjlj-exceptions       << OK

Regards,
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/


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