summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2013-09-23 15:47:31 +0000
committerdoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2013-09-23 15:47:31 +0000
commitb40d32c4b7b2cd0696a90620dc6a84de8daec4b9 (patch)
tree537f09fa4ce85184a1f14f560c148efca6ddbf61
parent6cacece0e931d49a85224f373545e9139408e61c (diff)
downloadgcc-47-b40d32c4b7b2cd0696a90620dc6a84de8daec4b9.tar.gz
- Fix bootstrap of native aarch64 build.
git-svn-id: svn://svn.debian.org/svn/gcccvs/branches/sid/gcc-4.7@6967 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
-rw-r--r--debian/patches/aarch64-bootstrap.diff24
-rw-r--r--debian/rules.patch1
2 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/aarch64-bootstrap.diff b/debian/patches/aarch64-bootstrap.diff
new file mode 100644
index 0000000..0918c92
--- /dev/null
+++ b/debian/patches/aarch64-bootstrap.diff
@@ -0,0 +1,24 @@
+# DP: Fix bootstrap of native aarch64 build.
+
+--- a/src/gcc/config/aarch64/aarch64-protos.h
++++ b/src/gcc/config/aarch64/aarch64-protos.h
+@@ -177,7 +177,7 @@
+ rtx aarch64_simd_vect_par_cnst_half (enum machine_mode, bool);
+ rtx aarch64_tls_get_addr (void);
+ unsigned aarch64_dbx_register_number (unsigned);
+-unsigned aarch64_regno_regclass (unsigned);
++enum reg_class aarch64_regno_regclass (unsigned);
+ unsigned aarch64_trampoline_size (void);
+ void aarch64_asm_output_labelref (FILE *, const char *);
+ void aarch64_elf_asm_named_section (const char *, unsigned, tree);
+--- a/src/gcc/config/aarch64/aarch64.c
++++ b/src/gcc/config/aarch64/aarch64.c
+@@ -3672,7 +3672,7 @@
+
+ /* Implement REGNO_REG_CLASS. */
+
+-unsigned
++enum reg_class
+ aarch64_regno_regclass (unsigned regno)
+ {
+ if (GP_REGNUM_P (regno))
diff --git a/debian/rules.patch b/debian/rules.patch
index 302004c..036938c 100644
--- a/debian/rules.patch
+++ b/debian/rules.patch
@@ -38,6 +38,7 @@ debian_patches += \
# boehm-gc-nocheck: seems to work on the buildds \
debian_patches += \
+ $(if $(with_linaro_branch),aarch64-bootstrap) \
$(if $(with_linaro_branch),aarch64-multiarch) \
$(if $(with_linaro_branch),aarch64-hash-style-gnu) \
aarch64-libffi \