# HG changeset patch # User Tassilo Philipp # Date 1663766458 -7200 # Node ID 85b7a117b8078a5dfe34556e93c8ff9acecc6722 # Parent 0f40e13a2f0a241bb152ffca1a03e7922b845fa2 - more statics in test code (this is partly needed on an experimental freebsd sparc64 build where the elf cleanup code crashes for some reason ... it's probably that experimental build, but a good change to do regardless) diff -r 0f40e13a2f0a -r 85b7a117b807 test/ellipsis/ellipsis.cc --- a/test/ellipsis/ellipsis.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/ellipsis/ellipsis.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -36,7 +36,7 @@ #include #endif -DCValue mValue[NARGS]; +static DCValue mValue[NARGS]; void clearValues() { for(int i = 0;i, + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -38,10 +38,10 @@ DCpointer getFunc(int x); DCValue* getArg(int pos); -DCint valueInt [NARGS]; -DClonglong valueLongLong[NARGS]; -DCdouble valueDouble [NARGS]; -DCpointer valuePointer [NARGS]; +static DCint valueInt [NARGS]; +static DClonglong valueLongLong[NARGS]; +static DCdouble valueDouble [NARGS]; +static DCpointer valuePointer [NARGS]; bool equals(int select, int pos, void* data) { diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite/case.c --- a/test/suite/case.c Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite/case.c Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -44,7 +44,7 @@ DCValue* getArg(int pos) { return &mValue[pos]; } -int gID; +static int gID; int getId() { return gID; } /* Generate function definitions. */ diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite/main.c --- a/test/suite/main.c Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite/main.c Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2021 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -39,14 +39,14 @@ DCValue* getArg(int pos); -DCbool valueBool [NARGS]; -DCshort valueShort [NARGS]; -DCchar valueChar [NARGS]; -DCint valueInt [NARGS]; -DClonglong valueLongLong[NARGS]; -DCdouble valueDouble [NARGS]; -DCpointer valuePointer [NARGS]; -DCfloat valueFloat [NARGS]; +static DCbool valueBool [NARGS]; +static DCshort valueShort [NARGS]; +static DCchar valueChar [NARGS]; +static DCint valueInt [NARGS]; +static DClonglong valueLongLong[NARGS]; +static DCdouble valueDouble [NARGS]; +static DCpointer valuePointer [NARGS]; +static DCfloat valueFloat [NARGS]; enum { ID_DOUBLE = 0, diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite2/case.cc --- a/test/suite2/case.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite2/case.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -46,7 +46,7 @@ DCValue* getArg(int pos) { return &mValue[pos]; } -int gID; +static int gID; int getId() { return gID; } extern "C" { @@ -126,3 +126,4 @@ #include "case.h" }; + diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite2/main.cc --- a/test/suite2/main.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite2/main.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -38,14 +38,14 @@ DCValue* getArg(int pos); -DCbool valueBool [MAXARGS]; -DCchar valueChar [MAXARGS]; -DCshort valueShort [MAXARGS]; -DCint valueInt [MAXARGS]; -DClonglong valueLongLong[MAXARGS]; -DCdouble valueDouble [MAXARGS]; -DCpointer valuePointer [MAXARGS]; -DCfloat valueFloat [MAXARGS]; +static DCbool valueBool [MAXARGS]; +static DCchar valueChar [MAXARGS]; +static DCshort valueShort [MAXARGS]; +static DCint valueInt [MAXARGS]; +static DClonglong valueLongLong[MAXARGS]; +static DCdouble valueDouble [MAXARGS]; +static DCpointer valuePointer [MAXARGS]; +static DCfloat valueFloat [MAXARGS]; void clearValues(); diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite2_x86win32fast/case.cc --- a/test/suite2_x86win32fast/case.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite2_x86win32fast/case.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -52,7 +52,7 @@ DCValue* getArg(int pos) { return &mValue[pos]; } -int gID; +static int gID; int getId() { return gID; } extern "C" { diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite2_x86win32fast/main.cc --- a/test/suite2_x86win32fast/main.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite2_x86win32fast/main.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -40,15 +40,14 @@ DCValue* getArg(int pos); - -DCbool valueBool[MAXARGS]; -DCchar valueChar[MAXARGS]; -DCshort valueShort[MAXARGS]; -DCint valueInt[MAXARGS]; -DClonglong valueLongLong[MAXARGS]; -DCdouble valueDouble[MAXARGS]; -DCpointer valuePointer[MAXARGS]; -DCfloat valueFloat[MAXARGS]; +static DCbool valueBool [MAXARGS]; +static DCchar valueChar [MAXARGS]; +static DCshort valueShort [MAXARGS]; +static DCint valueInt [MAXARGS]; +static DClonglong valueLongLong[MAXARGS]; +static DCdouble valueDouble [MAXARGS]; +static DCpointer valuePointer [MAXARGS]; +static DCfloat valueFloat [MAXARGS]; void clearValues(); diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite2_x86win32std/case.cc --- a/test/suite2_x86win32std/case.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite2_x86win32std/case.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -53,7 +53,7 @@ DCValue* getArg(int pos) { return &mValue[pos]; } -int gID; +static int gID; int getId() { return gID; } extern "C" { diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite2_x86win32std/main.cc --- a/test/suite2_x86win32std/main.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite2_x86win32std/main.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -39,15 +39,15 @@ DCValue* getArg(int pos); -DCbool valueBool[MAXARGS]; -DCchar valueChar[MAXARGS]; -DCshort valueShort[MAXARGS]; -DCint valueInt[MAXARGS]; -DClong valueLong[MAXARGS]; -DClonglong valueLongLong[MAXARGS]; -DCdouble valueDouble[MAXARGS]; -DCpointer valuePointer[MAXARGS]; -DCfloat valueFloat[MAXARGS]; +static DCbool valueBool [MAXARGS]; +static DCchar valueChar [MAXARGS]; +static DCshort valueShort [MAXARGS]; +static DCint valueInt [MAXARGS]; +static DClong valueLong [MAXARGS]; +static DClonglong valueLongLong[MAXARGS]; +static DCdouble valueDouble [MAXARGS]; +static DCpointer valuePointer [MAXARGS]; +static DCfloat valueFloat [MAXARGS]; void clearValues(); diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite3/case.cc --- a/test/suite3/case.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite3/case.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -42,7 +42,7 @@ DCValue* getArg(int pos) { return &mValue[pos]; } -int gID; +static int gID; int getId() { return gID; } extern "C" { diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite3/main.cc --- a/test/suite3/main.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite3/main.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -39,10 +39,10 @@ DCValue* getArg(int pos); -DCint valueInt [NARGS]; -DClonglong valueLongLong[NARGS]; -DCdouble valueDouble [NARGS]; -DCfloat valueFloat [NARGS]; +static DCint valueInt [NARGS]; +static DClonglong valueLongLong[NARGS]; +static DCdouble valueDouble [NARGS]; +static DCfloat valueFloat [NARGS]; bool equals(int select, int pos, void* data) diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite_floats/case.cc --- a/test/suite_floats/case.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite_floats/case.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -45,7 +45,7 @@ DCValue* getArg(int pos) { return &mValue[pos]; } -int gID; +static int gID; int getId() { return gID; } extern "C" { diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite_floats/main.cc --- a/test/suite_floats/main.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite_floats/main.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -38,8 +38,8 @@ DCpointer getFunc(int x); DCValue* getArg(int pos); -DCdouble valueDouble [NARGS]; -DCfloat valueFloat [NARGS]; +static DCdouble valueDouble [NARGS]; +static DCfloat valueFloat [NARGS]; bool equals(int select, int pos, void* data) diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite_x86win32fast/case.cc --- a/test/suite_x86win32fast/case.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite_x86win32fast/case.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -46,7 +46,7 @@ DCValue* getArg(int pos) { return &mValue[pos]; } -int gID; +static int gID; int getId() { return gID; } #ifdef DC__C_GNU diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite_x86win32fast/main.cc --- a/test/suite_x86win32fast/main.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite_x86win32fast/main.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -39,14 +39,14 @@ DCValue* getArg(int pos); -DCbool valueBool[NARGS]; -DCshort valueShort[NARGS]; -DCchar valueChar[NARGS]; -DCint valueInt[NARGS]; -DClonglong valueLongLong[NARGS]; -DCdouble valueDouble[NARGS]; -DCpointer valuePointer[NARGS]; -DCfloat valueFloat[NARGS]; +static DCbool valueBool [NARGS]; +static DCshort valueShort [NARGS]; +static DCchar valueChar [NARGS]; +static DCint valueInt [NARGS]; +static DClonglong valueLongLong[NARGS]; +static DCdouble valueDouble [NARGS]; +static DCpointer valuePointer [NARGS]; +static DCfloat valueFloat [NARGS]; bool equals(int select, int pos, void* data) diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite_x86win32std/case.cc --- a/test/suite_x86win32std/case.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite_x86win32std/case.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -45,7 +45,7 @@ DCValue* getArg(int pos) { return &mValue[pos]; } -int gID; +static int gID; int getId() { return gID; } #ifdef DC__C_GNU diff -r 0f40e13a2f0a -r 85b7a117b807 test/suite_x86win32std/main.cc --- a/test/suite_x86win32std/main.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/suite_x86win32std/main.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler , + Copyright (c) 2007-2022 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -38,14 +38,14 @@ DCValue* getArg(int pos); -DCbool valueBool[NARGS]; -DCshort valueShort[NARGS]; -DCchar valueChar[NARGS]; -DCint valueInt[NARGS]; -DClonglong valueLongLong[NARGS]; -DCdouble valueDouble[NARGS]; -DCpointer valuePointer[NARGS]; -DCfloat valueFloat[NARGS]; +static DCbool valueBool [NARGS]; +static DCshort valueShort [NARGS]; +static DCchar valueChar [NARGS]; +static DCint valueInt [NARGS]; +static DClonglong valueLongLong[NARGS]; +static DCdouble valueDouble [NARGS]; +static DCpointer valuePointer [NARGS]; +static DCfloat valueFloat [NARGS]; bool equals(int select, int pos, void* data)