This is the mail archive of the gcc@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: egcs/Solaris status


Alexandre Oliva wrote:
> 
> On Aug 21, 1999, Dimitri Papadopoulos wrote:
> 
> > 3) I get segfault/aritmetic exception in Qt (http://www.troll.no/),even
> >    without -O. The problem is not with Qt:
> >    - The very same source compiled with egcs-1.1.2 or Sun CC does not
> >      crash.
> 
> Did you try to compile with -fno-strict-aliasing?  -fstring-aliasing,
> now enabled by default, has caused some problems to packages that use
> certain kinds of casts of pointers with undefined results.

Thank you very much for your quick reply. No, I didn't try, but I'll
try on Monday and report results.

By the way, I had a look at the threads on -fstrict-aliasing but could
not find a description of the problem. The FAQ reads:
	The linux kernel violates certain aliasing rules specified in
	the ANSI/ISO standard.
Qt does have quite a few casts of pointers... Which sort of cast could
have undefined results? It appears that -fstrict-aliasing does not only
break Linux or Qt. You will probably get a lot of traffic about similar
problems. So maybe these "aliasing rules" should be explained in the FAQ.
By the way, I have a copy of the C++ standard, so if someone can point
me to the right paragraph...

Thank you,
--
Dimitri Papadpoulos

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