This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/66226] Incorrect code generation ppc, later assignment causes calling argument corruption
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 May 2015 21:06:06 +0000
- Subject: [Bug target/66226] Incorrect code generation ppc, later assignment causes calling argument corruption
- Auto-submitted: auto-generated
- References: <bug-66226-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66226
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |msebor at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Both AIX and POSIX require that:
In this hints structure, all members other than ai_flags, ai_eflags
ai_family, ai_socktype, and ai_protocol must be zero or a NULL pointer.
The program fails to set to zero the ai_addrlen member which causes the
function to fail (with both gcc and xlc). Once ai_addrlen is set to zero, the
program behaves as you expect.