diff options
| author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2016-07-11 14:05:10 -0700 |
|---|---|---|
| committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-07-17 03:37:48 +1000 |
| commit | 19774bd71e1740f099659883d2c230014dcab3f3 (patch) | |
| tree | 5a91795f0809fd5b9be68c8975984718ad1d4d40 /recipes-bsp/u-boot | |
| parent | 37895574d49ea6d8f589921e32566d307dc4e9fb (diff) | |
| download | meta-xilinx-19774bd71e1740f099659883d2c230014dcab3f3.tar.gz | |
Add GCC6 patch for compiler-gcc6.h file missing
Copy compiler-gcc5.h as compiler-gcc6.h to fix compilation error This is a
temporary fix till Xilinx u-boot gets updated
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Diffstat (limited to 'recipes-bsp/u-boot')
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-xlnx/0001-compiler-gcc6.h-Fix-u-boot-issue-for-gcc6.patch | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-xlnx/0001-compiler-gcc6.h-Fix-u-boot-issue-for-gcc6.patch b/recipes-bsp/u-boot/u-boot-xlnx/0001-compiler-gcc6.h-Fix-u-boot-issue-for-gcc6.patch new file mode 100644 index 00000000..de4b7492 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx/0001-compiler-gcc6.h-Fix-u-boot-issue-for-gcc6.patch | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | From 27097b226f9b54a433e92dd5591bf48b830a8d77 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | ||
| 3 | Date: Wed, 22 Jun 2016 02:34:32 -0700 | ||
| 4 | Subject: [PATCH] compiler-gcc6.h: Fix u-boot issue for gcc6 | ||
| 5 | |||
| 6 | Fix the u-boot compilation error while using gcc6 | ||
| 7 | include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No | ||
| 8 | such file or directory | ||
| 9 | |||
| 10 | This is a temporary fix, till u-boot-xlnx gets updated to latest revision | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate | ||
| 13 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | ||
| 14 | --- | ||
| 15 | include/linux/compiler-gcc6.h | 65 +++++++++++++++++++++++++++++++++++++++++++ | ||
| 16 | 1 file changed, 65 insertions(+) | ||
| 17 | create mode 100644 include/linux/compiler-gcc6.h | ||
| 18 | |||
| 19 | diff --git a/include/linux/compiler-gcc6.h b/include/linux/compiler-gcc6.h | ||
| 20 | new file mode 100644 | ||
| 21 | index 0000000..c8c5659 | ||
| 22 | --- /dev/null | ||
| 23 | +++ b/include/linux/compiler-gcc6.h | ||
| 24 | @@ -0,0 +1,65 @@ | ||
| 25 | +#ifndef __LINUX_COMPILER_H | ||
| 26 | +#error "Please don't include <linux/compiler-gcc5.h> directly, include <linux/compiler.h> instead." | ||
| 27 | +#endif | ||
| 28 | + | ||
| 29 | +#define __used __attribute__((__used__)) | ||
| 30 | +#define __must_check __attribute__((warn_unused_result)) | ||
| 31 | +#define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ||
| 32 | + | ||
| 33 | +/* Mark functions as cold. gcc will assume any path leading to a call | ||
| 34 | + to them will be unlikely. This means a lot of manual unlikely()s | ||
| 35 | + are unnecessary now for any paths leading to the usual suspects | ||
| 36 | + like BUG(), printk(), panic() etc. [but let's keep them for now for | ||
| 37 | + older compilers] | ||
| 38 | + | ||
| 39 | + Early snapshots of gcc 4.3 don't support this and we can't detect this | ||
| 40 | + in the preprocessor, but we can live with this because they're unreleased. | ||
| 41 | + Maketime probing would be overkill here. | ||
| 42 | + | ||
| 43 | + gcc also has a __attribute__((__hot__)) to move hot functions into | ||
| 44 | + a special section, but I don't see any sense in this right now in | ||
| 45 | + the kernel context */ | ||
| 46 | +#define __cold __attribute__((__cold__)) | ||
| 47 | + | ||
| 48 | +#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ||
| 49 | + | ||
| 50 | +#ifndef __CHECKER__ | ||
| 51 | +# define __compiletime_warning(message) __attribute__((warning(message))) | ||
| 52 | +# define __compiletime_error(message) __attribute__((error(message))) | ||
| 53 | +#endif /* __CHECKER__ */ | ||
| 54 | + | ||
| 55 | +/* | ||
| 56 | + * Mark a position in code as unreachable. This can be used to | ||
| 57 | + * suppress control flow warnings after asm blocks that transfer | ||
| 58 | + * control elsewhere. | ||
| 59 | + * | ||
| 60 | + * Early snapshots of gcc 4.5 don't support this and we can't detect | ||
| 61 | + * this in the preprocessor, but we can live with this because they're | ||
| 62 | + * unreleased. Really, we need to have autoconf for the kernel. | ||
| 63 | + */ | ||
| 64 | +#define unreachable() __builtin_unreachable() | ||
| 65 | + | ||
| 66 | +/* Mark a function definition as prohibited from being cloned. */ | ||
| 67 | +#define __noclone __attribute__((__noclone__)) | ||
| 68 | + | ||
| 69 | +/* | ||
| 70 | + * Tell the optimizer that something else uses this function or variable. | ||
| 71 | + */ | ||
| 72 | +#define __visible __attribute__((externally_visible)) | ||
| 73 | + | ||
| 74 | +/* | ||
| 75 | + * GCC 'asm goto' miscompiles certain code sequences: | ||
| 76 | + * | ||
| 77 | + * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670 | ||
| 78 | + * | ||
| 79 | + * Work it around via a compiler barrier quirk suggested by Jakub Jelinek. | ||
| 80 | + * | ||
| 81 | + * (asm goto is automatically volatile - the naming reflects this.) | ||
| 82 | + */ | ||
| 83 | +#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) | ||
| 84 | + | ||
| 85 | +#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP | ||
| 86 | +#define __HAVE_BUILTIN_BSWAP32__ | ||
| 87 | +#define __HAVE_BUILTIN_BSWAP64__ | ||
| 88 | +#define __HAVE_BUILTIN_BSWAP16__ | ||
| 89 | +#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */ | ||
| 90 | -- | ||
| 91 | 2.1.4 | ||
| 92 | |||
