[PATCH] AArch64: Add command line option to select big or little endian

scott douglass scott.douglass at arm.com
Thu Apr 3 00:55:59 PDT 2014


  The -EB/-EL options already exist, but effect only the MIPS backend (they are silently ignored for ARM target).  This patch introduces -mbig-endian/-mlittle-endian as aliases for them.  The options are:

  [this is really just a restatement of what Tim said earlier]
  1. leave it as it is (possibly removing the tests for -EB/-EL from ARM targets)
  2. invert the aliasing (but that would mean otherwise needless changes to the MIPS targets)
  3. explicitly fault use of -EL/-EB for ARM targets (doesn't seem worthwhile)

  Personally I vote for 1 with the -EB/-EL tests removed (or left in).

http://llvm-reviews.chandlerc.com/D3215



More information about the cfe-commits mailing list