Skip to content

Commit af22aa7

Browse files
amlutoIngo Molnar
authored andcommitted
x86/asm: Remove the xyz_cfi macros from dwarf2.h
They are currently unused, and I don't think that anyone was ever particularly happy with them. They had the unfortunate property that they made it easy to CFI-annotate things without thinking about them -- when pushing, do you want to just update the CFA offset, or do you also want to update the saved location of the register being pushed? Suggested-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1447bfbd10bb268b4593b32534ecefa1f4df287e.1444696194.git.luto@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 893a3ec commit af22aa7

File tree

1 file changed

+0
-93
lines changed

1 file changed

+0
-93
lines changed

arch/x86/include/asm/dwarf2.h

Lines changed: 0 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -81,97 +81,4 @@
8181

8282
#endif
8383

84-
/*
85-
* An attempt to make CFI annotations more or less
86-
* correct and shorter. It is implied that you know
87-
* what you're doing if you use them.
88-
*/
89-
#ifdef __ASSEMBLY__
90-
#ifdef CONFIG_X86_64
91-
.macro pushq_cfi reg
92-
pushq \reg
93-
CFI_ADJUST_CFA_OFFSET 8
94-
.endm
95-
96-
.macro pushq_cfi_reg reg
97-
pushq %\reg
98-
CFI_ADJUST_CFA_OFFSET 8
99-
CFI_REL_OFFSET \reg, 0
100-
.endm
101-
102-
.macro popq_cfi reg
103-
popq \reg
104-
CFI_ADJUST_CFA_OFFSET -8
105-
.endm
106-
107-
.macro popq_cfi_reg reg
108-
popq %\reg
109-
CFI_ADJUST_CFA_OFFSET -8
110-
CFI_RESTORE \reg
111-
.endm
112-
113-
.macro pushfq_cfi
114-
pushfq
115-
CFI_ADJUST_CFA_OFFSET 8
116-
.endm
117-
118-
.macro popfq_cfi
119-
popfq
120-
CFI_ADJUST_CFA_OFFSET -8
121-
.endm
122-
123-
.macro movq_cfi reg offset=0
124-
movq %\reg, \offset(%rsp)
125-
CFI_REL_OFFSET \reg, \offset
126-
.endm
127-
128-
.macro movq_cfi_restore offset reg
129-
movq \offset(%rsp), %\reg
130-
CFI_RESTORE \reg
131-
.endm
132-
#else /*!CONFIG_X86_64*/
133-
.macro pushl_cfi reg
134-
pushl \reg
135-
CFI_ADJUST_CFA_OFFSET 4
136-
.endm
137-
138-
.macro pushl_cfi_reg reg
139-
pushl %\reg
140-
CFI_ADJUST_CFA_OFFSET 4
141-
CFI_REL_OFFSET \reg, 0
142-
.endm
143-
144-
.macro popl_cfi reg
145-
popl \reg
146-
CFI_ADJUST_CFA_OFFSET -4
147-
.endm
148-
149-
.macro popl_cfi_reg reg
150-
popl %\reg
151-
CFI_ADJUST_CFA_OFFSET -4
152-
CFI_RESTORE \reg
153-
.endm
154-
155-
.macro pushfl_cfi
156-
pushfl
157-
CFI_ADJUST_CFA_OFFSET 4
158-
.endm
159-
160-
.macro popfl_cfi
161-
popfl
162-
CFI_ADJUST_CFA_OFFSET -4
163-
.endm
164-
165-
.macro movl_cfi reg offset=0
166-
movl %\reg, \offset(%esp)
167-
CFI_REL_OFFSET \reg, \offset
168-
.endm
169-
170-
.macro movl_cfi_restore offset reg
171-
movl \offset(%esp), %\reg
172-
CFI_RESTORE \reg
173-
.endm
174-
#endif /*!CONFIG_X86_64*/
175-
#endif /*__ASSEMBLY__*/
176-
17784
#endif /* _ASM_X86_DWARF2_H */

0 commit comments

Comments
 (0)