From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9C3F71F4B4 for ; Tue, 6 Oct 2020 02:23:39 +0000 (UTC) Received: from localhost ([::1]:48334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPcde-0006UA-By for normalperson@yhbt.net; Mon, 05 Oct 2020 22:23:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPcda-0006Th-I7 for bug-gnulib@gnu.org; Mon, 05 Oct 2020 22:23:34 -0400 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]:42310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPcdY-0001aT-Ht for bug-gnulib@gnu.org; Mon, 05 Oct 2020 22:23:34 -0400 Received: by mail-oo1-xc2f.google.com with SMTP id l18so1677772ooa.9 for ; Mon, 05 Oct 2020 19:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=XUn8QOIYtosQJG1EgtKJpx2YBJXcFXe7Db9zkDDxH1g=; b=GH/5eremL3qwykjQFjXgCc7mTtV1WqTAGN5DvPaBCTmKDHLW9Wyp0UrdfWfnye1Pom nIACi3HW/4Fb1pV0N5+TCb4f+XdmSOT9VVLPfSC1khDZ1Jymn3Fc1zk1ceqUUQfvRPpW C68lsiixgAsPdnUn7qX+wuZ4u/4bZA4/vitZsPyuzFLR73L+XqyChC3ADU4cR+xNp8ez VSLIXJ5o6jAXsNnAJyT8Wly264qFGEYaq2XBl6eRsPSE/DxfMtzgahTFdVIchRhvme6m vxZUI3MtEq0eEPfGwM9CHHkIzE/giKwHoVu4F0Bx3vlHhm1XbsC1iRql35QMViiLXTVx 92vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=XUn8QOIYtosQJG1EgtKJpx2YBJXcFXe7Db9zkDDxH1g=; b=XN28s+oe9bmaBOrJrIBh6dTW+PrVxS/8MVpNiZaCPid40T+694tS4/TBFm2nlmQucy N6zvz2K4G8UlB4IuEBub28gdadQUz9zt07PhSMDB15HrHwYpeKkoLgth5o9C6M9cq/Jk 1fHTHtEN3DH51f00HXbZZeAz2as6B39wTeZPal42Ho1ba4EueRDVvef2M/e+t1kaNrLJ CPRnbl+0pGeMD9E0dTF80TJ5sLwudQTlEUcb1JQo5rglXFn4i2OssJ2WoPzIpbognt7+ aH9LR+BD3jOq8M3HPZjXUe52HWvGVbCujpMOkBsMgJKV46dYdGLZmZCBTdjCERmgyhas MdaA== X-Gm-Message-State: AOAM530eBG4xCaoq1j7UR0OaSc+wz7VQsyKPgvWENwbVq3JM5Qh1SW23 7KEJ9gm6w9H7NaIlaRQOWJ83eNBNAwM= X-Google-Smtp-Source: ABdhPJxz1eXfbgez+kYHLGtqnc1bErplwejCsoxfO9uFnCX4YkqVW+PGUfz7mtQp6ld9HTFKuLE8mQ== X-Received: by 2002:a4a:978a:: with SMTP id w10mr1645152ooi.69.1601951010656; Mon, 05 Oct 2020 19:23:30 -0700 (PDT) Received: from benji-pc.lan ([64.39.194.49]) by smtp.googlemail.com with ESMTPSA id w9sm494624oic.17.2020.10.05.19.23.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Oct 2020 19:23:29 -0700 (PDT) Subject: Re: Port getprogname module to SCO OpenServer To: Bruno Haible , Tim Rice References: <200221218.LiDKksLvd5@omega> <1640698.kv1YpayHPu@omega> From: Benji Wiebe Message-ID: <64fe151c-bbe8-d2ad-8352-b112cee5e806@gmail.com> Date: Mon, 5 Oct 2020 21:23:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <1640698.kv1YpayHPu@omega> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::c2f; envelope-from=benjiwiebe14@gmail.com; helo=mail-oo1-xc2f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" http://osr600doc.sco.com/en/man/html.CP/cc.CP.html#cc_preassertion Is where the predefined constants for the builtin cc are listed. Do we need to support a possible future port of clang to SCO OpenServer when OpenServer is dead? Or just make it work with the current compilers available? (SCO's cc and GCC) On 10/3/20 9:48 PM, Bruno Haible wrote: > Tim Rice wrote: >> Hi Bruno, >> >> On Sat, 3 Oct 2020, Bruno Haible wrote: >> >>> Tim Rice wrote: >>>>> +# elif defined __SCO_VERSION__ /* SCO OpenServer/UnixWare */ >>>> While __SCO_VERSION__ covers Openserver 6 and UnixWare 7, >>>> what is normally used for 6 and 7 is __USLC__ for the native compiler >>>> and __sysv5__ for gcc >>>> >>>> Ie. >>>> # elif defined __USLC__ || defined __sysv5__ >>> If the code depends only on the operating system, let's use a #if for >>> the operating system, not for the compilers (__USLC__). Because the day >>> clang gets ported to that operating systems, the condition would not >>> work any more. >>> >>> https://sourceforge.net/p/predef/wiki/OperatingSystems/ says that >>> _SCO_DS can be used to test for SCO OpenServer. It seems that you say that >>> __SCO_VERSION__ works as well. So let's use one of these. >> As to __SCO_VERSION__ vs __USLC__ for native compiler, I am fine >> with __SCO_VERSION__ in this case. > Good. > >> _SCO_DS is only for Openserver 5 (which the proposed patch will not work for) >> and __SCO_VERSION__ only works for the native compiler on OpenServer 6 and >> UnixWare 7. Sorry I did not make that clear before. >> __sysv5__ works for the GCC 7.3.0 on 6 and 7. If clang is ported, chances >> are extremely high it will also include the __sysv5__ manifest define. > OK. And what about __UNIXWARE__ and __OPENSERVER__ that I see being used [1]? > On which versions are they defined? > > As it starts to get confusing, maybe you can clarify things by filling in this > table? > > | OpenServer 5 | OpenServer 6 | UnixWare 7 | > | | | | > | native | gcc | native | gcc | native | gcc | > | | | | | | | > ----------------+---------+--------+---------+-------+---------+-------+ > _SCO_DS | | | | | | | > | | | | | | | > __SCO_VERSION__ | | | | | | | > | | | | | | | > __UNIXWARE__ | | | | | | | > | | | | | | | > __OPENSERVER__ | | | | | | | > | | | | | | | > __sysv5__ | | | | | | | > ----------------+---------+--------+---------+-------+---------+-------+ > > Bruno > > [1] https://opensource.apple.com/source/X11misc/X11misc-10.1/makedepend/makedepend-1.0.1/imakemdep.h.auto.html >