summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-gcc-config-microblaze-Use-default-ident-output-gener.patch
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-12-13 16:58:34 -0800
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2018-01-12 15:47:59 -0800
commit7935ef724cd7359ed97e6ae3d90ebc8f07dd7e1f (patch)
tree7c6faff836ccec34825a97fa7b7c49936e2bc4e2 /meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-gcc-config-microblaze-Use-default-ident-output-gener.patch
parentfb15f2e401ed07f774ea89e0c91ecd927bf09235 (diff)
downloadmeta-xilinx-rocko.tar.gz
gcc-source: Add all Xilinx MicroBlaze GCC 7.2 patchesrocko
Add all the Xilinx patches for MicroBlaze, this includes a number of bug fixes, testsuite fixes, feature improvements and additional feature support. Important changes: * v10.0 - CPU support * v10.0 - Bit-field instruction support * v10.0 - 8-stage pipeline aka 'frequency' optimized * Size optimized implementations for shift instructions Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-gcc-config-microblaze-Use-default-ident-output-gener.patch')
-rw-r--r--meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-gcc-config-microblaze-Use-default-ident-output-gener.patch79
1 files changed, 79 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-gcc-config-microblaze-Use-default-ident-output-gener.patch b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-gcc-config-microblaze-Use-default-ident-output-gener.patch
new file mode 100644
index 00000000..9a310ab8
--- /dev/null
+++ b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-gcc-config-microblaze-Use-default-ident-output-gener.patch
@@ -0,0 +1,79 @@
1From 89b0d852718f0ad2b48899880c2bc1e5dc979704 Mon Sep 17 00:00:00 2001
2From: Nathan Rossi <nathan@nathanrossi.com>
3Date: Sat, 27 May 2017 00:00:17 +1000
4Subject: [PATCH] gcc/config/microblaze: Use default ident output generation
5
6Remove the MicroBlaze specific TARGET_ASM_OUTPUT_IDENT definition, and
7use the default.
8
9Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
10Upstream-Status: Unsubmitted
11---
12 gcc/config/microblaze/microblaze-protos.h | 1 -
13 gcc/config/microblaze/microblaze.c | 24 ------------------------
14 gcc/config/microblaze/microblaze.h | 2 +-
15 3 files changed, 1 insertion(+), 26 deletions(-)
16
17diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h
18index 9ba8f2d46f..b56e052ae4 100644
19--- a/gcc/config/microblaze/microblaze-protos.h
20+++ b/gcc/config/microblaze/microblaze-protos.h
21@@ -51,7 +51,6 @@ extern int microblaze_regno_ok_for_base_p (int, int);
22 extern HOST_WIDE_INT microblaze_initial_elimination_offset (int, int);
23 extern void microblaze_declare_object (FILE *, const char *, const char *,
24 const char *, int);
25-extern void microblaze_asm_output_ident (const char *);
26 extern int microblaze_legitimate_pic_operand (rtx);
27 extern bool microblaze_tls_referenced_p (rtx);
28 extern int symbol_mentioned_p (rtx);
29diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c
30index d0f86fd460..bba6983b65 100644
31--- a/gcc/config/microblaze/microblaze.c
32+++ b/gcc/config/microblaze/microblaze.c
33@@ -3351,30 +3351,6 @@ microblaze_eh_return (rtx op0)
34 emit_insn (gen_movsi (gen_rtx_MEM (Pmode, stack_pointer_rtx), op0));
35 }
36
37-/* Queue an .ident string in the queue of top-level asm statements.
38- If the string size is below the threshold, put it into .sdata2.
39- If the front-end is done, we must be being called from toplev.c.
40- In that case, do nothing. */
41-void
42-microblaze_asm_output_ident (const char *string)
43-{
44- const char *section_asm_op;
45- int size;
46- char *buf;
47-
48- if (symtab->state != PARSING)
49- return;
50-
51- size = strlen (string) + 1;
52- if (size <= microblaze_section_threshold)
53- section_asm_op = SDATA2_SECTION_ASM_OP;
54- else
55- section_asm_op = READONLY_DATA_SECTION_ASM_OP;
56-
57- buf = ACONCAT ((section_asm_op, "\n\t.ascii \"", string, "\\0\"\n", NULL));
58- symtab->finalize_toplevel_asm (build_string (strlen (buf), buf));
59-}
60-
61 static void
62 microblaze_elf_asm_init_sections (void)
63 {
64diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
65index 2c9ece1d6c..ccd77e8b4d 100644
66--- a/gcc/config/microblaze/microblaze.h
67+++ b/gcc/config/microblaze/microblaze.h
68@@ -743,7 +743,7 @@ do { \
69 #define STRING_ASM_OP "\t.asciz\t"
70
71 #undef TARGET_ASM_OUTPUT_IDENT
72-#define TARGET_ASM_OUTPUT_IDENT microblaze_asm_output_ident
73+#define TARGET_ASM_OUTPUT_IDENT default_asm_output_ident_directive
74
75 /* Default to -G 8 */
76 #ifndef MICROBLAZE_DEFAULT_GVALUE
77--
782.14.2
79