<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1165</id>
	<title>Nabble - gcc - fortran</title>
	<updated>2009-12-19T02:58:20Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/gcc---fortran-f1165.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gcc---fortran-f1165.html" />
	<subtitle type="html">Discussion and development list for the Fortran language front end of GCC, and the corresponding runtime library. Patches to gfortran and libgfortran should go to both this list and gcc-patches.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26854157</id>
	<title>Re: Need higher resolution times for linpack benchmark</title>
	<published>2009-12-19T02:58:20Z</published>
	<updated>2009-12-19T02:58:20Z</updated>
	<author>
		<name>Janne Blomqvist-3</name>
	</author>
	<content type="html">On Fri, Dec 18, 2009 at 20:50, Steve Kargl
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26854157&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sgk@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; On Fri, Dec 18, 2009 at 07:24:20PM +0200, Janne Blomqvist wrote:
&lt;br&gt;&amp;gt;&amp;gt; Ping.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The patch looks ok to me.  You need a ChangeLog
&lt;br&gt;&amp;gt; entry.
&lt;br&gt;&lt;br&gt;Thanks, committed as r155359.
&lt;br&gt;&lt;br&gt;&amp;gt; Also, gfortran.info should probably mention
&lt;br&gt;&amp;gt; the resolution that one might expect to have with
&lt;br&gt;&amp;gt; your change, or perhap that system_clock() is typically
&lt;br&gt;&amp;gt; implemented upon the POSIX gettimeofday() system call.
&lt;br&gt;&lt;br&gt;Yes, good idea. This is now PR 42434.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Janne Blomqvist
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-higher-resolution-times-for-linpack-benchmark-tp26751190p26854157.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26847949</id>
	<title>Re: Need higher resolution times for linpack benchmark</title>
	<published>2009-12-18T10:50:58Z</published>
	<updated>2009-12-18T10:50:58Z</updated>
	<author>
		<name>Steve Kargl</name>
	</author>
	<content type="html">On Fri, Dec 18, 2009 at 07:24:20PM +0200, Janne Blomqvist wrote:
&lt;br&gt;&amp;gt; Ping.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;The patch looks ok to me. &amp;nbsp;You need a ChangeLog 
&lt;br&gt;entry. &amp;nbsp;Also, gfortran.info should probably mention
&lt;br&gt;the resolution that one might expect to have with
&lt;br&gt;your change, or perhap that system_clock() is typically
&lt;br&gt;implemented upon the POSIX gettimeofday() system call.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Steve
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-higher-resolution-times-for-linpack-benchmark-tp26751190p26847949.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26846734</id>
	<title>Re: Need higher resolution times for linpack benchmark</title>
	<published>2009-12-18T09:24:20Z</published>
	<updated>2009-12-18T09:24:20Z</updated>
	<author>
		<name>Janne Blomqvist-3</name>
	</author>
	<content type="html">Ping.
&lt;br&gt;&lt;br&gt;On Sat, Dec 12, 2009 at 18:55, Janne Blomqvist
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26846734&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blomqvist.janne@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sat, Dec 12, 2009 at 02:19, Tobias Burnus &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26846734&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;burnus@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; In principle, SYSTEM_CLOCK would, if count_rate is/were large enough,
&lt;br&gt;&amp;gt;&amp;gt; cf. &lt;a href=&quot;http://gcc.gnu.org/onlinedocs/gfortran/SYSTEM_005fCLOCK.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/onlinedocs/gfortran/SYSTEM_005fCLOCK.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Internally, it uses POSIX's clock_gettime (when available), which in
&lt;br&gt;&amp;gt;&amp;gt; principle provides sub-ms resolution.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Actually, it doesn't. It prefers to use gettimeofday() which provides
&lt;br&gt;&amp;gt; 1 us resolution, falling back to time() with 1s resolution. In
&lt;br&gt;&amp;gt; practice, I believe gettimeofday() is available more or less
&lt;br&gt;&amp;gt; everywhere. With clock_gettime() we could get in principle up to 1 ns
&lt;br&gt;&amp;gt; resolution (With Linux 2.6.31 I got around 60 -&amp;gt; 800 ns depending in
&lt;br&gt;&amp;gt; which timer I used), however the downside of that is that it's not as
&lt;br&gt;&amp;gt; ubiquitous and if it exists it lives in librt or libposix depending on
&lt;br&gt;&amp;gt; platform, so we'd need some configure magic to handle that and link in
&lt;br&gt;&amp;gt; those libraries.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; However, I think for INTEGER(4) and
&lt;br&gt;&amp;gt;&amp;gt; for INTEGER(8) the clock_rate should be the same; if so, one cannot make
&lt;br&gt;&amp;gt;&amp;gt; it too high, otherwise count wraps round all the time for INTEGER(4).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I disagree. Code which assumes some specific value for clock_rate is
&lt;br&gt;&amp;gt; broken anyway, as can be seen by the fact that other compilers use
&lt;br&gt;&amp;gt; different values.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hence, see the attached patch, which makes clock_rate = 1e6 for the
&lt;br&gt;&amp;gt; integer(8) version, giving 1 us resolution.  As mentioned above, if we
&lt;br&gt;&amp;gt; need more, we need to use clock_gettime(). Also, it removes an unused
&lt;br&gt;&amp;gt; argument from the gettimeofday() call. Ok for trunk (with a ChangeLog,
&lt;br&gt;&amp;gt; of course)?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think we should consider to change the rate from 1000 (-&amp;gt;25d) to 10000
&lt;br&gt;&amp;gt;&amp;gt; (-&amp;gt;60h).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't know; 60h is pretty easy to overflow for some long-running calculation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;(And finally support non-integer clock_rates, cf. PR 28484.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes. However since the actual implementation has no need for real
&lt;br&gt;&amp;gt; clock rates, this is IMHO best achieved by having the frontend use a
&lt;br&gt;&amp;gt; temporary integer variable and then copying back the result to the
&lt;br&gt;&amp;gt; real variable.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Similarly, F2003 allows any integer kinds in any combination, and to
&lt;br&gt;&amp;gt; support that without a combinatorial explosion of library functions,
&lt;br&gt;&amp;gt; we need to use temp variables and copying in the frontend. Of course,
&lt;br&gt;&amp;gt; this applies to a lot of other intrinsics as well.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also, see the attached C++ file for a simple test for different timing
&lt;br&gt;&amp;gt; functions. For me, a typical runs looks like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Testing clock()
&lt;br&gt;&amp;gt; avg/min/max: 10/10/10 ms.
&lt;br&gt;&amp;gt; Testing times()
&lt;br&gt;&amp;gt; _SC_CLK_TCK: 100
&lt;br&gt;&amp;gt; Real time Avg/Min/Max: 8.7/0/10 ms.
&lt;br&gt;&amp;gt; User time Avg/Min/Max: 2.8/0/10 ms.
&lt;br&gt;&amp;gt; Sys time Avg/Min/Max: 3.5/0/10 ms.
&lt;br&gt;&amp;gt; Testing getrusage()
&lt;br&gt;&amp;gt; User time Avg/min/max: 9.7/0/10 ms.
&lt;br&gt;&amp;gt; System time avg/min/max: 33.8/0/210 ms.
&lt;br&gt;&amp;gt; Testing gettimeofday()
&lt;br&gt;&amp;gt; Wall time avg/min/max: 1/1/1 us.
&lt;br&gt;&amp;gt; Testing clock_gettime() with CLOCK_MONOTONIC
&lt;br&gt;&amp;gt; Clock avg/min/max: 74.48/67/752 ns.
&lt;br&gt;&amp;gt; Testing clock_gettime() with CLOCK_REALTIME
&lt;br&gt;&amp;gt; Clock avg/min/max: 66.31/65/91 ns.
&lt;br&gt;&amp;gt; Testing clock_gettime() with CLOCK_PROCESS_CPUTIME_ID
&lt;br&gt;&amp;gt; Clock avg/min/max: 171.33/169/381 ns.
&lt;br&gt;&amp;gt; Testing clock_gettime() with CLOCK_THREAD_CPUTIME_ID
&lt;br&gt;&amp;gt; Clock avg/min/max: 157.73/156/217 ns.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As can be seen, the CPU time accounting functions give around 10 ms
&lt;br&gt;&amp;gt; resolution. One thing we could consider would be using times() instead
&lt;br&gt;&amp;gt; of getrusage() in order to avoid the large system time overhead of
&lt;br&gt;&amp;gt; getrusage(). clock_gettime() with  *CPUTIME_ID provides rather better
&lt;br&gt;&amp;gt; CPU time resolution, but unfortunately suffers from the usual problems
&lt;br&gt;&amp;gt; associated with using rdtsc on SMP systems.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Janne Blomqvist
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Janne Blomqvist
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-higher-resolution-times-for-linpack-benchmark-tp26751190p26846734.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26843723</id>
	<title>Re: Errors with optional arguments</title>
	<published>2009-12-18T05:50:52Z</published>
	<updated>2009-12-18T05:50:52Z</updated>
	<author>
		<name>nmm1</name>
	</author>
	<content type="html">On Dec 18 2009, Ignacio Fernández Galván wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ah! Thanks, I knew there had to be something. This fixes the &amp;quot;memory&amp;quot; 
&lt;br&gt;&amp;gt; problem too. But I still get the segmentation fault with OMP (which is 
&lt;br&gt;&amp;gt; what made me write the test files at first).
&lt;br&gt;&lt;br&gt;Given the number of &amp;quot;gotchas&amp;quot; in OpenMP, I am not surprised you have
&lt;br&gt;fallen into a hole. &amp;nbsp;I am currently writing a course on it; please Email
&lt;br&gt;me if you would like to see a (crude, early, partial) draft of the slides.
&lt;br&gt;&lt;br&gt;&amp;gt;By the way, are array variables allowed in OMP Reduction clauses?
&lt;br&gt;&lt;br&gt;Theoretically, yes. &amp;nbsp;In practice, don't ask for trouble. &amp;nbsp;That area of
&lt;br&gt;OpenMP is an ungodly mess.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Nick Maclaren.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Errors-with-optional-arguments-tp26840996p26843723.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26841587</id>
	<title>Re: Errors with optional arguments</title>
	<published>2009-12-18T02:18:48Z</published>
	<updated>2009-12-18T02:18:48Z</updated>
	<author>
		<name>Ignacio Fernández Galván-2</name>
	</author>
	<content type="html">--- On Fri, 18/12/09, Salvatore Filippone &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26841587&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;salvatore.filippone@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Your code is wrong. You CANNOT use optional arguments
&lt;br&gt;&amp;gt; without an INTERFACE. 
&lt;br&gt;&lt;br&gt;Ah! Thanks, I knew there had to be something. This fixes the &amp;quot;memory&amp;quot; problem too. But I still get the segmentation fault with OMP (which is what made me write the test files at first).
&lt;br&gt;&lt;br&gt;By the way, are array variables allowed in OMP Reduction clauses?
&lt;br&gt;&lt;br&gt;Ignacio
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Errors-with-optional-arguments-tp26840996p26841587.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26841313</id>
	<title>Re: Errors with optional arguments</title>
	<published>2009-12-18T01:56:13Z</published>
	<updated>2009-12-18T01:56:13Z</updated>
	<author>
		<name>Salvatore Filippone</name>
	</author>
	<content type="html">Ignacio Fernández Galván &amp;lt;jellby at yahoo dot com&amp;gt; &amp;nbsp;wrote:
&lt;br&gt;I encountered a couple of errors when trying to use optional arguments
&lt;br&gt;in subroutines. First, this one happens when the optional argument is
&lt;br&gt;the last of three, but not the only one or the last of two:
&lt;br&gt;&lt;br&gt;==========================================
&lt;br&gt;&lt;br&gt;$ cat test.f90
&lt;br&gt;&lt;br&gt;program test
&lt;br&gt;implicit none
&lt;br&gt;real :: a,b,c
&lt;br&gt;&lt;br&gt;call one(a)
&lt;br&gt;write(6,*) a
&lt;br&gt;call one()
&lt;br&gt;write(6,*) a
&lt;br&gt;&lt;br&gt;call two(a,b)
&lt;br&gt;write(6,*) b
&lt;br&gt;call two(a)
&lt;br&gt;write(6,*) b
&lt;br&gt;&lt;br&gt;call three(a,b,c)
&lt;br&gt;write(6,*) c
&lt;br&gt;call three(a,b)
&lt;br&gt;write(6,*) c
&lt;br&gt;&lt;br&gt;end program test
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;Your code is wrong. You CANNOT use optional arguments without an INTERFACE. 
&lt;br&gt;One solution would be to put the code into a module, as follows
&lt;br&gt;&lt;br&gt;module foo
&lt;br&gt;contains
&lt;br&gt;&lt;br&gt;subroutine one(a)
&lt;br&gt;implicit none
&lt;br&gt;real,optional :: a
&lt;br&gt;&lt;br&gt;if (present(a)) a=0.0
&lt;br&gt;&lt;br&gt;end subroutine one
&lt;br&gt;&lt;br&gt;subroutine two(a,b)
&lt;br&gt;implicit none
&lt;br&gt;real :: a
&lt;br&gt;real,optional :: b
&lt;br&gt;&lt;br&gt;if (present(b)) b=0.0
&lt;br&gt;&lt;br&gt;end subroutine two
&lt;br&gt;&lt;br&gt;subroutine three(a,b,c)
&lt;br&gt;implicit none
&lt;br&gt;real :: a,b
&lt;br&gt;real,optional :: c
&lt;br&gt;&lt;br&gt;if (present(c)) c=0.0
&lt;br&gt;&lt;br&gt;end subroutine three
&lt;br&gt;end module foo
&lt;br&gt;&lt;br&gt;program test
&lt;br&gt;use foo
&lt;br&gt;implicit none
&lt;br&gt;.......
&lt;br&gt;end program test
&lt;br&gt;&lt;br&gt;&lt;br&gt;HTH
&lt;br&gt;Salvatore
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Errors-with-optional-arguments-tp26840996p26841313.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26840996</id>
	<title>Errors with optional arguments</title>
	<published>2009-12-18T01:26:03Z</published>
	<updated>2009-12-18T01:26:03Z</updated>
	<author>
		<name>Ignacio Fernández Galván-2</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I encountered a couple of errors when trying to use optional arguments in subroutines. First, this one happens when the optional argument is the last of three, but not the only one or the last of two:
&lt;br&gt;&lt;br&gt;==========================================
&lt;br&gt;&lt;br&gt;$ cat test.f90
&lt;br&gt;&lt;br&gt;program test
&lt;br&gt;implicit none
&lt;br&gt;real :: a,b,c
&lt;br&gt;&lt;br&gt;call one(a)
&lt;br&gt;write(6,*) a
&lt;br&gt;call one()
&lt;br&gt;write(6,*) a
&lt;br&gt;&lt;br&gt;call two(a,b)
&lt;br&gt;write(6,*) b
&lt;br&gt;call two(a)
&lt;br&gt;write(6,*) b
&lt;br&gt;&lt;br&gt;call three(a,b,c)
&lt;br&gt;write(6,*) c
&lt;br&gt;call three(a,b)
&lt;br&gt;write(6,*) c
&lt;br&gt;&lt;br&gt;end program test
&lt;br&gt;&lt;br&gt;subroutine one(a)
&lt;br&gt;implicit none
&lt;br&gt;real,optional :: a
&lt;br&gt;&lt;br&gt;if (present(a)) a=0.0
&lt;br&gt;&lt;br&gt;end subroutine one
&lt;br&gt;&lt;br&gt;subroutine two(a,b)
&lt;br&gt;implicit none
&lt;br&gt;real :: a
&lt;br&gt;real,optional :: b
&lt;br&gt;&lt;br&gt;if (present(b)) b=0.0
&lt;br&gt;&lt;br&gt;end subroutine two
&lt;br&gt;&lt;br&gt;subroutine three(a,b,c)
&lt;br&gt;implicit none
&lt;br&gt;real :: a,b
&lt;br&gt;real,optional :: c
&lt;br&gt;&lt;br&gt;if (present(c)) c=0.0
&lt;br&gt;&lt;br&gt;end subroutine three
&lt;br&gt;&lt;br&gt;&lt;br&gt;$ $ gfortran test.f90 ; ./a.out
&lt;br&gt;&amp;nbsp; &amp;nbsp;0.0000000
&lt;br&gt;&amp;nbsp; &amp;nbsp;0.0000000
&lt;br&gt;&amp;nbsp; &amp;nbsp;0.0000000
&lt;br&gt;&amp;nbsp; &amp;nbsp;0.0000000
&lt;br&gt;&amp;nbsp; &amp;nbsp;0.0000000
&lt;br&gt;Violación de segmento
&lt;br&gt;&lt;br&gt;==========================================
&lt;br&gt;&lt;br&gt;This other error occurs when using an optional argument in an OMP Reduction clause (is this allowed, anyway?):
&lt;br&gt;&lt;br&gt;==========================================
&lt;br&gt;&lt;br&gt;$ cat test2.f90
&lt;br&gt;&lt;br&gt;program test
&lt;br&gt;implicit none
&lt;br&gt;real :: aa,bb
&lt;br&gt;&lt;br&gt;aa=1.0
&lt;br&gt;bb=0.0
&lt;br&gt;&lt;br&gt;call one(aa)
&lt;br&gt;write(6,*) aa,bb
&lt;br&gt;&lt;br&gt;bb=0.0
&lt;br&gt;&lt;br&gt;call one(aa,bb)
&lt;br&gt;write(6,*) aa,bb
&lt;br&gt;&lt;br&gt;bb=0.0
&lt;br&gt;&lt;br&gt;call one(aa)
&lt;br&gt;write(6,*) aa,bb
&lt;br&gt;&lt;br&gt;end program test
&lt;br&gt;&lt;br&gt;subroutine one(a,b)
&lt;br&gt;implicit none
&lt;br&gt;real :: a
&lt;br&gt;real, optional :: b
&lt;br&gt;integer :: i
&lt;br&gt;&lt;br&gt;a=0.0
&lt;br&gt;if (present(b)) b=1.0
&lt;br&gt;!$omp parallel private(i) reduction(+:a,b)
&lt;br&gt;!$omp do
&lt;br&gt;do i=1,1000000
&lt;br&gt;&amp;nbsp; a=a+1.0
&lt;br&gt;&amp;nbsp; if (present(b)) b=b+1.0
&lt;br&gt;end do
&lt;br&gt;!$omp end do
&lt;br&gt;!$omp end parallel
&lt;br&gt;&lt;br&gt;end subroutine one
&lt;br&gt;&lt;br&gt;&lt;br&gt;$ gfortran -fopenmp test2.f90 ; ./a.out
&lt;br&gt;Violación de segmento
&lt;br&gt;&lt;br&gt;&lt;br&gt;$ gfortran test2.f90 ; ./a.out
&lt;br&gt;&amp;nbsp; &amp;nbsp;1000000.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0000000
&lt;br&gt;&amp;nbsp; &amp;nbsp;1000000.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1000001.0
&lt;br&gt;&amp;nbsp; &amp;nbsp;1000000.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1000001.0
&lt;br&gt;&lt;br&gt;==========================================
&lt;br&gt;&lt;br&gt;... and, as you see, when not using OMP, the optional argument is somehow being &amp;quot;remembered&amp;quot; the third time the subroutine is called, it should have printed 0.0000000 instead of 1000001.0.
&lt;br&gt;&lt;br&gt;All this was done with the latest binary build in a linux system:
&lt;br&gt;&lt;br&gt;$ gfortran -v
&lt;br&gt;Using built-in specs.
&lt;br&gt;COLLECT_GCC=gfortran
&lt;br&gt;COLLECT_LTO_WRAPPER=/home/todos/Programas/gfortran-20091206/bin/../libexec/gcc/i686-pc-linux-gnu/4.5.0/lto-wrapper
&lt;br&gt;Target: i686-pc-linux-gnu
&lt;br&gt;Configured with: /home/jerry/gcc/trunk/configure --prefix=/usr/local/gfortran --enable-languages=c,fortran --disable-libmudflap --enable-libgomp --disable-shared
&lt;br&gt;Thread model: posix
&lt;br&gt;gcc version 4.5.0 20091205 (experimental) [trunk revision 155016] (GCC)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Is this a known or expected behaviour? Am I doing something wrong? Should I file a bug report?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ignacio
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Errors-with-optional-arguments-tp26840996p26840996.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26840761</id>
	<title>Re: Configuring fails on missing mpc.h on Mac OS 10.5.8</title>
	<published>2009-12-18T01:01:18Z</published>
	<updated>2009-12-18T01:01:18Z</updated>
	<author>
		<name>IainS</name>
	</author>
	<content type="html">&lt;br&gt;On 17 Dec 2009, at 20:54, Matt Fago wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; I've seen similar confusing errors when the configure process &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; picked up old versions of the libraries that were installed in some &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; unexpected places. As, say, mpfr requires gmp, both (using a &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; hopefully obvious notation) $WITH_GMP_DIR/include and &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; $WITH_MPFR_DIR/include will be passed to the compiler as parts of &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; the include search path (i.e. -I). So if you have an old version of &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; mpfr in $WITH_GMP_DIR, this will be picked up instead of the newer &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; version of $WITH_MPFR_DIR (or vice versa, depending of the ordering &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; of the command line). So I guess you should try uninstalling any &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; old versions of these libraries that are lying around, or try &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; installing all new versions in one place, and then simply using -- 
&lt;br&gt;&amp;gt;&amp;gt; with-gmp to point to them once and for all.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Unless you know exactly what you are doing I would very strongly &amp;nbsp;
&lt;br&gt;&amp;gt; suggest doing in-tree builds of gmp, mpfr, and mpc. This will let &amp;nbsp;
&lt;br&gt;&amp;gt; gcc compile these three libraries for you and link gcc/gfortran &amp;nbsp;
&lt;br&gt;&amp;gt; statically to these libraries. This way you never have to worry &amp;nbsp;
&lt;br&gt;&amp;gt; about them at all, really.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; See &lt;a href=&quot;http://gcc.gnu.org/install/prerequisites.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/install/prerequisites.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The key lines are:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;...if a GMP source distribution is found in a subdirectory of your &amp;nbsp;
&lt;br&gt;&amp;gt; GCC sources named gmp, it will be built together with GCC.&amp;quot;
&lt;br&gt;&amp;gt; &amp;quot;...if a MPFR source distribution is found in a subdirectory of your &amp;nbsp;
&lt;br&gt;&amp;gt; GCC sources named mpfr, it will be built together with GCC.&amp;quot;
&lt;br&gt;&amp;gt; &amp;quot;...if an MPC source distribution is found in a subdirectory of your &amp;nbsp;
&lt;br&gt;&amp;gt; GCC sources named mpc, it will be built together with GCC. &amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So just unpack the sources into the top of the gcc source tree and &amp;nbsp;
&lt;br&gt;&amp;gt; change the directory names appropriately.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes, this is quite hidden, and completely overlooked by 99.9% of &amp;nbsp;
&lt;br&gt;&amp;gt; everyone. But at least it's documented somewhere now.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; IMHO, this should be more obvious, and the recommended practice.
&lt;/div&gt;&lt;/div&gt;This is a great idea (and I was doing it all the time until approx. 6 &amp;nbsp;
&lt;br&gt;months ago).
&lt;br&gt;&lt;br&gt;however, in-tree builds are broken right now on darwin and i686-pc- 
&lt;br&gt;linux-gnu (PR42424) and have been broken on &amp; off since the move to &amp;nbsp;
&lt;br&gt;make c++ compat.
&lt;br&gt;I lost enthusiasm since earlier PRs provoked no response at all (from &amp;nbsp;
&lt;br&gt;which I infer not many people are using the in-tree method).
&lt;br&gt;&lt;br&gt;.... Notwithstanding this, if one is doing a one-off build it's a &amp;nbsp;
&lt;br&gt;great idea.
&lt;br&gt;&lt;br&gt;However, for repeated build/regtest the gmp/mpfr/mpc builds and checks &amp;nbsp;
&lt;br&gt;start to chew up a fair amount of time.
&lt;br&gt;&lt;br&gt;Darwin GMP/MPFR build requires some finessing - see the comment(s) on &amp;nbsp;
&lt;br&gt;the GMP site:
&lt;br&gt;&lt;br&gt;I build GMP/MPFR as 4-way fat static libraries (scripts attached, &amp;nbsp;
&lt;br&gt;you'll need Apple's Developer tools installed so that the SDKs can be &amp;nbsp;
&lt;br&gt;found - free download). &amp;nbsp;[there are no instructions and I've nowhere &amp;nbsp;
&lt;br&gt;to host them - so if you want/need help have to contact me off list].
&lt;br&gt;&lt;br&gt;... this method means that there's no issue with having to supply/ 
&lt;br&gt;locate the dylibs for gmp/mpfr/mpc...
&lt;br&gt;&lt;br&gt;The resulting trees can be placed anywhere (I put them on the same &amp;nbsp;
&lt;br&gt;partition as I use for building gcc). &amp;nbsp;One then refers to them with -- 
&lt;br&gt;with-{gmp,mpfr}=/wherever/you/put/them.
&lt;br&gt;&lt;br&gt;MPC in-tree build is then working (although its make check fails &amp;nbsp;
&lt;br&gt;because it can't find the gmp lib).
&lt;br&gt;&lt;br&gt;The scripts are NOT user-friendly nor generic - you have to edit them &amp;nbsp;
&lt;br&gt;to your requirements ;
&lt;br&gt;I don't recommend trying to build the objects in the source directory &amp;nbsp;
&lt;br&gt;- it will get immensely confusing (might not even work..) &amp;nbsp;;-)
&lt;br&gt;&lt;br&gt;cheers,
&lt;br&gt;Iain
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;gmp-cover.h&lt;/strong&gt; (1K) &lt;a href=&quot;http://old.nabble.com/attachment/26840761/0/gmp-cover.h&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;make-gmp-431-x5.sh&lt;/strong&gt; (9K) &lt;a href=&quot;http://old.nabble.com/attachment/26840761/1/make-gmp-431-x5.sh&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;make-mpfr-241-x5.sh&lt;/strong&gt; (7K) &lt;a href=&quot;http://old.nabble.com/attachment/26840761/2/make-mpfr-241-x5.sh&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FW%3A-Configuring-fails-on-missing-mpc.h-on-Mac-OS-10.5.8-tp26829592p26840761.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26835969</id>
	<title>Re: RFC: PR 22552 and PR 39171</title>
	<published>2009-12-17T14:14:43Z</published>
	<updated>2009-12-17T14:14:43Z</updated>
	<author>
		<name>Tobias Burnus</name>
	</author>
	<content type="html">Hi Daniel,
&lt;br&gt;&lt;br&gt;Daniel Kraft wrote:
&lt;br&gt;&amp;gt; Here are two bugs I'd like &amp;quot;group opinion&amp;quot; on (I wanted to mention
&lt;br&gt;&amp;gt; this on the meeting, so here is the late version).
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&lt;br&gt;&amp;gt; PR 22552:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22552&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22552&lt;/a&gt;&lt;br&gt;&amp;gt; This is about adding a warning (presumably -Wimplicit-procedure) when a
&lt;br&gt;&amp;gt; &amp;quot;undeclared&amp;quot; procedure is called. 
&lt;br&gt;&lt;br&gt;I once had wished I had such a warning. As IMPLICIT NONE does not apply
&lt;br&gt;to procedures, it could be handy, sometimes. As the
&lt;br&gt;implementation/documentation/maintainance effort is low, I think one can
&lt;br&gt;add it.
&lt;br&gt;&lt;br&gt;+Warn if a procedure is called that has not been declared explicitly (either by
&lt;br&gt;+having an explicit interface, being a module procedure or declaring it
&lt;br&gt;+@code{EXTERNAL}).
&lt;br&gt;&lt;br&gt;&lt;br&gt;I don't not 100% like the explanation; for instance a host or use
&lt;br&gt;associated provides also an explicit interface and being a module
&lt;br&gt;procedure in a different scope does not help. PROCEDURE() is another
&lt;br&gt;possibility but as this also marks a symbol as EXTERNAL, I think that
&lt;br&gt;can be regarded as covered by &amp;quot;declaring it EXTERNAL&amp;quot;. How about:
&lt;br&gt;&lt;br&gt;&amp;quot;Warn if a procedure is called that has neither an explicit interface
&lt;br&gt;nor has been declared as EXTERNAL.&amp;quot;?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; PR 39171:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39171&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39171&lt;/a&gt;&lt;br&gt;&amp;gt; When something like CHARACTER(LEN=-1) (negative charlength) is declared,
&lt;br&gt;&amp;gt; there's currently a warning which is quite misleading, though (as it
&lt;br&gt;&amp;gt; states the character length is zero; for actual zero length however, no
&lt;br&gt;&amp;gt; warning is issued at all). &amp;nbsp;From a standard's point of view, a negative
&lt;br&gt;&amp;gt; charlength is fine and will be treated like LEN=0; but I think a warning
&lt;br&gt;&amp;gt; is a good idea in this case; and we should in any case fix the old
&lt;br&gt;&amp;gt; misleading warning. &amp;nbsp;Do you think we should warn always or only with
&lt;br&gt;&amp;gt; some -W... flag? &amp;nbsp;I'm willing to work out a patch for this if we get an
&lt;br&gt;&amp;gt; agreement on what exactly to do here.
&lt;/div&gt;&lt;br&gt;I think that by default no warning should be printed. It is a bit
&lt;br&gt;unusual usage, but perfectly valid. Maybe -Wsurprising could be an
&lt;br&gt;option ('Produce a warning when &amp;quot;suspicious&amp;quot; code constructs are
&lt;br&gt;encountered. &amp;nbsp;While technically legal these usually indicate that an
&lt;br&gt;error has been made.')
&lt;br&gt;&lt;br&gt;Printing no warning at all would also be fine with me. Thus: In any
&lt;br&gt;case, one should do something about it. But I am agnostic with regards
&lt;br&gt;to no warning vs. improved wording + only with -W*.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Tobias
&lt;br&gt;&lt;br&gt;PS: I will have only a dialup internet connection for a fortnight.
&lt;br&gt;&lt;br&gt;PPS: Before I forget it: Seasonal greeting, merry Christmas, and a happy
&lt;br&gt;new year to all of you!
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/RFC%3A-PR-22552-and-PR-39171-tp26812606p26835969.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26834797</id>
	<title>Re: FW: Configuring fails on missing mpc.h on Mac OS 10.5.8</title>
	<published>2009-12-17T12:54:47Z</published>
	<updated>2009-12-17T12:54:47Z</updated>
	<author>
		<name>Matt Fago</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; I've seen similar confusing errors when the configure process picked &amp;nbsp;
&lt;br&gt;&amp;gt; up old versions of the libraries that were installed in some &amp;nbsp;
&lt;br&gt;&amp;gt; unexpected places. As, say, mpfr requires gmp, both (using a &amp;nbsp;
&lt;br&gt;&amp;gt; hopefully obvious notation) $WITH_GMP_DIR/include and $WITH_MPFR_DIR/ 
&lt;br&gt;&amp;gt; include will be passed to the compiler as parts of the include &amp;nbsp;
&lt;br&gt;&amp;gt; search path (i.e. -I). So if you have an old version of mpfr in &amp;nbsp;
&lt;br&gt;&amp;gt; $WITH_GMP_DIR, this will be picked up instead of the newer version &amp;nbsp;
&lt;br&gt;&amp;gt; of $WITH_MPFR_DIR (or vice versa, depending of the ordering of the &amp;nbsp;
&lt;br&gt;&amp;gt; command line). So I guess you should try uninstalling any old &amp;nbsp;
&lt;br&gt;&amp;gt; versions of these libraries that are lying around, or try installing &amp;nbsp;
&lt;br&gt;&amp;gt; all new versions in one place, and then simply using --with-gmp to &amp;nbsp;
&lt;br&gt;&amp;gt; point to them once and for all.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Unless you know exactly what you are doing I would very strongly &amp;nbsp;
&lt;br&gt;suggest doing in-tree builds of gmp, mpfr, and mpc. This will let gcc &amp;nbsp;
&lt;br&gt;compile these three libraries for you and link gcc/gfortran statically &amp;nbsp;
&lt;br&gt;to these libraries. This way you never have to worry about them at &amp;nbsp;
&lt;br&gt;all, really.
&lt;br&gt;&lt;br&gt;See &lt;a href=&quot;http://gcc.gnu.org/install/prerequisites.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/install/prerequisites.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;The key lines are:
&lt;br&gt;&lt;br&gt;&amp;quot;...if a GMP source distribution is found in a subdirectory of your &amp;nbsp;
&lt;br&gt;GCC sources named gmp, it will be built together with GCC.&amp;quot;
&lt;br&gt;&amp;quot;...if a MPFR source distribution is found in a subdirectory of your &amp;nbsp;
&lt;br&gt;GCC sources named mpfr, it will be built together with GCC.&amp;quot;
&lt;br&gt;&amp;quot;...if an MPC source distribution is found in a subdirectory of your &amp;nbsp;
&lt;br&gt;GCC sources named mpc, it will be built together with GCC. &amp;quot;
&lt;br&gt;&lt;br&gt;So just unpack the sources into the top of the gcc source tree and &amp;nbsp;
&lt;br&gt;change the directory names appropriately.
&lt;br&gt;&lt;br&gt;Yes, this is quite hidden, and completely overlooked by 99.9% of &amp;nbsp;
&lt;br&gt;everyone. But at least it's documented somewhere now.
&lt;br&gt;&lt;br&gt;IMHO, this should be more obvious, and the recommended practice.
&lt;br&gt;&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;Matt
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FW%3A-Configuring-fails-on-missing-mpc.h-on-Mac-OS-10.5.8-tp26829592p26834797.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26834533</id>
	<title>[patch, testsuite,  libgomp.fortran] darwin no longer requires static linkage to access TLS.</title>
	<published>2009-12-17T12:33:25Z</published>
	<updated>2009-12-17T12:33:25Z</updated>
	<author>
		<name>IainS</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;As discussed on IRC last night, Darwin targets no longer need -static- 
&lt;br&gt;libgcc to provide TLS. &amp;nbsp;Consequently, the two tests that force this &amp;nbsp;
&lt;br&gt;(libgomp.fortran/crayptr2.f90 and libgomp.fortran/pr32550.f90) can be &amp;nbsp;
&lt;br&gt;tidied.
&lt;br&gt;&lt;br&gt;in each case:
&lt;br&gt;-! { dg-options &amp;quot;-static-libgcc&amp;quot; { target *-*-darwin* } }
&lt;br&gt;+! { dg-require-effective-target tls_runtime }
&lt;br&gt;&lt;br&gt;this is (IMO) the correct situation in any event - it seems misleading &amp;nbsp;
&lt;br&gt;to force non-standard options to make a target pass a few tests.
&lt;br&gt;checked on darwin9 ppc/i686 and darwin10 (thanks to Dominique).
&lt;br&gt;&lt;br&gt;cheers,
&lt;br&gt;Iain
&lt;br&gt;&lt;br&gt;====
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009-12-17 Iain Sandoe &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26834533&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;iain.sandoe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *libgomp/testsuite/libgomp.fortran/crayptr2.f90 remove forced static &amp;nbsp;
&lt;br&gt;linkage for darwin, protect the test with require-effective-target &amp;nbsp;
&lt;br&gt;tls_runtime
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *libgomp/testsuite/libgomp.fortran/pr32550.f90 remove forced static &amp;nbsp;
&lt;br&gt;linkage for darwin, protect the test with require-effective-target &amp;nbsp;
&lt;br&gt;tls_runtime
&lt;br&gt;&lt;br&gt;====
&lt;br&gt;&lt;br&gt;&lt;br /&gt;Index: libgomp/testsuite/libgomp.fortran/crayptr2.f90
&lt;br&gt;===================================================================
&lt;br&gt;--- libgomp/testsuite/libgomp.fortran/crayptr2.f90	(revision 155320)
&lt;br&gt;+++ libgomp/testsuite/libgomp.fortran/crayptr2.f90	(working copy)
&lt;br&gt;@@ -1,6 +1,6 @@
&lt;br&gt;&amp;nbsp;! { dg-do run }
&lt;br&gt;&amp;nbsp;! { dg-options &amp;quot;-fopenmp -fcray-pointer&amp;quot; }
&lt;br&gt;-! { dg-options &amp;quot;-fopenmp -fcray-pointer -static-libgcc&amp;quot; { target *-*-darwin* } }
&lt;br&gt;+! { dg-require-effective-target tls_runtime }
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;use omp_lib
&lt;br&gt;&amp;nbsp; &amp;nbsp;integer :: a, b, c, d, p
&lt;br&gt;Index: libgomp/testsuite/libgomp.fortran/pr32550.f90
&lt;br&gt;===================================================================
&lt;br&gt;--- libgomp/testsuite/libgomp.fortran/pr32550.f90	(revision 155320)
&lt;br&gt;+++ libgomp/testsuite/libgomp.fortran/pr32550.f90	(working copy)
&lt;br&gt;@@ -1,6 +1,6 @@
&lt;br&gt;&amp;nbsp;! PR fortran/32550
&lt;br&gt;&amp;nbsp;! { dg-do run }
&lt;br&gt;-! { dg-options &amp;quot;-static-libgcc&amp;quot; { target *-*-darwin* } }
&lt;br&gt;+! { dg-require-effective-target tls_runtime }
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;integer, pointer, save :: ptr
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;integer, target :: targ
&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-patch%2C-testsuite%2C--libgomp.fortran--darwin-no-longer-requires-static-linkage-to-access-TLS.-tp26834533p26834533.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830150</id>
	<title>Re: FW: Configuring fails on missing mpc.h on Mac OS 10.5.8</title>
	<published>2009-12-17T07:50:56Z</published>
	<updated>2009-12-17T07:50:56Z</updated>
	<author>
		<name>Tobias Schlüter</name>
	</author>
	<content type="html">&lt;br&gt;Hi Damian,
&lt;br&gt;&lt;br&gt;Rouson, Damian wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have now downloaded mpc 0.8.1 and installed it. &amp;nbsp;Now make, make install,
&lt;br&gt;&amp;gt; and make check all go through fine and configure finds mpc.h, but I think
&lt;br&gt;&amp;gt; it¹s failing to find the mpc executable:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; checking for correct version of gmp.h... yes
&lt;br&gt;&amp;gt; checking for correct version of mpfr.h... yes
&lt;br&gt;&amp;gt; checking for the correct version of mpc.h... yes
&lt;br&gt;&amp;gt; checking for the correct version of the gmp/mpfr/mpc libraries... no
&lt;br&gt;&amp;gt; configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.2+ and MPC
&lt;br&gt;&amp;gt; 0.8.0+.
&lt;br&gt;&amp;gt; Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
&lt;br&gt;&amp;gt; their locations. &amp;nbsp;Source code for these libraries can be found at
&lt;br&gt;&amp;gt; their respective hosting sites as well as at
&lt;br&gt;&amp;gt; ftp://gcc.gnu.org/pub/gcc/infrastructure/. &amp;nbsp;See also
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://gcc.gnu.org/install/prerequisites.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/install/prerequisites.html&lt;/a&gt;&amp;nbsp;for additional info. &amp;nbsp;If
&lt;br&gt;&amp;gt; you obtained GMP, MPFR and/or MPC from a vendor distribution package,
&lt;br&gt;&amp;gt; make sure that you have installed both the libraries and the header
&lt;br&gt;&amp;gt; files. &amp;nbsp;They may be located in separate packages.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have gmp 4.3.1 and mpfr 2.4.1. &amp;nbsp;Thoughts?
&lt;/div&gt;&lt;br&gt;I've seen similar confusing errors when the configure process picked up 
&lt;br&gt;old versions of the libraries that were installed in some unexpected 
&lt;br&gt;places. &amp;nbsp;As, say, mpfr requires gmp, both (using a hopefully obvious 
&lt;br&gt;notation) $WITH_GMP_DIR/include and $WITH_MPFR_DIR/include will be 
&lt;br&gt;passed to the compiler as parts of the include search path (i.e. -I). 
&lt;br&gt;So if you have an old version of mpfr in $WITH_GMP_DIR, this will be 
&lt;br&gt;picked up instead of the newer version of $WITH_MPFR_DIR (or vice versa, 
&lt;br&gt;depending of the ordering of the command line). &amp;nbsp;So I guess you should 
&lt;br&gt;try uninstalling any old versions of these libraries that are lying 
&lt;br&gt;around, or try installing all new versions in one place, and then simply 
&lt;br&gt;using --with-gmp to point to them once and for all.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;- Tobi
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Damian
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 12/17/09 6:37 AM, &amp;quot;Janus Weil&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830150&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;janus@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Hi Damian,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I just did an svn update and also tried a fresh checkout, but both fail to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; configure because configure can't find mpc.h. &amp;nbsp;Is this a new requirement? I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; never needed it before.
&lt;br&gt;&amp;gt;&amp;gt; Yes, it is new, see &lt;a href=&quot;http://gcc.gnu.org/ml/gcc/2009-11/msg00823.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/ml/gcc/2009-11/msg00823.html&lt;/a&gt;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm on Mac OS 10.5.8. &amp;nbsp;My configure line and the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; tail of the output are below. &amp;nbsp;I installed mpc via macports, but it didn't
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; seem to install mpc.h.
&lt;br&gt;&amp;gt;&amp;gt; I think the 'mpc' that you find in macports is a different thing than
&lt;br&gt;&amp;gt;&amp;gt; what GCC requires (namely some kind of audio tool). Try 'port info
&lt;br&gt;&amp;gt;&amp;gt; mpc'. I have not been able to find mpc (the multi-precision library
&lt;br&gt;&amp;gt;&amp;gt; for complex numbers) in the macports repo.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You should consider building mpc from source (available from
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.multiprecision.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.multiprecision.org/&lt;/a&gt;).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt; Janus
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------ End of Forwarded Message
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tobias Schlüter
&lt;br&gt;Am Coulombwall 1, Zi. 326
&lt;br&gt;85748 Garching b. München
&lt;br&gt;Tel.: +49/89/289-14139
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FW%3A-Configuring-fails-on-missing-mpc.h-on-Mac-OS-10.5.8-tp26829592p26830150.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830023</id>
	<title>Re: [Patch, Fortran] PR 42144: [OOP] deferred TBPs do not work</title>
	<published>2009-12-17T07:43:37Z</published>
	<updated>2009-12-17T07:43:37Z</updated>
	<author>
		<name>Janus Weil-3</name>
	</author>
	<content type="html">Hi Tobias,
&lt;br&gt;&lt;br&gt;&amp;gt; I have now merged the trunk into the fortran-dev branch
&lt;br&gt;&lt;br&gt;thanks a bunch.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; (a) I ignored the trans-expr.c change as it does not apply
&lt;br&gt;&amp;gt; to the vtable.
&lt;br&gt;&lt;br&gt;Yes, that's correct.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; (b) I have included the test case. Thus, you will
&lt;br&gt;&amp;gt; probably get a FAIL when regtesting the branch.
&lt;br&gt;&lt;br&gt;I don't think so. The vtable implementation should be able to handle
&lt;br&gt;deferred TBPs already.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Janus
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch%2C-Fortran--PR-42144%3A--OOP--deferred-TBPs-do-not-work-tp26817717p26830023.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26829921</id>
	<title>Re: [Patch, Fortran] PR 42353: [OOP] Bogus Error: Name 'vtype$...' at  	(1) is an ambiguous reference ...</title>
	<published>2009-12-17T07:38:35Z</published>
	<updated>2009-12-17T07:38:35Z</updated>
	<author>
		<name>Janus Weil-3</name>
	</author>
	<content type="html">&amp;gt; the attached patch fixes a small OOP problem, where under certain
&lt;br&gt;&amp;gt; circumstances one would get 'ambiguous reference' errors for the
&lt;br&gt;&amp;gt; vtypes. The easiest thing I could think of to fix this is to make the
&lt;br&gt;&amp;gt; vtypes private, which means that each module which uses a vtype will
&lt;br&gt;&amp;gt; have its own private copy (which in principle should not be a problem,
&lt;br&gt;&amp;gt; should it?).
&lt;br&gt;&lt;br&gt;In contrast to the patch I sent earlier, the version attached here
&lt;br&gt;also fixes the second error in the PR, which I almost forgot about
&lt;br&gt;(&amp;quot;Error: The element in the derived type constructor at (1), for
&lt;br&gt;pointer component '$extends', is DERIVED but should be DERIVED&amp;quot;).
&lt;br&gt;&lt;br&gt;Although the patch obviously works, I'm not sure if it may have any
&lt;br&gt;negative consequences and if it's the best thing to do. At least it
&lt;br&gt;fixes the test case and regtests cleanly.
&lt;br&gt;&lt;br&gt;Comments? Suggestions? Ok for trunk?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Janus
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;pr42353_2.diff&lt;/strong&gt; (670 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26829921/0/pr42353_2.diff&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch%2C-Fortran--PR-42353%3A--OOP--Bogus-Error%3A-Name-%27vtype%24...%27-at-%281%29--%09is-an-ambiguous-reference-...-tp26770657p26829921.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26829902</id>
	<title>Re: [Patch, Fortran] PR 42144: [OOP] deferred TBPs do not work</title>
	<published>2009-12-17T07:37:41Z</published>
	<updated>2009-12-17T07:37:41Z</updated>
	<author>
		<name>Tobias Burnus</name>
	</author>
	<content type="html">On 12/17/2009 10:41 AM, Janus Weil wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; OK for trunk.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; Thanks. Committed as r155305.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;I have now merged the trunk into the fortran-dev branch; that means for
&lt;br&gt;this patch: (a) I ignored the trans-expr.c change as it does not apply
&lt;br&gt;to the vtable. (b) I have included the test case. Thus, you will
&lt;br&gt;probably get a FAIL when regtesting the branch. (And I did some
&lt;br&gt;renaming; as this patch's testfile name was the same as an existing one
&lt;br&gt;on the branch, I have renamed the branch one and updated
&lt;br&gt;ChangeLog.fortran-dev.)
&lt;br&gt;&lt;br&gt;Transmitting file data
&lt;br&gt;..........................................................................................................
&lt;br&gt;Committed revision 155317.
&lt;br&gt;&lt;br&gt;Tobias
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch%2C-Fortran--PR-42144%3A--OOP--deferred-TBPs-do-not-work-tp26817717p26829902.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26829592</id>
	<title>FW: Configuring fails on missing mpc.h on Mac OS 10.5.8</title>
	<published>2009-12-17T07:19:02Z</published>
	<updated>2009-12-17T07:19:02Z</updated>
	<author>
		<name>Rouson, Damian</name>
	</author>
	<content type="html">I forgot to turn off the HTML formatting again. &amp;nbsp;Here¹s a resend:
&lt;br&gt;&lt;br&gt;------ Forwarded Message
&lt;br&gt;From: Damian Rouson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26829592&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rouson@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Thu, 17 Dec 2009 07:16:58 -0800
&lt;br&gt;To: Janus Weil &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26829592&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;janus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Cc: gfortran &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26829592&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fortran@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Conversation: Configuring fails on missing mpc.h on Mac OS 10.5.8
&lt;br&gt;Subject: Re: Configuring fails on missing mpc.h on Mac OS 10.5.8
&lt;br&gt;&lt;br&gt;Thanks, Janus.
&lt;br&gt;&lt;br&gt;I have now downloaded mpc 0.8.1 and installed it. &amp;nbsp;Now make, make install,
&lt;br&gt;and make check all go through fine and configure finds mpc.h, but I think
&lt;br&gt;it¹s failing to find the mpc executable:
&lt;br&gt;&lt;br&gt;checking for correct version of gmp.h... yes
&lt;br&gt;checking for correct version of mpfr.h... yes
&lt;br&gt;checking for the correct version of mpc.h... yes
&lt;br&gt;checking for the correct version of the gmp/mpfr/mpc libraries... no
&lt;br&gt;configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.2+ and MPC
&lt;br&gt;0.8.0+.
&lt;br&gt;Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
&lt;br&gt;their locations. &amp;nbsp;Source code for these libraries can be found at
&lt;br&gt;their respective hosting sites as well as at
&lt;br&gt;ftp://gcc.gnu.org/pub/gcc/infrastructure/. &amp;nbsp;See also
&lt;br&gt;&lt;a href=&quot;http://gcc.gnu.org/install/prerequisites.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/install/prerequisites.html&lt;/a&gt;&amp;nbsp;for additional info. &amp;nbsp;If
&lt;br&gt;you obtained GMP, MPFR and/or MPC from a vendor distribution package,
&lt;br&gt;make sure that you have installed both the libraries and the header
&lt;br&gt;files. &amp;nbsp;They may be located in separate packages.
&lt;br&gt;&lt;br&gt;I have gmp 4.3.1 and mpfr 2.4.1. &amp;nbsp;Thoughts?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Damian
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On 12/17/09 6:37 AM, &amp;quot;Janus Weil&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26829592&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;janus@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Damian,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I just did an svn update and also tried a fresh checkout, but both fail to
&lt;br&gt;&amp;gt;&amp;gt; configure because configure can't find mpc.h.  Is this a new requirement? I
&lt;br&gt;&amp;gt;&amp;gt; never needed it before.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes, it is new, see &lt;a href=&quot;http://gcc.gnu.org/ml/gcc/2009-11/msg00823.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/ml/gcc/2009-11/msg00823.html&lt;/a&gt;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I'm on Mac OS 10.5.8.  My configure line and the
&lt;br&gt;&amp;gt;&amp;gt; tail of the output are below.  I installed mpc via macports, but it didn't
&lt;br&gt;&amp;gt;&amp;gt; seem to install mpc.h.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think the 'mpc' that you find in macports is a different thing than
&lt;br&gt;&amp;gt; what GCC requires (namely some kind of audio tool). Try 'port info
&lt;br&gt;&amp;gt; mpc'. I have not been able to find mpc (the multi-precision library
&lt;br&gt;&amp;gt; for complex numbers) in the macports repo.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You should consider building mpc from source (available from
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.multiprecision.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.multiprecision.org/&lt;/a&gt;).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Janus
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;------ End of Forwarded Message
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FW%3A-Configuring-fails-on-missing-mpc.h-on-Mac-OS-10.5.8-tp26829592p26829592.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26828928</id>
	<title>Re: Configuring fails on missing mpc.h on Mac OS 10.5.8</title>
	<published>2009-12-17T06:37:14Z</published>
	<updated>2009-12-17T06:37:14Z</updated>
	<author>
		<name>Janus Weil-3</name>
	</author>
	<content type="html">Hi Damian,
&lt;br&gt;&lt;br&gt;&amp;gt; I just did an svn update and also tried a fresh checkout, but both fail to
&lt;br&gt;&amp;gt; configure because configure can't find mpc.h.  Is this a new requirement? I
&lt;br&gt;&amp;gt; never needed it before.
&lt;br&gt;&lt;br&gt;Yes, it is new, see &lt;a href=&quot;http://gcc.gnu.org/ml/gcc/2009-11/msg00823.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/ml/gcc/2009-11/msg00823.html&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; I'm on Mac OS 10.5.8.  My configure line and the
&lt;br&gt;&amp;gt; tail of the output are below.  I installed mpc via macports, but it didn't
&lt;br&gt;&amp;gt; seem to install mpc.h.
&lt;br&gt;&lt;br&gt;I think the 'mpc' that you find in macports is a different thing than
&lt;br&gt;what GCC requires (namely some kind of audio tool). Try 'port info
&lt;br&gt;mpc'. I have not been able to find mpc (the multi-precision library
&lt;br&gt;for complex numbers) in the macports repo.
&lt;br&gt;&lt;br&gt;You should consider building mpc from source (available from
&lt;br&gt;&lt;a href=&quot;http://www.multiprecision.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.multiprecision.org/&lt;/a&gt;).
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Janus
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Configuring-fails-on-missing-mpc.h-on-Mac-OS-10.5.8-tp26828049p26828928.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26828049</id>
	<title>Configuring fails on missing mpc.h on Mac OS 10.5.8</title>
	<published>2009-12-17T05:34:46Z</published>
	<updated>2009-12-17T05:34:46Z</updated>
	<author>
		<name>Rouson, Damian</name>
	</author>
	<content type="html">I just did an svn update and also tried a fresh checkout, but both fail to
&lt;br&gt;configure because configure can't find mpc.h. &amp;nbsp;Is this a new requirement? I
&lt;br&gt;never needed it before. &amp;nbsp;I'm on Mac OS 10.5.8. &amp;nbsp;My configure line and the
&lt;br&gt;tail of the output are below. &amp;nbsp;I installed mpc via macports, but it didn't
&lt;br&gt;seem to install mpc.h.
&lt;br&gt;&lt;br&gt;Configure line: 
&lt;br&gt;&lt;br&gt;/Users/rouson/fortran-dev/configure --program-suffix=-4.5 \
&lt;br&gt;--enable-checking=release --prefix=/usr/local/gfortran \
&lt;br&gt;--enable-languages=c,fortran --enable-version-specific-runtime-libs \
&lt;br&gt;--build=x86_64-apple-darwin9 --host=x86_64-apple-darwin9 \
&lt;br&gt;--target=x86_64-apple-darwin9 --disable-bootstrap --disable-multilib \
&lt;br&gt;--with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local \
&lt;br&gt;--with-libiconv-prefix=/opt/local
&lt;br&gt;&lt;br&gt;Output tail:
&lt;br&gt;&lt;br&gt;checking for correct version of gmp.h... yes
&lt;br&gt;checking for correct version of mpfr.h... yes
&lt;br&gt;checking for the correct version of mpc.h... no
&lt;br&gt;configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.2+ and MPC
&lt;br&gt;0.8.0+.
&lt;br&gt;Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
&lt;br&gt;their locations. &amp;nbsp;Source code for these libraries can be found at
&lt;br&gt;their respective hosting sites as well as at
&lt;br&gt;ftp://gcc.gnu.org/pub/gcc/infrastructure/. &amp;nbsp;See also
&lt;br&gt;&lt;a href=&quot;http://gcc.gnu.org/install/prerequisites.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/install/prerequisites.html&lt;/a&gt;&amp;nbsp;for additional info. &amp;nbsp;If
&lt;br&gt;you obtained GMP, MPFR and/or MPC from a vendor distribution package,
&lt;br&gt;make sure that you have installed both the libraries and the header
&lt;br&gt;files. &amp;nbsp;They may be located in separate packages.
&lt;br&gt;&lt;br&gt;Any advice?
&lt;br&gt;&lt;br&gt;Damian
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Configuring-fails-on-missing-mpc.h-on-Mac-OS-10.5.8-tp26828049p26828049.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26827191</id>
	<title>Re: Bugs in gfortran-4.3, gfortran-4.4 and gfortran-4.5</title>
	<published>2009-12-17T04:15:35Z</published>
	<updated>2009-12-17T04:15:35Z</updated>
	<author>
		<name>Daniel Franke-2</name>
	</author>
	<content type="html">On Thursday 17 December 2009 13:06:03 Jean-Baptiste FAURE wrote:
&lt;br&gt;&amp;gt; Le 17.12.2009 11:09, Stefano Simonucci a écrit :
&lt;br&gt;&amp;gt; &amp;gt; I have compiled a program (with many arrays) with the openmp flag
&lt;br&gt;&amp;gt; &amp;gt; (-fopenmp). The program segfaults immediately. I have experienced this
&lt;br&gt;&amp;gt; &amp;gt; behavior with gfortran-4.3, gfortran-4.4 and gfortran-4.5 (for AMD64). 
&lt;br&gt;&amp;gt; &amp;gt; If I compile the program with gfortran-4.2, I get a running binary.
&lt;br&gt;&amp;gt; &amp;gt; I have downloaded also the binaries from the gnu site (before I have
&lt;br&gt;&amp;gt; &amp;gt; used the Debian packages), but I get the same results.
&lt;br&gt;&lt;br&gt;You tried `ulimit -s unlimited` prior to running your application?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; I have the same problem if I compile with -fopenmp *and* -static.
&lt;br&gt;&amp;gt; Without -static no problem.
&lt;br&gt;&lt;br&gt;Maybe an issue with (implicit) static linking of libpthreads?
&lt;br&gt;See also comment #7 in here
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30471&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30471&lt;/a&gt;&lt;br&gt;or, more generally, here
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31400&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31400&lt;/a&gt;&lt;br&gt;&lt;br&gt;HTH
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Daniel
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bugs-in-gfortran-4.3%2C-gfortran-4.4-and-gfortran-4.5-tp26825797p26827191.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26827080</id>
	<title>Re: Bugs in gfortran-4.3, gfortran-4.4 and gfortran-4.5</title>
	<published>2009-12-17T04:06:03Z</published>
	<updated>2009-12-17T04:06:03Z</updated>
	<author>
		<name>Jean-Baptiste Faure</name>
	</author>
	<content type="html">Le 17.12.2009 11:09, Stefano Simonucci a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi!
&lt;br&gt;&amp;gt; I have compiled a program (with many arrays) with the openmp flag
&lt;br&gt;&amp;gt; (-fopenmp). 
&lt;br&gt;&amp;gt; The program segfaults immediately. I have experienced this behavior with
&lt;br&gt;&amp;gt; gfortran-4.3, gfortran-4.4 and gfortran-4.5 (for AMD64). If I compile
&lt;br&gt;&amp;gt; the program with gfortran-4.2, I get a running binary. 
&lt;br&gt;&amp;gt; I have downloaded also the binaries from the gnu site (before I have
&lt;br&gt;&amp;gt; used the Debian packages), but I get the same results. 
&lt;br&gt;&amp;gt; Thank you
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Stefano Simonucci 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;I have the same problem if I compile with -fopenmp *and* -static.
&lt;br&gt;Without -static no problem.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jean-Baptiste FAURE
&lt;br&gt;Cemagref - Unité de Recherche Hydrologie-Hydraulique
&lt;br&gt;Tel: 04 72 20 87 76 - Fax: 04 78 47 78 75 - Web: www.lyon.cemagref.fr
&lt;br&gt;Cemagref-Lyon 3bis, quai Chauveau C.P.220 69336 Lyon cedex09 FRANCE
&lt;br&gt;Seuls des formats ouverts peuvent assurer la pérennité de vos documents
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bugs-in-gfortran-4.3%2C-gfortran-4.4-and-gfortran-4.5-tp26825797p26827080.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825899</id>
	<title>Re: Bugs in gfortran-4.3, gfortran-4.4 and gfortran-4.5</title>
	<published>2009-12-17T02:18:21Z</published>
	<updated>2009-12-17T02:18:21Z</updated>
	<author>
		<name>Janus Weil-3</name>
	</author>
	<content type="html">Hi Stefano,
&lt;br&gt;&lt;br&gt;&amp;gt; I have compiled a program (with many arrays) with the openmp flag
&lt;br&gt;&amp;gt; (-fopenmp).
&lt;br&gt;&amp;gt; The program segfaults immediately. I have experienced this behavior with
&lt;br&gt;&amp;gt; gfortran-4.3, gfortran-4.4 and gfortran-4.5 (for AMD64). If I compile
&lt;br&gt;&amp;gt; the program with gfortran-4.2, I get a running binary.
&lt;br&gt;&lt;br&gt;thanks for reporting this. However, if you don't show us your code
&lt;br&gt;(preferably a small test case), we won't be able to help you.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Janus
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bugs-in-gfortran-4.3%2C-gfortran-4.4-and-gfortran-4.5-tp26825797p26825899.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825797</id>
	<title>Bugs in gfortran-4.3, gfortran-4.4 and gfortran-4.5</title>
	<published>2009-12-17T02:09:22Z</published>
	<updated>2009-12-17T02:09:22Z</updated>
	<author>
		<name>Stefano Simonucci</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;I have compiled a program (with many arrays) with the openmp flag
&lt;br&gt;(-fopenmp). 
&lt;br&gt;The program segfaults immediately. I have experienced this behavior with
&lt;br&gt;gfortran-4.3, gfortran-4.4 and gfortran-4.5 (for AMD64). If I compile
&lt;br&gt;the program with gfortran-4.2, I get a running binary. 
&lt;br&gt;I have downloaded also the binaries from the gnu site (before I have
&lt;br&gt;used the Debian packages), but I get the same results. 
&lt;br&gt;Thank you
&lt;br&gt;&amp;nbsp; &amp;nbsp;Stefano Simonucci 
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bugs-in-gfortran-4.3%2C-gfortran-4.4-and-gfortran-4.5-tp26825797p26825797.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825488</id>
	<title>Re: [Patch, Fortran] PR 42144: [OOP] deferred TBPs do not work</title>
	<published>2009-12-17T01:41:49Z</published>
	<updated>2009-12-17T01:41:49Z</updated>
	<author>
		<name>Janus Weil-3</name>
	</author>
	<content type="html">&amp;gt;&amp;gt; The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; OK for trunk.
&lt;br&gt;&lt;br&gt;Thanks. Committed as r155305.
&lt;br&gt;&lt;br&gt;Btw, when it comes to OOP, one of the bugs that we should definitely
&lt;br&gt;fix for 4.5 is PR42385. This is another one of those wrong-code
&lt;br&gt;nasties, where everything goes fine at compile time, but at runtime
&lt;br&gt;you silently get wrong results (the other OOP-wrong-code PR is 41829,
&lt;br&gt;which probably won't get fixed for 4.5, but at least it has a runtime
&lt;br&gt;error message).
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Janus
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch%2C-Fortran--PR-42144%3A--OOP--deferred-TBPs-do-not-work-tp26817717p26825488.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819656</id>
	<title>Re: [Patch, Fortran] PR 42144: [OOP] deferred TBPs do not work</title>
	<published>2009-12-16T14:31:13Z</published>
	<updated>2009-12-16T14:31:13Z</updated>
	<author>
		<name>Paul Richard Thomas</name>
	</author>
	<content type="html">Dear Janus,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
&lt;br&gt;&lt;br&gt;OK for trunk.
&lt;br&gt;&lt;br&gt;Many thanks for the patch.
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;PS It's a pity that it will not be so easy with vtables....
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch%2C-Fortran--PR-42144%3A--OOP--deferred-TBPs-do-not-work-tp26817717p26819656.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26817717</id>
	<title>[Patch, Fortran] PR 42144: [OOP] deferred TBPs do not work</title>
	<published>2009-12-16T12:14:00Z</published>
	<updated>2009-12-16T12:14:00Z</updated>
	<author>
		<name>Janus Weil-3</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;here is a patch which fixes dynamic dispatch with deferred type-bound
&lt;br&gt;procedures. On trunk, dynamic dispatch is currently handled such that
&lt;br&gt;a TBP call on a CLASS variable is translated into a SWITCH statement,
&lt;br&gt;which decides at runtime which version of the TBP to call, depending
&lt;br&gt;on the dynamic type.
&lt;br&gt;&lt;br&gt;Now, if the base type is abstract, we can just skip it when building
&lt;br&gt;the switch statement, since the dynamic type can never be abstract.
&lt;br&gt;This also prevents us from calling deferred TBPs (which previously
&lt;br&gt;resulted in linking failures, see PR).
&lt;br&gt;&lt;br&gt;The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Janus
&lt;br&gt;&lt;br&gt;&lt;br&gt;gcc/fortran/
&lt;br&gt;2009-12-16 Janus Weil &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817717&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;janus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PR fortran/42144
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * trans-expr.c (select_class_proc): Skip abstract base types.
&lt;br&gt;&lt;br&gt;gcc/testsuite/
&lt;br&gt;2009-12-16 &amp;nbsp;Janus Weil &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817717&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;janus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PR fortran/42144
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * gfortran.dg/dynamic_dispatch_6.f03: New test.
&lt;br&gt;&lt;br /&gt; &lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;pr42144.diff&lt;/strong&gt; (762 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26817717/0/pr42144.diff&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;dynamic_dispatch_6.f03&lt;/strong&gt; (2K) &lt;a href=&quot;http://old.nabble.com/attachment/26817717/1/dynamic_dispatch_6.f03&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Patch%2C-Fortran--PR-42144%3A--OOP--deferred-TBPs-do-not-work-tp26817717p26817717.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26812606</id>
	<title>RFC: PR 22552 and PR 39171</title>
	<published>2009-12-16T07:11:19Z</published>
	<updated>2009-12-16T07:11:19Z</updated>
	<author>
		<name>Daniel Kraft-4</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;first of all sorry that I could not attend the online meeting on Sunday; 
&lt;br&gt;I was in hospital, but am now back home (and hopefully everything is fine).
&lt;br&gt;&lt;br&gt;Here are two bugs I'd like &amp;quot;group opinion&amp;quot; on (I wanted to mention this 
&lt;br&gt;on the meeting, so here is the late version).
&lt;br&gt;&lt;br&gt;Thanks a lot!
&lt;br&gt;&lt;br&gt;Daniel
&lt;br&gt;&lt;br&gt;-------- Original Message --------
&lt;br&gt;Subject: RFC: PR 22552 and PR 39171
&lt;br&gt;Date: Mon, 10 Aug 2009 13:07:55 +0200
&lt;br&gt;From: Daniel Kraft &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26812606&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;d@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: Fortran List &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26812606&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fortran@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Hi all,
&lt;br&gt;&lt;br&gt;PR 22552 and PR 39171 are two reports I just stumbled upon again, and I
&lt;br&gt;think we could try to find a result... &amp;nbsp;Comments welcome!
&lt;br&gt;&lt;br&gt;PR 22552:
&lt;br&gt;&lt;a href=&quot;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22552&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22552&lt;/a&gt;&lt;br&gt;This is about adding a warning (presumably -Wimplicit-procedure) when a
&lt;br&gt;&amp;quot;undeclared&amp;quot; procedure is called. &amp;nbsp;Similar to -Wimplicit-interface, but
&lt;br&gt;this warning would also be content with an EXTERNAL declaration or
&lt;br&gt;defining the type for a function, even if no interface is explicitly
&lt;br&gt;given. &amp;nbsp;FX provided a patch and I did develop it further to a state
&lt;br&gt;where it can, if you think this warning reasonable, checked-in directly.
&lt;br&gt;&amp;nbsp; What do you think, should we do this? &amp;nbsp;Otherwise I'll mark the PR as
&lt;br&gt;WONTFIX.
&lt;br&gt;&lt;br&gt;PR 39171:
&lt;br&gt;&lt;a href=&quot;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39171&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39171&lt;/a&gt;&lt;br&gt;When something like CHARACTER(LEN=-1) (negative charlength) is declared,
&lt;br&gt;there's currently a warning which is quite misleading, though (as it
&lt;br&gt;states the character length is zero; for actual zero length however, no
&lt;br&gt;warning is issued at all). &amp;nbsp;From a standard's point of view, a negative
&lt;br&gt;charlength is fine and will be treated like LEN=0; but I think a warning
&lt;br&gt;is a good idea in this case; and we should in any case fix the old
&lt;br&gt;misleading warning. &amp;nbsp;Do you think we should warn always or only with
&lt;br&gt;some -W... flag? &amp;nbsp;I'm willing to work out a patch for this if we get an
&lt;br&gt;agreement on what exactly to do here.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;Daniel
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Done: &amp;nbsp;Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
&lt;br&gt;To go: Hea-Kni-Mon-Pri
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Done: &amp;nbsp;Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
&lt;br&gt;To go: Hea-Kni-Mon-Pri
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/RFC%3A-PR-22552-and-PR-39171-tp26812606p26812606.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26804561</id>
	<title>[patch] fortran/*.texi: Fix typos.</title>
	<published>2009-12-15T16:54:59Z</published>
	<updated>2009-12-15T16:54:59Z</updated>
	<author>
		<name>Kazu Hirata-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Attached is a patch to fix typos.
&lt;br&gt;&lt;br&gt;Committed as obvious.
&lt;br&gt;&lt;br&gt;Kazu Hirata
&lt;br&gt;&lt;br&gt;2009-12-16 &amp;nbsp;Kazu Hirata &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26804561&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kazu@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * gfc-internals.texi, gfortran.texi, invoke.texi: Fix typos.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Follow spelling conventions.
&lt;br&gt;&lt;br&gt;Index: fortran/gfc-internals.texi
&lt;br&gt;===================================================================
&lt;br&gt;--- fortran/gfc-internals.texi	(revision 155276)
&lt;br&gt;+++ fortran/gfc-internals.texi	(working copy)
&lt;br&gt;@@ -425,7 +425,7 @@ the type, rank and, if applicable, shape
&lt;br&gt;&amp;nbsp;tree of which the current structure is the root. &amp;nbsp;@code{where} is the locus of
&lt;br&gt;&amp;nbsp;this expression in the source code.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-Depending on the flavour of the expression being described by the object
&lt;br&gt;+Depending on the flavor of the expression being described by the object
&lt;br&gt;&amp;nbsp;(that is, the value of its @code{expr_type} member), the corresponding structure
&lt;br&gt;&amp;nbsp;in the @code{value} union will usually contain additional data describing the
&lt;br&gt;&amp;nbsp;expression's value in a type-specific manner. &amp;nbsp;The @code{ref} member is used to
&lt;br&gt;Index: fortran/gfortran.texi
&lt;br&gt;===================================================================
&lt;br&gt;--- fortran/gfortran.texi	(revision 155276)
&lt;br&gt;+++ fortran/gfortran.texi	(working copy)
&lt;br&gt;@@ -1911,7 +1911,7 @@ all C features have a Fortran equivalent
&lt;br&gt;&amp;nbsp;neither C's unsigned integers nor C's functions with variable number
&lt;br&gt;&amp;nbsp;of arguments have an equivalent in Fortran.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-Note that array dimensions are reversely orded in C and that arrays in
&lt;br&gt;+Note that array dimensions are reversely ordered in C and that arrays in
&lt;br&gt;&amp;nbsp;C always start with index 0 while in Fortran they start by default with
&lt;br&gt;&amp;nbsp;1. Thus, an array declaration @code{A(n,m)} in Fortran matches
&lt;br&gt;&amp;nbsp;@code{A[m][n]} in C and accessing the element @code{A(i,j)} matches
&lt;br&gt;Index: fortran/invoke.texi
&lt;br&gt;===================================================================
&lt;br&gt;--- fortran/invoke.texi	(revision 155276)
&lt;br&gt;+++ fortran/invoke.texi	(working copy)
&lt;br&gt;@@ -761,7 +761,7 @@ check that the declared interfaces are c
&lt;br&gt;&amp;nbsp;Warn if @command{gfortran} finds a procedure named like an intrinsic not
&lt;br&gt;&amp;nbsp;available in the currently selected standard (with @option{-std}) and treats
&lt;br&gt;&amp;nbsp;it as @code{EXTERNAL} procedure because of this. &amp;nbsp;@option{-fall-intrinsics} can
&lt;br&gt;-be used to never trigger this behaviour and always link to the intrinsic
&lt;br&gt;+be used to never trigger this behavior and always link to the intrinsic
&lt;br&gt;&amp;nbsp;regardless of the selected standard.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;@item -Wsurprising
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-patch--fortran-*.texi%3A-Fix-typos.-tp26804561p26804561.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26802796</id>
	<title>Re: GFortran Bug Report: Size of pointer variables</title>
	<published>2009-12-15T14:16:37Z</published>
	<updated>2009-12-15T14:16:37Z</updated>
	<author>
		<name>Tobias Burnus</name>
	</author>
	<content type="html">Am 15.12.2009 22:23, schrieb Steve Kargl:
&lt;br&gt;&amp;gt; See Tobias' email for an answer to the above question.
&lt;br&gt;&amp;gt; To add to your confusion, with gfortran mainline I see
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-6928
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;Well, that's the result of uninitialized memory. As -fdump-tree-original
&lt;br&gt;shows, the bounds will not be initialized only &amp;lt;arraydescriptor&amp;gt;.data,
&lt;br&gt;i.e. all tests except for ALLOCATED() will access invalid memory.
&lt;br&gt;&lt;br&gt;Try the following program. All my compilers print &amp;quot;5&amp;quot; for it: ifort,
&lt;br&gt;gfortran, NAG f95, openf95, g95:
&lt;br&gt;&lt;br&gt;PROGRAM TEST
&lt;br&gt;INTEGER, POINTER :: I(:)
&lt;br&gt;integer, target :: j(5)
&lt;br&gt;I=&amp;gt;j
&lt;br&gt;I=&amp;gt;null()
&lt;br&gt;PRINT *, SIZE(I)
&lt;br&gt;END PROGRAM TEST
&lt;br&gt;&lt;br&gt;Which demonstrates again that size(i) == 0 was probably an artifact of
&lt;br&gt;having no initialization of the bounds.
&lt;br&gt;&lt;br&gt;&amp;nbsp;* * *
&lt;br&gt;&lt;br&gt;&amp;gt; gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
&lt;br&gt;&lt;br&gt;I agree with Steve here that you should consider updating. GCC 4.1.2 was
&lt;br&gt;one of the first usable version of gfortran, but several bugs have been
&lt;br&gt;fixed in the meanwhile. The current stable version of GCC is 4.4.2 and
&lt;br&gt;only 4.5, 4.4.2 and 4.3.4 are supported.
&lt;br&gt;&lt;br&gt;Tobias
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GFortran-Bug-Report%3A-Size-of-pointer-variables-tp26801583p26802796.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26802018</id>
	<title>Re: GFortran Bug Report: Size of pointer variables</title>
	<published>2009-12-15T13:23:58Z</published>
	<updated>2009-12-15T13:23:58Z</updated>
	<author>
		<name>Steve Kargl</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 03:52:50PM -0500, Tink,James [NCR] wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Which compiler is producing the correct output and why?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;See Tobias' email for an answer to the above question.
&lt;br&gt;To add to your confusion, with gfortran mainline I see
&lt;br&gt;&lt;br&gt;troutmask:sgk[215] gfc4x -o z -O2 fk.f90
&lt;br&gt;troutmask:sgk[216] ./z
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;troutmask:sgk[217] gfc4x -o z -O fk.f90
&lt;br&gt;troutmask:sgk[218] ./z
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;troutmask:sgk[219] gfc4x -o z fk.f90
&lt;br&gt;troutmask:sgk[220] ./z
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-6928
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
&lt;br&gt;&lt;br&gt;If you can, it would be of significant use to you
&lt;br&gt;to upgrade to at least 4.4.2. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Steve
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GFortran-Bug-Report%3A-Size-of-pointer-variables-tp26801583p26802018.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26801759</id>
	<title>Re: GFortran Bug Report: Size of pointer variables</title>
	<published>2009-12-15T13:04:54Z</published>
	<updated>2009-12-15T13:04:54Z</updated>
	<author>
		<name>Tobias Burnus</name>
	</author>
	<content type="html">Am 15.12.2009 21:52, schrieb Tink,James [NCR]:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I tried to compile the following source (in test.f90):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; PROGRAM TEST
&lt;br&gt;&amp;gt; INTEGER, POINTER :: I(:)
&lt;br&gt;&amp;gt; I=&amp;gt;NULL()
&lt;br&gt;&amp;gt; PRINT *, SIZE(I)
&lt;br&gt;&amp;gt; END PROGRAM TEST
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Using: gfortran [...] I get the following output:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt; [...] using the Portland [...]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0
&lt;br&gt;&amp;gt; Which compiler is producing the correct output and why?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;Both compiler give the correct output. Looking at the current Fortran
&lt;br&gt;standard (Fortran 2003) one finds in &amp;quot;13.7.112 SIZE (ARRAY [, DIM, KIND])&amp;quot;:
&lt;br&gt;&lt;br&gt;&amp;quot;Arguments.
&lt;br&gt;&amp;quot;ARRAY may be of any type. It shall not be scalar. It shall not be an
&lt;br&gt;unallocated
&lt;br&gt;allocatable or a pointer that is not associated. [...]&amp;quot;
&lt;br&gt;&lt;br&gt;And your pointer is not associated. As your program is not conforming to
&lt;br&gt;the standard, anything is possible. Solution: Use the ASSOCIATE statement.
&lt;br&gt;&lt;br&gt;(For the Fortran standards, see &lt;a href=&quot;http://gcc.gnu.org/wiki/GFortranStandards&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/wiki/GFortranStandards&lt;/a&gt;&amp;nbsp;)
&lt;br&gt;&lt;br&gt;Tobias
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GFortran-Bug-Report%3A-Size-of-pointer-variables-tp26801583p26801759.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26801583</id>
	<title>GFortran Bug Report: Size of pointer variables</title>
	<published>2009-12-15T12:52:50Z</published>
	<updated>2009-12-15T12:52:50Z</updated>
	<author>
		<name>Tink,James [NCR]</name>
	</author>
	<content type="html">I apologize for sending a bug report via e-mail but I don't understand
&lt;br&gt;the bugzilla system, I'll try to submit bugs through it in the future.
&lt;br&gt;&lt;br&gt;I tried to compile the following source (in test.f90):
&lt;br&gt;&lt;br&gt;PROGRAM TEST
&lt;br&gt;INTEGER, POINTER :: I(:)
&lt;br&gt;I=&amp;gt;NULL()
&lt;br&gt;PRINT *, SIZE(I)
&lt;br&gt;END PROGRAM TEST
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Using:
&lt;br&gt;&lt;br&gt;gfortran test.f90 -o test.e
&lt;br&gt;&lt;br&gt;When running test.e, I get the following output:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&lt;br&gt;I tried to compile the same code using the Portland Group's Fortran 90
&lt;br&gt;compiler:
&lt;br&gt;&lt;br&gt;pgf90 test.f90 -o test.e
&lt;br&gt;&lt;br&gt;And get the following output from running test.e:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0
&lt;br&gt;&lt;br&gt;Which compiler is producing the correct output and why?
&lt;br&gt;&lt;br&gt;I would expect that the size of a pointer variable which is not
&lt;br&gt;associated (and pointing to NULL) would have size 0. This caused many of
&lt;br&gt;my programs compiled with GFortran to produce segmentation faults, where
&lt;br&gt;I assumed that an array with a non-zero size (which could possibly be a
&lt;br&gt;non-associated array in GFortran) has associated values. I realize that
&lt;br&gt;there is the ASSOCIATED intrinsic specifically to avoid this problem,
&lt;br&gt;but GFortran's behaviour is unexpected regardless and no other compilers
&lt;br&gt;that I know of have this same issue.
&lt;br&gt;&lt;br&gt;The output of gfortran -v on my system is:
&lt;br&gt;Using built-in specs.
&lt;br&gt;Target: x86_64-redhat-linux
&lt;br&gt;Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
&lt;br&gt;--infodir=/usr/share/info --enable-shared --enable-threads=posix
&lt;br&gt;--enable-checking=release --with-system-zlib --enable-__cxa_atexit
&lt;br&gt;--disable-libunwind-exceptions --enable-libgcj-multifile
&lt;br&gt;--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
&lt;br&gt;--enable-java-awt=gtk --disable-dssi --enable-plugin
&lt;br&gt;--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
&lt;br&gt;--with-cpu=generic --host=x86_64-redhat-linux
&lt;br&gt;Thread model: posix
&lt;br&gt;gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
&lt;br&gt;&lt;br&gt;I'd be happy to give additional information upon request. Thanks for
&lt;br&gt;your help,
&lt;br&gt;&lt;br&gt;James Tink
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;test.f90&lt;/strong&gt; (116 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26801583/0/test.f90&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GFortran-Bug-Report%3A-Size-of-pointer-variables-tp26801583p26801583.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26783228</id>
	<title>Re: [patch, fortran] Fix PR41235, accepts invalid</title>
	<published>2009-12-14T11:20:26Z</published>
	<updated>2009-12-14T11:20:26Z</updated>
	<author>
		<name>Daniel Franke-2</name>
	</author>
	<content type="html">On Saturday 12 December 2009 00:18:05 Tobias Burnus wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Am 10.12.2009 22:52, schrieb Tobias Burnus:
&lt;br&gt;&amp;gt; &amp;gt; I am not sure that the patch is correct. I think one refers to the
&lt;br&gt;&amp;gt; &amp;gt; following item in the standard:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;A procedure [...] shall have an explicit interface if it is referenced
&lt;br&gt;&amp;gt; &amp;gt; and [...]
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;(3) The procedure has a result that [...]
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;(c) has a nonassumed type parameter value that is not an
&lt;br&gt;&amp;gt; &amp;gt; initialization expression,&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I updated the patch now:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; a) I deleted the current check, which rejected valid programs, where one
&lt;br&gt;&amp;gt; had an implicit interface with &amp;nbsp;non-init-expr character lengths.
&lt;br&gt;&amp;gt; b) I added a check using -fwhole-file, which does prints an error under
&lt;br&gt;&amp;gt; the constraint that gfortran knows that the function is does not have a
&lt;br&gt;&amp;gt; assumed-length type parameter.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Bootstrapped and regtested on x86-64-linux.
&lt;br&gt;&amp;gt; OK for the trunk?
&lt;/div&gt;&lt;br&gt;Ok. Thanks for working on this :)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Daniel
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-patch%2C-fortran--Fix-PR41235%2C-accepts-invalid-tp26699543p26783228.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26782324</id>
	<title>Re: Fix for typos in gfortran.dg/boz_15.f90</title>
	<published>2009-12-14T10:19:34Z</published>
	<updated>2009-12-14T10:19:34Z</updated>
	<author>
		<name>Dominique Dhumieres</name>
	</author>
	<content type="html">&amp;gt; I have committed the patch to SVN mainline, ...
&lt;br&gt;&lt;br&gt;Thanks Uros.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fix-for-typos-in-gfortran.dg-boz_15.f90-tp26775582p26782324.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26782015</id>
	<title>Re: Fix for typos in gfortran.dg/boz_15.f90</title>
	<published>2009-12-14T09:58:25Z</published>
	<updated>2009-12-14T09:58:25Z</updated>
	<author>
		<name>Uros Bizjak-3</name>
	</author>
	<content type="html">Hello!
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The test gfortran.dg/boz_15.f90 fails on powerpc*-*-* in 64 bit mode due
&lt;br&gt;&amp;gt; to obvious typos (126 instead of 128 and 255 instead of 256, see
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://gcc.gnu.org/ml/gcc-testresults/2009-12/msg01164.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/ml/gcc-testresults/2009-12/msg01164.html&lt;/a&gt;).
&lt;br&gt;&amp;gt; This is fixed by the following patch. OK for trunk? If yes, please commit
&lt;br&gt;&amp;gt; (I don't have the rights to do it myself).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dominique
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; gcc/testsuite/
&lt;br&gt;&amp;gt; 2009-12-14 &amp;nbsp;Dominique d'Humieres&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26782015&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dominiq@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	* gfortran.dg/boz_15.f90: Fix typos.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;This patch certainly qualifies as obvious.
&lt;br&gt;&lt;br&gt;I have committed the patch to SVN mainline, after I checked that it also 
&lt;br&gt;fixes the failure on alphaev68-pc-linux-gnu.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Uros.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fix-for-typos-in-gfortran.dg-boz_15.f90-tp26775582p26782015.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26781861</id>
	<title>Re: A patch to fix the most obvious failures with -fwhole-file (take  2)</title>
	<published>2009-12-14T09:49:02Z</published>
	<updated>2009-12-14T09:49:02Z</updated>
	<author>
		<name>Steve Kargl</name>
	</author>
	<content type="html">On Mon, Dec 14, 2009 at 05:52:30PM +0100, Dominique Dhumieres wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; + &amp;nbsp;call gee_i(int(i**(-huge(0_8)-1_8),kind=kind(i)))
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; This is simply code obfuscation with no merit. ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Had you run the test yourself, you'ld have seen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Warning: Type mismatch in argument 'i' at (1); passed INTEGER(8) to INTEGER(4)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; subroutine gee_i(i)
&lt;br&gt;&amp;gt; &amp;nbsp; integer :: i
&lt;br&gt;&amp;gt; end subroutine gee_i
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; gee_i expects an integer, i**(-huge(0_8)-1_8) is integer(8) even if i is
&lt;br&gt;&amp;gt; integer, unless the promotion of i to integer(8) to compute the power
&lt;br&gt;&amp;gt; is a gfortran bug.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;I've already quoted the Fortran 2003 Standard.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Steve
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-A-patch-to-fix-the-most-obvious-failures-with--fwhole-file-%28take--2%29-tp26781031p26781861.html" />
</entry>

</feed>
