abi32.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. diff -Nur gcc-4.8.2.orig/gcc/config/i386/biarch32.h gcc-4.8.2/gcc/config/i386/biarch32.h
  2. --- gcc-4.8.2.orig/gcc/config/i386/biarch32.h 1970-01-01 01:00:00.000000000 +0100
  3. +++ gcc-4.8.2/gcc/config/i386/biarch32.h 2014-03-23 20:33:52.000000000 +0100
  4. @@ -0,0 +1,27 @@
  5. +/* Make configure files to produce biarch compiler defaulting to 32bit mode.
  6. + This file must be included very first, while the OS specific file later
  7. + to overwrite otherwise wrong defaults.
  8. + Copyright (C) 2001-2014 Free Software Foundation, Inc.
  9. +
  10. +This file is part of GCC.
  11. +
  12. +GCC is free software; you can redistribute it and/or modify
  13. +it under the terms of the GNU General Public License as published by
  14. +the Free Software Foundation; either version 3, or (at your option)
  15. +any later version.
  16. +
  17. +GCC is distributed in the hope that it will be useful,
  18. +but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. +GNU General Public License for more details.
  21. +
  22. +Under Section 7 of GPL version 3, you are granted additional
  23. +permissions described in the GCC Runtime Library Exception, version
  24. +3.1, as published by the Free Software Foundation.
  25. +
  26. +You should have received a copy of the GNU General Public License and
  27. +a copy of the GCC Runtime Library Exception along with this program;
  28. +see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  29. +<http://www.gnu.org/licenses/>. */
  30. +
  31. +#define TARGET_64BIT_DEFAULT 0
  32. diff -Nur gcc-4.8.2.orig/gcc/config.gcc gcc-4.8.2/gcc/config.gcc
  33. --- gcc-4.8.2.orig/gcc/config.gcc 2013-10-03 02:47:24.000000000 +0200
  34. +++ gcc-4.8.2/gcc/config.gcc 2014-03-22 13:15:18.000000000 +0100
  35. @@ -522,6 +522,9 @@
  36. 64 | m64)
  37. tm_file="i386/biarch64.h ${tm_file}"
  38. ;;
  39. + 32 | m32)
  40. + tm_file="i386/biarch32.h ${tm_file}"
  41. + ;;
  42. x32 | mx32)
  43. tm_file="i386/biarchx32.h ${tm_file}"
  44. ;;
  45. @@ -1343,6 +1346,9 @@
  46. x32 | mx32)
  47. x86_multilibs="mx32"
  48. ;;
  49. + 32 | m32)
  50. + x86_multilibs="m32"
  51. + ;;
  52. *)
  53. x86_multilibs="m64,m32"
  54. ;;