Hello, everyone,
For MPFR builds using Windows ICC got warnings:
uceil_exp2.c(38): warning #2261: __assume expression with side effects discarded MPFR_ASSERTN(d <= 1024.0); ^ add1.c(40): warning #2261: __assume expression with side effects discarded MPFR_ASSERTD (! MPFR_UBF_EXP_LESS_P (b, c)); ^
etc., which relate to '-fp:strict' (1 2) flag use. A testcase to reproduce warning added in attachment.
Reproduced for:
not reproduced for:
Environment:
Official Intel Documentation tells nothing particular what does it mean and how to solve it.
Such warnings were suppressed for Qt builds, since its Developers believe, that related code is correct (from which it follows, that this is a compiler bug).
MPFR Developers wondering whether this is a bug in ICC since "the use of __assume seems correct".
Best,
Alexander
Link Copied
Hi Alexander,
Can you provide a test case to investigate?
Thanks,
Viet
Added testcase to the Description. Together with the newly revealed feature, that it relate to '-fp:strict' flag use.
Unfortunately ICC was unable to preprocess source file, so it can be build later. Thus testcase contains original source files.
Alexander
For more complete information about compiler optimizations, see our Optimization Notice.