This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/50647] gcc/system.h: wrong prototype for sbrk
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Oct 2011 21:49:58 +0000
- Subject: [Bug other/50647] gcc/system.h: wrong prototype for sbrk
- Auto-submitted: auto-generated
- References: <bug-50647-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50647
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-10-07 21:49:58 UTC ---
In general the declarations in system.h are expected to be used only for
very archaic hosts that do not have prototypes in their system headers.
For such hosts, int is probably the right argument type; this prototype
should never be used for modern hosts. As such, the prototype should
probably remain unchanged; no host that actually has intptr_t should ever
see it. The problem would be that the declaration was not detected; we
need more details of the host (including whether you were e.g. building
natively or building a Canadian cross).
AC_USE_SYSTEM_EXTENSIONS should already ensure all appropriate feature
test macros are defined for known hosts.