This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/45160] [4.4.x/4.5.x regression] Invalid assembly code is generated for x86 architecture for faad2 library (AAC decode algorithm)



------- Comment #9 from t dot artem at mailcity dot com  2010-08-02 20:27 -------
The culprit is the ic_predict.c file. When I compile it with
-fno-strict-aliasing (while everything else is being compiled with
-fstrict-aliasing) libfaad works correctly.

These are the warnings which I get from GCC:

ic_predict.c: In function 'flt_round':
ic_predict.c:58: warning: dereferencing type-punned pointer will break
strict-aliasing rules
ic_predict.c:58: warning: dereferencing type-punned pointer will break
strict-aliasing rules
ic_predict.c:58: warning: dereferencing type-punned pointer will break
strict-aliasing rules
ic_predict.c:60: warning: dereferencing type-punned pointer will break
strict-aliasing rules
ic_predict.c: In function 'ic_prediction':
ic_predict.c:78: warning: dereferencing pointer 'tmp' does break
strict-aliasing rules
ic_predict.c:77: note: initialized from here
ic_predict.c:78: warning: dereferencing pointer 'tmp' does break
strict-aliasing rules
ic_predict.c:77: note: initialized from here
ic_predict.c:78: warning: dereferencing pointer 'tmp' does break
strict-aliasing rules
ic_predict.c:77: note: initialized from here
ic_predict.c:78: warning: dereferencing pointer 'tmp' does break
strict-aliasing rules
ic_predict.c:77: note: initialized from here
ic_predict.c:78: warning: dereferencing pointer 'tmp' does break
strict-aliasing rules
ic_predict.c:77: note: initialized from here
ic_predict.c:78: warning: dereferencing pointer 'tmp' does break
strict-aliasing rules
ic_predict.c:77: note: initialized from here

Maybe GCC developers could devise a patch for this file because
http://www.audiocoding.com/faad2.html site seems to be dead.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45160


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]