[Bug fortran/52158] Regression on character function with gfortran 4.7

2012-05-06 Thread fanfarillo.gcc at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52158

--- Comment #2 from Alessandro Fanfarillo  
2012-05-06 10:32:22 UTC ---
Created attachment 27323
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27323
Patch for 52158 and 45170#19

Patch realized on gcc version 4.8.0 20120505


[Bug fortran/52158] Regression on character function with gfortran 4.7

2012-05-06 Thread fanfarillo.gcc at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52158

Alessandro Fanfarillo  changed:

   What|Removed |Added

 CC||fanfarillo.gcc at gmail dot
   ||com

--- Comment #3 from Alessandro Fanfarillo  
2012-05-06 10:38:12 UTC ---
Hi all,

with the Tobias support I realized this patch (which includes the Paul one) for
PR 45170#19.

I'm a newbie, so I'm waiting for comments before to send the patch to
gcc-fortran and gcc-patches mailing lists.

Regards.


[Bug fortran/64772] New: ICE passing coarrays to subroutine

2015-01-24 Thread fanfarillo.gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64772

Bug ID: 64772
   Summary: ICE passing coarrays to subroutine
   Product: gcc
   Version: 5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
  Assignee: unassigned at gcc dot gnu.org
  Reporter: fanfarillo.gcc at gmail dot com

Created attachment 34565
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34565&action=edit
Taken from the NAS3.3-CAF benchmark provided by the HPCTools group at UH.

Dear all,

the attached code generates the following ICE:

$ gfortran -fcoarray=lib -c cg.f
f951: internal compiler error: Segmentation fault
0xb6c6ff crash_signal
../../gcc/toplev.c:383
0x5ea56c gfc_zero_size_array
../../gcc/fortran/arith.c:1637
0x5ea56c reduce_binary0
../../gcc/fortran/arith.c:1651
0x5eb460 eval_intrinsic_f3
../../gcc/fortran/arith.c:1700
0x622e63 check_dummy_characteristics
../../gcc/fortran/interface.c:1212
0x622807 check_dummy_characteristics
../../gcc/fortran/interface.c:1058
0x622807 gfc_compare_interfaces(gfc_symbol*, gfc_symbol*, char const*, int,
int, char*, int, char const*, char const*)
../../gcc/fortran/interface.c:1511
0x67d5ad resolve_global_procedure
../../gcc/fortran/resolve.c:2456
0x67d8b7 resolve_call
../../gcc/fortran/resolve.c:3394
0x67af88 gfc_resolve_code(gfc_code*, gfc_namespace*)
../../gcc/fortran/resolve.c:10190
0x67d182 resolve_codes
../../gcc/fortran/resolve.c:14974
0x67d262 gfc_resolve
../../gcc/fortran/resolve.c:15002
0x668f7a resolve_all_program_units
../../gcc/fortran/parse.c:5280
0x668f7a gfc_parse_file()
../../gcc/fortran/parse.c:5523
0x6a8ad5 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:228
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

--

My current configuration:

Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/home/alex/Downloads/gcc/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/home/alex/gcc
--enable-languages=c,c++,fortran --disable-multilib --disable-libgcj
--disable-bootstrap
Thread model: posix
gcc version 5.0.0 20150124 (experimental) (GCC) 

Thanks


[Bug middle-end/68933] New: ICE when mixing "-fprofile-arcs -ftest-coverage" and "-fcoarray=lib"

2015-12-16 Thread fanfarillo.gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68933

Bug ID: 68933
   Summary: ICE when mixing "-fprofile-arcs -ftest-coverage" and
"-fcoarray=lib"
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
  Assignee: unassigned at gcc dot gnu.org
  Reporter: fanfarillo.gcc at gmail dot com
  Target Milestone: ---

Created attachment 37046
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37046&action=edit
coarray-based distributed transpose

Compiling the attached file with the following command:

gfortran -fcoarray=lib -fprofile-arcs -ftest-coverage
coarray_distributed_transpose.F90 -c

generates an ICE:

coarray_distributed_transpose.F90:107:0:

   use run_size


internal compiler error: Segmentation fault
0xb5d8df crash_signal
../../gcc/toplev.c:334
0x7b5baf coverage_checksum_string
../../gcc/coverage.c:500
0x7b6e36 coverage_compute_profile_id(cgraph_node*)
../../gcc/coverage.c:583
0xe1a906 init_node_map(bool)
../../gcc/value-prof.c:1240
0xc39b4e tree_profiling
../../gcc/tree-profile.c:516
0xc39b4e execute
../../gcc/tree-profile.c:642
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions


Using -fcoarray=single instead of -fcoarray=lib works fine.

Can it be related to bug 46989 

The bug has been found by Zaak Beekman.


The system is a x86_64-pc-linux-gnu.

gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/home/alex/Downloads/gcc/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/home/alex/Downloads/gcc
--enable-languages=c,c++,fortran --disable-multilib --disable-libgcj
--disable-bootstrap
Thread model: posix
gcc version 6.0.0 20151210 (experimental) (GCC)