Skip to content

build: use clang instead of gcc on OS X #5822

@rsc

Description

@rsc
Should we use clang instead of gcc for the OS X build? It seems increasingly clear that
Apple's focus on clang means the gcc in Xcode is being left behind.

For example it has been true for at least a year now that gcc -O2 -Wall does not report
use of uninitialized variables. The back end converts them to ud2a and the code crashes
at run time. Compiling with clang does report them. (The underlying bug appears to be
that the gcc back end assumes the clang front end reported them.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions