Skip to content

clang warning passing "-ffast-math -fno-fast-math" #54625

@efriedma-quic

Description

@efriedma-quic
$ bin/clang -c x.c -ffast-math -fno-fast-math
clang-13: warning: overriding '-ffp-contract=fast' option with '-ffp-contract=on' [-Woverriding-t-option]
$ bin/clang -c x.c -Ofast -fno-fast-math
clang-13: warning: overriding '-ffp-contract=fast' option with '-ffp-contract=on' [-Woverriding-t-option]

The warning seems unexpected... I don't think it makes sense to warn here? Even if there is some reason to warn here, it's hard to understand the relationship between the warning text and the actual arguments.

I think this is a regression from https://reviews.llvm.org/D107994 .

cc @zahiraam @andykaylor

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions