https://bugs.llvm.org/show_bug.cgi?id=52418

            Bug ID: 52418
           Summary: Incomplete support for `--target`in the code-gen layer
           Product: flang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to