Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/prof.h
          +++ new/usr/src/head/prof.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  27   29   * Copyright (c) 1996-1999 by Sun Microsystems, Inc.
  28   30   * All rights reserved.
  29   31   */
  30   32  
  31   33  #ifndef _PROF_H
  32   34  #define _PROF_H
  33   35  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.10.1.4 */
  35      -
  36   36  #ifdef  __cplusplus
  37   37  extern "C" {
  38   38  #endif
  39   39  
  40   40  #ifndef MARK
  41   41  #define MARK(K) {}
  42   42  #else
  43   43  #undef  MARK
  44   44  
  45      -#if defined(__STDC__)
  46      -
  47   45  #if defined(__i386)
  48   46  #define MARK(K) {\
  49   47                  asm("   .data"); \
  50   48                  asm("   .align 4"); \
  51   49                  asm("."#K".:"); \
  52   50                  asm("   .long 0"); \
  53   51                  asm("   .text"); \
  54   52                  asm("M."#K":"); \
  55   53                  asm("   movl    $."#K"., %edx"); \
  56   54                  asm("   call _mcount"); \
↓ open down ↓ 3 lines elided ↑ open up ↑
  60   58  #if defined(__sparc)
  61   59  #define MARK(K) {\
  62   60                  asm("   .reserve        ."#K"., 4, \".bss\", 4"); \
  63   61                  asm("M."#K":"); \
  64   62                  asm("   sethi   %hi(."#K".), %o0"); \
  65   63                  asm("   call    _mcount"); \
  66   64                  asm("   or      %o0, %lo(."#K".), %o0"); \
  67   65                  }
  68   66  #endif
  69   67  
  70      -#else   /* __STDC__ */
  71      -
  72      -#if defined(__i386)
  73      -#define MARK(K) {\
  74      -                asm("   .data"); \
  75      -                asm("   .align 4"); \
  76      -                asm(".K.:"); \
  77      -                asm("   .long 0"); \
  78      -                asm("   .text"); \
  79      -                asm("M.K:"); \
  80      -                asm("   movl    $.K., %edx"); \
  81      -                asm("   call _mcount"); \
  82      -                }
  83      -#endif
  84      -
  85      -#if defined(__sparc)
  86      -#define MARK(K) {\
  87      -                asm("   .reserve        .K., 4, \".bss\", 4"); \
  88      -                asm("M.K:"); \
  89      -                asm("   sethi   %hi(.K.), %o0"); \
  90      -                asm("   call    _mcount"); \
  91      -                asm("   or      %o0, %lo(.K.), %o0"); \
  92      -                }
  93      -#endif
  94      -
  95      -#endif  /* __STDC__ */
  96      -
  97   68  #endif  /* MARK */
  98   69  
  99   70  #ifdef  __cplusplus
 100   71  }
 101   72  #endif
 102   73  
 103   74  #endif  /* _PROF_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX