https://bugs.llvm.org/show_bug.cgi?id=37976

            Bug ID: 37976
           Summary: Allow '||' inside of ASSERT expressions
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

LLD 6.0.0 (FreeBSD 326565-1200002) (compatible with GNU linkers) as shipped by
FreeBSD doesn't allow the usage of the '||' operator inside of ASSERT
expressions:

$ cat script.lds
ASSERT(0 || 0, "Foo")
$ ld -T script.lds
ld: error: script.lds:1: malformed number: |
>>> ASSERT(0 || 0, "Foo")
>>>           ^

ld: error: target emulation unknown: -m or at least one .o file required
$ /usr/local/bin/ld -T script.lds
/usr/local/bin/ld: no input files

The same expression work just fine with GNU ld.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to