aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@gcc.gnu.org>2004-07-12 08:45:00 +0000
committerNick Clifton <nickc@gcc.gnu.org>2004-07-12 08:45:00 +0000
commitb55e3aad633bd6e8de2b41b1a6ce41e5241878ac (patch)
tree35b091528607aff8382046cbeb9d46bb0dde23d4 /gcc/config.gcc
parent55e99d5226d32dc4e78fa96375034dda4fbbfcb9 (diff)
downloadgcc-b55e3aad633bd6e8de2b41b1a6ce41e5241878ac.zip
gcc-b55e3aad633bd6e8de2b41b1a6ce41e5241878ac.tar.gz
gcc-b55e3aad633bd6e8de2b41b1a6ce41e5241878ac.tar.bz2
config.gcc: Add sh-*-symbianelf target.
* config.gcc: Add sh-*-symbianelf target. * config/sh/sh.c: Add new target macros: TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING, TARGET_CXX_IMPORT_EXPORT_CLASS. (sh_file_start): Create a definition of the .directive section. (sh_attribute): Add dllimport and dllexport attributes. * config/sh/symbian-pre.h: New file. * config/sh/symbian-post.h: New file. * config/sh/symbian.c: New file. Contains Symbian specific functions. * config/sh/sh-protos.h: Add prototypes for new functions provided by symbian.c. * config/sh/t-symbian: New file. * doc/extend.texi: Document support for dllimport and dllexport attributes by the sh-symbianelf target. From-SVN: r84551
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index bc8fa23..26b4897 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1671,6 +1671,7 @@ s390x-ibm-tpf*)
tmake_file="t-slibgcc-elf-ver s390/t-crtstuff s390/t-tpf"
;;
sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
+sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
sh-*-linux* | sh[346lbe]*-*-linux* | \
sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
sh64-*-netbsd* | sh64l*-*-netbsd*)
@@ -1730,6 +1731,12 @@ sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
tm_file="${tm_file} sh/sh64.h"
extra_headers="shmedia.h ushmedia.h sshmedia.h"
;;
+ *-*-symbianelf*)
+ tmake_file="sh/t-symbian"
+ tm_file="sh/symbian-pre.h sh/little.h ${tm_file} sh/symbian-post.h"
+ extra_objs="symbian.o"
+ extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
+ ;;
esac
# sed el/eb endian suffixes away to avoid confusion with sh[23]e
case `echo ${target} | sed 's/e[lb]-/-/'` in