diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2018-02-01 02:16:14 +1000 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2018-04-13 13:33:52 -0700 |
commit | fad658c683eeb8498e0dd1736dc8347d33114daf (patch) | |
tree | 37e9ee14b14c27e9e52ac27844952a58461cca88 | |
parent | dec9938dbcd9eccd3f6e27e6aacf595b2791ecff (diff) | |
download | meta-xilinx-fad658c683eeb8498e0dd1736dc8347d33114daf.tar.gz |
gcc-source_7.%: Update local patch with backport
Update the local patch for the shadow ident fix with the patch that was
accepted upstream. This patch is not in a current GCC release yet, but
will be available in v8.x when released.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
3 files changed, 33 insertions, 80 deletions
diff --git a/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-PR-target-83013.patch b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-PR-target-83013.patch new file mode 100644 index 00000000..42bfd3c1 --- /dev/null +++ b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-PR-target-83013.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From f17cdebf4e0defaefce927176ddeb9717de073d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Mon, 15 Jan 2018 06:02:19 +0000 | ||
4 | Subject: [PATCH] PR target/83013 | ||
5 | |||
6 | * config/microblaze/microblaze.c (microblaze_asm_output_ident): | ||
7 | Use .pushsection/.popsection. | ||
8 | |||
9 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256681 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
10 | Upstream-Status: Backport [backport from trunk pre-release v8] | ||
11 | --- | ||
12 | gcc/config/microblaze/microblaze.c | 4 +++- | ||
13 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c | ||
16 | index d0f86fd460..a98aca1235 100644 | ||
17 | --- a/gcc/config/microblaze/microblaze.c | ||
18 | +++ b/gcc/config/microblaze/microblaze.c | ||
19 | @@ -3371,7 +3371,9 @@ microblaze_asm_output_ident (const char *string) | ||
20 | else | ||
21 | section_asm_op = READONLY_DATA_SECTION_ASM_OP; | ||
22 | |||
23 | - buf = ACONCAT ((section_asm_op, "\n\t.ascii \"", string, "\\0\"\n", NULL)); | ||
24 | + buf = ACONCAT (("\t.pushsection", section_asm_op, | ||
25 | + "\n\t.ascii \"", string, "\\0\"\n", | ||
26 | + "\t.popsection\n", NULL)); | ||
27 | symtab->finalize_toplevel_asm (build_string (strlen (buf), buf)); | ||
28 | } | ||
29 | |||
30 | -- | ||
31 | 2.15.1 | ||
32 | |||
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 deleted file mode 100644 index 9a310ab8..00000000 --- a/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0003-gcc-config-microblaze-Use-default-ident-output-gener.patch +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
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 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-source_7.%.bbappend b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-source_7.%.bbappend index d6b69001..9770af61 100644 --- a/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-source_7.%.bbappend +++ b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-source_7.%.bbappend | |||
@@ -3,7 +3,7 @@ FILESEXTRAPATHS_append_microblaze := "${THISDIR}/gcc-7:" | |||
3 | SRC_URI_append_microblaze = " \ | 3 | SRC_URI_append_microblaze = " \ |
4 | file://0001-Revert.patch \ | 4 | file://0001-Revert.patch \ |
5 | file://0002-microblaze.md-Improve-adddi3-and-subdi3-insn-definit.patch \ | 5 | file://0002-microblaze.md-Improve-adddi3-and-subdi3-insn-definit.patch \ |
6 | file://0003-gcc-config-microblaze-Use-default-ident-output-gener.patch \ | 6 | file://0003-PR-target-83013.patch \ |
7 | file://0004-dejagnu-static-testing-on-qemu-suppress-warnings.patch \ | 7 | file://0004-dejagnu-static-testing-on-qemu-suppress-warnings.patch \ |
8 | file://0005-Testsuite-explicitly-add-fivopts-for-tests-that-depe.patch \ | 8 | file://0005-Testsuite-explicitly-add-fivopts-for-tests-that-depe.patch \ |
9 | file://0006-Add-MicroBlaze-to-target-supports-for-atomic-builtin.patch \ | 9 | file://0006-Add-MicroBlaze-to-target-supports-for-atomic-builtin.patch \ |