File: Add-SH-detection.patch

package info (click to toggle)
qt6-base 6.9.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 317,264 kB
  • sloc: cpp: 2,117,791; ansic: 382,065; xml: 142,588; python: 21,637; java: 8,805; asm: 4,009; javascript: 2,290; sh: 1,651; perl: 1,028; makefile: 131
file content (34 lines) | stat: -rw-r--r-- 1,151 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: Add SH description
 Upstream processes archs from time to time and tends to disable those that
 they do not know wether they are working or not. 
 .
 SH is working on Debian, so as an intermediate measure re enable it here.
Author: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043225
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>

---
 src/corelib/global/qprocessordetection.h |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

--- a/src/corelib/global/qprocessordetection.h
+++ b/src/corelib/global/qprocessordetection.h
@@ -311,12 +311,12 @@
 
     SuperH is bi-endian, use endianness auto-detection implemented below.
 */
-// #elif defined(__sh__)
-// #  define Q_PROCESSOR_SH
-// #  if defined(__sh4a__)
-// #    define Q_PROCESSOR_SH_4A
-// #  endif
-// Q_BYTE_ORDER not defined, use endianness auto-detection
+#elif defined(__sh__)
+#  define Q_PROCESSOR_SH
+#  if defined(__sh4a__)
+#    define Q_PROCESSOR_SH_4A
+#  endif
+#  define Q_BYTE_ORDER Q_LITTLE_ENDIAN
 
 /*
     SPARC family, optional revision: V9