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

Remove unnecessary SIDE_EFFECTS/READONLY macros #2977

Merged
merged 1 commit into from
May 6, 2024

Conversation

MaelCravero
Copy link
Contributor

Closes #2357

Remove unnecessary TREE_SIDE_EFFECTS and TREE_READONLY macros used in arithmetic overflow checks in rust-gcc.cc. Calls to abort are still generated when these are removed.

@MaelCravero MaelCravero force-pushed the remove-unused-macros branch 2 times, most recently from 740b489 to 31918ab Compare April 30, 2024 12:17
Closes Rust-GCC#2357

gcc/rust/ChangeLog:

	* rust-gcc.cc: remove unnecessary TREE_SIDE_EFFECTS and TREE_READONLY
	macros used in arithmetic overflow checks.

Signed-off-by: Mael Cravero <mael.cravero@embecosm.com>
@P-E-P P-E-P self-requested a review May 6, 2024 12:47
Copy link
Member

@P-E-P P-E-P left a comment

Choose a reason for hiding this comment

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

LGTM

@P-E-P
Copy link
Member

P-E-P commented May 6, 2024

@MaelCravero
Copy link
Contributor Author

@MaelCravero Have you read the DCO, do you acknowledge it ? https://github.com/Rust-GCC/gccrs/wiki/First-contributions#developers-certificate-of-origin

@P-E-P I read it and acknowledge it

@P-E-P P-E-P added this pull request to the merge queue May 6, 2024
Merged via the queue into Rust-GCC:master with commit 3a31617 May 6, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unnecessary (?) TREE_SIDE_EFFECTS and TREE_READONLY usage
2 participants