This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/12285] Add sizeof_function functionality
- From: "mkgnu at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2003 15:50:41 -0000
- Subject: [Bug middle-end/12285] Add sizeof_function functionality
- References: <20030915054549.12285.mkgnu@gmx.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12285
------- Additional Comments From mkgnu at gmx dot net 2003-09-18 15:50 -------
The use of sizeof_function() would be to calculate during compile the size of a
function's text segment. One may want to copy that function during runtime and
create multiple copies of it (e.g. create new functions based on a template).
I am not sure what needs to happen on the case that a function has multiple
entry points. Any C function you compile will result into a text segment. I
don't see where the multiple entrypoints are. It may be called from different
other functions, but that doesn't matter. I don't think I understand what you mean.
Please read the thread.