[PATCH] D145726: Fix assembler error when -g and -gdwarf-* is passed with -fno-integrated-as.
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 9 15:01:20 PST 2023
efriedma added a comment.
Following reproduces for me (clang from main, Ubuntu 16.04).
$ cat test.cpp
int foo()
{
int i=6;
do --i; while (!(i%3));
do {} while (!(i%5));
return 0;
}
$ clang++ test.cpp -c -fno-integrated-as -gdwarf-4 -O2 -fno-finite-loops
/tmp/test-f97496.s: Assembler messages:
/tmp/test-f97496.s:18: Error: file number 1 already allocated
clang++: error: assembler command failed with exit code 1 (use -v to see invocation)
I think it triggers when the assembly file contains code before the first ".file" directive.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145726/new/
https://reviews.llvm.org/D145726
More information about the cfe-commits
mailing list