Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Darwin] Fix PR87030 and tidy config fragments.
We now have a situation with Darwin target permutations for 32b and 64bit cases, with sub-permutations of bi-arch or single-arch only support. The current scheme of target headers and tmake fragments has become messy as things have evolved and needs adjustment to fix the PR. So here we fix the PR and rationalise the headers and tmake fragments accordingly. More tidy-ups to follow. gcc/ * config.gcc (*-*-darwin*): Don't include CPU t-darwin here. (i[34567]86-*-darwin*): Adjust to use biarch files. Produce an error message if i686-darwin configuration is attempted for Darwin >= 18. (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18. (powerpc-*-darwin*): Use biarch files where needed. (powerpc64-*-darwin*): Likewise. * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revise workaround for pr80556 to default to prepending libSystem > Darwin10. (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single arch case. * config/i386/darwin32-biarch.h: New. * config/i386/darwin64.h: Rename. * gcc/config/i386/darwin64-biarch.h: To this. * config/i386/t-darwin: Rename. * gcc/config/i386/t-darwin32-biarch: To this. * config/i386/t-darwin64: Rename. * gcc/config/i386/t-darwin64-biarch: To this. * config/rs6000/darwin32-biarch.h: New. * config/rs6000/darwin64.h: Rename. * config/rs6000/darwin64-biarch.h: To this. * config/rs6000/darwin7.h (LIB_SPEC): Delete. * config/rs6000/darwin8.h: Likewise. * config/rs6000/darwin.h (LIB_SPEC): New. (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single arch case. * config/rs6000/t-darwin8: Rename. * config/rs6000/t-darwin32-biarch: To this. * config/rs6000/t-darwin64 Rename. * config/rs6000/t-darwin64-biarch: To this.
- Loading branch information
Showing
13 changed files
with
145 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* Target definitions for i386 running Darwin. | ||
Copyright (C) 2019 Free Software Foundation, Inc. | ||
Contributed by Apple Computer Inc. | ||
This file is part of GCC. | ||
GCC is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3, or (at your option) | ||
any later version. | ||
GCC is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with GCC; see the file COPYING3. If not see | ||
<http://www.gnu.org/licenses/>. */ | ||
|
||
#undef DARWIN_ARCH_SPEC | ||
#define DARWIN_ARCH_SPEC "%{m64:x86_64;:i386}" | ||
|
||
#undef DARWIN_SUBARCH_SPEC | ||
#define DARWIN_SUBARCH_SPEC DARWIN_ARCH_SPEC | ||
|
||
#undef SUBTARGET_EXTRA_SPECS | ||
#define SUBTARGET_EXTRA_SPECS \ | ||
DARWIN_EXTRA_SPECS \ | ||
{ "darwin_arch", DARWIN_ARCH_SPEC }, \ | ||
{ "darwin_crt2", "" }, \ | ||
{ "darwin_subarch", DARWIN_SUBARCH_SPEC }, |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* Target definitions for PowerPC running Darwin (Mac OS X). | ||
Copyright (C) 2006-2019 Free Software Foundation, Inc. | ||
Contributed by Apple Computer Inc. | ||
This file is part of GCC. | ||
GCC is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License as published | ||
by the Free Software Foundation; either version 3, or (at your | ||
option) any later version. | ||
GCC is distributed in the hope that it will be useful, but WITHOUT | ||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | ||
License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with GCC; see the file COPYING3. If not see | ||
<http://www.gnu.org/licenses/>. */ | ||
|
||
#undef DARWIN_ARCH_SPEC | ||
#define DARWIN_ARCH_SPEC "%{m64:ppc64;:ppc}" | ||
|
||
#undef DARWIN_SUBARCH_SPEC | ||
#define DARWIN_SUBARCH_SPEC " \ | ||
%{m64: ppc64} \ | ||
%{!m64: \ | ||
%{mcpu=601:ppc601; \ | ||
mcpu=603:ppc603; \ | ||
mcpu=603e:ppc603; \ | ||
mcpu=604:ppc604; \ | ||
mcpu=604e:ppc604e; \ | ||
mcpu=740:ppc750; \ | ||
mcpu=750:ppc750; \ | ||
mcpu=G3:ppc750; \ | ||
mcpu=7400:ppc7400; \ | ||
mcpu=G4:ppc7400; \ | ||
mcpu=7450:ppc7450; \ | ||
mcpu=970:ppc970; \ | ||
mcpu=power4:ppc970; \ | ||
mcpu=G5:ppc970; \ | ||
:ppc}}" | ||
|
||
#undef SUBTARGET_EXTRA_SPECS | ||
#define SUBTARGET_EXTRA_SPECS \ | ||
DARWIN_EXTRA_SPECS \ | ||
{ "darwin_arch", DARWIN_ARCH_SPEC }, \ | ||
{ "darwin_crt2", DARWIN_CRT2_SPEC }, \ | ||
{ "darwin_subarch", DARWIN_SUBARCH_SPEC }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.