summaryrefslogtreecommitdiff
path: root/libc/debian/patches/libm-as.patch
blob: 2071c05186155370276d71e34334e4b6613e1e11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Index: b/usr/src/lib/libm/common/C/libm.h
===================================================================
--- a/usr/src/lib/libm/common/C/libm.h
+++ b/usr/src/lib/libm/common/C/libm.h
@@ -52,9 +52,9 @@
 #if defined(__sparc)
 
 #define	LIBM_ANSI_PRAGMA_WEAK(sym,stype) \
-	.weak __/**/sym;		 \
-	.type __/**/sym,#stype;		 \
-__/**/sym	= sym
+	.weak __##sym;		 \
+	.type __##sym,#stype;		 \
+__##sym	= sym
 
 #ifndef SET_FILE
 #define	SET_FILE(x) \
@@ -110,29 +110,29 @@ __/**/sym	= sym
 #define	MCOUNT_SIZE	(9*4)	/* 9 instructions */
 #define	MCOUNT(x) \
 	save	%sp, -SA(MINFRAME), %sp; \
-	sethi	%hh(.L_/**/x/**/1), %o0; \
-	sethi	%lm(.L_/**/x/**/1), %o1; \
-	or	%o0, %hm(.L_/**/x/**/1), %o0; \
-	or	%o1, %lo(.L_/**/x/**/1), %o1; \
+	sethi	%hh(.L_##x##1), %o0; \
+	sethi	%lm(.L_##x##1), %o1; \
+	or	%o0, %hm(.L_##x##1), %o0; \
+	or	%o1, %lo(.L_##x##1), %o1; \
 	sllx	%o0, 32, %o0; \
 	call	_mcount; \
 	or	%o0, %o1, %o0; \
 	restore; \
-	.common .L_/**/x/**/1, 8, 8
+	.common .L_##x##1, 8, 8
 #elif defined(PIC32)
 #define	MCOUNT_SIZE	(10*4)	/* 10 instructions */
 #define	MCOUNT(x) \
 	save	%sp,-SA(MINFRAME),%sp; \
 1:	call	.+8; \
 	sethi	%hi(_GLOBAL_OFFSET_TABLE_-(1b-.)),%o0; \
-	sethi	%hi(.L_/**/x/**/1),%o1; \
+	sethi	%hi(.L_##x##1),%o1; \
 	add	%o0,%lo(_GLOBAL_OFFSET_TABLE_-(1b-.)),%o0; \
-	add	%o1,%lo(.L_/**/x/**/1),%o1; \
+	add	%o1,%lo(.L_##x##1),%o1; \
 	add	%o0,%o7,%o0; \
 	call	_mcount; \
 	ldx	[%o0+%o1],%o0; \
 	restore; \
-	.common .L_/**/x/**/1,8,8
+	.common .L_##x##1,8,8
 #else	/* PIC13 */
 #define	MCOUNT_SIZE	(8*4)	/* 8 instructions */
 #define	MCOUNT(x) \
@@ -142,18 +142,18 @@ __/**/sym	= sym
 	add	%o0,%lo(_GLOBAL_OFFSET_TABLE_-(1b-.)),%o0; \
 	add	%o0,%o7,%o0; \
 	call	_mcount; \
-	ldx	[%o0+%lo(.L_/**/x/**/1)],%o0; \
+	ldx	[%o0+%lo(.L_##x##1)],%o0; \
 	restore; \
-	.common .L_/**/x/**/1,8,8
+	.common .L_##x##1,8,8
 #endif	/* !defined(PIC) */
 #endif /* defined(PROF) && defined(__sparcv9) */
 
 #elif defined(__x86)
 
 #define	LIBM_ANSI_PRAGMA_WEAK(sym,stype) \
-	.weak __/**/sym;		 \
-	.type __/**/sym,@stype;		 \
-__/**/sym	= sym
+	.weak __##sym;		 \
+	.type __##sym,@stype;		 \
+__##sym	= sym
 
 #ifdef PIC
 #if defined(__amd64)
@@ -168,9 +168,9 @@ __/**/sym	= sym
 #else
 #define	PIC_SETUP(label) \
 	pushl	%ebx; \
-	call	.label; \
-.label:	popl	%ebx; \
-	addl	$_GLOBAL_OFFSET_TABLE_+[.-.label],%ebx
+	call	.##label; \
+.##label:	popl	%ebx; \
+	addl	$_GLOBAL_OFFSET_TABLE_+[.-.##label],%ebx
 #define	PIC_WRAPUP	popl	%ebx
 #define	PIC_F(x)	x@PLT
 #define	PIC_G(x)	x@GOT(%ebx)