<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Odd optimizer bug]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=909&amp;type=atom" />
	<updated>2023-08-18T11:50:09Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=909</id>
		<entry>
			<title type="html"><![CDATA[Re: Odd optimizer bug]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4166#p4166" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2023-08-18T11:50:09Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4166#p4166</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odd optimizer bug]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4165#p4165" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[peter.kelly]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3586</uri>
			</author>
			<updated>2023-08-18T04:42:47Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4165#p4165</id>
		</entry>
</feed>
