Skip to content

Commit

Permalink
Cleanup deprecated OSes (#193)
Browse files Browse the repository at this point in the history
* Remove vestiges of MIPS

* Remove vestiges of AIX

* Remove vestiges of Solaris

* Remove vestiges of Irix

* Remove vestiges of OSF

* Remove AIX Fortran compiler checks

* Remove vestiges of Sun
  • Loading branch information
hainest authored Jun 28, 2021
1 parent 925d0d7 commit ae95186
Show file tree
Hide file tree
Showing 100 changed files with 283 additions and 822 deletions.
1 change: 0 additions & 1 deletion src/TestData.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ typedef struct {
bool i386_unknown_linux2_4;
bool _i386_unknown_nt4_0_test;
bool _x86_64_unknown_linux2_4;
bool _rs6000_ibm_aix5_1;
} platforms_t;

struct TESTLIB_DLL_EXPORT TestData {
Expand Down
32 changes: 1 addition & 31 deletions src/dyninst/dyninst_comp.C
Original file line number Diff line number Diff line change
Expand Up @@ -804,13 +804,6 @@ void addLibArchExt(char *dest, unsigned int dest_max_len, int psize)
dest_len = strlen(dest);

// Patch up alternate ABI filenames
#if defined(rs6000_ibm_aix64_test)
if(psize == 4) {
strncat(dest, "_32", dest_max_len - dest_len);
dest_len += 3;
}
#endif

#if defined(arch_x86_64_test)
if (psize == 4) {
strncat(dest,"_m32", dest_max_len - dest_len);
Expand All @@ -828,7 +821,7 @@ void addLibArchExt(char *dest, unsigned int dest_max_len, int psize)
}

int pointerSize(BPatch_image *img) {
#if defined(mips_sgi_irix6_4_test) || defined(arch_x86_64_test)
#if defined(arch_x86_64_test)
BPatch_variableExpr *pointerSizeVar = img->findVariable("pointerSize");

if (!pointerSizeVar) {
Expand Down Expand Up @@ -1201,14 +1194,6 @@ int instCall(BPatch_addressSpace* as, const char* fname,
BPatch_funcCallExpr countXXXCall(*countXXXFunc, callArgs);

for(unsigned int i=0;i<(*res).size();i++){

#if defined(os_aix_test)
const BPatch_memoryAccess* memAccess;
memAccess = (*res)[i]->getMemoryAccess() ;

whenToCall = instrumentWhere( memAccess);

#endif
as->insertSnippet(countXXXCall, *((*res)[i]),whenToCall);
}

Expand Down Expand Up @@ -1240,13 +1225,6 @@ int instEffAddr(BPatch_addressSpace* as, const char* fname,

BPatch_callWhen whenToCall = BPatch_callBefore;
for(unsigned int i=0;i<(*res).size();i++){
#if defined(os_aix_test)
const BPatch_memoryAccess* memAccess;

memAccess = (*res)[i]->getMemoryAccess() ;

whenToCall = instrumentWhere( memAccess);
#endif
BPatch_Vector<BPatch_snippet*> listArgs;
BPatch_effectiveAddressExpr eae;
BPatch_constExpr insn_str((*res)[i]->getInsnAtPoint().format().c_str());
Expand Down Expand Up @@ -1324,14 +1302,6 @@ int instByteCnt(BPatch_addressSpace* as, const char* fname,

for(unsigned int i=0;i<(*res).size();i++){
BPatch_Vector<BPatch_snippet*> listArgs;

#if defined(os_aix_test)
const BPatch_memoryAccess* memAccess;
memAccess = (*res)[i]->getMemoryAccess() ;

whenToCall = instrumentWhere( memAccess);

#endif
BPatch_bytesAccessedExpr bae;
std::string insn = (*res)[i]->getInsnAtPoint().format();
BPatch_constExpr insn_str(insn.c_str());
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/libLoadMe.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ extern int globalVariable5_1;
_init table of methods:
GCC: link with gcc -shared, and use __attribute__((constructor));
AIX: ld with -binitfini:loadMe_init
Solaris: ld with -z initarray=loadMe_init
Linux: ld with -init loadMe_init
gcc with -Wl,-init -Wl,...
Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_10F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_10F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define test1_10_func1 test1_10_func1_
#define test1_10f_init_globals test1_10f_init_globals_
#define test1_10f_globals test1_10f_globals_
#endif

extern struct block_ test1_10f_globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_11F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_11F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define test1_11_func1 test1_11_func1_
#define test1_11f_init_globals test1_11f_init_globals_
#define test1_11f_globals test1_11f_globals_
#endif

extern struct block_ test1_11f_globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_12F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_12F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define func12_1 func12_1_
#define init_globals init_globals_
#define globals globals_
#endif

extern struct block_ globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_13F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_13F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define test1_13_func1 test1_13_func1_
#define test1_13f_init_globals test1_13f_init_globals_
#define test1_13f_globals test1_13f_globals_
#endif

extern struct block_ test1_13f_globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_14F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_14F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define test1_14_func1 test1_14_func1_
#define test1_14f_init_globals test1_14f_init_globals_
#define test1_14f_globals test1_14f_globals_
#endif

extern struct block_ test1_14f_globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_16F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_16F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define test1_16_func1 test1_16_func1_
#define test1_16f_init_globals test1_16f_init_globals_
#define test1_16f_globals test1_16f_globals_
#endif

extern struct block_ test1_16f_globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_17F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_17F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define test1_17_func1 test1_17_func1_
#define test1_17f_init_globals test1_17f_init_globals_
#define test1_17f_globals test1_17f_globals_
#endif

extern struct block_ test1_17f_globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_18F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_18F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ struct block_ {
int kludge;
};

#if !defined(XLF)
#define test1_18_func1 test1_18_func1_
#define test1_18f_init_globals test1_18f_init_globals_
#define test1_18f_globals test1_18f_globals_
#endif

extern struct block_ test1_18f_globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_19F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_19F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define func19_1 func19_1_
#define test1_19f_init_globals test1_19f_init_globals_
#define test1_19f_globals test1_19f_globals_
#endif

extern struct block_ test1_19f_globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_1F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_1F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define test1_1_func1_1 test1_1_func1_1_
#define test1_1f_init_globals test1_1f_init_globals_
#define test1_1f_globals test1_1f_globals_
#endif

extern struct block_ test1_1f_globals;

Expand Down
5 changes: 0 additions & 5 deletions src/dyninst/test1_20F_fortran.F
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
! derived from a previous test by Jeff Hollingsworth

!------------------------------------------------------------------------------

! AIX xlf90 does not insert underscores at end

#if !defined(XLF)
#define stop_process_ stop_process
#endif

#ifdef __GNUC__
#define AND iand
Expand Down
2 changes: 0 additions & 2 deletions src/dyninst/test1_20F_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ struct block_ {
int passedTest_;
};

#if !defined(XLF)
#define func20_1 func20_1_
#define test1_20f_init_globals test1_20f_init_globals_
#define test1_20f_globals test1_20f_globals_
#endif

extern struct block_ test1_20f_globals;

Expand Down
3 changes: 1 addition & 2 deletions src/dyninst/test1_21.C
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ extern "C" DLLEXPORT TestMutator *test1_21_factory()

test_results_t test1_21_Mutator::mutatorTest21()
{
#if defined(os_aix_test) \
|| defined(os_linux_test) \
#if defined(os_linux_test) \
|| defined(os_windows_test) \
|| defined(os_freebsd_test)

Expand Down
3 changes: 1 addition & 2 deletions src/dyninst/test1_21_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
int test1_21_mutatee()
{
/* Nothing for the mutatee to do in this test (findFunction in module) */
#if defined(os_aix_test) \
|| defined(os_linux_test) \
#if defined(os_linux_test) \
|| defined(os_windows_test)
logerror("Passed test #21 (findFunction in module)\n");
test_passes(testname);
Expand Down
1 change: 0 additions & 1 deletion src/dyninst/test1_22_mutatee.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
*/
#if defined(i386_unknown_linux2_0_test) \
|| defined(x86_64_unknown_linux2_4_test) /* Blind duplication - Ray */ \
|| defined(os_aix_test) \
|| defined(os_linux_test) \
|| defined(os_freebsd_test) /* better off using os #defines than whole platforms */
#include <dlfcn.h> /* For replaceFunction test */
Expand Down
1 change: 0 additions & 1 deletion src/dyninst/test1_23.C
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
/*
* #Name: test1_23
* #Desc: Local Variables
* #Dep: !mips_sgi_irix6_4_test
* #Notes:
*/

Expand Down
Loading

0 comments on commit ae95186

Please sign in to comment.