[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC 18/20] tests: fix spurious failures with tcc
From: |
Stefano Lattarini |
Subject: |
[RFC 18/20] tests: fix spurious failures with tcc |
Date: |
Thu, 18 Oct 2012 22:40:52 +0200 |
* t/depcomp8a.sh, t/depcomp8b.sh: Here, by avoiding initialization of
global 'extern' variables, preferring functions definitions instead.
Signed-off-by: Stefano Lattarini <address@hidden>
---
t/depcomp8a.sh | 9 ++++++---
t/depcomp8b.sh | 4 ++--
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/t/depcomp8a.sh b/t/depcomp8a.sh
index 4e34777..12257bb 100755
--- a/t/depcomp8a.sh
+++ b/t/depcomp8a.sh
@@ -37,12 +37,15 @@ mkdir sub
cat > foo.c << 'END'
int main (void)
{
- extern int bar;
- return bar;
+ extern int bar (void);
+ return bar ();
}
END
cat > sub/bar.c << 'END'
-extern int bar = 0;
+int bar (void)
+{
+ return 0;
+}
END
$ACLOCAL
diff --git a/t/depcomp8b.sh b/t/depcomp8b.sh
index 3e26392..3852c09 100755
--- a/t/depcomp8b.sh
+++ b/t/depcomp8b.sh
@@ -36,8 +36,8 @@ libzardoz_la_SOURCES = foo.c sub/bar.c
END
mkdir sub
-echo 'extern int foo = 0;' > foo.c
-echo 'extern int bar = 0;' > sub/bar.c
+echo 'int foo (void) { return 0; }' > foo.c
+echo 'int bar (void) { return 0; }' > sub/bar.c
libtoolize
--
1.8.0.rc2.11.gd25c58c
- [RFC 07/20] depcomp: don't rely on character ranges working as in C locale, (continued)
- [RFC 07/20] depcomp: don't rely on character ranges working as in C locale, Stefano Lattarini, 2012/10/18
- [RFC 08/20] depcomp: reduce code duplication, Stefano Lattarini, 2012/10/18
- [RFC 09/20] depcomp: avoid an extra fork when possible, Stefano Lattarini, 2012/10/18
- [RFC 10/20] depcomp: less duplication between AIX and Tru64 modes, Stefano Lattarini, 2012/10/18
- [RFC 11/20] depcomp: make some code more self-documenting, Stefano Lattarini, 2012/10/18
- [RFC 12/20] depcomp: shell code style changes, Stefano Lattarini, 2012/10/18
- [RFC 15/20] depcomp: remove an unused variable, Stefano Lattarini, 2012/10/18
- [RFC 14/20] depcomp: rewrite a sed invocation for less quoting, Stefano Lattarini, 2012/10/18
- [RFC 13/20] depcomp: whitespace fixes, Stefano Lattarini, 2012/10/18
- [RFC 17/20] depcomp: improve comments about tcc support, Stefano Lattarini, 2012/10/18
- [RFC 18/20] tests: fix spurious failures with tcc,
Stefano Lattarini <=
- [RFC 16/20] depcomp: remove last relics of libtool 1.4 support, Stefano Lattarini, 2012/10/18
- [RFC 19/20] NEWS: update w.r.t. recent depcomp changes, Stefano Lattarini, 2012/10/18
- [RFC 20/20] depcomp: remove 'icc' depmode, add 'tcc' one, Stefano Lattarini, 2012/10/18