public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: George Shapovalov <george@gentoo.org>
To: gentoo-dev@gentoo.org
Cc: David Holm <david@realityrift.com>
Subject: [gentoo-dev] interest assay: eclass for stripping "modern" C[XX]FLAGS
Date: Wed, 2 Jul 2003 20:11:05 -0700	[thread overview]
Message-ID: <200307022011.05918.george@gentoo.org> (raw)

Hi gang.

While working on getting ada related apps ready for use I stumbled upon the 
following issue. It happens that validated (read stable and verified as 
opposed to alpha-quality stuff in gcc-3.x tree) versions of gnat are based 
around older version of gcc, more specifically 2.8.1 (quite popular version 
amongst gcc-based compiler developers I might add). This means that when you 
will try to use your gcc-3.3 superoptimized set of  C[XX]FLAGS for emerging 
ada pakages you will get into trouble.
(Note that when you emerge gnat you merely get gcc-2.8.1 backend in addition 
to your existing versions. It goes into its own dir and does not even show up 
in gcc-config. Thus your regular gcc based emerges are not affected).

In order to go around this some flag stripping and mapping
(like -march={ pentium-mmx => i586  or  athlon-* => i686 })
has to be done in the eclass common to ada-related packages.
I highly suspect that this situation is not unique. I can myself name at least 
one more such package - gpc, which is so far mostly stable on gcc-2.95.3, 
although later alphas can be built with gcc-3.x.

Thus I would like to get an estimate on how usefull it will be to package code 
stripping "modern" C[XX]FLAGS to get them in conformance with the required 
version of gcc. I envision eclass that provides (say) versionize-flags 
function and takes a single argument - two major gcc version numbers (2.8, 
2.95 or 3.x) and strips "not yet recognized" flags accordingly.
Actually while I am on it, I think this function will be best fit into the 
existing flag-o-matic.eclass.

What does everybody thinks?

George



--
gentoo-dev@gentoo.org mailing list


             reply	other threads:[~2003-07-03  3:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-03  3:11 George Shapovalov [this message]
2003-07-03  3:25 ` [gentoo-dev] interest assay: eclass for stripping "modern" C[XX]FLAGS Mike Frysinger
2003-07-03  8:43   ` George Shapovalov
2003-07-03 12:05     ` David Holm

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=200307022011.05918.george@gentoo.org \
    --to=george@gentoo.org \
    --cc=david@realityrift.com \
    --cc=gentoo-dev@gentoo.org \
    /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