Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2017 07:57:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-toolchain@FreeBSD.org
Subject:   [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters
Message-ID:  <bug-223752-29464-tmqmgjAwMo@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223752-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223752-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
         Resolution|---                         |Works As Intended

--- Comment #20 from Dimitry Andric <dim@FreeBSD.org> ---
Unfortunately, as you both point out, the exact signature of C constructors=
 and
destructors is not explicitly documented.  However, glibc calls them without
any arguments, and ignores the return value:

https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Delf/soinit.c;h=3Dfe9=
935732b2dcc3d71b5c0f2e52c32efc642d160;hb=3DHEAD#l20

and all its test cases and examples use void func(void).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223752-29464-tmqmgjAwMo>