-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
[flang][debug] Incorrect type for subroutines #108564
Comments
github-actions
bot
added
the
flang
Flang issues not falling into any other category
label
Sep 13, 2024
EugeneZelenko
added
debuginfo
flang:ir
and removed
flang
Flang issues not falling into any other category
labels
Sep 13, 2024
@llvm/issue-subscribers-debuginfo Author: Abid Qadeer (abidh)
It seems that flang generates the wrong debug information for type of subroutine. If subroutine has an argument then that is taken as return type. The following example describes the issue:
This is what GDB shows for the type of the sub. Notice the return type of real.
While it should have been
|
@llvm/issue-subscribers-flang-ir Author: Abid Qadeer (abidh)
It seems that flang generates the wrong debug information for type of subroutine. If subroutine has an argument then that is taken as return type. The following example describes the issue:
This is what GDB shows for the type of the sub. Notice the return type of real.
While it should have been
|
abidh
added a commit
to abidh/llvm-project
that referenced
this issue
Sep 13, 2024
We pass a list of types when creating a subroutine type. The first one is supposed to be return type and the rest are the argument types. A subroutine does not have a return type so an argument type could be confused as a return type. To fix this, if there is no return type, we generate a null type as a place holder. Fixes llvm#108564.
abidh
added a commit
that referenced
this issue
Sep 17, 2024
We pass a list of types when creating a subroutine type. The first one is supposed to be return type and the rest are the argument types. A subroutine does not have a return type so an argument type could be confused as a return type. To fix this, if there is no return type, we generate a null type as a place holder. Fixes #108564.
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that flang generates the wrong debug information for type of subroutine. If subroutine has an argument then that is taken as return type. The following example describes the issue:
This is what GDB shows for the type of the sub. Notice the return type of real.
While it should have been
The text was updated successfully, but these errors were encountered: