From: Rainer Orth <r...@cebitec.uni-bielefeld.de> Date: Mon, 15 Oct 2012 16:44:44 +0200
> David Miller <da...@davemloft.net> writes: > >>>> I'm just calling it VIS4 in GCC so that we can export intrinsics of, >>>> for example, the cryptographic instructions at some point using the >>>> __VIS__ version CPP tests. >>> >>> ...that's why I'm not sure we should invent VIS4 at this point. How is >>> this >>> done on the Solaris Studio side? Couldn't we add a new architecture to the >>> compiler (-mcpu=sparc4, with -mcpu=niagara4 as first variant), and define >>> __sparc4__ for the preprocessor? >> >> I've scanned the documentation and there is no indication of any preprocessor >> predefines or anything like that. >> >> And keep in mind that __VIS__ is our very own invention. >> >> Sun's compilers never predefined this. > > I've found uses of e.g. __VIS >= 0x200 in their Studio 12.3 headers > (prod/include/cc/sys/vis_*.h), and strings on the cc binary reveals > > -D__VIS=0x100 > -D__VIS=0x200 > -D__VIS=0x300 > -D__VIS=0x400 > > I haven't yet found if those are properly documented, though. Strange, ok.