[Bug fortran/106242] New: Internal compiler error: Parameterised derived types
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106242 Bug ID: 106242 Summary: Internal compiler error: Parameterised derived types Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: kidon at posteo dot de Target Milestone: --- The following example code implements nested parameterised derived types: module test type :: foo_type(n) integer, len :: n character(len=n) :: s end type foo_type type :: bar_type(n) integer, len:: n type(foo_type(n=n)) :: foo end type bar_type contains subroutine set_bar(bar, s) type(bar_type(n=*)), intent(inout) :: bar character(len=*),intent(in):: s bar%foo%s = s end subroutine set_bar end module test program main use :: test type(bar_type(n=10)) :: bar call set_bar(bar, 'foo') end program main Trying to build the example with GNU Fortran 12.1 on FreeBSD 13.1 results in an internal compiler error: $ gfortran -freport-bug -o test test.f90 f951: internal compiler error: Segmentation fault 0x19d832f internal_error(char const*, ...) ???:0 0x69e4b5 gfc_traverse_expr(gfc_expr*, gfc_symbol*, bool (*)(gfc_expr*, gfc_symbol*, int*), int) ???:0 0x68b2e2 gfc_get_pdt_instance(gfc_actual_arglist*, gfc_symbol**, gfc_actual_arglist**) ???:0 0x6966dc gfc_match_decl_type_spec(gfc_typespec*, int) ???:0 0x74455d gfc_parse_file() ???:0 Please submit a full bug report, with preprocessed source.
[Bug bootstrap/81253] Flags -march and -mtune are ignored
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81253 Philipp changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #6 from Philipp --- Yes, you are right. It is not a GNU Fortran bug; issue is resolved. Thank you very much.
[Bug bootstrap/81253] Flags -march and -mtune are ignored
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81253 --- Comment #4 from Philipp --- I use the official FreeBSD port for building GCC 6: http://www.freshports.org/lang/gcc6 The dependencies are resolved automatically. I did not recompile them with altered flags (all libraries are build without additional CFLAGS). The following options have been used for building GCC 6: BOOTSTRAP=on (Build using a full bootstrap) GRAPHITE=off (Support for Graphite loop optimizations) JAVA=off (Java platform support) The libraries are linked dynamically.
[Bug fortran/81253] Flags -march and -mtune are ignored
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81253 --- Comment #2 from Philipp --- Adding BOOT_CXXFLAGS doesn't help. The same error occurs.
[Bug fortran/81253] New: Flags -march and -mtune are ignored
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81253 Bug ID: 81253 Summary: Flags -march and -mtune are ignored Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: kidon at posteo dot de Target Milestone: --- I have built GCC 6.3.0 on a Intel Broadwell machine with FreeBSD 11. The binary package of GCC is used on different client machines (each != Broadwell). Trying to compile arbitrary Fortran code with GNU Fortran results in an internal compiler error: $ gfortran6 test.f08 -o test : internal compiler error: Illegal instruction It seems that Broadwell-specific instructions are compiled into GNU Fortran even if additional flags to prevend this are set: CFLAGS="-march=x86-64 -mtune=generic" MAKE_ENV+= BOOT_CFLAGS="-march=x86-64 -mtune=generic" CONFIGURE_ENV+= BOOT_CFLAGS="-march=x86-64 -mtune=generic" These flags are ignored after stage 3 of the build process. The same behaviour can be seen when building GCC 4.9/5.4/7.0.