Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/inc/thr_inlines.h
          +++ new/usr/src/lib/libc/inc/thr_inlines.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
       27 +/*
       28 + * Copyright 2019 Joyent, Inc.
       29 + */
       30 +
  27   31  #ifndef _THR_INLINES_H
  28   32  #define _THR_INLINES_H
  29   33  
  30   34  #include <sys/ccompile.h>
  31   35  
  32   36  #if !defined(__lint) && defined(__GNUC__)
  33   37  
  34   38  /* inlines for gcc */
  35   39  
  36   40  /*
↓ open down ↓ 94 lines elided ↑ open up ↑
 131  135              : : "o2", "o3", "o4", "o5", "cc");
 132  136  #else
 133  137  #error  "port me"
 134  138  #endif
 135  139          return (__value);
 136  140  }
 137  141  
 138  142  extern __GNU_INLINE int
 139  143  set_lock_byte(volatile uint8_t *__lockp)
 140  144  {
 141      -        int __value;
      145 +        int __value = 0;
 142  146  #if defined(__x86)
 143  147          __asm__ __volatile__(
 144  148              "movl $1, %0\n\t"
 145  149              "xchgb %%dl, %1"
 146  150              : "+d" (__value), "+m" (*__lockp));
 147  151  #elif defined(__sparc)
 148  152          __asm__ __volatile__(
 149  153              "ldstub %1, %0\n\t"
 150  154              "membar #LoadLoad"
 151  155              : "=r" (__value), "+m" (*__lockp));
↓ open down ↓ 186 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX