Re: [PATCH 09/36] floatformat.h: Wrap in extern "C".

2015-02-18 Thread Jakub Jelinek
On Thu, Feb 12, 2015 at 11:49:01AM +, Pedro Alves wrote: > On 02/09/2015 11:49 PM, Pedro Alves wrote: > > On 02/09/2015 11:35 PM, Andrew Pinski wrote: > >> On Mon, Feb 9, 2015 at 3:20 PM, Pedro Alves wrote: > >>> Just like libiberty.h. So that C++ programs, such as GDB when built > >>> as a C

Re: [PATCH 09/36] floatformat.h: Wrap in extern "C".

2015-02-14 Thread Doug Evans
On Sat, Feb 14, 2015 at 10:36 AM, Pedro Alves wrote: > On 02/14/2015 05:29 PM, Doug Evans wrote: >> On Mon, Feb 9, 2015 at 3:49 PM, Pedro Alves wrote: >>> On 02/09/2015 11:35 PM, Andrew Pinski wrote: Why is not needed for GCC building with C++ compiler? >>> >>> Because it doesn't include it.

Re: [PATCH 09/36] floatformat.h: Wrap in extern "C".

2015-02-14 Thread Pedro Alves
On 02/14/2015 05:29 PM, Doug Evans wrote: > On Mon, Feb 9, 2015 at 3:49 PM, Pedro Alves wrote: >> On 02/09/2015 11:35 PM, Andrew Pinski wrote: >>> Why is not needed for GCC building with C++ compiler? >> >> Because it doesn't include it. >> >> The header of the file claims it is part of GDB, thoug

Re: [PATCH 09/36] floatformat.h: Wrap in extern "C".

2015-02-14 Thread Doug Evans
On Mon, Feb 9, 2015 at 3:49 PM, Pedro Alves wrote: > On 02/09/2015 11:35 PM, Andrew Pinski wrote: >> On Mon, Feb 9, 2015 at 3:20 PM, Pedro Alves wrote: >>> Just like libiberty.h. So that C++ programs, such as GDB when built >>> as a C++ program, can use it. >> >> Why is not needed for GCC buildi

Re: [PATCH 09/36] floatformat.h: Wrap in extern "C".

2015-02-12 Thread Pedro Alves
On 02/09/2015 11:49 PM, Pedro Alves wrote: > On 02/09/2015 11:35 PM, Andrew Pinski wrote: >> On Mon, Feb 9, 2015 at 3:20 PM, Pedro Alves wrote: >>> Just like libiberty.h. So that C++ programs, such as GDB when built >>> as a C++ program, can use it. >> >> Why is not needed for GCC building with C

Re: [PATCH 09/36] floatformat.h: Wrap in extern "C".

2015-02-09 Thread Pedro Alves
On 02/09/2015 11:35 PM, Andrew Pinski wrote: > On Mon, Feb 9, 2015 at 3:20 PM, Pedro Alves wrote: >> Just like libiberty.h. So that C++ programs, such as GDB when built >> as a C++ program, can use it. > > Why is not needed for GCC building with C++ compiler? Because it doesn't include it. The

Re: [PATCH 09/36] floatformat.h: Wrap in extern "C".

2015-02-09 Thread Andrew Pinski
On Mon, Feb 9, 2015 at 3:20 PM, Pedro Alves wrote: > Just like libiberty.h. So that C++ programs, such as GDB when built > as a C++ program, can use it. Why is not needed for GCC building with C++ compiler? Thanks, Andrew > > include/ChangeLog: > 2015-02-09 Pedro Alves > > * floatfo

[PATCH 09/36] floatformat.h: Wrap in extern "C".

2015-02-09 Thread Pedro Alves
Just like libiberty.h. So that C++ programs, such as GDB when built as a C++ program, can use it. include/ChangeLog: 2015-02-09 Pedro Alves * floatformat.h [__cplusplus]: Wrap in extern "C". --- include/floatformat.h | 8 1 file changed, 8 insertions(+) diff --git a/include