issues with doubles and -fno-schedule-insns2

Andrew Haley aph@redhat.com
Fri Nov 26 17:10:00 GMT 2004


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.



More information about the Gcc mailing list