Communities for your favorite technologies.  Explore all Collectives

What does -fheinous-gnu-extensions option do?

submited by
Style Pass
2024-10-15 12:30:17

Communities for your favorite technologies. Explore all Collectives

Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams

When Homebrew compiles libgcrypt on OS X, it patches it to use clang and add -std=gnu89 and -fheinous-gnu-extensions to the CFLAG Makefile var. What does the latter do?

GNU C has an extremely ugly extension whereby they silently ignore "noop" casts in places where an lvalue is required by an inline asm. We emulate this behavior when -fheinous-gnu-extensions is specified, but provide a strong guidance to not use it.

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.10.11.16802

Leave a Comment