File: Notes

package info (click to toggle)
geomview 1.9.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,096 kB
  • sloc: ansic: 93,696; sh: 12,051; cpp: 1,215; makefile: 1,075; objc: 263; perl: 153; yacc: 152; tcl: 76; lex: 74
file content (18 lines) | stat: -rw-r--r-- 699 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Explanation of why need to disable strict aliasing
- from http://sourceforge.net/mailarchive/forum.php?thread_name=20120120131932.87c8472c.frank.peters%40comcast.net&forum_name=geomview-users

Hello,
i did some experiments with compiling, there are many such warnings

In file included from ../../../../include/transform3.h:147:0,
                 from ../../../../include/point3.h:78,
                 from cmodelP.h:24,
                 from cm_geometry.c:34:
../../../../include/hpoint3.h: In function 'HPt3TransPt3':

i think this is the culprit;
 *pout = *(Point3 *)(void *)&tp;

long story short adding -fno-strict-aliasing  to cflags allows optimization
to work, it clears the window now :)