mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/x11/xorg/gcc40.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -dur xc/programs/Xserver/fb/fbmmx.c src.xorg.1129808283.2035.3041395841/xc/programs/Xserver/fb/fbmmx.c
  20. --- xc/programs/Xserver/fb/fbmmx.c 2004-07-22 21:24:50.000000000 +0200
  21. +++ src.xorg.1129808283.2035.3041395841/xc/programs/Xserver/fb/fbmmx.c 2005-10-20 21:26:33.000000000 +0200
  22. @@ -33,11 +33,28 @@
  23. #include "mipict.h"
  24. #include "fbpict.h"
  25. +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5)
  26. +
  27. +typedef int __attribute__((mode(QI))) qi;
  28. +typedef int __attribute__((mode(HI))) hi;
  29. +typedef int __attribute__((mode(SI))) si;
  30. +typedef int __attribute__((mode(DI))) di;
  31. +
  32. +typedef di __attribute__((vector_size (8))) Vector1x64;
  33. +typedef si __attribute__((vector_size (8))) Vector2x32;
  34. +typedef hi __attribute__((vector_size (8))) Vector4x16;
  35. +typedef qi __attribute__((vector_size (8))) Vector8x8;
  36. +
  37. +# else
  38. +
  39. typedef int Vector1x64 __attribute__ ((mode(DI)));
  40. typedef int Vector2x32 __attribute__ ((mode(V2SI)));
  41. typedef int Vector4x16 __attribute__ ((mode(V4HI)));
  42. typedef int Vector8x8 __attribute__ ((mode(V8QI)));
  43. +#endif
  44. +
  45. +
  46. typedef unsigned long long ullong;
  47. #define noVERBOSE
  48. @@ -92,9 +109,21 @@
  49. shift (Vector1x64 v, int s)
  50. {
  51. if (s > 0)
  52. +
  53. +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5)
  54. +
  55. + return (Vector2x32) __builtin_ia32_psllq ((long long) v, (long long) s);
  56. + else if (s < 0)
  57. + return (Vector2x32) __builtin_ia32_psrlq ((long long) v, (long long) -s);
  58. +
  59. +#else
  60. +
  61. return __builtin_ia32_psllq (v, s);
  62. else if (s < 0)
  63. return __builtin_ia32_psrlq (v, -s);
  64. +
  65. +#endif
  66. +
  67. else
  68. return v;
  69. }
  70. --- xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_probe.h~ 2004-08-03 11:38:03.000000000 +0200
  71. +++ xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_probe.h 2005-11-17 12:22:21.000000000 +0100
  72. @@ -146,7 +146,7 @@
  73. extern Bool RADEONProbe
  74. FunctionPrototype((DriverPtr, int));
  75. -extern SymTabRec RADEONChipsets[];
  76. +static SymTabRec RADEONChipsets[];
  77. extern PciChipsets RADEONPciChipsets[];
  78. /* radeon_driver.c */