Skip to content

Commit 6b47789

Browse files
author
Trevor Saunders
committed
addmore extern C
opcodes/ChangeLog: 2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * arc-ext.h: Wrap in extern C. include/ChangeLog: 2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * elf/dlx.h: Wrap in extern C. * elf/xtensa.h: Likewise. * opcode/arc.h: Likewise.
1 parent 96037eb commit 6b47789

6 files changed

Lines changed: 42 additions & 0 deletions

File tree

‎include/ChangeLog‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2+
3+
* elf/dlx.h: Wrap in extern C.
4+
* elf/xtensa.h: Likewise.
5+
* opcode/arc.h: Likewise.
6+
17
2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
28

39
* opcode/tilegx.h: Move TILEGX_NUM_PIPELINE_ENCODINGS into

‎include/elf/dlx.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
#include "elf/reloc-macros.h"
2424

25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
2529
#if 0
2630
START_RELOC_NUMBERS (elf_dlx_reloc_type)
2731
RELOC_NUMBER (R_DLX_NONE, 0)
@@ -50,4 +54,8 @@ START_RELOC_NUMBERS (elf_dlx_reloc_type)
5054
END_RELOC_NUMBERS (R_DLX_max)
5155
#endif /* 0 */
5256

57+
#ifdef __cplusplus
58+
}
59+
#endif
60+
5361
#endif /* _ELF_DLX_H */

‎include/elf/xtensa.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626

2727
#include "elf/reloc-macros.h"
2828

29+
#ifdef __cplusplus
30+
extern "C" {
31+
#endif
32+
2933
/* Relocations. */
3034
START_RELOC_NUMBERS (elf_xtensa_reloc_type)
3135
RELOC_NUMBER (R_XTENSA_NONE, 0)
@@ -205,4 +209,8 @@ typedef struct property_table_entry_t
205209

206210
#define XTENSA_PROP_INSN_ABSLIT 0x00020000
207211

212+
#ifdef __cplusplus
213+
}
214+
#endif
215+
208216
#endif /* _ELF_XTENSA_H */

‎include/opcode/arc.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
#ifndef OPCODE_ARC_H
2525
#define OPCODE_ARC_H
2626

27+
#ifdef __cplusplus
28+
extern "C" {
29+
#endif
30+
2731
#ifndef MAX_INSN_ARGS
2832
#define MAX_INSN_ARGS 16
2933
#endif
@@ -604,4 +608,8 @@ extern const unsigned char arg_32bit_rc[MAX_INSN_ARGS + 1];
604608
extern const unsigned char arg_32bit_u6[MAX_INSN_ARGS + 1];
605609
extern const unsigned char arg_32bit_limm[MAX_INSN_ARGS + 1];
606610

611+
#ifdef __cplusplus
612+
}
613+
#endif
614+
607615
#endif /* OPCODE_ARC_H */

‎opcodes/ChangeLog‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2+
3+
* arc-ext.h: Wrap in extern C.
4+
15
2016-06-21 Graham Markall <graham.markall@embecosm.com>
26

37
* arc-dis.c (arc_insn_length): Add comment on instruction length.

‎opcodes/arc-ext.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141

4242
#include "opcode/arc.h"
4343

44+
#ifdef __cplusplus
45+
extern "C" {
46+
#endif
47+
4448
#define IGNORE_FIRST_OPD 1
4549

4650
/* Define this if we do not want to encode instructions based on the
@@ -131,4 +135,8 @@ extern struct arc_opcode *arcExtMap_genOpcode (const extInstruction_t *,
131135
/* Dump function (for debugging). */
132136
extern void dump_ARC_extmap (void);
133137

138+
#ifdef __cplusplus
139+
}
140+
#endif
141+
134142
#endif /* ARC_EXTENSIONS_H */

0 commit comments

Comments
 (0)