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

Fix an entry statement debuginfo bug #1417

Merged

Conversation

Liuyunlong0336
Copy link

When the compiler generates debuginfo, it does not consider that when there is an entry, the number of arguments will increase by one.
We can fix this problem by getting the returned information by process_ll_abi_func_ftn_mod function, and using the new number of arguments.

@bryanpkc
Copy link
Collaborator

bryanpkc commented Oct 4, 2023

Please also reword the commit message. It should start with a commit title, with a topic prefix, and separated from the commit message body with a blank line. For example:

[DebugInfo] Fix bug in multi-entry procedures

When the compiler generates debuginfo for a procedure, it does not consider
that if is an ENTRY statement, the number of arguments will increase
by one. We can fix this problem by using the new number of arguments as
returned by the process_ll_abi_func_ftn_mod function.

When the compiler generates debuginfo for a procedure, it does not consider
that if is an ENTRY statement, the number of arguments will increase
by one. We can fix this problem by using the new number of arguments as
returned by the process_ll_abi_func_ftn_mod function.
Copy link
Collaborator

@bryanpkc bryanpkc left a comment

Choose a reason for hiding this comment

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

LGTM.

Liuyunlong0336

This comment was marked as duplicate.

@bryanpkc
Copy link
Collaborator

bryanpkc commented Nov 7, 2023

@pawosm-arm @shivaramaarao gentle ping

@bryanpkc bryanpkc merged commit 4e6cb28 into flang-compiler:master Nov 13, 2023
6 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.

6 participants