From db2b45f180eb916e90d1033ab8628161431f4077 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Thu, 25 Aug 2016 08:30:34 +0000 Subject: [PATCH] _sh Gbp-Pq: Name 22_sh.diff --- CONFIG/include/atlconf.h | 8 ++++++++ CONFIG/src/SpewMakeInc.c | 2 ++ CONFIG/src/probe_comp.c | 2 ++ 3 files changed, 12 insertions(+) diff --git a/CONFIG/include/atlconf.h b/CONFIG/include/atlconf.h index 28c08f9..b9a5745 100644 --- a/CONFIG/include/atlconf.h +++ b/CONFIG/include/atlconf.h @@ -105,6 +105,14 @@ enum MACHTYPE {MACHOther, PPCG4, PPCG5, IbmPwr3, IbmPwr4, IbmPwr5, ( 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] = diff --git a/CONFIG/src/SpewMakeInc.c b/CONFIG/src/SpewMakeInc.c index a0b884d..1ab0cc2 100644 --- a/CONFIG/src/SpewMakeInc.c +++ b/CONFIG/src/SpewMakeInc.c @@ -409,6 +409,8 @@ char *GetPtrbitsFlag(enum OSTYPE OS, enum MACHTYPE arch, int ptrbits, return(sp); if (MachIsMIPS(arch)) return(sp); + if (MachIsSH(arch)) + return(sp); if (MachIsS390(arch)) return(sp); if (OS == OSAIX) diff --git a/CONFIG/src/probe_comp.c b/CONFIG/src/probe_comp.c index 1121288..8af0990 100644 --- a/CONFIG/src/probe_comp.c +++ b/CONFIG/src/probe_comp.c @@ -607,6 +607,8 @@ char *GetPtrbitsFlag(enum OSTYPE OS, enum MACHTYPE arch, int ptrbits, return(sp); if (OS == OSAIX) return((ptrbits == 64) ? "-maix64" : "-maix32"); + if (MachIsSH(arch)) + return(sp); if (!CompIsGcc(comp)) { -- 2.30.2