From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 24 Feb 2019 19:22:44 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20190224162244.GA1312@altlinux.org> References: <5d1faa4c-f21b-047b-b8e9-27d28109f0b0@altlinux.org> <20190221132501.GQ10173@altlinux.org> <42f17a50-affe-4c54-99ad-88502a65854f@gmail.com> <0116bbf4-9a04-9ff3-819f-729b785a3bb1@gmail.com> <20190223012117.79c39033@sem-notebook> <8caf2604-0d15-08c4-5e1a-672fad601818@gmail.com> <20190223125520.GT10173@altlinux.org> <20190224110656.7ea0e54e@sem-notebook> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <20190224110656.7ea0e54e@sem-notebook> Subject: Re: [devel] gcc pointer arithmetics X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 16:22:44 -0000 Archived-At: List-Archive: List-Post: --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 24, 2019 at 02:06:56PM +0300, Mikhail Efremov wrote: > On Sat, 23 Feb 2019 15:55:21 +0300 Alexey V. Vissarionov wrote: > > On 2019-02-23 15:28:44 +0300, Leonid Krivoshein wrote: > >=20 > > >>> void-=D5=CB=C1=DA=C1=D4=C5=CC=D1=CD=C9 =D4=C1=CB=CF=C7=CF =CE=C5 = =D0=D2=CF=C4=C5=CC=C1=C5=DB=D8, =D7 =CF=D4=CC=C9=DE=C9=C5 =CF=D4 gcc, =CB= =CF=D4=CF=D2=D9=CA > > >>> =D4=CF=D6=C5 >>> =CE=C9 =CF=C4=C9=CE =D3=D4=C1=CE=C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=D9=CA. https://gcc.gnu.org/onlinedocs/gcc-8.3.0/gcc/Pointer-Arith.html https://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC78 --=20 ldv --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJccsTUAAoJEAVFT+BVnCUIZbQQAIui6xVIny5RxH44/1PRUg8o I7LwmsP5t+Ed0mTtG54MudaHdVCrgvXRaryMjH4J7v2jyTsaD54naqGBQ7sLnp4K Rz7U6S857kMDmfIlQrjDyZWojBtq2VzVF+nflJd7hm29HwDiB3bbeTIWejn1FMWK 3KsIeTZRLk+O2OAyspU5HyW3HrX+qzQCJGRz08O34SxtefyDGTrGvmvlRjstbeOu k40TugZ53ig1dHGiZEeQcd2VZNlc1V4v44r/ZB/VBUX0/JFjF7ZOPvIskrEhoQ8E GEn+gzItk+tWo1TBOQbkhHhsu0f4sK49YqrFBBTw1rIABOkOyqfqjK9NGcdYHlPB N7dOdyiuLQ9ZvASqYDFnX99jVf1TAAgLavbkD4CFQ0E36xH5zkSE9qhJ/vUVyb8X tw8u2JDQujNpZnsnJp5XIKUa/E1yO8QkUerB5WDCsFebjnogS6m02mhH165/epGQ j7ZxVEmS1dnKn+N1W2m6aGD5tiHnUo9EJxmNO66xEUGF0Fl7ZvD33V3H1JLp/YDO lKSsano6+Q2KW707OcVdVa1m8iRYjACMqhgHOxB8CvqxQnqDp1Trttcx2MkeEMIj p+/Zjp6OLdwdAcmugNng8T6GSa+G3v22pjjlsCO9SnipmRBLNiuQjxO/UOV17uRj UiUWL+Vvz0pD9BlKKvkG =QQRB -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1--