From patchwork Fri Apr 27 16:58:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: RFA: consolidate DWARF strings into libiberty Date: Fri, 27 Apr 2012 06:58:31 -0000 From: Tom Tromey X-Patchwork-Id: 155550 Message-Id: <874ns53ydk.fsf@fleche.redhat.com> To: "H.J. Lu" Cc: Jakub Jelinek , DJ Delorie , dje@google.com, gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org, binutils@sourceware.org >>>>> "Tom" == Tom Tromey writes: HJ> You should add extern "C" for C++ on those functions moved to HJ> libiberty. Tom> Yeah, sorry about that. Tom> I'm testing the fix. Here is what I am checking in. Tom ChangeLog: 2012-04-27 Tom Tromey * dwarf2.h: Wrap function declarations in extern "C". Index: dwarf2.h =================================================================== --- dwarf2.h (revision 186908) +++ dwarf2.h (working copy) @@ -361,6 +361,10 @@ #define DW_EH_PE_indirect 0x80 +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /* Return the name of a DW_TAG_ constant, or NULL if the value is not recognized. */ extern const char *get_DW_TAG_name (unsigned int tag); @@ -385,4 +389,8 @@ recognized. */ extern const char *get_DW_CFA_name (unsigned int opc); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* _DWARF2_H */