Print this page
5261 libm should stop using synonyms.h

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/C/libm.h
          +++ new/usr/src/lib/libm/common/C/libm.h
↓ open down ↓ 44 lines elided ↑ open up ↑
  45   45  
  46   46  #define NAME(x) x
  47   47  #define TEXT    .section        ".text"
  48   48  #define DATA    .section        ".data"
  49   49  #define RO_DATA .section        ".rodata"
  50   50  #define IDENT(x)        .ident  x
  51   51  
  52   52  #if defined(__sparc)
  53   53  
  54   54  #define LIBM_ANSI_PRAGMA_WEAK(sym,stype) \
  55      -        .weak sym; \
  56      -        .type sym,#stype; \
  57      -sym     = __/**/sym
       55 +        .weak __/**/sym;                 \
       56 +        .type __/**/sym,#stype;          \
       57 +__/**/sym       = sym
  58   58  
  59   59  #ifndef SET_FILE
  60   60  #define SET_FILE(x) \
  61   61          .file   x
  62   62  #endif  /* !defined(SET_FILE) */
  63   63  
  64   64  #ifdef PIC
  65   65  /*
  66   66   * One should *never* pass o7 to PIC_SETUP.
  67   67   */
↓ open down ↓ 76 lines elided ↑ open up ↑
 144  144          call    _mcount; \
 145  145          ldx     [%o0+%lo(.L_/**/x/**/1)],%o0; \
 146  146          restore; \
 147  147          .common .L_/**/x/**/1,8,8
 148  148  #endif  /* !defined(PIC) */
 149  149  #endif /* defined(PROF) && defined(__sparcv9) */
 150  150  
 151  151  #elif defined(__x86)
 152  152  
 153  153  #define LIBM_ANSI_PRAGMA_WEAK(sym,stype) \
 154      -        .weak sym; \
 155      -        .type sym,@stype; \
 156      -sym     = __/**/sym
      154 +        .weak __/**/sym;                 \
      155 +        .type __/**/sym,@stype;          \
      156 +__/**/sym       = sym
 157  157  
 158  158  #ifdef PIC
 159  159  #if defined(__amd64)
 160  160  #define PIC_SETUP(x)
 161  161  #define PIC_WRAPUP
 162  162  #define PIC_F(x)        x@PLT
 163  163  #define PIC_G(x)        x@GOTPCREL(%rip)
 164  164  #define PIC_L(x)        x(%rip)
 165  165  #define PIC_G_LOAD(insn,sym,dst) \
 166  166          movq    PIC_G(sym),%dst; \
↓ open down ↓ 22 lines elided ↑ open up ↑
 189  189  #endif  /* defined(PIC) */
 190  190  
 191  191  #else
 192  192  #error Unknown architecture
 193  193  #endif
 194  194  
 195  195  /* END CSTYLED */
 196  196  #else   /* defined(_ASM) */
 197  197  
 198  198  #include "libm_macros.h"
 199      -#include "libm_synonyms.h"
 200  199  #include "libm_protos.h"
 201  200  #include "libm_inlines.h"
 202  201  #include <math.h>
 203  202  #if defined(__SUNPRO_C)
 204  203  #include <sunmath.h>
 205  204  #endif
 206  205  
 207  206  #endif  /* defined(_ASM) */
 208  207  
 209  208  #endif  /* _LIBM_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX