From: "Kei Sakamoto" <sakamoto.kei@renesas.com>
To: <gdb-patches@sources.redhat.com>
Subject: [patch/testcase] gdb.asm/m32r.inc: fix compile error
Date: Mon, 04 Aug 2003 06:22:00 -0000 [thread overview]
Message-ID: <028801c35a51$47db96d0$5169910a@KEI> (raw)
[-- 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
-
next reply other threads:[~2003-08-04 6:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-04 6:22 Kei Sakamoto [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='028801c35a51$47db96d0$5169910a@KEI' \
--to=sakamoto.kei@renesas.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox