public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/19428] New: inet_ntoa returns 0.0.0.0 using -maix64
@ 2005-01-13 16:13 gcc-bugzilla at gcc dot gnu dot org
2005-01-13 17:01 ` [Bug target/19428] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2005-01-13 16:13 UTC (permalink / raw)
To: gcc-bugs
gcc -maix64 code generated :-
lwz r3,116(r31)
bl <inet_ntoa>
cc -q64 (AIX compiler) code generated :-
lwz r3,116(r1)
rldicr 3,3,32,31
bl <inet_ntoa>
Environment:
System: AIX ibmbj 2 5 000972024C00
host: powerpc-ibm-aix5.2.0.0
build: powerpc-ibm-aix5.2.0.0
target: powerpc-ibm-aix5.2.0.0
configured with: ../gcc-3.3.2/configure : (reconfigured) ../gcc-3.3.2/configure --disable-nls : (reconfigured) ../gcc-3.3.2/configure --disable-nls
How-To-Repeat:
#include <sys/types.h>
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
main()
{
char buf[] = { 0xC2, 0x48, 0xA4, 0x47};
struct in_addr ipaddr;
char *rfc1006;
memcpy(&ipaddr, buf, sizeof(struct in_addr));
rfc1006 = inet_ntoa(ipaddr);
printf("Address is : %s\n", rfc1006);
}
------- Additional Comments From root at ibmbj dot bj dot co dot uk 2005-01-13 16:13 -------
Fix:
None.
--
Summary: inet_ntoa returns 0.0.0.0 using -maix64
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: root at ibmbj dot bj dot co dot uk
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-ibm-aix5.2.0.0
GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19428
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/19428] inet_ntoa returns 0.0.0.0 using -maix64
2005-01-13 16:13 [Bug c/19428] New: inet_ntoa returns 0.0.0.0 using -maix64 gcc-bugzilla at gcc dot gnu dot org
@ 2005-01-13 17:01 ` pinskia at gcc dot gnu dot org
2005-01-14 13:01 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-13 17:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-13 17:00 -------
Make sure you read <http://gcc.gnu.org/bugs.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19428
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/19428] inet_ntoa returns 0.0.0.0 using -maix64
2005-01-13 16:13 [Bug c/19428] New: inet_ntoa returns 0.0.0.0 using -maix64 gcc-bugzilla at gcc dot gnu dot org
2005-01-13 17:01 ` [Bug target/19428] " pinskia at gcc dot gnu dot org
@ 2005-01-14 13:01 ` pinskia at gcc dot gnu dot org
2005-01-15 0:03 ` dje at gcc dot gnu dot org
2005-01-15 0:13 ` dje at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-14 13:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14 13:00 -------
*** Bug 19442 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |john dot hodgkinson at
| |boldonjames dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19428
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/19428] inet_ntoa returns 0.0.0.0 using -maix64
2005-01-13 16:13 [Bug c/19428] New: inet_ntoa returns 0.0.0.0 using -maix64 gcc-bugzilla at gcc dot gnu dot org
2005-01-13 17:01 ` [Bug target/19428] " pinskia at gcc dot gnu dot org
2005-01-14 13:01 ` pinskia at gcc dot gnu dot org
@ 2005-01-15 0:03 ` dje at gcc dot gnu dot org
2005-01-15 0:13 ` dje at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-01-15 0:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2005-01-15 00:03 -------
GCC 3.3 produces incorrect code but it already has been fixed in GCC 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Known to fail| |3.3.2 3.3.3
Known to work| |3.4.3
Last reconfirmed|0000-00-00 00:00:00 |2005-01-15 00:03:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19428
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/19428] inet_ntoa returns 0.0.0.0 using -maix64
2005-01-13 16:13 [Bug c/19428] New: inet_ntoa returns 0.0.0.0 using -maix64 gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-01-15 0:03 ` dje at gcc dot gnu dot org
@ 2005-01-15 0:13 ` dje at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-01-15 0:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2005-01-15 00:11 -------
GCC 3.3 and earlier are known not to conform to the AIX ABI when passing
structures in registers. GCC is internally self-consistent, but not consistent
with the AIX ABI. AIX system libraries are compiled by IBM XLC and are not
interoperable for a few instances like this. This has been fixed in GCC 3.4,
but the fix will not be backported to the GCC 3.3 branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19428
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-01-15 0:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-13 16:13 [Bug c/19428] New: inet_ntoa returns 0.0.0.0 using -maix64 gcc-bugzilla at gcc dot gnu dot org
2005-01-13 17:01 ` [Bug target/19428] " pinskia at gcc dot gnu dot org
2005-01-14 13:01 ` pinskia at gcc dot gnu dot org
2005-01-15 0:03 ` dje at gcc dot gnu dot org
2005-01-15 0:13 ` dje at gcc dot gnu dot org
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).