summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/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/sparc/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/sparc/include')
-rw-r--r--sys/arch/sparc/include/asm.h4
-rw-r--r--sys/arch/sparc/include/profile.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/include/asm.h b/sys/arch/sparc/include/asm.h
index ad4dde78929..97b770066ff 100644
--- a/sys/arch/sparc/include/asm.h
+++ b/sys/arch/sparc/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.5 1997/07/16 15:16:43 christos Exp $ */
/*
@@ -71,7 +71,7 @@
#endif /* __ELF__ */
-#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/sparc/include/profile.h b/sys/arch/sparc/include/profile.h
index 972b8d476f5..ad607e94c70 100644
--- a/sys/arch/sparc/include/profile.h
+++ b/sys/arch/sparc/include/profile.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: profile.h,v 1.8 2003/06/02 23:27:54 millert Exp $ */
+/* $OpenBSD: profile.h,v 1.9 2012/08/22 17:19:35 pascal Exp $ */
/* $NetBSD: profile.h,v 1.8 1997/02/01 20:56:40 mrg Exp $ */
/*
@@ -53,7 +53,7 @@
#define _MCOUNT_ENTRY "mcount"
#endif
-#ifdef PIC
+#ifdef __PIC__
/* Inline expansion of PICCY_SET() (see <machine/asm.h>). */
#define MCOUNT \
__asm__(".global " _MCOUNT_ENTRY);\