RFA: Include OPT_EXTRA_PARTS in SH's t-elf

Nick Clifton nickc@redhat.com
Thu Apr 20 16:54:00 GMT 2006


Hi Joern, Hi Alex,

  I am not sure if this qualifies as an obvious patch, so please could
  you approve or reject the attached patch.  It adds OPT_EXTRA_PARTS
  to the end of EXTRA_MULTILIB_PARTS in gcc/config/sh/t-elf.  I found
  that this was necessary because, for an sh-elf targeted toolchain,
  newlib no longer builds due to this error message when configuring
  newlib/libc/machine/sh:
  
    .../gcc/current/sh-elf/./gcc/collect-ld: cannot find -lgcc-Os-4-200
    collect2: ld returned 1 exit status

  In fact I am not sure that this configure file should be attempting
  to link an executable at all, but this is a separate problem for
  which I will be submitting a separate patch.

  Anyway the cause of the problem appears to be that the t-elf file is
  overriding the definition of the EXTRA_MULTILIB_PARTS variable which
  is initially defined in t-sh.  My patch is one way to solve the
  problem, but I am not sure if it is necessarily the best way.

  What do you think - can I apply this patch ?
  
Cheers
  Nick

gcc/ChangeLog
2006-04-20  Nick Clifton  <nickc@redhat.com>

	* config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
	OPT_EXTRA_PARTS.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-elf.patch
Type: text/x-patch
Size: 459 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060420/693d3af9/attachment.bin>


More information about the Gcc-patches mailing list