Skip to content

Disable -ffast-math for etc2comp#10776

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
hpvb:fix-10758
Aug 30, 2017
Merged

Disable -ffast-math for etc2comp#10776
akien-mga merged 1 commit into
godotengine:masterfrom
hpvb:fix-10758

Conversation

@hpvb

@hpvb hpvb commented Aug 30, 2017

Copy link
Copy Markdown
Member

Apparently -ffast-math generates incorrect code with recent versions of
GCC and Clang. The manual page for GCC warns about this possibility.

In my tests it doesn't actually appear to be measurably slower in this
case, and this is used in a batch process so it seems safe to disable
this.

This fixes #10758 and fixes #10070

@hpvb hpvb changed the title Disable -ffast-math for etc2comp [WIP] Disable -ffast-math for etc2comp Aug 30, 2017
@hpvb hpvb changed the title [WIP] Disable -ffast-math for etc2comp Disable -ffast-math for etc2comp Aug 30, 2017
@akien-mga akien-mga added this to the 3.0 milestone Aug 30, 2017
Apparently -ffast-math generates incorrect code with recent versions of
GCC and Clang. The manual page for GCC warns about this possibility.

In my tests it doesn't actually appear to be measurably slower in this
case, and this is used in a batch process so it seems safe to disable
this.

This fixes godotengine#10758 and fixes godotengine#10070
@akien-mga akien-mga merged commit e59b121 into godotengine:master Aug 30, 2017
@hpvb hpvb deleted the fix-10758 branch February 27, 2018 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Godot crashes upon opening this project Importing some textures crashes Godot 3

2 participants