diff options
author | Jie Zhang <jie.zhang@analog.com> | 2007-05-08 12:33:23 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2007-05-08 12:33:23 +0000 |
commit | 28f601ff8ae7fe32f4d11b5cb7489d399bbcc24c (patch) | |
tree | 5542bb0f2ccd3df59357aeb7fbc98b2c4facc3e8 /gcc/config | |
parent | fb8ffd109a098d6682e0687ee083fa1c3b80d0b4 (diff) | |
download | gcc-28f601ff8ae7fe32f4d11b5cb7489d399bbcc24c.zip gcc-28f601ff8ae7fe32f4d11b5cb7489d399bbcc24c.tar.gz gcc-28f601ff8ae7fe32f4d11b5cb7489d399bbcc24c.tar.bz2 |
bfin-protos.h (enum bfin_cpu): Add BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
* config/bfin/bfin-protos.h (enum bfin_cpu): Add
BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
* config/bfin/bfin.c (bfin_handle_option): Handle
-mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
Support bf534, bf536 and bf561.
* doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
From-SVN: r124544
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/bfin/bfin-protos.h | 5 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.c | 9 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.h | 9 |
3 files changed, 22 insertions, 1 deletions
diff --git a/gcc/config/bfin/bfin-protos.h b/gcc/config/bfin/bfin-protos.h index 2062f77d..9495530 100644 --- a/gcc/config/bfin/bfin-protos.h +++ b/gcc/config/bfin/bfin-protos.h @@ -29,7 +29,10 @@ typedef enum bfin_cpu BFIN_CPU_BF531, BFIN_CPU_BF532, BFIN_CPU_BF533, - BFIN_CPU_BF537 + BFIN_CPU_BF534, + BFIN_CPU_BF536, + BFIN_CPU_BF537, + BFIN_CPU_BF561 } bfin_cpu_t; /* Value of -mcpu= */ diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 89931df..a91e488 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -2119,8 +2119,17 @@ bfin_handle_option (size_t code, const char *arg, int value) bfin_cpu_type = BFIN_CPU_BF532; else if (strcmp (arg, "bf533") == 0) bfin_cpu_type = BFIN_CPU_BF533; + else if (strcmp (arg, "bf534") == 0) + bfin_cpu_type = BFIN_CPU_BF534; + else if (strcmp (arg, "bf536") == 0) + bfin_cpu_type = BFIN_CPU_BF536; else if (strcmp (arg, "bf537") == 0) bfin_cpu_type = BFIN_CPU_BF537; + else if (strcmp (arg, "bf561") == 0) + { + warning (0, "bf561 support is incomplete yet."); + bfin_cpu_type = BFIN_CPU_BF561; + } else return false; return true; diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h index c600af3..c2e75b2 100644 --- a/gcc/config/bfin/bfin.h +++ b/gcc/config/bfin/bfin.h @@ -59,9 +59,18 @@ extern int target_flags; case BFIN_CPU_BF533: \ builtin_define ("__ADSPBF533__"); \ break; \ + case BFIN_CPU_BF534: \ + builtin_define ("__ADSPBF534__"); \ + break; \ + case BFIN_CPU_BF536: \ + builtin_define ("__ADSPBF536__"); \ + break; \ case BFIN_CPU_BF537: \ builtin_define ("__ADSPBF537__"); \ break; \ + case BFIN_CPU_BF561: \ + builtin_define ("__ADSPBF561__"); \ + break; \ } \ \ if (TARGET_FDPIC) \ |