https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116183

            Bug ID: 116183
           Summary: -fcompare-debug broken with piped input
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

This is an unfortunate one.

aflplusplus failed to build with -fcompare-debug -gno-statement-frontiers, but
the reason is silly.

First, we had:
```
$ echo 'int main() { __asm__("xorb %al, %al"); }' | gcc -O2 -fcompare-debug -x
c - -gno-statement-frontiers
gcc: error: -: '-fcompare-debug' failure (length)
```

Already surprising. But wait!

```
echo 'int main() { }' | gcc -O2 -fcompare-debug -x c - -gno-statement-frontiers
gcc: error: -: ‘-fcompare-debug’ failure (length)
```

Reply via email to