Print this page
remove support for non-ANSI compilation

*** 22,51 **** /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ /* * Copyright (c) 1996-1999 by Sun Microsystems, Inc. * All rights reserved. */ #ifndef _PROF_H #define _PROF_H - #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.10.1.4 */ - #ifdef __cplusplus extern "C" { #endif #ifndef MARK #define MARK(K) {} #else #undef MARK - #if defined(__STDC__) - #if defined(__i386) #define MARK(K) {\ asm(" .data"); \ asm(" .align 4"); \ asm("."#K".:"); \ --- 22,49 ---- /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + * * Copyright (c) 1996-1999 by Sun Microsystems, Inc. * All rights reserved. */ #ifndef _PROF_H #define _PROF_H #ifdef __cplusplus extern "C" { #endif #ifndef MARK #define MARK(K) {} #else #undef MARK #if defined(__i386) #define MARK(K) {\ asm(" .data"); \ asm(" .align 4"); \ asm("."#K".:"); \
*** 65,101 **** asm(" call _mcount"); \ asm(" or %o0, %lo(."#K".), %o0"); \ } #endif - #else /* __STDC__ */ - - #if defined(__i386) - #define MARK(K) {\ - asm(" .data"); \ - asm(" .align 4"); \ - asm(".K.:"); \ - asm(" .long 0"); \ - asm(" .text"); \ - asm("M.K:"); \ - asm(" movl $.K., %edx"); \ - asm(" call _mcount"); \ - } - #endif - - #if defined(__sparc) - #define MARK(K) {\ - asm(" .reserve .K., 4, \".bss\", 4"); \ - asm("M.K:"); \ - asm(" sethi %hi(.K.), %o0"); \ - asm(" call _mcount"); \ - asm(" or %o0, %lo(.K.), %o0"); \ - } - #endif - - #endif /* __STDC__ */ - #endif /* MARK */ #ifdef __cplusplus } #endif --- 63,72 ----