Monday, 15 July 2013

c - intel compilers, silence commandline warnings -



c - intel compilers, silence commandline warnings -

i started building code intel c compiler -- icc. our configure script likes add together -ffast-math flag , maybe couple others seem gcc specific. invoking icc -ffast-math produces next warning silence:

icc: command line warning #10006: ignoring unknown alternative '-ffast-math'

as far see it, there 2 ways silenced (but i'd love see other solutions). first, turn warning error tell configure -ffast-math isn't valid option. hope when configure tries add together commandline, see isn't able , decide maybe adding bad thought after ... sec alternative (which don't think quite clean) tell icc quiet kind of warning ...

responding comments, here's relevant portion of configure.ac:

# add together -ffast-math etc if possible ax_check_compiler_flags([-ffast-math], [cflags="$cflags -ffast-math" ]) ax_check_compiler_flags([-mtune=native -march=native], [cflags="$cflags -mtune=native -march=native" ])

that m4 macro appears have been taken here

i suppose fixing smarter "holy-grail" -- icc returns successful exit status when -ffast-math passed (or -mtune=native etc.), don't think there much can done there (feel free prove me wrong). said, i don't want hard-code checks intel configure script.... seems overly messy.

c compiler-warnings intel configure icc

No comments:

Post a Comment