public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: David Edelsohn <dje.gcc@gmail.com>
To: Pedro Alves <palves@redhat.com>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: [pushed] Define __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS again (Re: GDB AIX build broken)
Date: Tue, 25 Oct 2016 12:41:00 -0000	[thread overview]
Message-ID: <CAGWvnykC=PSO4EM61ZAn=xCi2br0n3uo0ThMAQVwKLdrECbLPQ@mail.gmail.com> (raw)
In-Reply-To: <8fd35f0e-3a7e-25fb-f2ee-2fa50c35beff@redhat.com>

On Tue, Oct 25, 2016 at 6:57 AM, Pedro Alves <palves@redhat.com> wrote:
> On 10/25/2016 02:22 AM, Pedro Alves wrote:
>> On 10/25/2016 02:08 AM, David Edelsohn wrote:
>>> On Mon, Oct 24, 2016 at 8:50 PM, Pedro Alves <palves@redhat.com> wrote:
>>>> On 10/25/2016 01:31 AM, Pedro Alves wrote:
>>>>> On 10/25/2016 01:13 AM, David Edelsohn wrote:
>>>>>> On Mon, Oct 24, 2016 at 7:00 PM, Pedro Alves <palves@redhat.com> wrote:
>>>>>>
>>>>>>> That's a hint, but it can't be the fix.  common-defs.h must be the
>>>>>>> first file included.  I suspect that gnulib's inttypes.h
>>>>>>> replacement logic is broken on AIX.
>>>>>>
>>>>>> The gnulib import definitely is the commit that caused the breakage.
>>>>
>>>> Could it be it's the commit after the import?  The one
>>>> that removes __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS from
>>>> common-defs.h?
>>>
>>> common-defs.h needs __STDC_FORMAT_MACROS defined before stdio.h is
>>> included, as one possible solution.
>>
>> I'll do this tomorrow.
>
> I've pushed the patch below to master.
>
> From 28fe4f87e0b815f4c0d9b80e0a9f3e6a53c649b3 Mon Sep 17 00:00:00 2001
> From: Pedro Alves <palves@redhat.com>
> Date: Tue, 25 Oct 2016 11:47:18 +0100
> Subject: [PATCH] Define __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS again.
>
> Revert commit f6abaf7a4088 (gdb: no longer define
> __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS), with the tweak suggested
> in that commit's log: the macros are now defined before any system
> header is included.
>
> This should fix AIX:
>   https://sourceware.org/ml/gdb-patches/2016-10/msg00682.html
>
> gdb/ChangeLog:
> 2016-10-25  Pedro Alves  <palves@redhat.com>
>
>        * common/common-defs.h (__STDC_CONSTANT_MACROS)
>        (__STDC_LIMIT_MACROS): Define.

Hi, Pedro

Thanks, however...

The missing macro is __STDC_FORMAT_MACROS.  The macros that you
re-added were not causing problems on AIX and don't enable the printf
format macros in C++.

Thanks, David

  reply	other threads:[~2016-10-25 12:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-24 22:40 GDB AIX build broken David Edelsohn
2016-10-24 22:46 ` Pedro Alves
2016-10-24 22:53   ` David Edelsohn
2016-10-24 23:00     ` Pedro Alves
2016-10-25  0:13       ` David Edelsohn
2016-10-25  0:31         ` Pedro Alves
2016-10-25  0:50           ` Pedro Alves
2016-10-25  1:08             ` David Edelsohn
2016-10-25  1:22               ` Pedro Alves
2016-10-25 10:58                 ` [pushed] Define __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS again (Re: GDB AIX build broken) Pedro Alves
2016-10-25 12:41                   ` David Edelsohn [this message]
2016-10-25 12:48                     ` Pedro Alves
2016-10-25 12:54                       ` [pushed] common/common-defs.h: Define __STDC_FORMAT_MACROS as well " Pedro Alves
2016-10-25 13:01                         ` David Edelsohn
2016-10-25  0:51           ` GDB AIX build broken David Edelsohn
2016-10-25  1:10             ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGWvnykC=PSO4EM61ZAn=xCi2br0n3uo0ThMAQVwKLdrECbLPQ@mail.gmail.com' \
    --to=dje.gcc@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).