[petsc-dev] defaulting gnu compilers on Apple

Satish Balay balay at mcs.anl.gov
Thu Oct 31 10:09:11 CDT 2013


On Thu, 31 Oct 2013, Jed Brown wrote:

> Satish Balay <balay at mcs.anl.gov> writes:
> >>  ⏎
> >> clang: warning: argument unused during compilation: '-fsel-sched-pipelining'
> >> 
> >> ~/s/s/w/tmp ❯❯❯ gcc --analyze file.c
> >> ~/s/s/w/tmp ❯❯❯ clang --analyze file.c
> >
> > so /usr/bin/gcc is an alias to clang on Xcode5
> 
> Not an alias and not the same exact binary, but the same number of
> bytes.  You can report to Apple that the options documented in "man gcc"
> do not work with the "gcc" that they ship.

ok - not an alias but a 'light weight wrapper over clang' with no code
whatsoever from gcc.

As of now - the differences this wrapper might provide is not obvious to us.

So for practical purposes '/usr/bin/gcc' is same as 'clang'.

Satish


More information about the petsc-dev mailing list