Re: [AD] -fomit-frame-pointer Again

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Well whoops.  Aparently you were right :x.

Heres the test case I did:

// file.c
void docall(void (*proc)(void)) {
    
    proc();
}

// file.cpp
extern "C" {

    void docall(void (*)(void));
}


void proc();

int main() {

    try {

        docall(proc);
    } catch(...) {

        return 1;
    }

    return 0;
}

void proc() {

    throw "Error!";
}

fedora core 2 gcc 3.4.3 result:

$ gcc -c file.c -o file.o
$ g++ file.cpp file.o
$ ./a.out
terminate called after throwing an instance of 'char
const*'
Aborted
$ echo $?
134




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/