All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mips: Avoid a form of the .type directive that is not supported by LLVM's Integrated Assembler
@ 2016-02-17 15:37 ` Daniel Sanders
  0 siblings, 0 replies; 10+ messages in thread
From: Daniel Sanders @ 2016-02-17 15:37 UTC (permalink / raw)
  To: Ralf Baechle
  Cc: Daniel Sanders, Scott Egerton, Paul Burton, Markos Chandras,
	Leonid Yegoshin, linux-mips

The target independent parts of the LLVM Lexer considers 'fault@function'
to be a single token representing the 'fault' symbol with a 'function'
modifier. However, this is not the case in the .type directive where
'function' refers to STT_FUNC from the ELF standard.

This is the only example of this form of '.type' that we are aware of in
MIPS source so we'd prefer to make this small source change rather than
complicate the target independent parts of LLVM's assembly lexer with
directive and/or target specific exceptions to the lexing rules.

Signed-off-by: Scott Egerton <Scott.Egerton@imgtec.com>
Signed-off-by: Daniel Sanders <daniel.sanders@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: linux-mips@linux-mips.org

---
 arch/mips/kernel/r4k_fpu.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kernel/r4k_fpu.S b/arch/mips/kernel/r4k_fpu.S
index f09546e..17732f8 100644
--- a/arch/mips/kernel/r4k_fpu.S
+++ b/arch/mips/kernel/r4k_fpu.S
@@ -358,7 +358,7 @@ LEAF(_restore_msa_all_upper)
 
 	.set	reorder
 
-	.type	fault@function
+	.type	fault, @function
 	.ent	fault
 fault:	li	v0, -EFAULT				# failure
 	jr	ra
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-02-24 14:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 15:37 [PATCH] mips: Avoid a form of the .type directive that is not supported by LLVM's Integrated Assembler Daniel Sanders
2016-02-17 15:37 ` Daniel Sanders
2016-02-17 20:04 ` Maciej W. Rozycki
2016-02-17 20:04   ` Maciej W. Rozycki
2016-02-19 10:06   ` Daniel Sanders
2016-02-19 10:06     ` Daniel Sanders
2016-02-24  1:50   ` Ralf Baechle
2016-02-24 12:30     ` Maciej W. Rozycki
2016-02-24 12:30       ` Maciej W. Rozycki
2016-02-24 14:26     ` Daniel Sanders

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.