[cfe-dev] [LLVMdev] Odd PPC inline asm constraint

Hal Finkel hfinkel at anl.gov
Tue May 1 15:47:15 PDT 2012

On Tue, 01 May 2012 17:23:07 -0500
Peter Bergner <bergner at vnet.ibm.com> wrote:

> On Tue, 2012-05-01 at 16:06 -0500, Hal Finkel wrote:
> > LLVM/clang now will build in the normal way (./configure; make
> > install) on PPC (you'll need at least the 3.1 release candidate (or
> > trunk)). I generally build on my PPC64 hosts with:
> > EXTRA_OPTIONS=-mminimal-toc
> Ok, it built fine, but what is the llvm equivalent of gcc's -m32 -m64?
> Google doesn't seem to be much help, nor is the clang --help output.

Noted, we should fix that as well. By default it should build for
whatever the current host is (no special flags required). To
specifically build for something else, use:
-ccc-host-triple powerpc64-unknown-linux-gnu
-ccc-host-triple powerpc-unknown-linux-gnu

The other secret is to try: --help-hidden (for all of the driver
options) and also: -cc1 -help (this shows all of the compiler options;
many of these [especially the ones that look like gcc options] are
passed through to the compiler [for the others, you'd need to use
-Xclang <option>].


> Peter

Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory

More information about the cfe-dev mailing list