Menu

#485 fix type punning issue in bsaylor/svf~

bugfix
closed-accepted
nobody
externals (63)
5
2012-12-28
2012-12-22
Katja
No

bsaylor/svf~.c uses a type punning method to avoid / eliminate subnormal numbers. When compiled with -ftree-vectorize, the object doesn't give signal output. Compiler warnings:

svf~.c: In function 'run_svf':
svf~.c:60: warning: dereferencing type-punned pointer will break strict-aliasing rules
svf~.c:61: warning: dereferencing type-punned pointer will break strict-aliasing rules
...
cc1: warning: -ftree-vectorize enables strict aliasing. -fno-strict-aliasing is ignored when Auto Vectorization is used.

File bsaylor_svf~-type-punning-fix.patch fixes the issue by using PD_BIGORSMALL() function instead.

Discussion

  • Katja

    Katja - 2012-12-22

    fix type punning issue in bsaylor/svf~ by using PD_BIGORSMALL instead

     
  • Katja

    Katja - 2012-12-22
    • summary: type punning issue in bsaylor/svf~ --> fix type punning issue in bsaylor/svf~
     
  • Hans-Christoph Steiner

    • status: open --> closed-accepted
     

Anonymous
Anonymous

Add attachments
Cancel