Commit 71c6016
committed
Fix f_check detection of LLVM 21 flang
The check for GCC is confused by the GNU-stack in
```
.file "FIRModule"
.text
.globl zhoge_
.p2align 4
.type zhoge_,@function
zhoge_:
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
retq
.Lfunc_end0:
.size zhoge_, .Lfunc_end0-zhoge_
.ident "flang version 21.1.5"
.section ".note.GNU-stack","",@progbits
```
And displays:
```
./f_check: line 102: [: : integer expression expected
```
Since it expects a string with GCC anyway, better to only match
GCC and not GNU.1 parent f6df9be commit 71c6016
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments