diff options
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.patch | 79 |
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 @@ | |||
1 | From 89b0d852718f0ad2b48899880c2bc1e5dc979704 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nathan Rossi <nathan@nathanrossi.com> | ||
3 | Date: Sat, 27 May 2017 00:00:17 +1000 | ||
4 | Subject: [PATCH] gcc/config/microblaze: Use default ident output generation | ||
5 | |||
6 | Remove the MicroBlaze specific TARGET_ASM_OUTPUT_IDENT definition, and | ||
7 | use the default. | ||
8 | |||
9 | Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> | ||
10 | Upstream-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 | |||
17 | diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h | ||
18 | index 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); | ||
29 | diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c | ||
30 | index 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 | { | ||
64 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h | ||
65 | index 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 | -- | ||
78 | 2.14.2 | ||
79 | |||