~mcf/cc-issues#53:
Support OpenBSD

Current blockers:

  1. OpenBSD fscanf doesn't support hex floats, so QBE fails to read them in properly.
  2. OpenBSD libc headers require inline asm on amd64 (#5).
  3. OpenBSD libc headers (ctype.h and signal.h) use GNU inline semantics with __GNUC__, and declare functions with conflicting linkage without it.
Status
REPORTED
Submitter
~mcf
Assigned to
No-one
Submitted
7 months ago
Updated
6 months ago
Labels
No labels applied.

~mcf 6 months ago

Worked around (1) for now by using %.*g and DECIMAL_DIG.

Continuous build patches /usr/include/amd64/endian.h to work around (2).

Looks like the inline definitions in ctype.h and signal.h can be avoided by defining _ANSI_LIBRARY. I'm not sure exactly what this macro is intended for, but it seems to work.

Register here or Log in to comment, or comment via email.