summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-07 18:42:50 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-07 18:42:50 +0000
commiteb6236e0e3a926b65440f57c0450901e7e5e9ef5 (patch)
tree66d7aa5f2a4fc90cf78592fd44d8ef8da480d201
parent80e585b219e1c710e4f082eca22f6088ef770f8b (diff)
downloadgcc-eb6236e0e3a926b65440f57c0450901e7e5e9ef5.tar.gz
From Jie Zhang <jie.zhang@analog.com>:
* config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type, bfin_si_revision, bfin_workarounds): Move these ... * config/bfin/bfin.h: ... here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151487 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/bfin/bfin-protos.h38
-rw-r--r--gcc/config/bfin/bfin.h38
3 files changed, 43 insertions, 38 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cbbe9622a96..468d36b8db1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -20,6 +20,11 @@
(bfin_gen_bundles): Remove dummy insns created by
add_sched_insns_for_speculation.
+ From Jie Zhang <jie.zhang@analog.com>:
+ * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
+ bfin_si_revision, bfin_workarounds): Move these ...
+ * config/bfin/bfin.h: ... here.
+
2009-09-07 Martin Jambor <mjambor@suse.cz>
PR middle-end/41282
diff --git a/gcc/config/bfin/bfin-protos.h b/gcc/config/bfin/bfin-protos.h
index 72698a2b0a1..4a96cf10e1c 100644
--- a/gcc/config/bfin/bfin-protos.h
+++ b/gcc/config/bfin/bfin-protos.h
@@ -22,44 +22,6 @@
#ifndef GCC_BFIN_PROTOS_H
#define GCC_BFIN_PROTOS_H
-/* CPU type. */
-typedef enum bfin_cpu_type
-{
- BFIN_CPU_UNKNOWN,
- BFIN_CPU_BF512,
- BFIN_CPU_BF514,
- BFIN_CPU_BF516,
- BFIN_CPU_BF518,
- BFIN_CPU_BF522,
- BFIN_CPU_BF523,
- BFIN_CPU_BF524,
- BFIN_CPU_BF525,
- BFIN_CPU_BF526,
- BFIN_CPU_BF527,
- BFIN_CPU_BF531,
- BFIN_CPU_BF532,
- BFIN_CPU_BF533,
- BFIN_CPU_BF534,
- BFIN_CPU_BF536,
- BFIN_CPU_BF537,
- BFIN_CPU_BF538,
- BFIN_CPU_BF539,
- BFIN_CPU_BF542,
- BFIN_CPU_BF544,
- BFIN_CPU_BF547,
- BFIN_CPU_BF548,
- BFIN_CPU_BF549,
- BFIN_CPU_BF561
-} bfin_cpu_t;
-
-/* Value of -mcpu= */
-extern bfin_cpu_t bfin_cpu_type;
-
-/* Value of -msi-revision= */
-extern int bfin_si_revision;
-
-extern unsigned int bfin_workarounds;
-
/* For the anomaly 05-00-0245 */
#define WA_SPECULATIVE_LOADS 0x00000001
#define ENABLE_WA_SPECULATIVE_LOADS \
diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h
index 53a7957405a..24d9495d072 100644
--- a/gcc/config/bfin/bfin.h
+++ b/gcc/config/bfin/bfin.h
@@ -26,6 +26,44 @@
#define BRT 1
#define BRF 0
+/* CPU type. */
+typedef enum bfin_cpu_type
+{
+ BFIN_CPU_UNKNOWN,
+ BFIN_CPU_BF512,
+ BFIN_CPU_BF514,
+ BFIN_CPU_BF516,
+ BFIN_CPU_BF518,
+ BFIN_CPU_BF522,
+ BFIN_CPU_BF523,
+ BFIN_CPU_BF524,
+ BFIN_CPU_BF525,
+ BFIN_CPU_BF526,
+ BFIN_CPU_BF527,
+ BFIN_CPU_BF531,
+ BFIN_CPU_BF532,
+ BFIN_CPU_BF533,
+ BFIN_CPU_BF534,
+ BFIN_CPU_BF536,
+ BFIN_CPU_BF537,
+ BFIN_CPU_BF538,
+ BFIN_CPU_BF539,
+ BFIN_CPU_BF542,
+ BFIN_CPU_BF544,
+ BFIN_CPU_BF547,
+ BFIN_CPU_BF548,
+ BFIN_CPU_BF549,
+ BFIN_CPU_BF561
+} bfin_cpu_t;
+
+/* Value of -mcpu= */
+extern bfin_cpu_t bfin_cpu_type;
+
+/* Value of -msi-revision= */
+extern int bfin_si_revision;
+
+extern unsigned int bfin_workarounds;
+
/* Print subsidiary information on the compiler version in use. */
#define TARGET_VERSION fprintf (stderr, " (BlackFin bfin)")