This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Testsuite question
- To: Marc dot Espie at liafa1 dot liafa dot jussieu dot fr
- Subject: Re: Testsuite question
- From: hjl at lucon dot org (H.J. Lu)
- Date: Sun, 11 Oct 1998 09:36:46 -0700 (PDT)
- Cc: egcs at cygnus dot com
>
> Is it possible to include test files in the suite that involve compiling
> AND linking... I've just tracked down a bug in a tentative OpenBSD
> installation to a constructor invocation problem. It resolved to this:
> // a.C
> static struct object
> {
> object()
> {
> exit(0);
> }
> } o;
>
> // b.C
> int main()
> {
> abort();
> }
>
> obviously, files need to be compiled separately for the problem to show up...
>
# uname
Linux
# gcc a.C b.C
# a.out
# echo $?
0
It looks like a OpenBSD bug to me. BTW, it is indeed quite
tricky. You need a working libc and linker. And ELF won't
hurt either.
--
H.J. Lu (hjl@gnu.org)