summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorPascal Stumpf <pascal@cvs.openbsd.org>2012-08-22 17:19:36 +0000
committerPascal Stumpf <pascal@cvs.openbsd.org>2012-08-22 17:19:36 +0000
commit0b17a3ce8acce6123900b78334061ec5da7fff13 (patch)
tree899daa1fa911a22452f013b57bb5873909dd7ed4 /sys/arch/sparc64/include
parent9e13e109aa5166fac25ad417e38996ce27251c67 (diff)
Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure cc
invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/asm.h4
-rw-r--r--sys/arch/sparc64/include/profile.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/include/asm.h b/sys/arch/sparc64/include/asm.h
index b36bd0bacaf..433a38da925 100644
--- a/sys/arch/sparc64/include/asm.h
+++ b/sys/arch/sparc64/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.5 2011/03/23 16:54:37 pirofti Exp $ */
+/* $OpenBSD: asm.h,v 1.6 2012/08/22 17:19:35 pascal Exp $ */
/* $NetBSD: asm.h,v 1.15 2000/08/02 22:24:39 eeh Exp $ */
/*
@@ -63,7 +63,7 @@
#endif
#define _ASM_LABEL(name) name
-#ifdef PIC
+#ifdef __PIC__
/*
* PIC_PROLOGUE() is akin to the compiler generated function prologue for
* PIC code. It leaves the address of the Global Offset Table in DEST,
diff --git a/sys/arch/sparc64/include/profile.h b/sys/arch/sparc64/include/profile.h
index e2a46dd7530..f59ee450f8f 100644
--- a/sys/arch/sparc64/include/profile.h
+++ b/sys/arch/sparc64/include/profile.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: profile.h,v 1.3 2003/06/02 23:27:56 millert Exp $ */
+/* $OpenBSD: profile.h,v 1.4 2012/08/22 17:19:35 pascal Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -40,7 +40,7 @@
* @(#)profile.h 8.1 (Berkeley) 6/11/93
*/
-#ifdef PIC
+#ifdef __PIC__
/* Inline expansion of PICCY_SET() (see <machine/asm.h>). */
#define MCOUNT \
__asm__(".global _mcount");\