Package: atlas / 3.10.3-1~bpo8+1

22_sh.diff Patch series | download
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
35
36
37
38
39
--- a/CONFIG/include/atlconf.h
+++ b/CONFIG/include/atlconf.h
@@ -105,6 +105,14 @@ enum MACHTYPE {MACHOther, PPCG4, PPCG5,
   ( 0 )
 #endif
 
+#ifdef __sh__
+#define MachIsSH(mach_) \
+  ( __sh__ )
+#else
+#define MachIsSH(mach_) \
+  ( 0 )
+#endif
+ 
 
 static char *f2c_namestr[5] = {"UNKNOWN","Add_", "Add__", "NoChange", "UpCase"};
 static char *f2c_intstr[5] =
--- a/CONFIG/src/SpewMakeInc.c
+++ b/CONFIG/src/SpewMakeInc.c
@@ -409,6 +409,8 @@ char *GetPtrbitsFlag(enum OSTYPE OS, enu
      return(sp);
    if (MachIsMIPS(arch))
        return(sp);
+   if (MachIsSH(arch))
+       return(sp);
    if (MachIsS390(arch))
       return(sp);
    if (OS == OSAIX)
--- a/CONFIG/src/probe_comp.c
+++ b/CONFIG/src/probe_comp.c
@@ -607,6 +607,8 @@ char *GetPtrbitsFlag(enum OSTYPE OS, enu
       return(sp);
    if (OS == OSAIX)
       return((ptrbits == 64) ? "-maix64" : "-maix32");
+   if (MachIsSH(arch))
+      return(sp);
 
    if (!CompIsGcc(comp))
    {