{"id":868274,"url":"http://patchwork.ozlabs.org/api/patches/868274/","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/CAOyqgcUPeoigqUF0r7Xst9VF4zTym3L2GJ2ufZUg4rrnNSYUTg@mail.gmail.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<CAOyqgcUPeoigqUF0r7Xst9VF4zTym3L2GJ2ufZUg4rrnNSYUTg@mail.gmail.com>","list_archive_url":null,"date":"2018-02-01T15:50:01","name":"libgo patch committed: Fix handling of getaddrinfo return type","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"b99975c5e5b8e8fd9a6febb521a43ac8cc2db126","submitter":{"id":36501,"url":"http://patchwork.ozlabs.org/api/people/36501/","name":"Ian Lance Taylor","email":"iant@golang.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/CAOyqgcUPeoigqUF0r7Xst9VF4zTym3L2GJ2ufZUg4rrnNSYUTg@mail.gmail.com/mbox/","series":[{"id":26465,"url":"http://patchwork.ozlabs.org/api/series/26465/","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=26465","date":"2018-02-01T15:50:01","name":"libgo patch committed: Fix handling of getaddrinfo return type","version":1,"mbox":"http://patchwork.ozlabs.org/series/26465/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/868274/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/868274/checks/","tags":{},"related":[],"headers":{"Return-Path":"<gcc-patches-return-472478-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-472478-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"xGSVJbeN\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3zXPhQ6P2fz9sPk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  2 Feb 2018 02:50:13 +1100 (AEDT)","(qmail 101620 invoked by alias); 1 Feb 2018 15:50:06 -0000","(qmail 101605 invoked by uid 89); 1 Feb 2018 15:50:05 -0000","from mail-wm0-f43.google.com (HELO mail-wm0-f43.google.com)\n\t(74.125.82.43) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tThu, 01 Feb 2018 15:50:04 +0000","by mail-wm0-f43.google.com with SMTP id 143so6776275wma.5 for\n\t<gcc-patches@gcc.gnu.org>; Thu, 01 Feb 2018 07:50:04 -0800 (PST)","by 10.80.134.56 with HTTP; Thu, 1 Feb 2018 07:50:01 -0800 (PST)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:from:date:message-id:subject:to:content-type; q=\n\tdns; s=default; b=xM9f6rST3+53IHmF8uNAUvRzbyjClWfjqNzhwsgsXJsRUi\n\teLdw2VDeWMJgPvgOFbsPMqiPdiSFRIB6EvpQsDHjJfY7lyO+GxCG3gouiJZOq24t\n\t5IymqK3Xd77FwIjgi3Xf239ZE61BWN8srvCyTeQEFNwDIMWvw5pcH6WKYM+U8=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:from:date:message-id:subject:to:content-type; s=\n\tdefault; bh=4DzZuQyDSlT6SYmDcI/Tw5/yh8o=; b=xGSVJbeNJ3kJDhM+n3eo\n\t0kMLK8LQKnxKo++y3GXditI0bm5MwvKPGyQk79ssMRyitnLUUTb5c3p2zHNkKg9y\n\toiSF6mvd1P3is6a/34UPrFbt5hgL2D+yV1rVo5PmJrWyoVxeO1DyaP5lb2WrISFa\n\tRQSqxCvKvH1tV5V63sk8h/8=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-11.1 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS,\n\tRCVD_IN_DNSWL_NONE,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=","X-HELO":"mail-wm0-f43.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:mime-version:from:date:message-id:subject:to;\n\tbh=4+HUlldRXdGZqYCa0zQaYyHH7CtUGzetNJTCnrD7nyg=;\n\tb=NVMJmNrVCHhTfkSIH1S0c1HUycIRGaTOpfZsk+sL72mUTh/mMYY+n9I5jLuJXOHeWq\n\tfN4dseFWpmzhX+UD8Emk0NVnP8iIrrYWXyQCghHtBsdnC6QCLZJ97s7RCJ+Xzo8odlat\n\tdOKCLWpG8y8HhF8v0SZ8D8m2t+68ZGnWm9rhc8PYwPiP/w9HvhaevXudcfkP32RStWBI\n\tb4riombxwx1AfzPSzZcaWt1V6kjnuV+a3euQzafdqCrGpumjYxpHKWR4FFyQIHZrMKNV\n\tCqcWfUdtYvf8p0dJWs4zLM9TxPURiwY2iRAaig84ir+v36XLkaZLImKbZrFy5Z8lpphQ\n\tM+6Q==","X-Gm-Message-State":"AKwxyteKeGteXjMebcr72gQ0YrZOoBjkiUkW+3P8bxeE6Cw4Hg/QSuY1\tc6ScKytlHNqti673NCJJe6PnhI6JTXkpeaWCNm3JZQ==","X-Google-Smtp-Source":"AH8x227vnl69PpK1FGx/ZqwjgU1WkCtZqe0VcT3aNIAUtsFul1/zDPUBA8cyeZtApNH57eRbvIm05ll7ol8xHs6qeNo=","X-Received":"by 10.80.174.245 with SMTP id f50mr61195315edd.28.1517500202162;\n\tThu, 01 Feb 2018 07:50:02 -0800 (PST)","MIME-Version":"1.0","From":"Ian Lance Taylor <iant@golang.org>","Date":"Thu, 1 Feb 2018 07:50:01 -0800","Message-ID":"<CAOyqgcUPeoigqUF0r7Xst9VF4zTym3L2GJ2ufZUg4rrnNSYUTg@mail.gmail.com>","Subject":"libgo patch committed: Fix handling of getaddrinfo return type","To":"gcc-patches <gcc-patches@gcc.gnu.org>, gofrontend-dev@googlegroups.com","Content-Type":"multipart/mixed; boundary=\"f403045c2ce47f4d390564288cf9\""},"content":"This libgo patch declares the return type of the C getaddrinfo\nfunction, when called from Go, as int32 rather than int.  That is\nimportant because getaddrinfo returns negative numbers on error, and\nso numbers like -2 in int32 were being treated as 0xfffffffe in int,\nwhich in Go is a 64 bit type.  This caused comparisons against\nEAI_NONAME, etc., to fail.  This fixes https://golang.org/issue/23645.\nBootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.  Committed\nto mainline.\n\nIan","diff":"Index: gcc/go/gofrontend/MERGE\n===================================================================\n--- gcc/go/gofrontend/MERGE\t(revision 257280)\n+++ gcc/go/gofrontend/MERGE\t(working copy)\n@@ -1,4 +1,4 @@\n-71758f9ca1804743afe178f0e2fca489e0217474\n+b833695618d1a5d9d531f5ba0f9c07c7e35e0073\n \n The first line of this file holds the git revision number of the last\n merge done from the gofrontend repository.\nIndex: libgo/go/net/cgo_unix.go\n===================================================================\n--- libgo/go/net/cgo_unix.go\t(revision 257217)\n+++ libgo/go/net/cgo_unix.go\t(working copy)\n@@ -23,7 +23,7 @@ import (\n )\n \n //extern getaddrinfo\n-func libc_getaddrinfo(node *byte, service *byte, hints *syscall.Addrinfo, res **syscall.Addrinfo) int\n+func libc_getaddrinfo(node *byte, service *byte, hints *syscall.Addrinfo, res **syscall.Addrinfo) int32\n \n //extern freeaddrinfo\n func libc_freeaddrinfo(res *syscall.Addrinfo)\n","prefixes":[]}