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]
Other format: [Raw text]

Re: issues with doubles and -fno-schedule-insns2


Matthew J Fletcher writes:
 > On Friday 26 Nov 2004 2:27 pm, Nathan Sidwell wrote:
 > 
 > any pointers to 'type based aliasing rules' ? docs for simple folk ?

You really need to read Section 6.3.2.3 in the standard, but I'll give
you the short form:

  Except for char*, which is a special case, you may not convert
  between pointers to incompatible types and then reference the result.

  gcc has a special extension which allows you to put different types
  into a union, write as one type and then read as another.

Andrew.


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