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

Support inline never and always options #922

Merged
merged 1 commit into from
Feb 13, 2022
Merged

Support inline never and always options #922

merged 1 commit into from
Feb 13, 2022

Conversation

philberty
Copy link
Member

This maps over to DECL_UNINLINEABLE and to use the GCC attribute
always_inline.

Fixes #921

This maps over to DECL_UNINLINEABLE and to use the GCC attribute
always_inline.

Fixes #921
@philberty philberty added this to the Macro Expansion milestone Feb 13, 2022
@philberty
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 13, 2022

Build succeeded:

@bors bors bot merged commit c7275a7 into master Feb 13, 2022
#[inline]
fn test_a() {}

// { dg-final { scan-tree-dump-times {always_inline} 1 gimple } }
Copy link
Member

Choose a reason for hiding this comment

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

This produces:

PASS: rust/compile/inline_1.rs (test for excess errors)
UNRESOLVED: rust/compile/inline_1.rs scan-tree-dump-times gimple "always_inline" 1
                === rust Summary for unix ===

# of expected passes            5746
# of expected failures          21
# of unresolved testcases       1
  1. Our automated testing shouldn't have let that pass.
  2. Add the missing -fdump-tree-gimple.

@philberty philberty deleted the phil/inline-dev branch February 18, 2022 11:47
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.

rust inline attribute supports options
2 participants