This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: bus error in sparc ultra 10 solaris 8 g++ 2.95 3.0


You are trying to perform an illegal operation on the Sun architecture.

A char* is not a long*.

The Sun architecture requires that long data is aligned.  You are attempting
an unaligned access, which will cause a BUS signal.

Don't cast.  Casts are indicative that you may be doing something wrong.  In
this instance, you are.

--Eljay



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