Mercurial > gub
changeset 6321:b67157f44828
Fix darwin-ppc::cross/gcc
This commit can success following commands.
bin/gub darwin-ppc::lilypond
bin/gub darwin-ppc::lilypond-installer
author | Masamichi Hosoda <trueroad@users.noreply.github.com> |
---|---|
date | Tue, 20 Jan 2015 20:44:38 +0900 |
parents | 959f5e7a6c4d |
children | cdcce63a1609 |
files | gub/specs/darwin/cross/gcc.py patches/gcc-4.9.2-darwin-powerpc.patch |
diffstat | 2 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/specs/darwin/cross/gcc.py Mon Jan 19 23:30:30 2015 +0900 +++ b/gub/specs/darwin/cross/gcc.py Tue Jan 20 20:44:38 2015 +0900 @@ -22,6 +22,9 @@ self.system ('mv %(install_prefix)s/lib/libsupc++.a %(install_prefix)s/lib/libsupc++.a-') class Gcc__darwin__ppc (Gcc__darwin): + patches = Gcc__darwin.patches + [ + 'gcc-4.9.2-darwin-powerpc.patch', # This patch will not be needed from gcc 4.9.3. + ] configure_flags = (Gcc__darwin.configure_flags + ' --disable-libitm' )
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/gcc-4.9.2-darwin-powerpc.patch Tue Jan 20 20:44:38 2015 +0900 @@ -0,0 +1,22 @@ +Bug 63703 - [4.9.2/5 Regression] Bootstrap broken on powerpc-apple-darwin, cc1: internal compiler error: in init_reg_sets + +https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63703 +https://gcc.gnu.org/viewcvs?rev=218064&root=gcc&view=rev + +This patch will not be needed from gcc 4.9.3. + +--- a/gcc/config/rs6000/darwin.h 2014/11/25 21:27:17 218063 ++++ b/gcc/config/rs6000/darwin.h 2014/11/25 21:41:44 218064 +@@ -206,7 +206,11 @@ + "vrsave", "vscr", \ + "spe_acc", "spefscr", \ + "sfp", \ +- "tfhar", "tfiar", "texasr" \ ++ "tfhar", "tfiar", "texasr", \ ++ "rh0", "rh1", "rh2", "rh3", "rh4", "rh5", "rh6", "rh7", \ ++ "rh8", "rh9", "rh10", "rh11", "rh12", "rh13", "rh14", "rh15", \ ++ "rh16", "rh17", "rh18", "rh19", "rh20", "rh21", "rh22", "rh23", \ ++ "rh24", "rh25", "rh26", "rh27", "rh28", "rh29", "rh30", "rh31" \ + } + + /* This outputs NAME to FILE. */ \ No newline at end of file