[patch/testcase] gdb.asm/m32r.inc: fix compile error

Kei Sakamoto sakamoto.kei@renesas.com
Thu Aug 7 02:20:00 GMT 2003


> -nostartfiles should prevent the inclusion of crt* but not of libgloss;
> libgloss is a matter for -nostdlib, which we _don't_ use.  I see that
> in the m32r GCC port, -lgloss is in ENDFILE_CPU_SPEC, which is unlike
> any other port.
> 
> I don't want to mess with that right now, but does adding -lgloss to
> ${link-flags} in asm-source.exp fix the problem?

It worked. I removed the declarations of symbols from the patch.

By the way, I noticed another bug in m32r.inc. In m32r.inc, there is
a sequential nop after bl instruction, which is illegal. M32r simulator
doesn't care about it, but real m32r chips cause exceptions.
The attached new patch  fixes this problem too.

Kei

===

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

* gdb.asm/asm-source.exp : Add -lgloss to link-flags.
* gdb.asm/m32r.inc : Remove an illegal nop after bl instruction.
Replace ld24 with seth/add3.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diffs
Type: application/octet-stream
Size: 990 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030807/5aad8052/attachment.obj>


More information about the Gdb-patches mailing list