[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Strange g++ results on HPPA (sarti.d.o)



Hi!

I just wanted to compile a package of mine under HPPA
(sarti.debian.org) to fix it for g++-3.0 and found the ./configure
script barking:

checking whether the C++ compiler (g++ -g -O2) has correct exception handling... no

A program showing the problem is (derived version of the one used
in the configure test):

========start===========
#include <exception>
#include <iostream>

using namespace std;

int main(void)
{
        try {
                throw exception();
        } catch(exception& e) {
                cerr << e.what() << endl;
                return 0;
        } catch(...) { return 1; }
        return 1;
}
========end=========

Compiled on my i386 (Athlon) system this outputs 'St9exception'
(g++-3.0) or '9exception' (g++-2.95), which seems ok.

On the HPPA machine (using g++-3.0) it prints 'Aborted'. The abort
seems (gdb) to happen at the line containing the 'throw'.

Anybody got an idea what's going on? Do exceptions not work on HPPA
(didn't find anything in g++ docs)?

Andy
-- 
Andreas Rottmann         | Dru@ICQ        | 118634484@ICQ | a.rottmann@gmx.at
Georg-Rendlweg 28        | A-5111 Bürmoos | Austria       | Europe
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62



Reply to: