public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [Patch] sh64: Fix gas testsuite expected output
@ 2002-10-02 16:00 Stephen Clarke
  2002-10-02 16:05 ` Hans-Peter Nilsson
  2002-10-02 16:08 ` H. J. Lu
  0 siblings, 2 replies; 36+ messages in thread
From: Stephen Clarke @ 2002-10-02 16:00 UTC (permalink / raw)
  To: binutils

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

The attached file contains a patch to correct the objdump
expected output for two tests in the sh64 gas testsuite.

The change is because the *ABS* symbol is no longer
being generated for these tests, I think this is probably a
result of the stage 1 gas relocs rewrite (though this
is the first time I've checked the sh64 testsuite for about
a month).

Ok to apply?
Steve.


[-- Attachment #2: gastests-patch.txt --]
[-- Type: text/plain, Size: 1692 bytes --]

2002-10-02  Stephen Clarke <stephen.clarke@superh.com>

	* gas/sh/sh64/ptc32-noexp-1.d: Adjust for changes to *ABS*
	symbol generation.
	* gas/sh/sh64/ptc64-noexp-1.d: Likewise.
	
Index: gas/testsuite/gas/sh/sh64/ptc32-noexp-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sh/sh64/ptc32-noexp-1.d,v
retrieving revision 1.1
diff -u -c -3 -p -r1.1 ptc32-noexp-1.d
*** gas/testsuite/gas/sh/sh64/ptc32-noexp-1.d	8 Feb 2002 06:46:14 -0000	1.1
--- gas/testsuite/gas/sh/sh64/ptc32-noexp-1.d	2 Oct 2002 21:27:39 -0000
***************
*** 8,12 ****
  Disassembly of section \.text:
  
  [0]+ <start>:
! [ 	]+0:[ 	]+e8000610[ 	]+pta/l	4 <\*ABS\*\+0x4>,tr1
  [ 	]+0:[ 	]+R_SH_PT_16	\*ABS\*\+0x100
--- 8,12 ----
  Disassembly of section \.text:
  
  [0]+ <start>:
! [ 	]+0:[ 	]+e8000610[ 	]+pta/l	4 <start\+0x4>,tr1
  [ 	]+0:[ 	]+R_SH_PT_16	\*ABS\*\+0x100
Index: gas/testsuite/gas/sh/sh64/ptc64-noexp-1.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sh/sh64/ptc64-noexp-1.d,v
retrieving revision 1.1
diff -u -c -3 -p -r1.1 ptc64-noexp-1.d
*** gas/testsuite/gas/sh/sh64/ptc64-noexp-1.d	8 Feb 2002 06:46:14 -0000	1.1
--- gas/testsuite/gas/sh/sh64/ptc64-noexp-1.d	2 Oct 2002 21:27:39 -0000
***************
*** 8,13 ****
  Disassembly of section \.text:
  
  [0]+ <start>:
! [ 	]+0:[ 	]+e8000610[ 	]+pta/l	4 <\*ABS\*\+0x4>,tr1
  [ 	]+0:[ 	]+R_SH_PT_16	\*ABS\*\+0x100
  
--- 8,13 ----
  Disassembly of section \.text:
  
  [0]+ <start>:
! [ 	]+0:[ 	]+e8000610[ 	]+pta/l	4 <start\+0x4>,tr1
  [ 	]+0:[ 	]+R_SH_PT_16	\*ABS\*\+0x100
  

^ permalink raw reply	[flat|nested] 36+ messages in thread
* Re: [Patch] sh64: Fix gas testsuite expected output
@ 2002-10-15 20:16 Stephen Clarke
  2002-10-15 20:27 ` H. J. Lu
  2002-10-15 21:51 ` Hans-Peter Nilsson
  0 siblings, 2 replies; 36+ messages in thread
From: Stephen Clarke @ 2002-10-15 20:16 UTC (permalink / raw)
  To: H. J. Lu; +Cc: binutils

From: "Stephen Clarke"
Sent: Monday, October 14, 2002 10:05 PM
>
> From: "H. J. Lu"
> Sent: Monday, October 14, 2002 9:38 PM
> 
> > [long list of further failures]
> 
> I don't get any of these.  I'll try to work out why.
> It could help if you'd send me the gas.log file.

It looks like these failures are because of:

.../objdump: dump.o: File format is ambiguous
.../objdump: Matching formats: elf32-sh64big-linux elf32-sh64

and that's because both sh-linux and sh64-linux targets
are enabled, i.e. binutils is configured with
--enable-targets=...,sh-linux,sh64-linux,...

The definition of sh-*-linux* in config.bfd is:

sh-*-linux*)
    targ_defvec=bfd_elf32_shblin_vec
    targ_selvecs=bfd_elf32_shlin_vec
#ifdef BFD64
    targ_selvecs="${targ_selvecs} bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec"
#endif

This includes some "sh64" target vectors, which then cannot be distinguished
from sh64-linux target vectors.

I'm not sure why sh-*-linux* should include sh64 target vectors.  My understanding
of "sh" is that it is supposed to be 32-bit sh targets only, and it
should avoid any overhead required for 64-bit targets.

I suggest that the sh64 vectors are removed from sh-*-linux*.
What do the maintainers think?

(Aside: as mentioned in http://sources.redhat.com/ml/binutils/2002-08/msg00069.html
this particular use of ifdef BFD64 has no effect in config.bfd: the sh64 vectors are
built into an sh-linux target whether or not --enable-64-bit-bfd is specified.  I intended to
submit a patch to strip out the ineffectual ifdefs, but forgot.)

Steve.


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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

end of thread, other threads:[~2002-10-22  8:44 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 16:00 [Patch] sh64: Fix gas testsuite expected output Stephen Clarke
2002-10-02 16:05 ` Hans-Peter Nilsson
2002-10-02 16:08 ` H. J. Lu
2002-10-02 16:28   ` Stephen Clarke
2002-10-02 17:00     ` Hans-Peter Nilsson
2002-10-02 17:12       ` Hans-Peter Nilsson
2002-10-09 13:34       ` Stephen Clarke
2002-10-09 21:20         ` Hans-Peter Nilsson
2002-10-11 10:51           ` Stephen Clarke
2002-10-13 22:01             ` Hans-Peter Nilsson
2002-10-02 17:04     ` H. J. Lu
2002-10-14 21:14       ` Stephen Clarke
2002-10-14 21:38         ` H. J. Lu
2002-10-14 22:05           ` Stephen Clarke
2002-10-15 20:16 Stephen Clarke
2002-10-15 20:27 ` H. J. Lu
2002-10-15 21:39   ` Stephen Clarke
2002-10-15 22:32     ` H. J. Lu
2002-10-15 22:54       ` Stephen Clarke
2002-10-15 23:00         ` H. J. Lu
2002-10-15 23:39           ` H. J. Lu
2002-10-16  1:47             ` Alan Modra
2002-10-16  6:16               ` H. J. Lu
2002-10-16  8:03                 ` Alan Modra
2002-10-16  8:14                   ` H. J. Lu
2002-10-16  9:50                   ` Matt Thomas
2002-10-18  1:56                     ` Alan Modra
2002-10-18 10:22                       ` Ulrich Drepper
2002-10-18 10:38                         ` H. J. Lu
2002-10-18 11:21                           ` Jason R Thorpe
2002-10-18 11:27                             ` Jason R Thorpe
2002-10-18 12:33                         ` Hans-Peter Nilsson
2002-10-18 18:04                           ` Alan Modra
2002-10-18 18:46                             ` Hans-Peter Nilsson
2002-10-22  1:44                           ` kaz Kojima
2002-10-15 21:51 ` Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).