Issue 173098
Summary #pragma STDC FENV_ROUND FE_TONEAREST gives misleading warning
Labels new issue
Assignees
Reporter tydeman
    The statement:
#pragma STDC FENV_ROUND FE_TONEAREST

Gets:
 warning: expected identifier in '#pragma FENV_ROUND' - ignored [-Wignored-pragmas]
which is misleading.

1)  The 'STDC' got dropped in the message.
2)  FE_TONEAREST is a valid 'direction' as per the C standard.

If the pragma is not supported, the warning should say so.
If the pragma is supported, there should be no warning.


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to