<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58647>58647</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
assembler error when using flang -fno-integrated-as
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
laurent-alfonsi-linaro
</td>
</tr>
</table>
<pre>
Pb in generated .s when using flang -fno-integrated-as on almost any fortran file.
Here is the small ex I m using :
$ cat func.f90
module logic
contains
subroutine new_solver()
end subroutine new_solver
end module logic
$ flang -O2 -fno-integrate-as -c func.f90 -save-temps=obj
func.s: Assembler messages:
func.s:8: Error: junk at end of line, first unrecognized character is `"'
flang-new: error: assembler command failed with exit code 1 (use -v to see invocation)
Thus in .s file I can see at line 8 :
.file 1 "/home/laurent.alfonsi/" "./func.i"
The name of the file is cut between directory and fiename.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNU8uSmzAQ_BpxmYICYTAcODjZuJJTcsg9JWAAbYS0pYedzddnhB-7m61U5SILqTXT093uzfjcfetBaphRoxUeR8gcnBfUEJzUM0xK0JpO2qRSe5w3TCocGA1CrcZ5EPoZJmO9FRomqTBj-QPLD5f1M1oE6cAvCG4VSgH-gi-wXsuz8gAXIADjOxiEhynoIZva_Ha-mjEoBGVmOdzOBqO9kNrdvl3orQleagSN5x_OqBNaxhvG2xsE9fgP2CvA-16v2V3F-Mr_EiTqkQ534pA6ccLU4_rkWPlg-sdbkQ3h4tAH53DtFVpY0TkxYzx9B2si9JO1xsbNY9A_gQSKRM0EisZg_CNpbsmFoC0OZtbyN3k4LMKKwVN1kp7VOeOc8f29fBwjJQFiUbxVF3dGg1lXQT0mQW6OcJZ-Idekp4sRoSApmuAQ0hN4Aw7JX30y5Jw0-q73Zf2-BBfTRZmKySDjBwpJfEJjRP7QvIlAFlEsb2MPYnxczEojHpUIFrXPhJqMdpJO6DpCMtpuYsmIf9OYHBYrRp1i9LbupMUQPPToz0gBHyUp5o19hm1YifHBNbwJdkVd182eV0WejF05tmUrEi-9wu5FqU28__m7JMGqbvH-abM58j_OJGvoMxI7TqhOt5_0yZpHIkaf0rlAweDHqql3-2TpprGq9rtKlG3eYlOOfZsXNd-LHsu-FW2TKNoq17HqAwlCDsNWIopTPSSy4znnRc73Bc-bMs_6oeZT01S421W8aHK2y3El07PIIzN2Tmy3UerD7OhSSefdyyXpIGeNuLWj-iL4xdCLi1vp1a2UfBbWJBuTbpvkD4mTbDs">