<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/80929>80929</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [C] error: unexpected token in argument list (target datalayout)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          alejandro-colomar
      </td>
    </tr>
</table>

<pre>
    When trying to compile with Clang some library that I'm writing, I get this error:

```
$ make .tmp/a2i/a2i.c.o CC=clang --debug=print
CC (cpp)        .tmp/a2i/a2i.c.i
clang -I./include -I.tmp  -O3 -std=gnu11 -flto -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement -Wno-attributes -Wno-nullability-completeness -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unused-command-line-argument          -E -o .tmp/a2i/a2i.c.i .tmp/a2i/a2i.c
CC              .tmp/a2i/a2i.c.s
clang -I./include  -I.tmp  -O3 -std=gnu11 -flto -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement -Wno-attributes -Wno-nullability-completeness -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unused-command-line-argument          -S -o .tmp/a2i/a2i.c.s .tmp/a2i/a2i.c
CC (as)         .tmp/a2i/a2i.c.o
clang -I./include  -I.tmp -O3 -std=gnu11 -flto -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement -Wno-attributes -Wno-nullability-completeness -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unused-command-line-argument          -c -o .tmp/a2i/a2i.c.o .tmp/a2i/a2i.c.s
.tmp/a2i/a2i.c.s:1:14: error: missing expression
; ModuleID = '.tmp/a2i/a2i.c'
             ^
.tmp/a2i/a2i.c.s:3:19: error: unexpected token in argument list
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
 ^
.tmp/a2i/a2i.c.s:4:15: error: unexpected token in argument list
target triple = "x86_64-pc-linux-gnu"
 ^
.tmp/a2i/a2i.c.s:6:17: error: unexpected token in argument list
; Function Attrs: inlinehint nounwind uwtable
 ^
.tmp/a2i/a2i.c.s:7:18: error: unexpected token in argument list
define dso_local i32 @a2shh(ptr noalias nocapture noundef writeonly %0, ptr noundef %1, ptr noalias noundef %2, i32 noundef %3, i8 noundef signext %4, i8 noundef signext %5) local_unnamed_addr #0 {
 ^
```

Is it maybe due to some CFLAGS?  I wouldn't suspect of the code, but can share it if you want to see it.

Cc: @thesamesam 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzkVs2S2zYMfhr6gqFHoiRLOviwsePOzrTTQw573KFFWGJCkRoSrNdv36H8k03iTdL01mosWgRI4MMnCIQMQfcWcc2qd6zaLmSkwfm1NPhRWuUd75xxo_SLvVOn9dOAFsiftO2BHHRunLRBOGoaYGOk7SG4EcHovZf-BDRIgkcm6hGOXpO2PRMbeIQeCWjQAdB751nxwLIty67jKrv8zlNRwig_ISxpnJjYSaHP47JbOthsWLHtZs-cK9zHnhXbyWtL592bDTDRdNPERMuy9o4NfV54sfG4ZGKnbWeiwjSjcQLgfxbAAylWbHsb8xz4wZAD_iSNAf6EL-Ql8KdAXnfEJ-_I0WnCAPxJYWekl6Sd5fJA6HkgSTiiJeBP1nFJ5PU-0rzaOm6jMXKvjaYTT_QaJLQYLtpoP1l3tN_susonL_tR3oQxoEpWRmkVN9oil76Ps_Pbxd8Dd_fI1XeEV1JZ9gab4W02_yd0fniDzvAdOlOOynBO0fu8uh_z-t-mtXuD1vtcn9m6qyke8nSXrHi4lR8YdQippuHL5DEE7eyl-BTv4A-nosHHLbBiC0zUd16jqM_L4fXFqvffhVEkGO0XMKLFlwk7QgXkPqEFbeHGhdHhUtRI-lRBlSRp5MlFukATyEdWPCCfRJ0lD2Ie0jT_cpqeVuU8cH19ODRpUy4abpv0sLruWZX8Qy4aJsQlzB-Flgzm1b8Ij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