GNU Binutils with patches for OS216
修訂 | b5b62006522c6d8d42028754bb1be165f00fe210 (tree) |
---|---|
時間 | 2018-01-12 22:12:17 |
作者 | Gunther Nikl <gnikl@user...> |
Commiter | Nick Clifton |
Fix compile time warning building aout targeted architectures.
Occasionally I build an out-of-tree a.out target (m68k-amigaos). After
a system upgrade which included a newer compiler (clang 4) the build
produces warnings like this:
This is caused by the macro gas/config/aout_gnu.h:USE_EXTENDED_RELOC.
Since it is in a header file, the warning triggers for several files.
I am unsure what solution is preferable, thus I am suggesting two
patches:
Either patch removes the warning for clang. I did not check with a
recent GCC.
* gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly
define to 0 and 1. Remove a dangling reference to "AMD 29000"
in a comment.
@@ -1,3 +1,9 @@ | ||
1 | +2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net> | |
2 | + | |
3 | + * gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly | |
4 | + define to 0 and 1. Remove a dangling reference to "AMD 29000" | |
5 | + in a comment. | |
6 | + | |
1 | 7 | 2018-01-11 Igor Tsimbalist <igor.v.tsimbalist@intel.com> |
2 | 8 | |
3 | 9 | * testsuite/i386/avx512_4fmaps_vl-warn.l: Likewise. |
@@ -32,8 +32,6 @@ | ||
32 | 32 | |
33 | 33 | */ |
34 | 34 | |
35 | -#define USE_EXTENDED_RELOC defined(TC_SPARC) | |
36 | - | |
37 | 35 | #if defined(TC_SPARC) |
38 | 36 | enum reloc_type |
39 | 37 | { |
@@ -62,6 +60,9 @@ enum reloc_type | ||
62 | 60 | NO_RELOC |
63 | 61 | }; |
64 | 62 | |
63 | +#define USE_EXTENDED_RELOC 1 | |
64 | +#else | |
65 | +#define USE_EXTENDED_RELOC 0 | |
65 | 66 | #endif /* TC_SPARC */ |
66 | 67 | |
67 | 68 | #define __GNU_EXEC_MACROS__ |
@@ -303,7 +304,7 @@ struct nlist | ||
303 | 304 | |
304 | 305 | /* The following enum and struct were borrowed from SunOS's |
305 | 306 | /usr/include/sun4/a.out.h and extended to handle |
306 | - other machines. It is currently used on SPARC and AMD 29000. | |
307 | + other machines. It is currently used on SPARC. | |
307 | 308 | |
308 | 309 | reloc_ext_bytes is how it looks on disk. reloc_info_extended is |
309 | 310 | how we might process it on a native host. */ |