Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/testcase] gdb.asm/m32r.inc: fix compile error
@ 2003-08-04  6:22 Kei Sakamoto
  2003-08-05 18:02 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Kei Sakamoto @ 2003-08-04  6:22 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 487 bytes --]

Thank you, everyone. Now m32r is back! :-)

The attached fixes compile errors of asm-source.exp for m32r-elf.
There are several missing symbols.

It also replaces ld24 instruction with seth/add3 instruction.
ld24 can handle only 24bit address, so ld24 fails to set sp when
_stack is located at a large address.

Kei Sakamoto

===

2003-08-04    Kei Sakamoto  <sakamoto.kei@renesas.com>

* gdb.asm/m32r.inc : Add several missing symbols. Replace ld24
                     with seth/add3.

[-- Attachment #2: diffs --]
[-- Type: application/octet-stream, Size: 663 bytes --]

diff -Npur src/gdb/testsuite/gdb.asm/m32r.inc src.orig/gdb/testsuite/gdb.asm/m32r.inc
--- src/gdb/testsuite/gdb.asm/m32r.inc	2003-08-04 13:10:12.000000000 +0900
+++ src.orig/gdb/testsuite/gdb.asm/m32r.inc	2001-11-22 10:13:10.000000000 +0900
@@ -30,22 +30,6 @@
 
 	comment "crt0 startup"
 	.macro gdbasm_startup
-	seth sp, #shigh(_stack)
-	add3 sp, sp, #low(_stack)
+	ld24 sp,_stack
 	ldi fp,#0
 	.endm
-
-	.weak _exit
-gdbasm_declare _exit
-	.weak _kill
-gdbasm_declare _kill
-	.weak _write
-gdbasm_declare _write
-	.weak _sbrk
-gdbasm_declare _sbrk
-	.weak _getpid
-gdbasm_declare _getpid
-	.weak _stack
-gdbasm_declare _stack
-	nop
-

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

end of thread, other threads:[~2003-08-07  4:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-04  6:22 [patch/testcase] gdb.asm/m32r.inc: fix compile error Kei Sakamoto
2003-08-05 18:02 ` Daniel Jacobowitz
2003-08-06  1:45   ` Kei Sakamoto
2003-08-06  6:08     ` Doug Evans
2003-08-06 13:04     ` Daniel Jacobowitz
2003-08-07  2:20       ` Kei Sakamoto
2003-08-07  4:06         ` Daniel Jacobowitz
2003-08-07  4:17   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox