public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Thomas Schwinge <thomas@codesourcery.com>
To: Matthias Klose <doko@ubuntu.com>
Cc: <gcc-patches@gcc.gnu.org>, Paolo Bonzini <bonzini@gnu.org>,
	"Joseph S. Myers" <joseph@codesourcery.com>
Subject: Re: [patch] support for multiarch systems
Date: Thu, 28 Jun 2012 11:41:00 -0000	[thread overview]
Message-ID: <87txxv7k5i.fsf@schwinge.name> (raw)
In-Reply-To: <4FEC350F.7070309@ubuntu.com>

[-- Attachment #1: Type: text/plain, Size: 3680 bytes --]

Hi!

On Thu, 28 Jun 2012 12:42:23 +0200, Matthias Klose <doko@ubuntu.com> wrote:
> On 28.06.2012 12:01, Thomas Schwinge wrote:
> > On Mon, 25 Jun 2012 18:19:26 +0200, Matthias Klose <doko@ubuntu.com>
> > wrote:
> >> On 25.06.2012 15:56, Joseph S. Myers wrote:
> >>> On Mon, 25 Jun 2012, Matthias Klose wrote:
> >>> 
> >>>> Please find attached the patch updated for trunk 20120625, x86 only,
> >>>> tested on x86-linux-gnu, KFreeBSD and the Hurd.
> > 
> >> 2012-06-25  Matthias Klose  <doko@ubuntu.com>
> >> 
> >> * doc/invoke.texi: Document -print-multiarch. * doc/install.texi:
> >> Document --enable-multiarch. * doc/fragments.texi: Document
> >> MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME. * configure.ac: Add
> >> --enable-multiarch option. * configure.in: Regenerate. * Makefile.in
> >> (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib. enable_multiarch,
> >> with_float: New macros. if_multiarch: New macro, define in terms of
> >> enable_multiarch. * genmultilib: Add new argument for the multiarch
> >> name. * gcc.c (multiarch_dir): Define. (for_each_path): Search for
> >> multiarch suffixes. (driver_handle_option): Handle multiarch option. 
> >> (do_spec_1): Pass -imultiarch if defined. (main): Print multiarch. 
> >> (set_multilib_dir): Separate multilib and multiarch names from
> >> multilib_select. (print_multilib_info): Ignore multiarch names in
> >> multilib_select. * incpath.c (add_standard_paths): Search the multiarch
> >> include dirs. * cppdeault.h (default_include): Document multiarch in
> >> multilib member. * cppdefault.c: [LOCAL_INCLUDE_DIR,
> >> STANDARD_INCLUDE_DIR] Add an include directory for multiarch
> >> directories. * common.opt: New options --print-multiarch and -imultilib. 
> >> * config.gcc: Add tmake fragments to tmake_file ( i386/t-kfreebsd for
> >> i[34567]86-*-kfreebsd*-gnu and x86_64-*-kfreebsd*-gnu, i386/t-gnu for
> >> i[34567]86-*-gnu*). * config/i386/t-kfreebsd: Add multiarch names in 
> >> MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME. * config/i386/t-linux64:
> >> Likewise. * config/i386/t-linux: Define MULTIARCH_DIRNAME. *
> >> config/i386/t-gnu: Likewise.
> > 
> > As I said before, »config/i386/t-{gnu,kfreebsd,linux}« are new files. 
> > Instead of repeating: my comments from 
> > <http://news.gmane.org/find-root.php?message_id=%3C87zk94cg1h.fsf%40schwinge.name%3E>
> >
> > 
> as well as the follow-up still hold.
> 
> Like
> 
> 	* config/i386/t-gnu: New, define MULTIARCH_DIRNAME.
> 
> ?

I'd use:

	* config/i386/t-gnu: New file.
	* config/i386/t-kfreebsd: Likewise.
	* config/i386/t-linux: Likewise.

Plus the following instead of your changes:

gcc/
	* config.gcc <i[34567]86-*-linux* | x86_64-*-linux*> (tmake_file):
	Include i386/t-linux.
	<i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu> (tmake_file):
	Include i386/t-kfreebsd.
	<i[34567]86-*-gnu*> (tmake_file): Include i386/t-gnu.

diff --git a/gcc/config.gcc b/gcc/config.gcc
index 7ec184c..39c70f2 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -3481,9 +3481,14 @@ case ${target} in
 
 	i[34567]86-*-darwin* | x86_64-*-darwin*)
 		;;
-	i[34567]86-*-linux* | x86_64-*-linux* | \
-	  i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
-	  i[34567]86-*-gnu*)
+	i[34567]86-*-linux* | x86_64-*-linux*)
+		tmake_file="$tmake_file i386/t-linux"
+		;;
+	i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu)
+		tmake_file="$tmake_file i386/t-kfreebsd"
+		;;
+	i[34567]86-*-gnu*)
+		tmake_file="$tmake_file i386/t-gnu"
 		;;
 	i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
 		;;

Otherwise, I can't imagine how that would work.


Grüße,
 Thomas

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

  reply	other threads:[~2012-06-28 11:26 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-20 21:07 Matthias Klose
2011-08-20 21:16 ` Jakub Jelinek
2011-08-21  2:22   ` Matthias Klose
2011-08-20 21:44 ` Joseph S. Myers
2011-08-21  7:55   ` Matthias Klose
2011-08-21 10:20     ` Andrew Pinski
2011-08-21 16:23     ` Joseph S. Myers
2011-08-21  9:05 ` Matthias Klose
2011-08-22 18:51   ` Toon Moene
2011-09-06  6:57   ` Thomas Schwinge
2011-11-01 19:48   ` Marc Glisse
2011-11-02  0:53     ` Joseph S. Myers
2012-05-08  1:04 ` Matthias Klose
2012-05-08 13:21   ` Joseph S. Myers
2012-05-09  0:38     ` Matthias Klose
2012-05-09 13:37       ` Paolo Bonzini
2012-05-09 15:34         ` Matthias Klose
2012-05-09 16:29           ` Paolo Bonzini
2012-05-09 17:19             ` Matthias Klose
2012-05-10  6:42               ` Paolo Bonzini
2012-05-11  5:14                 ` Matthias Klose
2012-05-11 10:51                   ` Paolo Bonzini
2012-05-11 18:33                     ` Matthias Klose
2012-05-12 22:09                     ` Jonathan Nieder
2012-05-19 16:05       ` Thomas Schwinge
2012-06-06 14:28         ` Thomas Schwinge
2012-06-25 13:23 ` Matthias Klose
2012-06-25 14:00   ` Joseph S. Myers
2012-06-25 16:26     ` Matthias Klose
2012-06-28 10:31       ` Thomas Schwinge
2012-06-28 11:30         ` Matthias Klose
2012-06-28 11:41           ` Thomas Schwinge [this message]
2012-07-08 18:50 ` [patch v2] " Matthias Klose
2012-07-18 19:00   ` Thomas Schwinge
2012-07-19  1:12   ` John David Anglin
2012-07-19  3:19     ` David Miller
2012-07-19 15:14     ` Joseph S. Myers
2012-08-07 10:33   ` [ping] " Matthias Klose
2012-08-07 14:07     ` Ian Lance Taylor
2012-11-02 13:26       ` Matthias Klose
2012-11-02 17:37         ` Ian Lance Taylor
2012-11-04 15:45           ` Matthias Klose
2012-11-14 20:44             ` Ian Lance Taylor
2012-11-21  0:53               ` Matthias Klose
2012-11-15 11:44     ` Eric Botcazou
2012-11-15 11:58       ` Matthias Klose
2012-11-15 16:33         ` Eric Botcazou

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=87txxv7k5i.fsf@schwinge.name \
    --to=thomas@codesourcery.com \
    --cc=bonzini@gnu.org \
    --cc=doko@ubuntu.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joseph@codesourcery.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).