New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake: blacklist GCC 7.0 and GCC 7.1 #1949
Conversation
cmake/Pcsx2Utils.cmake
Outdated
@@ -70,6 +70,11 @@ function(check_compiler_version version_warn version_err) | |||
endif() | |||
endif() | |||
|
|||
if(GCC_VERSION VERSION_EQUAL "7.0" OR GCC_VERSION VERSION_EQUAL "7.1") | |||
message(FATAL_ERROR "GCC 7.0/7.1 generates invalid code => https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80799\n" | |||
"You can either backport the fix or swith to another version of GCC.") |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@orbea I added a small testcase to ensure GCC correctness. Could you confirm me that it is able to detect the gcc bug. Thank you. |
This comment has been minimized.
This comment has been minimized.
@orbea I moved the code to avoid order issue. Could you test it again? Thanks you |
This comment has been minimized.
This comment has been minimized.
@orbea does the patch detect bad GCC ? I.e abort in Cmake because GCC doesn't work as expected. |
This comment has been minimized.
This comment has been minimized.
I made some improvements. I hope it will be enough. Otherwise I will need your help to get the generated binary to understand what is generated/what is happening. Operation to get the binary
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a705e10
to
ea2489c
Compare
@orbea thanks you for all the tests 👍 |
GCC bug => https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80799
Close #1937