Skip to content
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

Gcc7 no array bounds #1196

Merged
merged 2 commits into from
Jul 25, 2020
Merged

Conversation

WeiqunZhang
Copy link
Member

No description provided.

@WeiqunZhang WeiqunZhang requested review from atmyers and kngott July 25, 2020 00:15
@@ -105,6 +105,10 @@ ifeq ($(WARN_ALL),TRUE)
warning_flags += -Wshadow
endif

ifeq ($(gcc_major_version),7)
warning_flags += -Wno-array-bounds
Copy link
Member

@ax3l ax3l Jul 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

offline discussed: GCC 5-6 fine, GCC 7 potential false positive, GCC9+ fine

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also tested GCC 8.4. It works fine. Note that it is an known issue that GCC 8.1-8.3 crashes when compiling AMReX. So we need to avoid GCC 8.1-8.3.

@ax3l ax3l added the warning label Jul 25, 2020
@ax3l ax3l merged commit c013c29 into AMReX-Codes:development Jul 25, 2020
@WeiqunZhang WeiqunZhang deleted the gcc7_no_array_bounds branch July 27, 2020 18:30
dwillcox pushed a commit to dwillcox/amrex that referenced this pull request Oct 3, 2020
* Wno-array-bounds for gcc 7

* [[gnu::fallthrought]] is available for gcc >= 7 only.  Test the result of dynamic_cast.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants