From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id D96F7385841A for ; Wed, 29 Sep 2021 23:41:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D96F7385841A Received: by mail-ot1-x330.google.com with SMTP id l16-20020a9d6a90000000b0053b71f7dc83so5016744otq.7 for ; Wed, 29 Sep 2021 16:41:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=OjP+gZK2Zm62BsDoL673LsSp5gdrZ+o5UkPDA3IDza4=; b=eBR0Aq/jAYJpcCBZUHor+ii5+2xuHSInH9uXG35ex/3T69woKSHc/b6Bjvx+w+Sl0V lcqbj5B+YbIxMjlfm2KPfbwdFohpeqTsspcE8EnXXds2C15VFeWTtNwDxZWmJNShbISa veycJhcd6AANDYmfHWYKDt5zToQM382+Ney3DjyCt2P8e0aEVNH5xZh5WhxmFS0eX3M7 TxCXp+I/4/9OzJ0681dyRppB0b+Y5n5gVXWLm53FuXAwtZbu8gV1jSY/PLKGgs1iwSZq m3kWCwEo3knMW+fFHJ/M14a6Aema52VrlJLKijvH7QYAq5+YO+T7B6VUWlBdGmv1ugpD T/zw== X-Gm-Message-State: AOAM531Psq5ku65hDWzD3ChFbwhreCUGRC8otgLl5UnFuVbv9UpKJA2p kxC17sp9WAp3gm6zdkxjlZiszywdVzMlnQ== X-Google-Smtp-Source: ABdhPJz7aV80k3/Vay+5wK6JfrrO4UyIewGkqtwicE/2zroLXd/AftgAYAKl5ZqzkIcPko7E6BRkfw== X-Received: by 2002:a05:6830:2690:: with SMTP id l16mr2339925otu.99.1632958881906; Wed, 29 Sep 2021 16:41:21 -0700 (PDT) Received: from ?IPv6:2806:108e:12:515c:dcbe:b895:7b8b:cd61? ([2806:108e:12:515c:dcbe:b895:7b8b:cd61]) by smtp.gmail.com with ESMTPSA id q20sm268982ooc.29.2021.09.29.16.41.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Sep 2021 16:41:21 -0700 (PDT) To: gcc@gcc.gnu.org From: Jesus Antonio Subject: S390 should change the meaning of -m31 Message-ID: Date: Wed, 29 Sep 2021 18:41:19 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2021 23:41:24 -0000 m31 is semantically the same as the m32 option. The m31 option allows for 32 bit addressing and that is confusing since the m31 option in S390 would mean 2 GiB space addressing but it allows for 32 bit addressing, this is awkward, not only because the option is misleading but is also incorrect. To use 32 bit mode you specify m31, however in S390 there are 32 and 31 bit modes, which have only 1 bit in difference. Code used:     volatile uint64_t *gib_test = (volatile uint64_t *)0x7FFFFFFF;     memset(gib_test, 1, 4096); Hercules dump: r 0x7FFFFFFF-0x800001FF R:000000007FFFFFFF:K:06=01 . R:000000008000000F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000001F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000002F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000003F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000004F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000005F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000006F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000007F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000008F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000009F:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800000AF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800000BF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800000CF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800000DF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800000EF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800000FF:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000010F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000011F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000012F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000013F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000014F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000015F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000016F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000017F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000018F:K:06=01 01010101 01010101 01010101 010101 ................ R:000000008000019F:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800001AF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800001BF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800001CF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800001DF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800001EF:K:06=01 01010101 01010101 01010101 010101 ................ R:00000000800001FF:K:06=01 01010101 01010101 01010101 010101 ................ The option i used was m31 of course, however this option is misleading since it allows 32 bit mode, and there is no m32 so you have to use m31 - just lots of misleading options. I'm requesting that m31 and m32 are semantically different to allow a less-misleading naming, since there is no 31 bit restriction whatsoever.