Re: [Patch, Fortran] PR 55983: [4.7/4.8 Regression] ICE in find_typebound_proc_uop, at fortran/class.c:2711

2013-01-16 Thread Paul Richard Thomas
Dear Janus, As you say, this is close to being obvious - OK for trunk and for 4.7. Thanks for the patch. Cheers Paul On 16 January 2013 15:08, Janus Weil wrote: > Hi all, > > here is a close-to-obvious patch for an ICE-on-invalid regression. It > removes as assert, which is reasonable for val

Re: [Patch, fortran] PR55984 [4.8 Regression] [OOP] ICE: gfc_trans_code(): Bad statement code & PR56047 [4.8 Regression]

2013-01-26 Thread Paul Richard Thomas
Thanks, Janus. Committed as revision 195492. Cheers Paul On 27 January 2013 00:15, Janus Weil wrote: > Hi Paul, > >> This patch builds on Janus's suggestion in the PR. The ChangeLog >> explains it all. >> >> Bootstrapped and regtested on x86_64/FC17 - OK for trunk? > > looks good to me. Thank

Re: [Patch, fortran] PR53537 Explicit import of USE renamed symbol.

2013-01-27 Thread Paul Richard Thomas
Dear Mikael, This looks good to me. The two week delay to back-porting is a good idea. Thanks for the patch Paul On 10 January 2013 15:57, Mikael Morin wrote: > Hello, > > for the case: > [...] >use select_precision, only: wp => dp >interface >subroutine ode_deriva

Re: [Patch, fortran] PR56008 (and PR47517) [F03] wrong code with lhs-realloc on assignment with derived types having allocatable components

2013-01-28 Thread Paul Richard Thomas
**ping** On 23 January 2013 11:06, Tobias Burnus wrote: > Paul Richard Thomas wrote: >> >> *** gfc_alloc_allocatable_for_assignment (gf >> *** 8224,8229 >> --- 8250,8262 >> desc, tmp); >>

Re: [Patch, Fortran] PR56138 - fix deferred-length character funcs w/o result variable

2013-01-29 Thread Paul Richard Thomas
Dear Tobias, For a variety of reasons, I did not open my mailbox this morning but got down to developing an almost identical fix and taking the PR! Anyway, it would be best that you commit your fix, so it's OK for trunk. Thanks Paul On 29 January 2013 23:36, Tobias Burnus wrote: > For allocat

Re: [patch, fortran] Fix PR 50627

2013-02-02 Thread Paul Richard Thomas
Dear Thomas, I wrote this almost immediately after you posted the patch, got disturbed and forgot about it - my apologies. Note Dominique's reply after you corrected the PR number. OK for trunk. The part in decl.c is exactly what I was thinking to do. Thanks for the patch Paul

Re: [Patch, fortran] PR56008 (and PR47517) [F03] wrong code with lhs-realloc on assignment with derived types having allocatable components

2013-02-04 Thread Paul Richard Thomas
Committed revision 195741. Thanks for the review. Paul On 28 January 2013 22:18, Thomas Koenig wrote: > Hi Paul, > > >> This patch is sufficiently straightforward that the ChangeLog entry >> describes it completely. The fix for both bugs lay in the >> nullification of the allocatable component

Re: [Patch, fortran] PR54107 ICE on recursive interface

2013-02-08 Thread Paul Richard Thomas
Mikael, The patch itself is good for trunk - it's rather clever, in fact :-) What's happened to the testcase? There are still lots of commented out lines that I presume are fixed. Cheers Paul On 7 February 2013 23:28, Mikael Morin wrote: > Hello, > > this is the last remaining patch to fix a

[Patch, fortran] PR55362 - [4.6/4.7/4.8 Regression] ICE with size() on character pointer

2013-02-09 Thread Paul Richard Thomas
Dear All, Committed as obvious revision 195915. The patch is a generalisation of Tobias' fix. 2013-02-09 Paul Thomas PR fortran/55362 * check.c (array_check): It is an error if a procedure is passed. 2013-02-09 Paul Thomas PR fortran/55362 * gfortran.dg/intrinsic_siz

Re: [patch, Fortran] Fix PR 56224

2013-02-09 Thread Paul Richard Thomas
It looks OK to me - is Jakub OK with it? Cheers Paul On 8 February 2013 21:48, Thomas Koenig wrote: > Hello world, > > the attached patch fixes the PR by (re-)adding a search path > for the path used by intrinsic modules. > > Regression-tested. OK for trunk? > > Thomas > > 2013-02-08

Re: [patch, Fortran] Change -std=f2008tr to f2008ts, update *.texi status and TR29113->TS29113

2011-10-15 Thread Paul Richard Thomas
Dear Tobias, I think that this is sufficiently "obvious" that you could have taken silence to be approval :-) Of course it's OK for trunk. Cheers Paul On Fri, Oct 14, 2011 at 11:15 PM, Tobias Burnus wrote: > *ping* > > http://gcc.gnu.org/ml/fortran/2011-10/msg00073.html > > On 12.10.2011 15:5

Re: [Patch, Fortran] PR 47023: [4.6/4.7 regression] C_Sizeof: Rejects valid code

2011-10-16 Thread Paul Richard Thomas
Dear Janus, This is OK for trunk. Thanks fo rthe patch. Cheers Paul On Sun, Oct 16, 2011 at 2:58 PM, Janus Weil wrote: > Hi all, > > here is a patch which fixes the regression in comment #2 of the PR in > the subject line. What it does is setting the 'ts.is_c_interop' flag > correctly for con

Re: [Patch, Fortran] PR 47023: [4.6/4.7 regression] C_Sizeof: Rejects valid code

2011-10-16 Thread Paul Richard Thomas
Dear Janus, Of course you can commit to 4.6. Be quick, though; 4.6.2 was due for release now-ish - "GCC 4.6 branch remains open under normal release branch rules, accepting regression and documentation fixes. GCC 4.6.2 is tentatively planned for late September or early October." Thanks Paul O

Re: [PATCH,fortran] Reap dead code

2011-10-26 Thread Paul Richard Thomas
Dear Steve, Reaping implies that there is something about it that you want to keep :-) Surely, weeding or herbicide spraying is better than reaping? On Wed, Oct 26, 2011 at 7:53 PM, Steve Kargl wrote: > On Sat, Oct 22, 2011 at 01:16:14PM -0700, Steve Kargl wrote: >> The attach patch reaps some

Re: [PATCH,fortran] Reap dead code

2011-10-26 Thread Paul Richard Thomas
Steve, > Surely, you have Halloween across the Pond, ie., the Grim Reaper. :-) And what, pray, does the Grim Reaper hold??? The patch is OK. Thanks Paul > >> >> On Wed, Oct 26, 2011 at 7:53 PM, Steve Kargl >> wrote: >> > On Sat, Oct 22, 2011 at 01:16:14PM -0700, Steve Kargl wrote: >> >> The

Re: [Patch, fortran] [06/66] inline sum and product: Prepare gfc_trans_preloop_setup

2011-10-30 Thread Paul Richard Thomas
Dear Mikael, I intend to work my way through your patches, starting this evening. I'll give you feedback as I go along and will OK the whole package, rather than bits. Is that alright with you? Cheers Paul On Fri, Oct 28, 2011 at 1:29 AM, Mikael Morin wrote: > -- The knack of flying is le

Re: [Patch, fortran] [00/66] PR fortran/43829 Inline sum and product (AKA scalarization of reductions)

2011-11-01 Thread Paul Richard Thomas
Dear Mikael, > PS: I hereby confess my failure to not split the patch too much. :-( I hereby confess my failure to find anything to which I could gripe, let alone object! The patch can only be described as a tour de force. Not only is there a lot of it - 6160 lines with context on - but it is

Re: [Patch, Fortran, OOP] PR 50919: Don't use vtable for NON_OVERRIDABLE TBP

2011-11-06 Thread Paul Richard Thomas
Dear Janus, On Mon, Nov 7, 2011 at 12:14 AM, Janus Weil wrote: > The patch actually consists of two parts: > 1) The resolve.c part prevents the conversion to a PPC call via the > _vptr (for functions and subroutines). This is obviously OK > 2) The class.c parts prevents adding the non-overrida

Re: [Patch,Fortran] PR39427/37829 - implement F2003's constructors

2011-11-07 Thread Paul Richard Thomas
Dear Tobias, Please stop sending us the patch! I received it right from the first mailing Cheers Paul On Sun, Nov 6, 2011 at 5:51 PM, Tobias Burnus wrote: > Last try: Also gzip the release notes - let's see whether it mailserver > accepts that email. > > Tobias > >> PS: I really hate that

Re: [Patch, Fortran, OOP] PR 50960: vtables not marked as constant

2011-11-08 Thread Paul Richard Thomas
Hi Janus, As part of Tobias's fix for PR50640, he introduced: + if ((sym->attr.flavor == FL_PARAMETER + && (sym->attr.dimension || sym->ts.type == BT_DERIVED)) + || sym->attr.vtab) TREE_READONLY (decl) = 1; Is this not sufficient to fix this PR too? Otherwise, your patch is, of

Re: [Patch, Fortran, OOP] PR 50960: vtables not marked as constant

2011-11-08 Thread Paul Richard Thomas
Dear Janus, I am asking the question :-) Are the two equivalent? To my mind, it is a matter of taste, if they are. Cheers Paul On Tue, Nov 8, 2011 at 9:02 PM, Janus Weil wrote: > Hi Paul, > >> As part of Tobias's fix for PR50640, he introduced: >> >> +  if ((sym->attr.flavor == FL_PARAMETER

[Patch, fortran] PR46897 - [OOP] type-bound defined ASSIGNMENT(=) not used for derived type component in intrinsic assign

2012-08-13 Thread Paul Richard Thomas
Dear All, Please find attached a patch and testcase for the above PR. The comment before generate_component_assignments explains the need for the patch, which itself is fairly self explanatory. Bootstrapped and regtested on Fc9/x86_64 - OK for trunk? Best regards Paul and Alessandro. 2012-08-

Re: [Patch, fortran] PR46897 - [OOP] type-bound defined ASSIGNMENT(=) not used for derived type component in intrinsic assign

2012-08-13 Thread Paul Richard Thomas
Dear Mikael, > I think there are a couple of bugs not triggered by the single component > types in the test. See below. Yes, you are right. We should have tested multiple components... my fault! > This could be moved to the only next caller (`previous' doesn't need to > be updated if `this_code

Re: [Patch, fortran] PR46897 - [OOP] type-bound defined ASSIGNMENT(=) not used for derived type component in intrinsic assign

2012-09-10 Thread Paul Richard Thomas
fortran.dg/defined_assignment_3.f90: New test. On 14/08/2012, Paul Richard Thomas wrote: > Mikael, > > On 14 August 2012 10:42, Mikael Morin wrote: >> On 14/08/2012 07:03, Paul Richard Thomas wrote: >>>> However, if we do it before, we also overwrite components to be >>>&

Re: [Patch, Fortran] (2/n) Fix some issues found by Coverity's static-code analysis scan

2012-09-15 Thread Paul Richard Thomas
Dear Tobias, > Build and regtested on x86-64-gnu-linux. > OK for the trunk? I am not convinced that the gcc_asserts are need in encode_derived but I guess they do no harm. OK for trunk. Thanks for the patch. Paul

Re: [Patch, Fortran] Fix some issues found by Coverity's static-code analysis scan

2012-09-15 Thread Paul Richard Thomas
Dear Tobias, > Build and regtested on x86-64-linux. > OK for the trunk? OK for trunk - thanks for the patch. Cheers Paul

Re: [Patch, fortran] PR46897 - [OOP] type-bound defined ASSIGNMENT(=) not used for derived type component in intrinsic assign

2012-09-17 Thread Paul Richard Thomas
Dear Tobias, > The following test case doesn't work; it should print "Overloaded" - and > does so with crayftn. But with your patch, it doesn't. For some reason, I guess, the attribute defined_assign_comp is not getting passed along to type 'b'. > + build_assignment (gfc_exec_op op, gfc_expr *ex

Re: [Patch, fortran] PR46897 - [OOP] type-bound defined ASSIGNMENT(=) not used for derived type component in intrinsic assign

2012-09-19 Thread Paul Richard Thomas
Dear Mikael, Thanks for the usually thorough review. snip > And here comes the next round of comments. snip >> + e->rank = c && c->as ? c->as->rank : 0; > This is bogus if e->rank was != 0 previously (think of the case > array(:)%scalar_comp). mistaken maybe but not bogus! >

Re: *PING**2 [Patch, Fortran] Reject coarrays in MOVE_ALLOC

2012-06-18 Thread Paul Richard Thomas
Dear Tobias, Good catch on the non-polymorphic 'TO'! >> Updated version (cf. below). Build and regtested on x86-64-linux. >> OK for the trunk? Indeed - OK for trunk. >> >> I asked at J3 and John Reid kindly pointed me to the pending >> interpretation request F08/0040 at >> http://j3-fortran.or

Re: **PING**2 [Patch, Fortran] PR53526 - Fix MOVE_ALLOC for coarrays

2012-06-18 Thread Paul Richard Thomas
Dear Tobias, >> OK for the trunk? Yes indeed - thanks for the patch. Cheers Paul

Re: [Patch, Fortran] PR53692 - Fix passing an absent array to an elemental procedure

2012-06-18 Thread Paul Richard Thomas
Dear Tobias, > OK for the trunk? Yes, particularly with the development relative to the draft patch in the PR. OK for trunk. Thanks Paul

Re: [Patch, Fortran] Implement RANK

2012-06-18 Thread Paul Richard Thomas
Hi Tobias, > > Build and regtested on x86-64-gnu-linux. > OK for the trunk? Yes, of course it's OK for trunk. It verges on obvious! Thanks Paul

Re: [PATCH, testsuite]: Fix gfortran.dg/bind_c_array_params_2.f90 scan failure on alpha

2012-07-27 Thread Paul Richard Thomas
Dear Uros, It looks good an clear to me! Thanks for the patch and, in particular, for adding the cleanup line. Paul On 27 July 2012 13:53, Uros Bizjak wrote: > Hello! > > Without -mno-explicit-relocs, alpha generates: > > ldq $27,myBindC($29)!literal!6 > jsr $26,($2

Re: [Patch, fortran] PR fortran/54166 ICE on array section (4.8 regression)

2012-08-04 Thread Paul Richard Thomas
Dear Mikael, This looks to be "obvious" and is certainly OK for trunk. Thanks for the patch. Paul On 3 August 2012 16:18, Mikael Morin wrote: > Hello, > > here is the fix for the regression I have introduced with my assumed > rank bounds patch. > > Will test and commit as obvious. > Mikael > >

Re: [Patch, fortran] PR41600 - [OOP] SELECT TYPE with associate-name => exp: Arrays not supported

2012-05-01 Thread Paul Richard Thomas
18, 2012 at 11:16 PM, Tobias Burnus wrote: > Dear Paul, > > thanks for the patch. > > Paul Richard Thomas wrote: >> >> + /* Transfer the selector typespec to the associate name.  */ >> + >> + copy_ts_from_selector_to_associate (gfc_expr *expr1, gfc_expr *expr2

Re: [Patch, fortran] PR41600 - [OOP] SELECT TYPE with associate-name => exp: Arrays not supported

2012-05-02 Thread Paul Richard Thomas
Dear Tobias, Thanks for completing the review. I should be able to commit tonight. > Thanks for the patch. I think it is OK. > > Regarding: > >> !       if (ref&&  ref->type != REF_ARRAY&&  seen_array) >> !       { >> !         gfc_error ("CLASS selector at %L is an array with CLASS " >> !      

Re: [Patch, Fortran] PR53111 - fix -std=f95 diagnostic regression (constructor patch)

2012-05-04 Thread Paul Richard Thomas
Dear Tobias, The patch is OK for 4.7 and trunk - thanks. The commit of the PR41600 is delayed until tomorrow or Sunday because of PR53191. I have regtested a fix for it and, since it is 'obvious' I will commit it with the main patch. In fact, it extends the constraint C614 (see resolve_ref) to

Re: [Patch, Fortran] PR53175 - Fix another fallout of the TREE_PUBLIC=0 module variable patch

2012-05-04 Thread Paul Richard Thomas
Dear Tobias, This is OK for trunk. Thanks for the patch. Paul On 3 May 2012 20:41, Tobias Burnus wrote: > A PRIVATE module variable, which is used in the specification expression of > a function result variable cannot be TREE_PUBLIC()=0, unless the function > itself is PRIVATE and also not acc

Re: [Patch, Fortran] PR53255 - fix type-bound operator handling

2012-05-07 Thread Paul Richard Thomas
Hi Tobias, Nice call! Apart from s/wronly/wrongly/ in the testcase, this is certainly OK for trunk and, I would suggest, as far back as you have the intestinal fortitude to go. I suspect, without checking, that the patch might not do the right thing on 4.5. Thanks for the patch for what you carr

Re: [Fortran, (RFC) patch] PR49110/51055 Assignment to alloc. deferred-length character vars

2012-05-14 Thread Paul Richard Thomas
Dear Tobias, OK for trunk - just a wee typo to correct: s/+ parameter available to the caller; gfortran save it in the .mod files. */ /+ parameter available to the caller; gfortran saves it in the .mod files. *// Thanks for the patch. Paul On 13 May 2012 15:50, Tobias Burnus wrote: > T

Re: [Patch, Fortran] PR53389 realloc-on-assignment: Memory leak and wrong double evaluation (4.6-4.8 regression)

2012-05-22 Thread Paul Richard Thomas
Dear Tobias, OK for trunk. As you say, the testcase does no harm and so should be retained. Thanks for the patch. Cheers Paul On 21 May 2012 19:51, Tobias Burnus wrote: > First: I have another rather simple patch, which still needs to be reviewed: > http://gcc.gnu.org/ml/fortran/2012-05/msg0

Re: [Patch, Fortran] Reject coarrays in MOVE_ALLOC

2012-05-30 Thread Paul Richard Thomas
Dear Tobias, That's OK for trunk. Thanks Paul On 30 May 2012 11:09, Tobias Burnus wrote: > This patch rejects actual arguments to MOVE_ALLOC which are coindexed or > have a corank. > > Build and regtested on x86-64-linux. > OK for the trunk? > > Tobias -- The knack of flying is learning ho

Re: [Fortran, DRAFT patch] PR 46321 - [OOP] Polymorphic deallocation

2012-06-05 Thread Paul Richard Thomas
Hi Alessandro, I am glad to see that Janus is giving you a helping hand, in addition to Tobias. I am so tied up with every aspect of life that gfortran is not figuring much at all. When you clean up the patch, you might consider making this into a separate function: + if (free_proc) +

Re: [Patch, Fortran] PR53597 re-add SAVE constraint for modules with -std=f2003

2012-06-13 Thread Paul Richard Thomas
Dear Tobias, This one is indeed obvious! OK for trunk. Cheers Paul On 13 June 2012 09:50, Tobias Burnus wrote: > Given the very slow patch review, I intent to commit this patch in a couple > of days as obvious.* Nevertheless, I wouldn't mind a patch review. > > The constraint check is actuall

Re: [Patch, Fortran] PR53643 Fix INTENT(OUT) for class arrays

2012-06-13 Thread Paul Richard Thomas
Dear Tobias, I had earmarked this one to fix myself! It's good for trunk. Thanks Paul On 13 June 2012 09:54, Tobias Burnus wrote: > gfortran had an ICE with intent(out) class arrays - and with (polymorphic) > scalar coarrays. > > Build and regtested on x86-64-linux. > OK for the trunk? > > To

Re: [PATCH] Fixup fortran type_for_size langhook

2011-09-27 Thread Paul Richard Thomas
Dear Jakub, This is, of course, OK for trunk. In fact, I would say that it verges on obvious. Thanks for taking care of it. Paul On Fri, Sep 23, 2011 at 4:44 PM, Jakub Jelinek wrote: > Hi! > > I've noticed with the > 2009-05-29  Eric Botcazou   > >        * tree-ssa-loop-ivopts.c (strip_offse

[Patch, fortran] PR47844 - Array stride ignored for pointer-valued function results

2011-10-06 Thread Paul Richard Thomas
Dear All, As the testcase shows, pointer array functions can return strides that are different to their initial values before the function call. This fix makes use of the descriptor strides since they are returned durectly. Bootstrapped and regtested of x86_64/FC9 - OK for trunk? Cheers Paul

Re: [Patch, fortran] PR47844 - Array stride ignored for pointer-valued function results

2011-10-07 Thread Paul Richard Thomas
Dear Steve, Thanks - I just noticed that the { dg-do run } is missing a space. It seemed to run correctly during regtesting but I will set it right anyway. Cheers Paul On Fri, Oct 7, 2011 at 1:29 AM, Steve Kargl wrote: > On Thu, Oct 06, 2011 at 10:22:12PM +0200, Paul Richard Thomas wr

Re: [Patch, Fortran] Change array descriptor's "data" to "base_addr" for TS 29113

2012-03-10 Thread Paul Richard Thomas
Tobias, These patches are OK for trunk and fortran-dev. Many thanks Paul On Sat, Mar 10, 2012 at 4:53 PM, Tobias Burnus wrote: > The attached patch renames (in libgfortran/) the array descriptor's "data" > field to "base_addr" and "lbound" to "lower_bound". > > The reason is that Technical Spe

Re: [Patch, Fortran] PR 52542 - Fix PROCEDURE() with Bind(C)

2012-03-12 Thread Paul Richard Thomas
Dear Tobias, Apart from s/Contribute/Contributed/ this is OK for trunk. In fact, I would say that it is "obvious". Thanks for the patch. Paul On Sat, Mar 10, 2012 at 4:53 PM, Tobias Burnus wrote: > Tobias Burnus wrote: >> >> If the interface in a PROCEDURE() statement is Bind(C), also the pro

Re: [Fortran-dev, patch, committed] Minor fixes

2012-03-12 Thread Paul Richard Thomas
Dear Tobias, > At some point, the extent calculation should be updated. Dumps like the > following hurt, even if -O1 handles* them: > (((D.1871->dim[0].lower_bound + D.1871->dim[0].extent) + -1) - > D.1871->dim[0].lower_bound) + 1. > [* maybe -fstrict-overflow and/or -fno-protect-parens is requir

[Patch, fortran] PR41600 - [OOP] SELECT TYPE with associate-name => exp: Arrays not supported

2012-03-18 Thread Paul Richard Thomas
Dear All, Please find attached a fix for PR41600 plus some. It is reasonably straightforward but the following should be noted: (i) gfc_get_vptr_from_expr exploits that seeming fact that tracing back any class expression through TREE_OPERAND 0 eventually gets one back to the class expression. I

[Patch, fortran] PR52652 - call to gfc_match_asynchronous for allocatable at parse.c line 164

2012-03-28 Thread Paul Richard Thomas
Committed as trivial/obvious in revision 185924. Thanks to Brian Ames for spotting the error! 2012-03-28 Paul Thomas Tobias Burnus PR fortran/52652 * match.c (gfc_match_allocate, gfc_match_deallocate): Change "not.. or" to "neither.. nor". * parse.c (

Re: [Patch, Fortran] PRs 52751/40973 - don't set TREE_PUBLIC for PRIVATE module procs/vars

2012-04-04 Thread Paul Richard Thomas
Dear Tobias, This is OK for trunk - thanks for the patch. Cheers Paul On Tue, Apr 3, 2012 at 11:18 PM, Tobias Burnus wrote: > Dear all, > > the attached patch only sets TREE_PUBLIC for module variables and module > procedures which have neither the PRIVATE attribute nor a C-binding label. > Se

Re: [patch, fortran] Fix PR 52893

2012-04-07 Thread Paul Richard Thomas
Dear Thomas, > after some time with a defective computer, I am back online. It seems to be catching both my linux laptop and my desktop are as dead as door-nails. > > Here is a fix for PR 52893 (which I just submitted, I wanted to > set a new record between bug posting and patch submissin :

Re: [Patch,Fortran] PR39427/37829 - implement F2003's constructors

2011-11-14 Thread Paul Richard Thomas
Dear Tobias, I'll take a look this afternoon. Cheers Paul On Mon, Nov 14, 2011 at 10:45 AM, Tobias Burnus wrote: > I would like to *ping*. > > Additionally, I attached an updated patch as the tree-walking patch is now > in. The updated patch is also available at > https://userpage.physik.fu-be

Re: [Patch,Fortran] PR39427/37829 - implement F2003's constructors

2011-11-16 Thread Paul Richard Thomas
Dear Tobias, Sorry that I took an extra day over this approval; I kept getting disturbed. [Remark: The delected section in resolve_symbol with gfc_find_symbol(..&ds) was originally added in r133488 for PR fortran/33295] Hah! I plead guilty. I think that it must have been a necessary workaround

Re: [Patch, Fortran] PR50640, PR51207 - fix select_type_12

2011-11-19 Thread Paul Richard Thomas
Dear Tobias, > > The patch has been bootstrapped and regtested on x86-64-linux. > OK for the trunk? Absolutely OK! I though that you might even commit it as "obvious" since you, Janus and I discussed it :-) Cheers Paul

Re: [Patch, Fortran] MOVE_ALLOC fixes

2011-11-29 Thread Paul Richard Thomas
Dear Tobias, > Build and regtested on x86-64-linux (trunk and trunk + Paul's patch). > OK? Many thanks for the patch - it's OK for trunk. Cheers Paul

Re: [Patch, Fortran] Fix MOVE_ALLOC check

2011-12-03 Thread Paul Richard Thomas
Dear Tobias, On Fri, Dec 2, 2011 at 10:07 PM, Tobias Burnus wrote: > This patches fixes my previous MOVE_ALLOC patch. The standard states for TO: > "It shall be polymorphic if FROM is polymorphic." > > I somehow read this bijectively, but the it is actually allowed to have a > nonpolymorphic FROM

Re: [Patch, Fortran] [4.6/4.7] PR 50684 - fix intent(in) check

2011-12-03 Thread Paul Richard Thomas
Dear Tobias, This is OK for both 4.6 and 4.7. Many thanks, sir! Paul On Tue, Nov 29, 2011 at 7:32 PM, Tobias Burnus wrote: > Dear all, > > gfortran 4.6 and 4.7 have a too tight check whether a variable can be > modified if the actual argument is INTENT(IN). This patch relaxes/fixes the > check

Re: [Patch, Fortran] PR 48887 [4.7] Don't mark SELECT TYPE selector as allocatable/pointer

2011-12-03 Thread Paul Richard Thomas
Dear Tobias, Are you checking to see if the patches really are reviewed :-) Index: gcc/fortran/class.c === --- gcc/fortran/class.c (Revision 181967) +++ gcc/fortran/class.c (Arbeitskopie) @@ -188,7 +188,8 @@ gfc_build_class_symbol (g

Re: [Patch, Fortran] PR50923 - [4.4-4.7] Print warning function does not return a value

2011-12-11 Thread Paul Richard Thomas
Dear Tobias, >> Build and regtested on x86-64-linux. >> OK for the trunk? How far should this be backported - all the way down to >> 4.4? This is OK for trunk and... well, I don't know. 4.4 is likely a bit too far. I guess that the linux distros are already at 4.5? I will leave it to you. Ch

Re: [Patch, fortran] - Arrays of classes for fortran

2011-12-11 Thread Paul Richard Thomas
coming in. > > > Paul Richard Thomas wrote: >> >> Boostrapped and regtested on x86_64/FC9 - OK for trunk? Committed as revision 182210 with comments and corrections taken on board. Cheers Paul

[Patch, fortran] Fix scalarization of overridable typebound elemental procedures.

2011-12-14 Thread Paul Richard Thomas
Dear All, This patch combines the trivial correction of an error in trans-decl.c, spotted by Jakub (thanks!), with a trivial fix for the scalarization of elemental typebound procedures. Neither needs explanation! Boostrapped and regtested on x86_64/FC9 - OK for trunk? Cheers Paul 2011-12-14

Re: [Patch, Fortran] Some fixes for polymorphic coarrays

2011-12-15 Thread Paul Richard Thomas
Dear Tobias, > > OK for the trunk? OK - thanks! Paul > > Tobias > > On 12/13/2011 06:30 PM, Tobias Burnus wrote: >> >> Two small fixes: >> >> a) There was an ICE when simplifying "THIS_IMAGE(caf)" (for >> -fcoarray=single); solution: Simply use internally lcobound(), which is >> identically (fo

Re: [Patch, Fortran] Polymorphism fixes: resolve checks, ucobound

2011-12-18 Thread Paul Richard Thomas
Dear Tobias, > > OK for the trunk? > OK. >> >> PS: There are still issues with polymophic coarrays; in particular, >> argument passing [cf. coarray/poly_run_1.f90] and SELECT TYPE still fail in >> various ways. > It is remarkable just how many ways [OOP] in any shape or form can fail! Adding c

Re: [Patch, Fortran] PR 51605 - SELECT TYPE - set target attribute

2011-12-19 Thread Paul Richard Thomas
Dear Tobias, > Build and regtested on x86-64-linux. > OK for the trunk? > OK Thanks for the remarkably rapid turnround! Paul

Re: [Patch, libfortran] PR 51646 Use POSIX mode flags

2011-12-21 Thread Paul Richard Thomas
Dear All, I would put Mike Long up with the people that climb the likes of K2! A remarkable achievement that is nearly but not quite completely useless. I hope that teh view made up fo it On the other hand, he helped us out :-) Cheers Paul On Wed, Dec 21, 2011 at 5:14 PM, Tobias Burnus w

[Patch, fortran] PR46328 - [OOP] type-bound operator call with non-trivial polymorphic operand

2011-12-30 Thread Paul Richard Thomas
Dear All, This patch represents a rather complete fix for this PR. In fact, I suspect that it also fixes other PRs but I have been out of internet range for a week and have not been able to check. The processing of typebound operators has been made more straight forward here by the addition of a

Re: [Patch, fortran] PR46328 - [OOP] type-bound operator call with non-trivial polymorphic operand

2011-12-31 Thread Paul Richard Thomas
to one and all. Paul On Sat, Dec 31, 2011 at 12:14 AM, Tobias Burnus wrote: > Dear Paul, > > Paul Richard Thomas wrote: >> >> Bootstrapped and regtested on i686/Ubuntu 11.1 - OK for trunk? >> >> 2011-12-30  Paul Thomas >> >>        * trans-array.c (

[Patch, fortran] - [OOP] type-bound operator call with non-trivial polymorphic operand

2012-01-02 Thread Paul Richard Thomas
Committed as r182796. Thanks for the review Tobias. (BTW - I normally use -cp for my .diffs. I don't know what happened this time :-) ) PR46262 is completely fixed. The "lorentz" example of Ralph Kube needs the commented out allocate restoring at lorentz.f03:34. Similalrly, Arjen's 'particles'

[Patch, fortran] PR48946 - Deferred Overloaded Assignment

2012-01-03 Thread Paul Richard Thomas
Dear All, This is a straightforward patch that adds a last ditch attempt to find a specific typebound procedure when all that has been found for a derived type base object is 'deferred'. typebound_operator_7.f03 has been extended to test derived type as well as class base objects. Bootstrapped a

Re: [PATCH, testsuite]: Use dg-add-options ieee in gfortran.dg/typebound_operator_8.f03

2012-01-03 Thread Paul Richard Thomas
Dear Uros, Thanks for that. It is not a problem that I encountered on either the 32 bit or 64 bit machines that I use but, as you say, an underflow is the most likely explanation. I guess that without any loss, as far as the test is concerned, a test that obj%c(i,j) is greater than 1e-5, say, co

Re: [Patch, fortran] PR48946 - Deferred Overloaded Assignment

2012-01-04 Thread Paul Richard Thomas
Dear Thomas, Happy New Year! > Wouldn't it be better to make a new test case?  If there turns out > to be a regression later, changing test cases makes it harder to > find. > > You could just commit the test case 'as is' as typebound_operator_8.f03 > and leave the old one. > > Regards > >      

Re: [Patch, Fortran] Deregister allocatable COARRAYS, fixes to (de)allocate

2012-01-06 Thread Paul Richard Thomas
Dear Tobias, Please excuse the delay on coming back to you with this. Since the power cut the other evening, I have been exceptionally busy. > Build and regtested on x86-64-linux. > OK for the trunk? I have to confess that I do not like /* A better error message may be possible, but not require

[Patch, fortran] PR51791 - [OOP] Failure to resolve typebound function call with base object in parentheses

2012-01-08 Thread Paul Richard Thomas
Dear All, Having stated in the PR that I did not have time to fix it, after a few hours in the workshop doing woodwork I alighted on the obvious and simple solution :-) A question for the standard aficianados: Are there other base object expressions that are legal? Clearly this fix is extendable.

Re: [Patch, fortran] PR51791 - [OOP] Failure to resolve typebound function call with base object in parentheses

2012-01-09 Thread Paul Richard Thomas
Dear All, Committed as r183032. Thanks Paul On Sun, Jan 8, 2012 at 10:32 PM, Tobias Burnus wrote: > Dear Paul, > > Paul Richard Thomas: > >> A question for the standard aficianados: Are there other base object >> expressions that are legal? > > > I don'

Re: [Patch, Fortran] PR51652 - alloc with type-spec: check that char len matches declaration

2012-01-10 Thread Paul Richard Thomas
Dear All, Sorry for breaking the thread on this one. The patch below is OK for trunk, minus the fragment in 'get_declared_from_expr' from one of my patches :-) Cheers Paul --- Rather simple patch. Build and regtested on x86-64-linux. OK for the trunk? Tobias

[Patch, fortran] PR48351 - [OOP] Realloc on assignment fails if parent component is CLASS

2012-01-13 Thread Paul Richard Thomas
Dear All, When the only modification was to set the attribute alloc_comp for class containers, I was going to commit this patch as obvious. However, it caused a regression in class-19.f03 by increasing the count of BUILTIN_FREE from 11 to 23! Whilst the extra calls did no harm, this offended my s

Re: [Patch, fortran] PR48351 - [OOP] Realloc on assignment fails if parent component is CLASS

2012-01-13 Thread Paul Richard Thomas
Committed as revision 183162. Thanks Tobias - I'll look at yours first thing tomorrow. Paul On Fri, Jan 13, 2012 at 4:50 PM, Tobias Burnus wrote: > On 01/13/2012 04:29 PM, Paul Richard Thomas wrote: >> >> Bootstrapped and regtested on i686/Ubuntu10.04 - OK for trunk? >

Re: [Patch, Fortran] PR51816 - fix USE of intrinsic operators

2012-01-14 Thread Paul Richard Thomas
Dear Tobias, > This patch fixes two issues related to intrinsic operators: > > a) No error for nonexisting operators: >USE m, operator(*) > > > b) An bogus error if one tried to use-associate the same operator multiple > times: > USE m, operator(+), operator(+) > > Those are old issues. New i

Re: [Patch, Fortran] PR 51800 - Fix -finit-local-zero with automatic arrays and -fno-automatic

2012-01-14 Thread Paul Richard Thomas
Dear Tobias, > Build and regtested on x86-64-linux. > OK for the trunk? That's OK for trunk - thanks! Paul

[Patch, fortran] Fix temporary allocation for class assignment.

2012-01-14 Thread Paul Richard Thomas
Dear All, As previously advertised, the attached patch fixes the problem with using an index array in the final assignment in subroutine qsort in class_array_3.f03. The failure occurred because the temporary array was assigned zero size, since the declared type is abstract. More generally, even

Re: [Patch, fortran] Fix temporary allocation for class assignment.

2012-01-15 Thread Paul Richard Thomas
Dear Tobias, The following example that you provided: > Do you mean something like the following: > > ! > type t >  integer :: i = 5 > end type t > type, extends(t) :: t2 >  integer :: j = 6 > end type t2 > > class(t), allocatable :: a(:), b(:), c(:) > allocate

Re: [Patch, Fortran] PR 51809 Fix ICE with __vtab

2012-01-16 Thread Paul Richard Thomas
Dear Tobias, > Thus, I decided to backout the patch Rev. 181199 (cf. PR, comment 1) - and > implement a simple TREE_READONLY in trans-decl.c. I think that was a very sensible decision :-) > > Build and regtested on x86-64-linux. > OK for the 4.7 trunk? > OK, thanks for the patch. Paul

Re: [Patch, Fortran] PR 50981 Fix simpler issues of optional + elemental

2012-01-16 Thread Paul Richard Thomas
Dear Tobias, > Build and regtested on x86-64-linux. > OK for the trunk? (And [together with (a)] for the 4.6 branch?) OK - thanks! Paul

[Patch, fortran] PR51634 - [OOP] ICE with polymorphic operators

2012-01-17 Thread Paul Richard Thomas
Dear All, The attached is self-explanatory and fixes the last wrinkles with PR51634. In addition, the patch incorporates the requirements of class expressions being used throughout, as reflected in the second testcase. Bootstrapped and regtested on FC9/x86_64 - OK for trunk. Cheers Paul 2012-0

Re: [Patch, Fortran] PR 51869 - fix realloc on assignment issue

2012-01-17 Thread Paul Richard Thomas
Dear Tobias and Janne, I had preparedand was about to submit the identical patch :-) On Tue, Jan 17, 2012 at 12:45 PM, Janne Blomqvist wrote: > On Tue, Jan 17, 2012 at 13:24, Tobias Burnus wrote: >> This patch nullifies (scalar) allocatables after malloc, if (and only if) >> they contain alloca

Re: [Patch, Fortran] PR 51869 - fix realloc on assignment issue

2012-01-17 Thread Paul Richard Thomas
Dear All, > thanks for the review - and for the f95-lang.c patch. I have updated the > patch to use calloc, build & regtested it, and committed it as Rev. 183247. Good - I will go back to array allocation and use calloc there as well. Cheers Paul

Re: [Patch, fortran] PR51634 - [OOP] ICE with polymorphic operators

2012-01-18 Thread Paul Richard Thomas
Dear Tobias, Committed as r183287. Thanks for the review. Paul >> 2012-01-17  Paul Thomas >> >>        PR fortran/51634 >>        * trans-expr.c (gfc_conv_procedure_call): Deallocate allocatable >>        components of temporary class arguments. >> >> 2012-01-17  Paul Thomas >> >>        PR for

Re: [Patch, Fortran] PR51056 - fix __vtab USE warnings

2012-01-19 Thread Paul Richard Thomas
Dear Tobias, This patch is OK for trunk. I have made a lot of progress on PR51870; class scalars work correctly but I need to extend the fix to class arrays. It requires a complete rewrite of the parts of gfc_trans_allocate that are associated with class allocation and initialization. The resul

[Patch, fortran] PR51870 - [OOP] ICE with ALLOCATE and SOURCE-expr function returning BT_CLASS

2012-01-22 Thread Paul Richard Thomas
Dear All, The attached is quite straightforward - for non-variable class STATUS expressions, the class object is extracted, together with the element size for the dynamic type. These are then used for the allocation and the copy of the source data into the allocated object. Note that I have begg

Re: [Patch, fortran] PR51870 - [OOP] ICE with ALLOCATE and SOURCE-expr function returning BT_CLASS

2012-01-23 Thread Paul Richard Thomas
Dear Tobias, > > I believe that you mean source-expr (i.e. SOURCE= and MOLD=) and not STATUS. It was late when I wrote the mail :-) > I somehow liked your draft patch more: It caused regressions, though! > > * The big program which I reduced to the test case in PR 51870 fails with > the curr

Re: [Patch, Fortran] PR 51948 - Fix variable check for MOVE_ALLOC

2012-01-23 Thread Paul Richard Thomas
Dear Tobias, > Build and regtested on x86-64-linux. > OK for the trunk and for the 4.6 branch? > OK for trunk Thanks for the patch! Paul

Re: [Patch, Fortran] PR 51987 - Fix setting of f2k_derived - and thus fix CLASS-based TBP

2012-01-25 Thread Paul Richard Thomas
Dear Tobias, On Wed, Jan 25, 2012 at 5:38 PM, Tobias Burnus wrote: > Dear all, > > seemingly it can sometimes happen that "fclass" gets created but the > fclass->f2k_derived is not set. This patch now sets it explicitly, if unset. > > Build and regtested on x86-64-linux. > OK for the trunk? OK f

Re: [Patch, fortran] PR51870 - [OOP] ICE with ALLOCATE and SOURCE-expr function returning BT_CLASS

2012-01-27 Thread Paul Richard Thomas
Dear All, After discussion off line with Tobias and a bit of tweaking, the patch was committed as revision 183613. 2012-01-27 Paul Thomas Tobias Burnus PR fortran/48705 PR fortran/51870 PR fortran/51943 PR fortran/51946 * trans-array.c (gfc

Re: [Patch, Fortran] PR51953 - allow multiple alloc obj. with SOURCE= in allocate

2012-01-27 Thread Paul Richard Thomas
Dear Tobias, This is 'obvious', barring the issue that I mentioned about multiple evaluation of expressions that are not variabbles. That said, I think that this could and should be committed now. OK for trunk. Cheers Paul On Fri, Jan 27, 2012 at 7:57 AM, Tobias Burnus wrote: > That's a Fo

Re: [Patch, Fortran] PR51970/51977 MOVE_ALLOC fixes

2012-01-27 Thread Paul Richard Thomas
OK for trunk. Thanks for the patch Paul On Thu, Jan 26, 2012 at 9:28 PM, Tobias Burnus wrote: > This patch fixes expressions involving polymorphic arrays and, thus, > MOVE_ALLOC. > > I have also two minor fixes (cf. trans-decl.c). > > Build and regtested on x86-64-linux. > OK for the trunk? > >

Re: [Patch, Fortran] Fix elemental diagnostic for polymorphic dummies

2012-01-27 Thread Paul Richard Thomas
This is 'obvious' - OK for trunk. Thanks Paul On Fri, Jan 27, 2012 at 12:52 AM, Tobias Burnus wrote: > Dominique found out that there is no diagnostic for polymorphic arrays. This > patch adds it. > > From the F2008 standard: > > "C1289 All dummy arguments of an elemental procedure shall be sc

<    5   6   7   8   9   10   11   12   13   >