From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-85735-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 662CC138334
	for <garchives@archives.gentoo.org>; Wed, 22 Aug 2018 14:30:51 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 36325E096C;
	Wed, 22 Aug 2018 14:30:48 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id D931BE0965
	for <gentoo-dev@lists.gentoo.org>; Wed, 22 Aug 2018 14:30:47 +0000 (UTC)
Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: floppym)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 95B1F335D3C
	for <gentoo-dev@lists.gentoo.org>; Wed, 22 Aug 2018 14:30:46 +0000 (UTC)
Received: by mail-it0-f48.google.com with SMTP id x79-v6so5116811ita.1
        for <gentoo-dev@lists.gentoo.org>; Wed, 22 Aug 2018 07:30:46 -0700 (PDT)
X-Gm-Message-State: AOUpUlEIv/SBb9j62XJUn0IR8/O9ia6mcOrrKavv6QQ1f8wAVDj9dwPa
	cywvpMoiu1AxrV5K4mQNPt6d99C7O5KbsIGYJuw=
X-Google-Smtp-Source: AA+uWPzKz2fNNDb+qidS8qWCt0ewAh3Qq5xdALQAf+cIUVikPGsLuzfyPJ8OwEUyPU4RVv30VCyozgunWFV3ZzTqTt4=
X-Received: by 2002:a02:41d8:: with SMTP id n85-v6mr48878018jad.108.1534948244508;
 Wed, 22 Aug 2018 07:30:44 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
References: <5cc35530-3d96-1a0f-b484-73ea3d58bed5@gentoo.org>
In-Reply-To: <5cc35530-3d96-1a0f-b484-73ea3d58bed5@gentoo.org>
From: Mike Gilbert <floppym@gentoo.org>
Date: Wed, 22 Aug 2018 10:30:33 -0400
X-Gmail-Original-Message-ID: <CAJ0EP40RxR9yUG36a4O9GhbKhPLs9UyBB-AZrrWQ5Pv2P3EbrA@mail.gmail.com>
Message-ID: <CAJ0EP40RxR9yUG36a4O9GhbKhPLs9UyBB-AZrrWQ5Pv2P3EbrA@mail.gmail.com>
Subject: Re: [gentoo-dev] Gentoo i486 support
To: Gentoo Dev <gentoo-dev@lists.gentoo.org>
Cc: x86@gentoo.org, release@gentoo.org
Content-Type: text/plain; charset="UTF-8"
X-Archives-Salt: d7585713-2cae-40c7-825a-8f77ea81ee29
X-Archives-Hash: b915664b2754200cee32cae7cc4a2d10

On Wed, Aug 22, 2018 at 8:26 AM Ben Kohler <bkohler@gentoo.org> wrote:
>
> Hi guys,
>
> For some time now, we've been shipping broken i486 stage3s that do not
> run on pre-i686 hardware [1].  Due to a change in catalyst [2], we no
> longer set CXXFLAGS in the default make.conf, so the x86 profiles' (imho
> wrong/broken) defaults [3] kick in.
>
> I'd like to get this fixed, and I see 3 possible solutions, listed in
> order of my own preference:
>
> 1) Adjust x86 profile defaults to drop the problematic -march=i686.
> This would be more in line with amd64 profiles (et al), which set no
> -march value so it can run on any hardware for this arch.

Based on a quick test, running i686-pc-linuc-gnu-gcc without passing
-march seems to be equivalent to passing "-mtune=generic -march=i686".
So, you'll get code that will only run on i686, but has "generic"
tuning (whatever that means).

I don't think that will make a noticeable difference on user systems.
Most Gentoo people probably override this to some more specific CPU
model via CFLAGS in make.conf anyway.

So +1 from me on removing -march=i686 from the x86 arch profile.