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

Incomplete support for --targetin the code-gen layer #51760

Open
banach-space opened this issue Nov 5, 2021 · 1 comment
Open

Incomplete support for --targetin the code-gen layer #51760

banach-space opened this issue Nov 5, 2021 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior bugzilla Issues migrated from bugzilla flang:driver

Comments

@banach-space
Copy link
Contributor

Bugzilla Link 52418
Version trunk
OS All
CC @jeanPerier,@kiranktp,@sscalpone

Extended Description

This came up during a discussion on https://reviews.llvm.org/D112961.

As per the comment at the top of "flang/lib/Optimizer/CodeGen/DescriptorModel.h", various assumptions about the target machine are made in the code-gen layer. This is likely to cause --target (or e.g. -m64 and -m32) to malfunction when using Flang's interoperability with C (see how various CFI structures are lowered).

Note that --target is not available in the driver yet. Also, it is possible that the assumptions made when lowering the CFI structures will affect other parts of the code-gen too. However, I suspect that most things will work correctly when generating code for the host/native target.

I'm creating this issue as a placeholder and as a note for our future selves. This is currently not being investigated or worked on.

-Andrzej

[1] https://github.com/flang-compiler/f18-llvm-project
[2] https://github.com/llvm/llvm-project

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
@psteinfeld psteinfeld added the bug Indicates an unexpected problem or unintended behavior label Jun 6, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Jun 6, 2023

@llvm/issue-subscribers-bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior bugzilla Issues migrated from bugzilla flang:driver
Projects
None yet
Development

No branches or pull requests

3 participants