Add SH description
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Fri, 5 Jul 2024 05:44:11 +0000 (07:44 +0200)
committerPino Toscano <pino@debian.org>
Fri, 5 Jul 2024 05:44:11 +0000 (07:44 +0200)
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043225
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
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.

Gbp-Pq: Name Add-SH-detection.patch

src/corelib/global/qprocessordetection.h

index f7298bbb86ab3c1a8290d75ebb9178bbeef23fdc..bb4759c43eaa5d9d34663fe99202f7b6caf35847 100644 (file)
 
     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