public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/19428] New: inet_ntoa returns 0.0.0.0 using -maix64 Date: Thu, 13 Jan 2005 16:13:00 -0000 [thread overview] Message-ID: <20050113161317.19428.root@ibmbj.bj.co.uk> (raw) 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
next reply other threads:[~2005-01-13 16:13 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-01-13 16:13 gcc-bugzilla at gcc dot gnu dot org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050113161317.19428.root@ibmbj.bj.co.uk \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).