🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #1025

Re: reassociation and undefined behaviour

#1025
From: Thomas Koenig
Date: Wed, 02 Dec 2026 18:21
16 lines
2072 bytes
Anton Ertl <anton@mips.complang.tuwien.ac.at> schrieb:

> The question is why gcc associates addition the way it does when it
> has the choice.  My guess is that it minimizes the simultaneously-live
> values.

It is a tuning parameter issue.  You will get different results
with different architectures; for example -O2 -march=znver1 will
reassociate just fine.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129211 .

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID: <11epnit$3c7hs$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11cpqih$acf5$1@dont-email.me> <86o6b6kaqf.fsf@linuxsc.com> <11ejr5e$nk8$1@reader2.panix.com> <11ejtoe$eoj7$1@dont-email.me> <11el2c1$q43$1@reader2.panix.com> <11emcgn$1k681$1@dont-email.me> <jwvbj74bzm4.fsf-monnier+comp.arch@gnu.org> <11eolqn$2peg5$1@dont-email.me> <2026Dec2.132411@mips.complang.tuwien.ac.at> <11epd07$362ph$1@dont-email.me> <2026Dec2.172552@mips.complang.tuwien.ac.at>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: comp.arch
Subject: Re: reassociation and undefined behaviour
Date: Wed, 2 Dec 2026 18:21:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <11epnit$3c7hs$1@dont-email.me>
References: <11cpqih$acf5$1@dont-email.me> <86o6b6kaqf.fsf@linuxsc.com>
 <11ejr5e$nk8$1@reader2.panix.com> <11ejtoe$eoj7$1@dont-email.me>
 <11el2c1$q43$1@reader2.panix.com> <11emcgn$1k681$1@dont-email.me>
 <jwvbj74bzm4.fsf-monnier+comp.arch@gnu.org> <11eolqn$2peg5$1@dont-email.me>
 <2026Dec2.132411@mips.complang.tuwien.ac.at>
 <11epd07$362ph$1@dont-email.me>
 <2026Dec2.172552@mips.complang.tuwien.ac.at>
Injection-Date: Wed, 02 Dec 2026 18:21:18 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3546684"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18Tw7k6gbhM5MkSBw6AXa1vEq9Mt7sgrCM="; posting-host="b68aab5bc8ae7bda68511d5dff26ec94"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:UNLST4wgQsjndHJljyIBHurq9iE= sha256:XibAKp/hyt38cjPUTnZgs+Q2bJlE+Rceqh1u+228b9Q=
	sha1:6/ScXLCyMw1sTvwv1YY+9TmjNk8= sha256:Kbm1LpVmMJwI3yTM+K4lyLDRegWn1wUzmmrlFeEqJk8=