public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/50647] New: gcc/system.h: wrong prototype for sbrk
@ 2011-10-07 2:02 fzvqedi at v dot mintemail.com
2011-10-07 5:52 ` [Bug other/50647] " pinskia at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: fzvqedi at v dot mintemail.com @ 2011-10-07 2:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50647
Bug #: 50647
Summary: gcc/system.h: wrong prototype for sbrk
Classification: Unclassified
Product: gcc
Version: 4.5.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: fzvqedi@v.mintemail.com
../.././gcc/system.h:394: error: conflicting types for 'sbrk'
it uses (int) as argument, but
according to man sbrk:
void *sbrk(intptr_t increment);
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/50647] gcc/system.h: wrong prototype for sbrk
2011-10-07 2:02 [Bug c/50647] New: gcc/system.h: wrong prototype for sbrk fzvqedi at v dot mintemail.com
@ 2011-10-07 5:52 ` pinskia at gcc dot gnu.org
2011-10-07 20:57 ` fzvqedi at v dot mintemail.com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-10-07 5:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50647
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |other
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-10-07 05:50:15 UTC ---
Can you provide the full command line where this is happening. This should not
happen if sbrk has declared by the system headers.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/50647] gcc/system.h: wrong prototype for sbrk
2011-10-07 2:02 [Bug c/50647] New: gcc/system.h: wrong prototype for sbrk fzvqedi at v dot mintemail.com
2011-10-07 5:52 ` [Bug other/50647] " pinskia at gcc dot gnu.org
@ 2011-10-07 20:57 ` fzvqedi at v dot mintemail.com
2011-10-07 21:50 ` joseph at codesourcery dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: fzvqedi at v dot mintemail.com @ 2011-10-07 20:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50647
--- Comment #2 from Roger Meyer <fzvqedi at v dot mintemail.com> 2011-10-07 20:57:27 UTC ---
indeed, this should not happen.
but configure fails to figure that sbrk _is_ provided by the libc.
probably it doesn't use the proper feature test macros.
or it just err'd on compilation due to some wrong typedef's that configure
wrote into auto-host.h, like "#define ssize_t int" and similar nonsense.
however that prototype is just wrong.
once it is fixed i'll try to figure out why configure doesn't/didn't detect
sbrk being there.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/50647] gcc/system.h: wrong prototype for sbrk
2011-10-07 2:02 [Bug c/50647] New: gcc/system.h: wrong prototype for sbrk fzvqedi at v dot mintemail.com
2011-10-07 5:52 ` [Bug other/50647] " pinskia at gcc dot gnu.org
2011-10-07 20:57 ` fzvqedi at v dot mintemail.com
@ 2011-10-07 21:50 ` joseph at codesourcery dot com
2011-10-07 21:54 ` joseph at codesourcery dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: joseph at codesourcery dot com @ 2011-10-07 21:50 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/50647] gcc/system.h: wrong prototype for sbrk
2011-10-07 2:02 [Bug c/50647] New: gcc/system.h: wrong prototype for sbrk fzvqedi at v dot mintemail.com
` (2 preceding siblings ...)
2011-10-07 21:50 ` joseph at codesourcery dot com
@ 2011-10-07 21:54 ` joseph at codesourcery dot com
2011-10-07 22:30 ` schwab@linux-m68k.org
2011-10-09 23:30 ` fzvqedi at v dot mintemail.com
5 siblings, 0 replies; 7+ messages in thread
From: joseph at codesourcery dot com @ 2011-10-07 21:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50647
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-10-07 21:54:27 UTC ---
In general, please see our bug reporting instructions. Reports of
problems building GCC are not useful without details of the build, host
and target systems and the options passed when GCC was configured.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/50647] gcc/system.h: wrong prototype for sbrk
2011-10-07 2:02 [Bug c/50647] New: gcc/system.h: wrong prototype for sbrk fzvqedi at v dot mintemail.com
` (3 preceding siblings ...)
2011-10-07 21:54 ` joseph at codesourcery dot com
@ 2011-10-07 22:30 ` schwab@linux-m68k.org
2011-10-09 23:30 ` fzvqedi at v dot mintemail.com
5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2011-10-07 22:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50647
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #5 from Andreas Schwab <schwab@linux-m68k.org> 2011-10-07 22:30:14 UTC ---
Most likely the bootstrap compiler is just broken.
*** This bug has been marked as a duplicate of bug 50646 ***
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/50647] gcc/system.h: wrong prototype for sbrk
2011-10-07 2:02 [Bug c/50647] New: gcc/system.h: wrong prototype for sbrk fzvqedi at v dot mintemail.com
` (4 preceding siblings ...)
2011-10-07 22:30 ` schwab@linux-m68k.org
@ 2011-10-09 23:30 ` fzvqedi at v dot mintemail.com
5 siblings, 0 replies; 7+ messages in thread
From: fzvqedi at v dot mintemail.com @ 2011-10-09 23:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50647
Roger Meyer <fzvqedi at v dot mintemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|DUPLICATE |WONTFIX
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-10-09 23:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-07 2:02 [Bug c/50647] New: gcc/system.h: wrong prototype for sbrk fzvqedi at v dot mintemail.com
2011-10-07 5:52 ` [Bug other/50647] " pinskia at gcc dot gnu.org
2011-10-07 20:57 ` fzvqedi at v dot mintemail.com
2011-10-07 21:50 ` joseph at codesourcery dot com
2011-10-07 21:54 ` joseph at codesourcery dot com
2011-10-07 22:30 ` schwab@linux-m68k.org
2011-10-09 23:30 ` fzvqedi at v dot mintemail.com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).