Re: Fix typo 586/686 in atomics/arch-x86.h

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: John Naylor <johncnaylorls(at)gmail(dot)com>
Cc: Daniel Gustafsson <daniel(at)yesql(dot)se>, Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: Fix typo 586/686 in atomics/arch-x86.h
Date: 2025-12-20 07:38:59
Message-ID: CAN4CZFNi_+81B5MaiZNvbu0931nxuRPBk2-x5i2y0ZLrVu-W_w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

It seems this is dependent on the linux distribution. I assumed gcc
uses the same march on all modern linux distributions, but that
doesn't seem to be the case.

OL 8/9/10, Gentoo, Arch seem to keep the x86-64 march even when you
specify -m32:

bash-5.2# gcc -m32 -Q --help=target | grep march
-march= x86-64
Known valid arguments for -march= option:
bash-5.2# gcc -Q --help=target | grep march
-march= x86-64-v3
Known valid arguments for -march= option:

But Ubuntu/Debian changes march to i386 when you do that:

❯ gcc -m32 -Q --help=target | grep march
-march= i686
Known valid arguments for -march= option:
❯ gcc -Q --help=target | grep march
-march= x86-64
Known valid arguments for -march= option:

Gcc version doesn't seem to change this even if I install multiple gcc
versions on the same setup.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2025-12-20 08:58:21 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Previous Message Pavel Stehule 2025-12-20 06:57:25 Re: Inline non-SQL SRFs using SupportRequestSimplify