From 08f94721491d557c3e824b316120f1a55d590b9d Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Sat, 14 Jul 2018 00:52:26 +0000 Subject: Attempt to fix build with clang6. --- devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c (limited to 'devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c') diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c new file mode 100644 index 000000000000..e0e328e1d1ba --- /dev/null +++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c @@ -0,0 +1,11 @@ +--- gcc/stor-layout.c.orig 2014-10-15 10:27:26 UTC ++++ gcc/stor-layout.c +@@ -236,7 +236,7 @@ self_referential_size (tree size) + fntype = build_function_type (return_type, param_type_list); + + /* Build the function declaration. */ +- sprintf (buf, "SZ"HOST_WIDE_INT_PRINT_UNSIGNED, fnno++); ++ sprintf (buf, "SZ" HOST_WIDE_INT_PRINT_UNSIGNED, fnno++); + fnname = get_file_function_name (buf); + fndecl = build_decl (input_location, FUNCTION_DECL, fnname, fntype); + for (t = param_decl_list; t; t = DECL_CHAIN (t)) -- cgit v1.2.3