Re: [Patch, Fortran] CAF dep (1/3): PR62278 - improve dependency.c's gfc_check_dependency's check (missed-optimization)

2014-08-30 Thread Paul Richard Thomas
Dear Tobias, Given Dominques news that this fixes a golden oldie that drove me to madness and PR60593 - OK for trunk, 4.8 and 4.9 Many thanks for the patch Paul On 27 August 2014 22:59, Tobias Burnus bur...@net-b.de wrote: The current gfc_check_dependency check always looked at the pointer

Re: [Patch, Fortran] CAF dep (1/3): PR62278 - improve dependency.c's gfc_check_dependency's check (missed-optimization)

2014-08-29 Thread Dominique Dhumieres
This patch fixes pr44735 and pr60593. Otherwise I have regstrapped the three patches without regression. Thanks, Dominique

[Patch, Fortran] CAF dep (1/3): PR62278 - improve dependency.c's gfc_check_dependency's check (missed-optimization)

2014-08-27 Thread Tobias Burnus
The current gfc_check_dependency check always looked at the pointer attribute - and assumed the worst, if either the LHS or the RHS was true. Thus, it claimed that a and b alias for the following definition: integer, pointer :: p; integer :: a. However, as a has no target (or pointer)

Re: [Patch, Fortran] CAF dep (1/3): PR62278 - improve dependency.c's gfc_check_dependency's check (missed-optimization)

2014-08-27 Thread Tobias Burnus
Tobias Burnus wrote: { + symbol_attribute attr1, attr2; gfc_typespec *ts1 = expr1-symtree-n.sym-ts; - gfc_typespec *ts2 = expr2-symtree-n.sym-ts; + gfc_typespec *ts2 = expr2-symtree-n.sym-ts; [Ignore the ts2-line change: I have accidentally added a