11548 11506 breaks the SPARC build

Review Request #2223 — Created Aug. 13, 2019 and submitted

ptribble
illumos-gate
11548
general
Post 11506, the SPARC build fails nice and early (in tools) with lots of:

cc1: error: unrecognized command line option "-msave-args"

Looking at #11506, apart from the smatch resync, it adds -m64 and the unrecognized -msave-args

With the fix, build works on SPARC.

I've verified that on x86 the build is clean too, and smatch is still built with the same compiler flags as before.

igork
  1. Ship It!
  2. 
      
jlevon
  1. Ship It!
  2. 
      
gwr
  1. 
      
  2. usr/src/tools/smatch/Makefile (Diff revision 1)
     
     

    Does anyone know why smatch on i386 needs -msave-args?

    1. I think we build it -m64 now, and AMD64 is pass-by-register -- to get arguments on the stack in a core, we then need -msave-args.

  3. 
      
ptribble
Review request changed

Status: Closed (submitted)

Loading...