Skip to content

Remove unnecessary SIDE_EFFECTS/READONLY macros#2977

Merged
P-E-P merged 1 commit into
Rust-GCC:masterfrom
MaelCravero:remove-unused-macros
May 6, 2024
Merged

Remove unnecessary SIDE_EFFECTS/READONLY macros#2977
P-E-P merged 1 commit into
Rust-GCC:masterfrom
MaelCravero:remove-unused-macros

Conversation

@MaelCravero

Copy link
Copy Markdown
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>
@MaelCravero MaelCravero force-pushed the remove-unused-macros branch from 31918ab to ef3b258 Compare May 6, 2024 12:17
@P-E-P P-E-P self-requested a review May 6, 2024 12:47

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@P-E-P

P-E-P commented May 6, 2024

Copy link
Copy Markdown
Member

@MaelCravero

Copy link
Copy Markdown
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
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