<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Odd optimizer bug]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=909</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=909&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Odd optimizer bug.]]></description>
		<lastBuildDate>Fri, 18 Aug 2023 11:50:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Odd optimizer bug]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4166#p4166</link>
			<description><![CDATA[<p>I&#039;m not overly surprised about this issue.&nbsp; Just glancing at the routine, the arguments aren&#039;t marked with <em>intent()</em> attributes, so the optimizer is taking some liberties since the arguments are, in fact, passed by reference.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 18 Aug 2023 11:50:09 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4166#p4166</guid>
		</item>
		<item>
			<title><![CDATA[Odd optimizer bug]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4165#p4165</link>
			<description><![CDATA[<p>I stumbled across an odd optimizer bug. I just though that I&#039;d flag it here.<br />I was updating &quot;Calpak&quot; a collection of Calendar routines by John Burkardt<br />and I found that it generated a lot on nonsense at optimization level -O3 <br />but worked perfectly with no optimizations. After a lot to sleuthing, I <br />tracked it down to this line:&nbsp; &nbsp; &nbsp; &nbsp;CALL Y_ASTRONOMICAL_TO_COMMON(Y , Y)<br />the left &quot;Y&quot; is the input and the right &quot;Y&quot; is the output. I am not sure exactly what<br />the optimizer was doing, but at -O3, it was returning just random junk.<br />doing this, fixed it; <br />temp=y<br />CALL Y_ASTRONOMICAL_TO_COMMON(Y , temp)<br />y=temp<br />So, if you are getting inexplicable results in your code, check that you don&#039;t have the same error.</p>]]></description>
			<author><![CDATA[null@example.com (peter.kelly)]]></author>
			<pubDate>Fri, 18 Aug 2023 04:42:47 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4165#p4165</guid>
		</item>
	</channel>
</rss>
