llvm / llvm/llvm-project

[flang][Driver] The driver does not accept assembly code

Open
#180,452 5 comments 0 reactions 0 assignees View on GitHub
flang:driver
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

When assembly code is passed to the Flang driver, it emits the following message:

```console
$ flang test.s
flang-23: error: flang does not support assembly files as input: 'test.s'
```

Other Fortran compilers (gfortran, ifx) support assembly inputs, so Flang should do as well.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior with the Flang driver command `flang test.s` and trace where assembly-file inputs are rejected. Compare that behavior with the stated gfortran and ifx behavior, then verify that Flang accepts assembly input without emitting the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.