Print this page
rollback tools/cw/cw.c
patch01 - 693 import Sun Devpro Math Library
rollback tools/cw/cw.c
patch01 - 693 import Sun Devpro Math Library

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/cw/cw.c
          +++ new/usr/src/tools/cw/cw.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
       23 + * Copyright 2011, Richard Lowe.
       24 + */
       25 +/*
  23   26   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   27   * Use is subject to license terms.
  25   28   */
  26   29  
  27   30  /*
  28   31   * Wrapper for the GNU C compiler to make it accept the Sun C compiler
  29   32   * arguments where possible.
  30   33   *
  31   34   * Since the translation is inexact, this is something of a work-in-progress.
  32   35   *
  33   36   */
  34   37  
  35   38  /* If you modify this file, you must increment CW_VERSION */
  36      -#define CW_VERSION      "1.29"
       39 +#define CW_VERSION      "1.30"
  37   40  
  38   41  /*
  39   42   * -#           Verbose mode
  40   43   * -###         Show compiler commands built by driver, no compilation
  41   44   * -A<name[(tokens)]>   Preprocessor predicate assertion
  42   45   * -B<[static|dynamic]> Specify dynamic or static binding
  43   46   * -C           Prevent preprocessor from removing comments
  44   47   * -c           Compile only - produce .o files, suppress linking
  45   48   * -cg92        Alias for -xtarget=ss1000
  46   49   * -D<name[=token]>     Associate name with token as if by #define
↓ open down ↓ 338 lines elided ↑ open up ↑
 385  388  /*
 386  389   * The translation table for the -xarch= flag used in the Studio compilers.
 387  390   */
 388  391  static const xarch_table_t xtbl[] = {
 389  392  #if defined(__x86)
 390  393          { "generic",    SS11 },
 391  394          { "generic64",  (SS11|M64), { "-m64", "-mtune=opteron" } },
 392  395          { "amd64",      (SS11|M64), { "-m64", "-mtune=opteron" } },
 393  396          { "386",        SS11,   { "-march=i386" } },
 394  397          { "pentium_pro", SS11,  { "-march=pentiumpro" } },
      398 +        { "sse",        SS11, { "-msse", "-mfpmath=sse" } },
      399 +        { "sse2",       SS11, { "-msse2", "-mfpmath=sse" } },
 395  400  #elif defined(__sparc)
 396  401          { "generic",    (SS11|M32), { "-m32", "-mcpu=v8" } },
 397  402          { "generic64",  (SS11|M64), { "-m64", "-mcpu=v9" } },
 398  403          { "v8",         (SS11|M32), { "-m32", "-mcpu=v8", "-mno-v8plus" } },
 399  404          { "v8plus",     (SS11|M32), { "-m32", "-mcpu=v9", "-mv8plus" } },
 400  405          { "v8plusa",    (SS11|M32), { "-m32", "-mcpu=ultrasparc", "-mv8plus",
 401  406                          "-mvis" } },
 402  407          { "v8plusb",    (SS11|M32), { "-m32", "-mcpu=ultrasparc3", "-mv8plus",
 403  408                          "-mvis" } },
 404  409          { "v9",         (SS11|M64), { "-m64", "-mcpu=v9" } },
↓ open down ↓ 1509 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX