To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=110050





------- Additional comments from c...@openoffice.org Fri Mar 12 13:12:33 +0000 
2010 -------
Here's what I've got...
"It is not deferencing a char* per se that is specifically recognized as a
potential alias of any object, but any address referring to a char  object. This
includes an array of char objects, as in the following example which will also
break the strict aliasing assumption.

  0  char      const cp[4] = { arg0, arg1, arg2, arg3 };
  1  uint16_t* const sp    = (uint16_t*)cp;
  2
  3  sp[0] = 0x0001;
  4  sp[1] = 0x0002;"
http://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html

int main(void)
{
        unsigned short foo;
        char a[2] = {0};
        foo = *(unsigned short*)a;
        return foo;
}
gcc -O2 -Wall test.c
test.c:5: warning: dereferencing type-punned pointer will break strict-aliasing
rules

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to