RFA: Add SH Symbian port

Nick Clifton nickc@redhat.com
Tue Jul 6 15:26:00 GMT 2004


Hi Joern, Hi Alex,

  Please could I have approval to apply the patch below.  It adds
  support for an SH port targeted at the Symbian OS.  This work was
  done by Red Hat under contract to Symbian and Renesas and they would
  now like the code contributed.

  The patch makes use of the recently accepted patch to add an
  import_export_class field to the gcc_target structure and it also
  needs a binutils patch which I will be submitting shortly.  All of
  the changes to the normal parts of the SH backend are protected by
  the definition of a macro called SYMBIAN.

Cheers
  Nick

gcc/ChangeLog
2004-07-06  Nick Clifton  <nickc@redhat.com>

	* config.gcc: Add *-symbian-elf support to the general SH
	target.
        * config/sh/sh.c: Add gcc_target structure initialisers for
	use by the sh-symbian-elf target.
        (print_operand): Add support for the naked attribute.
        (sh_expand_prologue): Likewise.
        (sh_expand_epilogue): Likewise.
        (sh_need_epilogue): Likewise.
        (sh_attribute): Add naked, dllimport and dllexport
	attributes.
        (sh_file_start): Create a .directive section.
        (sh_reorg): Call sh_symbian_reorg.
        * config/sh/symbian-post.h: New header file.  Contains
	definitions of macros that override definitions provided in
	earlier headers.
        * config/sh/symbian-pre.h: New header file.  Define SYMBIAN
	and other macros necessary to set up the Symbian environment.
        * config/sh/t-symbian: New makefile fragment.  Define the
	build rules for the support files used by the Symbian target.
        * config/sh/symbian.c: New source file.  Contains all of the
	SH backend functions necessary to support the sh-symbian-elf
	target.
        * config/sh/sh-protos.h: Add prototypes for the functions
	defined in symbian.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sh-symbian.patch
Type: text/x-patch
Size: 44485 bytes
Desc: Add Symbian OS targeted SH port to GCC
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040706/2329ca42/attachment.bin>


More information about the Gcc-patches mailing list