Hi!
This gives bus error on sparc
#include <qdatetime.h>
#include <iostream>
int main(int argc, char* argv[] )
{
QTime t = QTime::currentTime().addSecs(0);
int hour = t.hour();
std::cout << "hour" <<hour << std::endl;
return 0;
}
except in some cases where it segfaults.
If I recompile Qt3 in debug mode (with -O0), it works fine.
Somehow I feel like blaming the toolchain or gcc. So debian-sparc, it is your
turn!
When compiling qt3 with different options, I get:
with gcc 4.1 and -O2, I don't get a bus error, but wrong results from
t.hour();
with gcc 4.3 and -O2 I get bus error
with gcc 4.3 and -O1 it seems to work
with gcc 4.3 and -O0 it seems to work
/Sune
--
Genius, I'm not able to receive from a driver from DOS and from the
preferences inside Outlook, how does it work?
From the drawer within Office 8000 you should unmount the desktop to reset the
SMTP URL to a editor of a graphic DLL controller.
Attachment:
signature.asc
Description: This is a digitally signed message part.