1 |
On Fri, 01 Jul 2011 02:44:36 +0300 |
2 |
Nikos Chantziaras <realnc@×××××.de> wrote: |
3 |
|
4 |
> |
5 |
> And here you can read more thorough information about strict aliasing: |
6 |
> |
7 |
> http://labs.qt.nokia.com/2011/06/10/type-punning-and-strict-aliasing |
8 |
> |
9 |
|
10 |
You've saved the day in more ways than one. |
11 |
|
12 |
A few days ago I posted about a possible problem with a floating |
13 |
point test called the UCBTEST. After examining the source code |
14 |
of this test, I see violations of aliasing rules throughout. |
15 |
It's hard to efficiently manipulate variables without them. |
16 |
|
17 |
Of course, this code was written before the C99 standard and |
18 |
so is exempt. But the use of "-fno-strict-aliasing" will |
19 |
apply with the UCBTEST as well. |
20 |
|
21 |
Thanks again for the information. |
22 |
|
23 |
Frank Peters |