Re: Dead code in ps_status.c

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Dead code in ps_status.c
Date: 2023-02-17 02:22:39
Message-ID: CA+hUKGLmm5QdNqFWUnU8n3fU2qEzqEui=Lr0ja7tFB3ZV2jdpg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Feb 17, 2023 at 3:38 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> My account still works, and what I see on wrasse's host is
>
> tgl(at)gcc-solaris11:~$ gcc -x c /dev/null -dM -E | grep -i svr
> #define __SVR4 1
> #define __svr4__ 1
> tgl(at)gcc-solaris11:~$ gcc -x c /dev/null -dM -E | grep -i sun
> #define __sun 1
> #define sun 1
> #define __sun__ 1
>
> I don't know a way to get the list of predefined macros out of the
> compiler wrasse is actually using (/opt/developerstudio12.6/bin/cc),
> but doing some experiments with #ifdef confirmed that it defines
> __sun, __sun__, and __svr4__, but not __svr5__.

Thanks. I went with __sun, because a random man page google found me
for Sun "cc" mentioned that but not __sun__. Pushed.

http://www.polarhome.com/service/man/?qf=cc&tf=2&of=Solaris&sf=1

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2023-02-17 02:24:45 Re: REASSIGN OWNED vs ALTER TABLE OWNER TO permission inconsistencies
Previous Message Tom Lane 2023-02-17 02:19:35 Re: Introduce list_reverse() to make lcons() usage less inefficient