[Bug libstdc++/69762] New: Locales are not fully supported on x86_64-apple-darwin13.4.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69762 Bug ID: 69762 Summary: Locales are not fully supported on x86_64-apple-darwin13.4.0 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Created attachment 37661 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37661&action=edit Preprocessed source file Locales are not fully supported on x86_64-apple-darwin13.4.0. Imbueing the German locale, de_DE, on cout causes an exception (io trap). Imbueing locales does work on linux or when the code is compiled with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn), the system compiler. t.cpp #include #include using namespace std; int main() { cin.imbue(locale::classic()); cout.imbue(locale("de_DE")); } g++-6 -v -o t t.cpp -W -Wall -save-temps Using built-in specs. COLLECT_GCC=g++-6 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160206 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-o' 't' '-Wextra' '-Wall' '-save-temps' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/cc1plus -E -quiet -v -D__DYNAMIC__ t.cpp -fPIC -mmacosx-version-min=10.9.4 -mtune=core2 -Wextra -Wall -fpch-preprocess -o t.ii ignoring nonexistent directory "/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../x86_64-apple-darwin13.4.0/include" #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../include/c++/6.0.0 /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../include/c++/6.0.0/x86_64-apple-darwin13.4.0 /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../include/c++/6.0.0/backward /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/include /usr/local/include /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/include-fixed /usr/include /System/Library/Frameworks /Library/Frameworks End of search list. COLLECT_GCC_OPTIONS='-v' '-o' 't' '-Wextra' '-Wall' '-save-temps' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/cc1plus -fpreprocessed t.ii -fPIC -quiet -dumpbase t.cpp -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase t -Wextra -Wall -version -o t.s GNU C++ (GCC) version 6.0.0 20160206 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160206 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C++14 (GCC) version 6.0.0 20160206 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160206 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 9f635aba77583826cdf82547a307ad49 COLLECT_GCC_OPTIONS='-v' '-o' 't' '-Wextra' '-Wall' '-save-temps' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' as -arch x86_64 -force_cpusubtype_ALL -o t.o t.s COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/ LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../ COLLECT_GCC_OPTIONS='-v' '-o' 't' '-Wextra' '-Wall' '-save-temps' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o t -L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0 -L/usr/local/lib/gcc/x86_64-apple-dar
[Bug fortran/69929] New: Internal compiler error GCC$ ATTRIBUTES STDCALL
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69929 Bug ID: 69929 Summary: Internal compiler error GCC$ ATTRIBUTES STDCALL Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Created attachment 37775 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37775&action=edit Source code Compiling the file win_gnu_dynlib.f90 causes an internal compiler error.The GCC$ ATTRIBUTES STDCALL lines (for windows) are causing the crash. gfortran-6 -c -v win_gnu_dynlib.f90 Using built-in specs. COLLECT_GCC=gfortran-6 Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160213 (experimental) (GCC) COLLECT_GCC_OPTIONS='-c' '-v' '-mmacosx-version-min=10.9.4' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/f951 win_gnu_dynlib.f90 -fPIC -quiet -dumpbase win_gnu_dynlib.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase win_gnu_dynlib -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccVTJ6eT.s GNU Fortran (GCC) version 6.0.0 20160213 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160213 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20160213 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160213 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ' win_gnu_dynlib.f90:76:0: cproc = c_get_procedure( handle, cname ) in pp_format, at pretty-print.c:635 Internal compiler error: Error reporting routines re-entered. gfortran-6: internal compiler error: Abort trap: 6 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
[Bug fortran/69930] New: fortran address sanitizer does not work with optimization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69930 Bug ID: 69930 Summary: fortran address sanitizer does not work with optimization Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Created attachment 37776 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37776&action=edit Source code When the code bnd11.f90, included in polyhedrons linux fortran testsuite, is compiled without optimization the address sanitizer catches the error. With optimization turned on, the address sanitizer does not spot the error. The execution of the program is not stopped by the sanitizer. bash-3.2$ gfortran -v -W -Wall bnd11.f90 -fsanitize=address -o bnd11 Driving: gfortran -mmacosx-version-min=10.9.4 -v -W -Wall bnd11.f90 -fsanitize=address -o bnd11 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc-5.3.0/configure --prefix=/sw --prefix=/sw/lib/gcc5 --mandir=/sw/share/man --infodir=/sw/lib/gcc5/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-fsf-5 Thread model: posix gcc version 5.3.0 (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-Wextra' '-Wall' '-fsanitize=address' '-o' 'bnd11' '-shared-libgcc' '-mtune=core2' /sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/f951 bnd11.f90 -fPIC -quiet -dumpbase bnd11.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase bnd11 -Wextra -Wall -version -fsanitize=address -fintrinsic-modules-path /sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccqRKgpk.s GNU Fortran (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0) compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3 warning: GMP header version 6.0.0 differs from library version 6.1.0. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran2008 (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0) compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3 warning: GMP header version 6.0.0 differs from library version 6.1.0. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-Wextra' '-Wall' '-fsanitize=address' '-o' 'bnd11' '-shared-libgcc' '-mtune=core2' as -arch x86_64 -force_cpusubtype_ALL -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccmU9RIS.o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccqRKgpk.s Reading specs from /sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../../libgfortran.spec rename spec lib to liborig COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-Wextra' '-Wall' '-fsanitize=address' '-o' 'bnd11' '-shared-libgcc' '-mtune=core2' COMPILER_PATH=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/ LIBRARY_PATH=/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../../:/usr/lib/ COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-Wextra' '-Wall' '-fsanitize=address' '-o' 'bnd11' '-shared-libgcc' '-mtune=core2' /sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o bnd11 -L/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0 -L/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../.. /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccmU9RIS.o -lgfortran -lasan -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5 -lgcc -lSystem -v collect2 version 5.3.0 /usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o bnd11 -L/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0 -L/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../.. /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccmU9RIS.o -lgfortran -lasan -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath
[Bug fortran/69931] New: fortran address sanitizer does not work with optimization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69931 Bug ID: 69931 Summary: fortran address sanitizer does not work with optimization Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- When the code bnd11.f90, included in polyhedrons linux fortran testsuite, is compiled without optimization the address sanitizer catches the error. With optimization turned on, the address sanitizer does not spot the error. The execution of the program is not stopped by the sanitizer. bash-3.2$ gfortran-6 -v -W -Wall bnd11.f90 -fsanitize=address -o bnd11 Driving: gfortran-6 -v -W -Wall bnd11.f90 -fsanitize=address -o bnd11 -mmacosx-version-min=10.9.4 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-6 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160213 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-fsanitize=address' '-o' 'bnd11' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/f951 bnd11.f90 -fPIC -quiet -dumpbase bnd11.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase bnd11 -Wextra -Wall -version -fsanitize=address -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccqDq0Sb.s GNU Fortran (GCC) version 6.0.0 20160213 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160213 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20160213 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160213 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-fsanitize=address' '-o' 'bnd11' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' as -arch x86_64 -force_cpusubtype_ALL -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccSUHTPj.o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccqDq0Sb.s Reading specs from /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../libgfortran.spec rename spec lib to liborig COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-fsanitize=address' '-o' 'bnd11' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/ LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../ COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-fsanitize=address' '-o' 'bnd11' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o bnd11 -L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0 -L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../.. /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccSUHTPj.o -lgfortran -lasan -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5 -lgcc -lSystem -v collect2 version 6.0.0 20160213 (experimental) /usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o bnd11 -L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0 -L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../.. /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccSUHTPj.o -lgfortran -lasan -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5 -lgcc -lSystem -v @(#)PROGRAM:ld PROJECT:ld64-241.9 configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7m armv7em Library search paths: /usr/local/lib/g
[Bug fortran/70817] New: Internal compiler error coarrays -finit-real=snan
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70817 Bug ID: 70817 Summary: Internal compiler error coarrays -finit-real=snan Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Compiling the file t.f90 causes gfortran version 5.3 (OpenCoarrays-1.4.0) and gcc-6.0.1-RC-20160423 (OpenCoarrays current git version) to crash with an internal compiler error. Without the option -finit-real=snan the code compiles without errors. t.f90 PROGRAM f IMPLICIT NONE REAL(4), PARAMETER :: zero = 0.0e0_4 INTEGER :: n[*] REAL (4) :: p[*] REAL (4) :: h n = 1 h = REAL(n, KIND=4) p = zero END PROGRAM f Driving: gfortran-6 -Wl,-flat_namespace --verbose t.f90 -finit-real=snan -L /Users/Peter/Downloads/opencoarrays/opencoarrays-build/lib -fcoarray=lib -lcaf_mpi -I/Users/Peter/Downloads/opencoarrays/prerequisites/mpich-3.1.4-installation/include -I/Users/Peter/Downloads/opencoarrays/prerequisites/mpich-3.1.4-installation/include -L/Users/Peter/Downloads/opencoarrays/prerequisites/mpich-3.1.4-installation/lib -lmpifort -lmpi -lpmpi -mmacosx-version-min=10.9.4 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-6 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.1/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc-6.0.1-RC-20160423/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.1 20160423 (prerelease) (GCC) COLLECT_GCC_OPTIONS='-v' '-finit-real=snan' '-L/Users/Peter/Downloads/opencoarrays/opencoarrays-build/lib' '-fcoarray=lib' '-I' '/Users/Peter/Downloads/opencoarrays/prerequisites/mpich-3.1.4-installation/include' '-I' '/Users/Peter/Downloads/opencoarrays/prerequisites/mpich-3.1.4-installation/include' '-L/Users/Peter/Downloads/opencoarrays/prerequisites/mpich-3.1.4-installation/lib' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.1/f951 t.f90 -I /Users/Peter/Downloads/opencoarrays/prerequisites/mpich-3.1.4-installation/include -I /Users/Peter/Downloads/opencoarrays/prerequisites/mpich-3.1.4-installation/include -fPIC -quiet -dumpbase t.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase t -version -finit-real=snan -fcoarray=lib -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.1/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cc821ws8.s GNU Fortran (GCC) version 6.0.1 20160423 (prerelease) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.1 20160423 (prerelease), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran2008 (GCC) version 6.0.1 20160423 (prerelease) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.1 20160423 (prerelease), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 t.f90:5:0: REAL (4) :: p[*] internal compiler error: in fold_convert_loc, at fold-const.c:2256 t.f90:5:0: internal compiler error: Abort trap: 6 gfortran-6: internal compiler error: Abort trap: 6 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
[Bug fortran/70994] New: gfortran: -fcheck=all implied do loop confusing messages
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70994 Bug ID: 70994 Summary: gfortran: -fcheck=all implied do loop confusing messages Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Compiling the file f.90 with the command line option -fcheck=all active, causes the "Warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]". When the -fcheck=all option is removed, there is no warning. Executing the compiled code causes an error termination. gfortran-6: At line 8 of file f.f90 Fortran runtime error: Substring out of bounds: upper bound (32767) of 'name' exceeds string length (22) gfortran-5: At line 8 of file f.f90 Fortran runtime error: Substring out of bounds: lower bound (0) of 'name' is less than one When the variable i is initialized,e.g. i=1, there is no runtime error message. f.f90 subroutine f(name) implicit none character(len=*), intent(in) :: name character, dimension(512) :: cname integer:: i cname(1:len_trim(name)+1) = (/ ( name(i:i), i = 1,len_trim(name) ), char(0) /) end subroutine f program t implicit none character(len=22) :: name name = 'abcdefghijklmnopqr' call f(name) end program t LANG=C gfortran-fsf-6 -v -W -Wall -fcheck=all f.f90 Driving: gfortran-fsf-6 -v -W -Wall -fcheck=all f.f90 -mmacosx-version-min=10.9.4 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-fsf-6 COLLECT_LTO_WRAPPER=/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc-6.1.0/configure --prefix=/sw --prefix=/sw/lib/gcc6 --mandir=/sw/share/man --infodir=/sw/lib/gcc6/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-fsf-6 Thread model: posix gcc version 6.1.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-fcheck=all' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/f951 f.f90 -fPIC -quiet -dumpbase f.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase f -Wextra -Wall -version -fcheck=all -fintrinsic-modules-path /sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccD8RIOC.s GNU Fortran (GCC) version 6.1.0 (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran2008 (GCC) version 6.1.0 (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 f.f90:8:0: cname(1:len_trim(name)+1) = (/ ( name(i:i), i = 1,len_trim(name) ), char(0) /) Warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-fcheck=all' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' as -arch x86_64 -force_cpusubtype_ALL -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cc66pKlk.o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccD8RIOC.s Reading specs from /sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../../libgfortran.spec rename spec lib to liborig COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-fcheck=all' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' COMPILER_PATH=/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/:/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/ LIBRARY_PATH=/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../../ COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-fcheck=all' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o a.out -L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0 -L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/..
[Bug fortran/66328] Wrong initialization of derived-type DATA
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66328 physiker at toast2 dot net changed: What|Removed |Added CC||physiker at toast2 dot net --- Comment #1 from physiker at toast2 dot net --- It seems that the bug is fixed. When the code is compiled with gfortran 6.1, the binary produces the expected output when run (see below). bash-3.2$ LANG=C gfortran-fsf-6 -v ddata.f90 Driving: gfortran-fsf-6 -v ddata.f90 -mmacosx-version-min=10.9.4 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-fsf-6 COLLECT_LTO_WRAPPER=/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc-6.1.0/configure --prefix=/sw --prefix=/sw/lib/gcc6 --mandir=/sw/share/man --infodir=/sw/lib/gcc6/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-fsf-6 Thread model: posix gcc version 6.1.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/f951 ddata.f90 -fPIC -quiet -dumpbase ddata.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase ddata -version -fintrinsic-modules-path /sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccxnGIeX.s GNU Fortran (GCC) version 6.1.0 (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran2008 (GCC) version 6.1.0 (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' as -arch x86_64 -force_cpusubtype_ALL -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccpWyVcF.o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccxnGIeX.s Reading specs from /sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../../libgfortran.spec rename spec lib to liborig COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' COMPILER_PATH=/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/:/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/ LIBRARY_PATH=/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../../ COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o a.out -L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0 -L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../.. /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccpWyVcF.o -lgfortran -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5 -lgcc -lSystem -v collect2 version 6.1.0 /usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o a.out -L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0 -L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../.. /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccpWyVcF.o -lgfortran -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5 -lgcc -lSystem -v @(#)PROGRAM:ld PROJECT:ld64-241.9 configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7m armv7em Library search paths: /sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0 /sw/lib/gcc6/lib /usr/lib /usr/local/lib Framework search paths: /Library/Frameworks/ /System/Library/Frameworks/ /usr/bin/nm -n /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccpWyVcF.o bash-3.2$ ./a.out 1. 1. 1. 1. bash-3.2$
[Bug fortran/82168] New: Parameterized Derived Types, problems with default type parameters
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82168 Bug ID: 82168 Summary: Parameterized Derived Types, problems with default type parameters Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- The following code is rejected by gcc-8. According to page 258 of modern fortran explained default type parameters are allowed. Therefore, I assume the followingcode bug2.f90 ist legal. cat bug2.f90 module mod implicit none integer, parameter :: dp = kind (0.0d0) type, public :: v(z, k) integer, len :: z integer, kind :: k = kind(0.0) real(kind = k) :: e(z) end type v end module mod program bug use mod implicit none type (v(2)) :: a type (v(z=:, k=dp)), allocatable :: b end program bug LANG=C gfortran-8 -v -W -Wall bug2.f90 Driving: gfortran-8 -v -W -Wall bug2.f90 -mmacosx-version-min=10.11.6 -asm_macosx_version_min=10.11 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-8 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/lto-wrapper Target: x86_64-apple-darwin15.6.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-8 Thread model: posix gcc version 8.0.0 20170910 (experimental) [trunk revision 251945] (GCC) COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-mmacosx-version-min=10.11.6' '-asm_macosx_version_min=10.11' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/f951 bug2.f90 -fPIC -quiet -dumpbase bug2.f90 -mmacosx-version-min=10.11.6 -mtune=core2 -auxbase bug2 -Wextra -Wall -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin15.6.0/8.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cc0hzKu0.s GNU Fortran (GCC) version 8.0.0 20170910 (experimental) [trunk revision 251945] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20170910 (experimental) [trunk revision 251945], GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 8.0.0 20170910 (experimental) [trunk revision 251945] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20170910 (experimental) [trunk revision 251945], GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 bug2.f90:18:11: type (v(2)) :: a 1 Error: The value for the KIND parameter ''k'' at (1) does not reduce to a constant expression bug2.f90:19:9: type (v(z=:, k=dp)), allocatable :: b 1 Error: Syntax error in argument list at (1)
[Bug fortran/82168] Parameterized Derived Types, problems with default type parameters
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82168 --- Comment #3 from physiker at toast2 dot net --- I appologize if this is a bogus bug report. ifort version 17 accepts the code, bug2.f90, though. $ ifort -v ifort version 17.0.0 $ ifort -o bug2 bug2.f90 -warn all bug2.f90(18): remark #7712: This variable has not been used. [A] type (v(2)) :: a ---^ bug2.f90(19): remark #7712: This variable has not been used. [B] type (v(z=:, k=dp)), allocatable :: b ^ peschmid@lxbk0200:~$ echo $? 0
[Bug fortran/82205] New: parametrized derived types, problems with initialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82205 Bug ID: 82205 Summary: parametrized derived types, problems with initialization Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- gfortran-8 rejects the code bug3.f90. I believe it is legal, though. ifort version 17 compiles the code without a warning. The executable prints the expected output, when run. bug3.f90 module mod implicit none integer, parameter :: dp = kind (0.0d0) type, public :: v(z, k) integer, len :: z integer, kind :: k = kind(0.0) real(kind = k) :: e(z) end type v end module mod program bug use mod implicit none integer :: i type (v(2)) :: a type (v(z=:, k=dp)), allocatable :: b real :: c(2) = [ (1.5*i, i=1,size(c)) ] a = v(2)(c) b = v(2,dp)(c) print *, size(a%e), a%k print *, size(b%e), b%k end program bug LANG=C gfortran-8 -v -o bug3 bug3.f90 -W -Wall Driving: gfortran-8 -v -o bug3 bug3.f90 -W -Wall -mmacosx-version-min=10.11.0 -asm_macosx_version_min=10.11 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-8 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/lto-wrapper Target: x86_64-apple-darwin15.6.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-8 Thread model: posix gcc version 8.0.0 20170912 (experimental) [trunk revision 252040] (GCC) COLLECT_GCC_OPTIONS='-v' '-o' 'bug3' '-Wextra' '-Wall' '-mmacosx-version-min=10.11.0' '-asm_macosx_version_min=10.11' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/f951 bug3.f90 -fPIC -quiet -dumpbase bug3.f90 -mmacosx-version-min=10.11.0 -mtune=core2 -auxbase bug3 -Wextra -Wall -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin15.6.0/8.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cc8Do2wy.s GNU Fortran (GCC) version 8.0.0 20170912 (experimental) [trunk revision 252040] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20170912 (experimental) [trunk revision 252040], GMP version 6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 8.0.0 20170912 (experimental) [trunk revision 252040] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20170912 (experimental) [trunk revision 252040], GMP version 6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 bug3.f90:22:7: a = v(2)(c) 1 Error: Invalid character in name at (1) bug3.f90:23:7: b = v(2,dp)(c) 1 Error: Invalid character in name at (1) ~$ ifort -v ifort version 17.0.0 ~$ ifort -warn all -standardsemantics -o bug3 bug3.f90 ~$ ./bug3 2 4 2 8
[Bug bootstrap/82300] New: Bootstrapping gcc-8 does not work on darwin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82300 Bug ID: 82300 Summary: Bootstrapping gcc-8 does not work on darwin Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Bootstrapping gcc-8 [trunk revision 252896] on x86_64-apple-darwin15.6.0 does not work. I utilize clang, the system compiler, for building stage 1. echo timestamp > s-match g++ -std=gnu++98 -c -g -DIN_GCC-fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/sw/include \ -o build/genattrtab.o ../../gcc/gcc/genattrtab.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated In file included from ../../gcc/gcc/genattrtab.c:107: ../../gcc/gcc/coretypes.h:73:1: warning: class 'rtx_def' was previously declared as a struct [-Wmismatched-tags] class rtx_def; ^ ../../gcc/gcc/coretypes.h:55:8: note: previous use is here struct rtx_def; ^ In file included from ../../gcc/gcc/genattrtab.c:107: In file included from ../../gcc/gcc/coretypes.h:400: ../../gcc/gcc/machmode.h:313:1: warning: 'pod_mode' defined as a struct template here but previously declared as a class template [-Wmismatched-tags] struct pod_mode ^ ../../gcc/gcc/coretypes.h:66:20: note: did you mean struct here? template class pod_mode; ^ struct In file included from ../../gcc/gcc/genattrtab.c:108: In file included from ./tm.h:16: ./options.h:5803:2: error: too many target masks #error too many target masks ^ In file included from ../../gcc/gcc/genattrtab.c:109: In file included from ../../gcc/gcc/rtl.h:31: In file included from ../../gcc/gcc/hash-table.h:235: ../../gcc/gcc/ggc.h:272:8: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags] inline struct rtx_def * ^ ../../gcc/gcc/coretypes.h:73:7: note: previous use is here class rtx_def; ^ In file included from ../../gcc/gcc/genattrtab.c:109: In file included from ../../gcc/gcc/rtl.h:31: In file included from ../../gcc/gcc/hash-table.h:235: ../../gcc/gcc/ggc.h:275:11: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags] return (struct rtx_def *) ggc_internal_alloc (s PASS_MEM_STAT); ^ ../../gcc/gcc/coretypes.h:73:7: note: previous use is here class rtx_def; ^ In file included from ../../gcc/gcc/genattrtab.c:109: In file included from ../../gcc/gcc/rtl.h:31: In file included from ../../gcc/gcc/hash-table.h:561: ../../gcc/gcc/mem-stats.h:126:1: warning: 'mem_usage' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct mem_usage ^ ../../gcc/gcc/hash-table.h:341:1: note: did you mean struct here? class mem_usage; ^ struct In file included from ../../gcc/gcc/genattrtab.c:109: ../../gcc/gcc/rtl.h:298:1: warning: 'rtx_def' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct GTY((desc("0"), tag("0"), ^ ../../gcc/gcc/coretypes.h:73:1: note: did you mean struct here? class rtx_def; ^ struct 6 warnings and 1 error generated. make[3]: *** [Makefile:2646: build/genattrtab.o] Fehler 1 make[3]: *** Es wird auf noch nicht beendete Prozesse gewartet rm gcov.pod gpl.pod cpp.pod gfdl.pod fsf-funding.pod gcc.pod gcov-dump.pod gcov-tool.pod make[3]: Verzeichnis „/Users/Peter/Devel/buildgcc/gcc“ wird verlassen make[2]: *** [Makefile:4662: all-stage1-gcc] Fehler 2 make[2]: Verzeichnis „/Users/Peter/Devel/buildgcc“ wird verlassen make[1]: *** [Makefile:22008: stage1-bubble] Fehler 2 make[1]: Verzeichnis „/Users/Peter/Devel/buildgcc“ wird verlassen make: *** [Makefile:974: all] Fehler 2
[Bug bootstrap/82300] Bootstrapping gcc-8 does not work on darwin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82300 --- Comment #4 from physiker at toast2 dot net --- I was able to bootstrap revision 253118 (see https://gcc.gnu.org/ml/gcc-testresults/2017-09/msg02107.html). Thank you very much for fixing this issue.
[Bug fortran/78518] New: Warning format regression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78518 Bug ID: 78518 Summary: Warning format regression Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- When compiling the file t.f90 gfortran-7 prints the marker 1 under the second argument. When the file is compiled by gfortran version 6 or earlier, the marker is printed under the first argument, a, in the call to the subroutine s. t.f90 program p real(4) a, b call s(a, b) print *, a, b end program p subroutine s(a, b) real(8) a, b a = 10.0 b = 2*a end subroutine s gfortran-7 -W -Wall t.f90 t.f90:3:14: call s(a, b) 1 Warning: Type mismatch in argument »a« at (1); passed REAL(4) to REAL(8) [-Wargument-mismatch] -*- mode: compilation; default-directory: "~/Downloads/linux_diagnose/" -*- Compilation started at Thu Nov 24 22:37:50 gfortran-fsf-6 -W -Wall t.f90 t.f90:3:9: call s(a, b) 1 Warning: Type mismatch in argument »a« at (1); passed REAL(4) to REAL(8)
[Bug fortran/78518] [6/7 Regression] Warning format regression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78518 --- Comment #2 from physiker at toast2 dot net --- > This is what I get with 5.4.1 20160929 (Ubuntu 5.4.1-2ubuntu2). Which > version of gfortran 6 are you using exactly? > I am using gcc 6.2.0 release, provided by fink. LANG=C gfortran-fsf-6 -v Using built-in specs. COLLECT_GCC=gfortran-fsf-6 COLLECT_LTO_WRAPPER=/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.2.0/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc-6.2.0/configure --prefix=/sw --prefix=/sw/lib/gcc6 --mandir=/sw/share/man --infodir=/sw/lib/gcc6/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-fsf-6 Thread model: posix gcc version 6.2.0 (GCC)
[Bug fortran/78827] New: Compiling gfortran.dg/charlen_03.f90 and gfortran.dg/charlen_10.f90 cause internal compiler error (regression)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78827 Bug ID: 78827 Summary: Compiling gfortran.dg/charlen_03.f90 and gfortran.dg/charlen_10.f90 cause internal compiler error (regression) Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- There are to two regressions while running the gfortran.dg testsuite: (See https://gcc.gnu.org/ml/gcc-testresults/2016-12/msg01567.html) FAIL: gfortran.dg/charlen_03.f90 -O 1 blank line(s) in output FAIL: gfortran.dg/charlen_03.f90 -O (internal compiler error) FAIL: gfortran.dg/charlen_10.f90 -O 1 blank line(s) in output FAIL: gfortran.dg/charlen_10.f90 -O (internal compiler error) LANG=C gfortran-7 -v -o charlen_03 charlen_03.f90 Driving: gfortran-7 -v -o charlen_03 charlen_03.f90 -mmacosx-version-min=10.11.6 -asm_macosx_version_min=10.11 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-7 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/7.0.0/lto-wrapper Target: x86_64-apple-darwin15.6.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-7 Thread model: posix gcc version 7.0.0 20161215 (experimental) [trunk revision 243680] (GCC) COLLECT_GCC_OPTIONS='-v' '-o' 'charlen_03' '-mmacosx-version-min=10.11.6' '-asm_macosx_version_min=10.11' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/7.0.0/f951 charlen_03.f90 -fPIC -quiet -dumpbase charlen_03.f90 -mmacosx-version-min=10.11.6 -mtune=core2 -auxbase charlen_03 -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin15.6.0/7.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cc0FKK10.s GNU Fortran (GCC) version 7.0.0 20161215 (experimental) [trunk revision 243680] (x86_64-apple-darwin15.6.0) compiled by GNU C version 7.0.0 20161215 (experimental) [trunk revision 243680], GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 7.0.0 20161215 (experimental) [trunk revision 243680] (x86_64-apple-darwin15.6.0) compiled by GNU C version 7.0.0 20161215 (experimental) [trunk revision 243680], GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 charlen_03.f90:5:39: character(:), allocatable :: x(n) ! { dg-error "must have a deferred shape" } 1 Error: Allocatable component of structure at (1) must have a deferred shape f951: internal compiler error: Segmentation fault: 11 f951: internal compiler error: Abort trap: 6 gfortran-7: internal compiler error: Abort trap: 6 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. gfortran version 6.2.0: LANG=C gfortran-fsf-6 -o charlen_03 charlen_03.f90 charlen_03.f90:5:39: character(:), allocatable :: x(n) ! { dg-error "must have a deferred shape" } 1 Error: Allocatable component of structure at (1) must have a deferred shape (null):0: confused by earlier errors, bailing out
[Bug fortran/56691] [OOP] Allocatable array: wrong offset when passing to CLASS dummy
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56691 physiker at toast2 dot net changed: What|Removed |Added CC||physiker at toast2 dot net --- Comment #4 from physiker at toast2 dot net --- When I use gfortran version 7 to compile the code listed in comment 3, executing the resulting binary yields the following output: ./pr56691 Values in work are: 1. 2. 3. 4. Call with whole array: works fine Inside LCB: size is4 1. 2. 3. 4. Call with array slice: off by 1 Inside LCB: size is4 1. 2. 3. 4. This is the expected result. The bug might be fixed. LANG=C gfortran-7 -o pr56691 pr56691.f90 -v -W -Wall Driving: gfortran-7 -o pr56691 pr56691.f90 -v -W -Wall -mmacosx-version-min=10.11.6 -asm_macosx_version_min=10.11 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-7 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/7.0.0/lto-wrapper Target: x86_64-apple-darwin15.6.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-7 Thread model: posix gcc version 7.0.0 20161215 (experimental) [trunk revision 243680] (GCC) COLLECT_GCC_OPTIONS='-o' 'pr56691' '-v' '-Wextra' '-Wall' '-mmacosx-version-min=10.11.6' '-asm_macosx_version_min=10.11' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/7.0.0/f951 pr56691.f90 -fPIC -quiet -dumpbase pr56691.f90 -mmacosx-version-min=10.11.6 -mtune=core2 -auxbase pr56691 -Wextra -Wall -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin15.6.0/7.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccv54gNH.s GNU Fortran (GCC) version 7.0.0 20161215 (experimental) [trunk revision 243680] (x86_64-apple-darwin15.6.0) compiled by GNU C version 7.0.0 20161215 (experimental) [trunk revision 243680], GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 7.0.0 20161215 (experimental) [trunk revision 243680] (x86_64-apple-darwin15.6.0) compiled by GNU C version 7.0.0 20161215 (experimental) [trunk revision 243680], GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 COLLECT_GCC_OPTIONS='-o' 'pr56691' '-v' '-Wextra' '-Wall' '-mmacosx-version-min=10.11.6' '-shared-libgcc' '-mtune=core2' as -arch x86_64 -v -force_cpusubtype_ALL -mmacosx-version-min=10.11 -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccSNEf1F.o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccv54gNH.s Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1as -triple x86_64-apple-macosx10.11.0 -filetype obj -main-file-name ccv54gNH.s -target-cpu core2 -fdebug-compilation-dir /Users/Peter/Devel/f90 -dwarf-debug-producer Apple LLVM version 8.0.0 (clang-800.0.42.1) -dwarf-version=2 -mrelocation-model pic -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccSNEf1F.o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccv54gNH.s Reading specs from /usr/local/lib/gcc/x86_64-apple-darwin15.6.0/7.0.0/../../../libgfortran.spec rename spec lib to liborig COLLECT_GCC_OPTIONS='-o' 'pr56691' '-v' '-Wextra' '-Wall' '-mmacosx-version-min=10.11.6' '-shared-libgcc' '-mtune=core2' COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/7.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/7.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/:/usr/local/lib/gcc/x86_64-apple-darwin15.6.0/7.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin15.6.0/ LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin15.6.0/7.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin15.6.0/7.0.0/../../../ COLLECT_GCC_OPTIONS='-o' 'pr56691' '-v' '-Wextra' '-Wall' '-mmacosx-version-min=10.11.6' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/7.0.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.11.6 -weak_reference_mismatches non-weak -o pr56691 -L/usr/local/lib/gcc/x86_64-apple-darwin15.6.0/7.0.0 -L/usr/local/lib/gcc/x8
[Bug sanitizer/79096] New: address sanitizer and jni does not work
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79096 Bug ID: 79096 Summary: address sanitizer and jni does not work Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- Created attachment 40521 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40521&action=edit example code address sanitizer and jni does not work I utilize the address sanitizer to detect errors in shared libraries. When I try to interface a shared library with java via jni the address sanitizer does no longer work. This has been working with gcc versions 5, 6 and earlier versions of gcc 7. While running the file make.sh (included in the attachment) the error message is: ==2099==ERROR: Interceptors are not working. This may be because AddressSanitizer is loaded too late (e.g. via dlopen). Please launch the executable with: DYLD_INSERT_LIBRARIES=/usr/local/lib/libasan.4.dylib "interceptors not installed" && 0./make.sh: line 7: 2099 Abort trap: 6 DYLD_INSERT_LIBRARIES=/usr/local/lib/libasan.4.dylib java Tasan Setting DYLD_INSERT_LIBRARIES as suggested (see the file make.sh) does not make a difference. gcc-7 -v Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=gcc-7 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/7.0.0/lto-wrapper Ziel: x86_64-apple-darwin15.6.0 Konfiguriert mit: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-7 Thread-Modell: posix gcc-Version 7.0.0 20170114 (experimental) [trunk revision 244467] (GCC) java -version java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)
[Bug fortran/79097] New: coarray and pointer component
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79097 Bug ID: 79097 Summary: coarray and pointer component Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Created attachment 40522 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40522&action=edit source code When the code coptr.f90 is compiled by a current version of gfortran and a current version of opencoarrays is utilized the resulting binary prints the output: cafrun -n 2 ./coptr 243769896 2 I expect the output: 1 2 caf -o coptr coptr.f90 -g -W -Wall LANG=C gfortran-7 --version GNU Fortran (GCC) 7.0.0 20170114 (experimental) [trunk revision 244467] Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. caf -v OpenCoarrays Coarray Fortran Compiler Wrapper (caf version 1.8.3) Copyright (C) 2015-2016 Sourcery, Inc. OpenCoarrays comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of OpenCoarrays under the terms of the BSD 3-Clause License. For more information about these matters, see the file named LICENSE.
[Bug sanitizer/79096] [7 Regression] address sanitizer and jni does not work
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79096 --- Comment #2 from physiker at toast2 dot net --- > Am 16.01.2017 um 15:18 schrieb m.ostapenko at samsung dot com > : > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79096 > > Maxim Ostapenko changed: > > What|Removed |Added > > CC||m.ostapenko at samsung dot com > > --- Comment #1 from Maxim Ostapenko --- > Not sure it really worked, because dlopening ASan'ed library from > non-sanitized > binary without preloading libasan is a bad idea. For GCC versions 5 and 6 > there > wasn't any check against this for Darwin, GCC 7 pulled it with last > libsanitizer merge from LLVM (corresponding commit in LLVM: > http://reviews.llvm.org/D18212). Have you tried to compile your library with > clang btw? > For previous version of gcc setting DYLD_INSERT_LIBRARIES is not necessary. Setting DYLD_INSERT_LIBRARIES as suggested for current versions of gcc 7 on the x86_64-apple-darwin15.6.0 target does not solve the issue. On linux, preloading libasan has always been necessary for getting the example to work. I do not know how to successfully preload libasan on darwin. It does not seem to work for the version of clang shipped with the operating system (Apple LLVM version 8.0.0 (clang-800.0.42.1)), either: gcc -v -dynamiclib -fPIC -fsanitize=address -I/System/Library/Frameworks/JavaVM.framework/Headers libTasan.c -o libTasan.jnilib -fno-inline -fno-omit-frame-pointer -g Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name libTasan.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 274.2 -v -dwarf-column-info -debug-info-kind=standalone -dwarf-version=2 -debugger-tuning=lldb -resource-dir /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0 -I /System/Library/Frameworks/JavaVM.framework/Headers -fdebug-compilation-dir /Users/Peter/Devel/jni/asan -ferror-limit 19 -fmessage-length 75 -fsanitize=address -fsanitize-blacklist=/Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0/asan_blacklist.txt -fno-assume-sane-operator-new -stack-protector 1 -fblocks -fno-inline -fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T/libTasan-2e658d.o -x c libTasan.c clang -cc1 version 8.0.0 (clang-800.0.42.1) default target x86_64-apple-darwin15.6.0 #include "..." search starts here: #include <...> search starts here: /System/Library/Frameworks/JavaVM.framework/Headers /usr/local/include /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0/include /Library/Developer/CommandLineTools/usr/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. libTasan.c:7:3: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds] stack_array[10] = 0; ^ ~~ libTasan.c:6:3: note: array 'stack_array' declared here int stack_array[10]; ^ 1 warning generated. "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -dynamic -dylib -arch x86_64 -macosx_version_min 10.11.0 -o libTasan.jnilib /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T/libTasan-2e658d.o /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib -rpath @executable_path -rpath /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0/lib/darwin -lc++abi -lSystem /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.0.0/lib/darwin/libclang_rt.osx.a "/Library/Developer/CommandLineTools/usr/bin/dsymutil" -o libTasan.jnilib.dSYM libTasan.jnilib bash-3.2$ java Tasan ==915==ERROR: Interceptors are not working. This may be because AddressSanitizer is loaded too late (e.g. via dlopen). Please launch the executable with: DYLD_INSERT_LIBRARIES=/Library/Developer/CommandLineTools/usr/lib/clang/8.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib ==915==AddressSanitizer CHECK failed: /Library/Caches/com.apple.xbs/Sources/clang_compiler_rt/clang-800.0.42.1/src/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc:690 "(("interceptors not installed" && 0)) != (0)" (0x0, 0x0) Abort trap: 6 bash-3.2$ DYLD_INSERT_LIBRARIES=/Library/Developer/
[Bug sanitizer/79096] [7 Regression] address sanitizer and jni does not work
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79096 --- Comment #4 from physiker at toast2 dot net --- > Could you please raise a bug in LLVM bug tracker (https://llvm.org/bugs/)? > All changes to sanitizer runtime library should go to LLVM and after they > fix this bug we can backport corresponding patch to GCC. > I submitted a bug report to the LLVM bug tracker. The bug id is 31861.
[Bug bootstrap/83096] New: Bootstrap on darwin x86_64-apple-darwin15.6.0 (revision 254990) fails
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83096 Bug ID: 83096 Summary: Bootstrap on darwin x86_64-apple-darwin15.6.0 (revision 254990) fails Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Bootstrapping gcc version 8 (revision 254990) on darwin does not work. The bootstrap bails out at stage 1 with: g++ -std=gnu++98 -c -g -DIN_GCC-fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/sw/include \ -o build/print-rtl.o ../../gcc/gcc/print-rtl.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated In file included from ../../gcc/gcc/print-rtl.c:29: ../../gcc/gcc/coretypes.h:73:1: warning: class 'rtx_def' was previously declared as a struct [-Wmismatched-tags] class rtx_def; ^ ../../gcc/gcc/coretypes.h:55:8: note: previous use is here struct rtx_def; ^ In file included from ../../gcc/gcc/print-rtl.c:29: In file included from ../../gcc/gcc/coretypes.h:400: ../../gcc/gcc/machmode.h:313:1: warning: 'pod_mode' defined as a struct template here but previously declared as a class template [-Wmismatched-tags] struct pod_mode ^ ../../gcc/gcc/coretypes.h:66:20: note: did you mean struct here? template class pod_mode; ^ struct In file included from ../../gcc/gcc/print-rtl.c:31: In file included from ../../gcc/gcc/rtl.h:31: In file included from ../../gcc/gcc/hash-table.h:235: ../../gcc/gcc/ggc.h:272:8: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags] inline struct rtx_def * ^ ../../gcc/gcc/coretypes.h:73:7: note: previous use is here class rtx_def; ^ In file included from ../../gcc/gcc/print-rtl.c:31: In file included from ../../gcc/gcc/rtl.h:31: In file included from ../../gcc/gcc/hash-table.h:235: ../../gcc/gcc/ggc.h:275:11: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags] return (struct rtx_def *) ggc_internal_alloc (s PASS_MEM_STAT); ^ ../../gcc/gcc/coretypes.h:73:7: note: previous use is here class rtx_def; ^ In file included from ../../gcc/gcc/print-rtl.c:31: In file included from ../../gcc/gcc/rtl.h:31: In file included from ../../gcc/gcc/hash-table.h:561: ../../gcc/gcc/mem-stats.h:126:1: warning: 'mem_usage' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct mem_usage ^ ../../gcc/gcc/hash-table.h:341:1: note: did you mean struct here? class mem_usage; ^ struct In file included from ../../gcc/gcc/print-rtl.c:31: ../../gcc/gcc/rtl.h:298:1: warning: 'rtx_def' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct GTY((desc("0"), tag("0"), ^ ../../gcc/gcc/coretypes.h:73:1: note: did you mean struct here? class rtx_def; ^ struct ../../gcc/gcc/print-rtl.c:982:1: error: explicit instantiation cannot have a storage class DEFINE_DEBUG_VEC (rtx_def *) ^ ../../gcc/gcc/vec.h:456:24: note: expanded from macro 'DEFINE_DEBUG_VEC' template static void debug_helper (vec &); \ ^ ../../gcc/gcc/print-rtl.c:982:1: error: explicit instantiation cannot have a storage class ../../gcc/gcc/vec.h:457:24: note: expanded from macro 'DEFINE_DEBUG_VEC' template static void debug_helper (vec &); \ ^ ../../gcc/gcc/print-rtl.c:983:1: error: explicit instantiation cannot have a storage class DEFINE_DEBUG_VEC (rtx_insn *) ^ ../../gcc/gcc/vec.h:456:24: note: expanded from macro 'DEFINE_DEBUG_VEC' template static void debug_helper (vec &); \ ^ ../../gcc/gcc/print-rtl.c:983:1: error: explicit instantiation cannot have a storage class ../../gcc/gcc/vec.h:457:24: note: expanded from macro 'DEFINE_DEBUG_VEC' template static void debug_helper (vec &); \ ^ ../../gcc/gcc/print-rtl.c:984:1: error: explicit instantiation cannot have a storage class DEFINE_DEBUG_HASH_SET (rtx_def *) ^ ../../gcc/gcc/hash-set.h:153:24: note: expanded from macro 'DEFINE_DEBUG_HASH_SET' template static void debug_helper (hash_set &);\ ^ ../../gcc/gcc/print-rtl.c:985:1: error: explicit instantiation cannot have a storage c
[Bug fortran/83154] New: ICE: associate and coarrays
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83154 Bug ID: 83154 Summary: ICE: associate and coarrays Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Compiling the program bug.f90 causes an internal compiler error. It seems the implementation of the associate facility for coarrays is not complete. Some features are implemented, though (see PR78152). program co_assoc implicit none integer, parameter :: p = 5 real, allocatable :: a(:,:)[:,:] allocate (a(0:p+1,0:p+1)[2,*]) associate ( & b => a(1:p, 1:p), & c => a(0:p-1, 1:p ), & d => a(2:p+1, 1:p ), & e => a(1:p , 2:p+1), & f => a(1:p , 0:p-1)) end associate end program co_assoc bash-3.2$ LANG=C caf bug.f90 -Wall -v Driving: /usr/local/bin/gfortran-8 -I/Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/include/OpenCoarrays-1.9.2-15-g55a3cbe_GNU-8.0.0 -fcoarray=lib -Wl,-flat_namespace -Wl,-commons,use_dylibs bug.f90 -Wall -v /Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/lib/libcaf_mpi.a /Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/mpich/3.2/lib/libmpifort.dylib /Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/mpich/3.2/lib/libmpi.dylib /Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/mpich/3.2/lib/libpmpi.dylib -mmacosx-version-min=10.11.0 -asm_macosx_version_min=10.11 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=/usr/local/bin/gfortran-8 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/lto-wrapper Target: x86_64-apple-darwin15.6.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-8 Thread model: posix gcc version 8.0.0 20171124 (experimental) [trunk revision 255144] (GCC) COLLECT_GCC_OPTIONS='-I' '/Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/include/OpenCoarrays-1.9.2-15-g55a3cbe_GNU-8.0.0' '-fcoarray=lib' '-Wall' '-v' '-mmacosx-version-min=10.11.0' '-asm_macosx_version_min=10.11' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/f951 bug.f90 -I /Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/include/OpenCoarrays-1.9.2-15-g55a3cbe_GNU-8.0.0 -fPIC -quiet -dumpbase bug.f90 -mmacosx-version-min=10.11.0 -mtune=core2 -auxbase bug -Wall -version -fcoarray=lib -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin15.6.0/8.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cchnI3u2.s GNU Fortran (GCC) version 8.0.0 20171124 (experimental) [trunk revision 255144] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20171124 (experimental) [trunk revision 255144], GMP version 6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 8.0.0 20171124 (experimental) [trunk revision 255144] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20171124 (experimental) [trunk revision 255144], GMP version 6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 bug.f90:11:0: f => a(1:p , 0:p-1)) internal compiler error: in generate_coarray_sym_init, at fortran/trans-decl.c:5236 libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. Error: comand: `/usr/local/bin/gfortran-8 -I/Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/include/OpenCoarrays-1.9.2-15-g55a3cbe_GNU-8.0.0 -fcoarray=lib -Wl,-flat_namespace -Wl,-commons,use_dylibs bug.f90 -Wall -v /Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/lib/libcaf_mpi.a /Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/mpich/3.2/lib/libmpifort.dylib /Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/mpich/3.2/lib/libmpi.dylib /Users/Peter/Downloads/tmp/gcc-8/OpenCoarrays/prerequisites/installations/mpich/3.2/lib/libpmpi.dylib` failed to compile.
[Bug fortran/83316] New: ICE: minval/maxval and characters
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83316 Bug ID: 83316 Summary: ICE: minval/maxval and characters Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Compiling the source file a.f90 causes an internal compiler error. I believe the code is legal. program tminmaxval implicit none character(len=*), parameter :: b = "a" character(len=*), parameter :: e = "c" character(len=*), parameter :: s(3) = (/"a", "b", "c"/) if (minval(s) /= b) then write(*,*) "minval(s) =", minval(s) end if if (maxval(s) /= e) then write(*,*) "maxval(s) =", maxval(s) end if end program tminmaxval LANG=C gfortran-8 -W -Wall a.f90 -v Driving: gfortran-8 -W -Wall a.f90 -v -mmacosx-version-min=10.11.0 -asm_macosx_version_min=10.11 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-8 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/lto-wrapper Target: x86_64-apple-darwin15.6.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-8 Thread model: posix gcc version 8.0.0 20171203 (experimental) [trunk revision 255368] (GCC) COLLECT_GCC_OPTIONS='-Wextra' '-Wall' '-v' '-mmacosx-version-min=10.11.0' '-asm_macosx_version_min=10.11' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/8.0.0/f951 a.f90 -fPIC -quiet -dumpbase a.f90 -mmacosx-version-min=10.11.0 -mtune=core2 -auxbase a -Wextra -Wall -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin15.6.0/8.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccL7uiWM.s GNU Fortran (GCC) version 8.0.0 20171203 (experimental) [trunk revision 255368] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20171203 (experimental) [trunk revision 255368], GMP version 6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 8.0.0 20171203 (experimental) [trunk revision 255368] (x86_64-apple-darwin15.6.0) compiled by GNU C version 8.0.0 20171203 (experimental) [trunk revision 255368], GMP version 6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 f951: internal compiler error: gfc_convert_constant(): Unexpected type libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions.
[Bug fortran/78033] New: Internal Compiler Error in enforce_single_undo_checkpoint
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78033 Bug ID: 78033 Summary: Internal Compiler Error in enforce_single_undo_checkpoint Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Created attachment 39833 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39833&action=edit Source code Compiling the file bug.f90 causes an internal compiler error. This is a regression. gcc-5 and gcc-6 compile the code without an error message. LANG=C gfortran-7 -c bug.f90 -Wall -W -v Using built-in specs. COLLECT_GCC=gfortran-7 Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-7 Thread model: posix gcc version 7.0.0 20161015 (experimental) (GCC) COLLECT_GCC_OPTIONS='-c' '-Wall' '-Wextra' '-v' '-mmacosx-version-min=10.9.4' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/7.0.0/f951 bug.f90 -fPIC -quiet -dumpbase bug.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase bug -Wall -Wextra -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/7.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccNO9KhM.s GNU Fortran (GCC) version 7.0.0 20161015 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 7.0.0 20161015 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 7.0.0 20161015 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 7.0.0 20161015 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 f951: internal compiler error: in enforce_single_undo_checkpoint, at fortran/symbol.c:3514 f951: internal compiler error: Abort trap: 6 gfortran-7: internal compiler error: Abort trap: 6 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
[Bug fortran/78122] New: internal compiler error: in get, at cgraph.h:395
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78122 Bug ID: 78122 Summary: internal compiler error: in get, at cgraph.h:395 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Compiling the file pi.f90 causes an internal compiler error in get, at cgraph.h:395. When the program-name pi (after the program statement) is replaced by p, the code compiles without triggering an ice (see below). pi.f90 program pi implicit none real, target :: a real, pointer :: p => a a = 1. write(*, *) 'a:', a write(*, *) 'p:', p end program pi LANG=C gfortran-7 -o pi pi.f90 -W -Wall -v Driving: gfortran-7 -o pi pi.f90 -W -Wall -v -mmacosx-version-min=10.9.4 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-7 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/7.0.0/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-7 Thread model: posix gcc version 7.0.0 20161025 (experimental) (GCC) COLLECT_GCC_OPTIONS='-o' 'pi' '-Wextra' '-Wall' '-v' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/7.0.0/f951 pi.f90 -fPIC -quiet -dumpbase pi.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase pi -Wextra -Wall -version -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/7.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccA3BI7y.s GNU Fortran (GCC) version 7.0.0 20161025 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 7.0.0 20161025 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 7.0.0 20161025 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 7.0.0 20161025 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 f951: internal compiler error: in get, at cgraph.h:395 f951: internal compiler error: Abort trap: 6 gfortran-7: internal compiler error: Abort trap: 6 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. s/pi/p LANG=C gfortran-7 -o pi pi.f90 -W -Wall pi.f90:5:22: real, pointer :: p => a 1 Error: Symbol 'p' at (1) cannot have a type pi.f90:10:24: write(*, *) 'p:', p 1 Error: Symbol at (1) is not appropriate for an expression
[Bug fortran/78152] New: coarray and associate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78152 Bug ID: 78152 Summary: coarray and associate Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- The following source file, bug.f90, is rejected by gfortran version 7 and 6. Gfortran version 5.4 compiles the code. I believe this is a regression. cat bug.f90 program co_assoc implicit none integer, parameter :: p = 5 real, allocatable :: a(:,:)[:,:] allocate (a(p,p)[2,*]) associate (i => a(1:p, 1:p)) end associate end program co_assoc LANG=C caf -o bug bug.f90 -W -Wall -v mpifort for MPICH version 3.1.4 Driving: gfortran-7 -Wl,-flat_namespace -o bug bug.f90 -W -Wall -v -L /Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/lib -fcoarray=lib -lcaf_mpi -I/Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/mpich/3.1.4/include -I/Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/mpich/3.1.4/include -L/Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/mpich/3.1.4/lib -lmpifort -lmpi -lpmpi -mmacosx-version-min=10.9.4 -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-7 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/7.0.0/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-7 Thread model: posix gcc version 7.0.0 20161025 (experimental) (GCC) COLLECT_GCC_OPTIONS='-o' 'bug' '-Wextra' '-Wall' '-v' '-L/Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/lib' '-fcoarray=lib' '-I' '/Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/mpich/3.1.4/include' '-I' '/Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/mpich/3.1.4/include' '-L/Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/mpich/3.1.4/lib' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/7.0.0/f951 bug.f90 -I /Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/mpich/3.1.4/include -I /Users/Peter/Downloads/tmp/opencoarrays/prerequisites/installations/mpich/3.1.4/include -fPIC -quiet -dumpbase bug.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase bug -Wextra -Wall -version -fcoarray=lib -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/7.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cc7JcB1e.s GNU Fortran (GCC) version 7.0.0 20161025 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 7.0.0 20161025 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 7.0.0 20161025 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 7.0.0 20161025 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 bug.f90:6:29: associate (i => a(1:p, 1:p)) 1 Error: Variable 'i' at (1) is a coarray and is not ALLOCATABLE, SAVE nor a dummy argument gcc-5.4: mpifort for MPICH version 3.1.4 Driving: gfortran-fsf-5 -mmacosx-version-min=10.9.4 -Wl,-flat_namespace -o bug bug.f90 -W -Wall -v -L /Users/Peter/Downloads/OpenCoarrays-1.4.0/opencoarrays-build/lib -fcoarray=lib -lcaf_mpi -I/Users/Peter/Downloads/OpenCoarrays-1.4.0/install_prerequisites/mpich-3.1.4-installation/include -I/Users/Peter/Downloads/OpenCoarrays-1.4.0/install_prerequisites/mpich-3.1.4-installation/include -L/Users/Peter/Downloads/OpenCoarrays-1.4.0/install_prerequisites/mpich-3.1.4-installation/lib -lmpifort -lmpi -lpmpi -l gfortran -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-fsf-5 COLLECT_LTO_WRAPPER=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.4.0/lto-wrapper Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc-5.4.0/configure --prefix=/sw --prefix=/sw/lib/gcc5 --mandir=/sw/share/man --infodir=/sw/lib/gcc5/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-fsf-5 Thread model: posix gcc version 5.4.0 (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-o' 'bug' '-Wextra' '-Wall' '-v' '-L/Users/Peter/Downloads/OpenCoarrays-1.4.0/opencoarrays-build/l
[Bug fortran/78152] [6/7 Regression] coarray and associate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78152 --- Comment #9 from physiker at toast2 dot net --- (In reply to vehre from comment #8) > Hi Steve, > > you asked what other compilers have to say to the code (the one in the > description). > > Ifort: > > > ifort bug.f90 -o bug -coarray > bug.f90: catastrophic error: **Internal compiler error: segmentation > violation signal raised** Please report this error along with the > circumstances in which it occurred in a Software Problem Report. Note: File > and line given may not be explicit cause of this error. > compilation aborted for bug.f90 (code 1) > > ifort -v > ifort version 15.0.1 > Ifort version 17 (linux) supports coarrays as selectors in an associate construct: >ifort -o bug bug.f90 -warn all -check all -coarray >./bug >echo $? 0 >ifort -v ifort version 17.0
[Bug fortran/78122] [5/6/7 Regression] ICE in get, at cgraph.h:395
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78122 --- Comment #3 from physiker at toast2 dot net --- (In reply to Martin Liška from comment #2) > Not being a fortran expert, however ifort rejects the source code: > > /tmp/pi.f90(5): error #6592: This symbol must be a defined parameter, an > enumerator, or an argument of an inquiry function that evaluates to a > compile-time constant. [A] > real, pointer :: p => a > --^ > /tmp/pi.f90(5): error #6973: This is not a valid initialization expression. > [A] > real, pointer :: p => a > --^ > > Problem is that symtab_node::get is called for a local symbol. Ifort version 17 (linux) compiles pi.f90. ifort -o pi pi.f90 -warn all -check all ./pi a: 1.00 p: 0.000E+00 T ifort -v ifort version 17.0.0
[Bug fortran/69055] New: Internal compiler error -fsanitize=float-cast-overflow
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69055 Bug ID: 69055 Summary: Internal compiler error -fsanitize=float-cast-overflow Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: gcc-Version 6.0.0 20151223 Created attachment 37134 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37134&action=edit Source code t.f90 SUBROUTINE TSTD IMPLICIT NONE INTEGER*4 N COMMON /COMMI/DATEN(10) type T_daten sequence real(8) daten end type T_daten type(T_daten) :: daten integer(4) :: j=1 N=daten(j)%daten END SUBROUTINE TSTD peter@linux:~/devel/build-gcc> LANG=C gfortran-6 -v -save-temps -c t.f90 -fsanitize=float-cast-overflow Using built-in specs. COLLECT_GCC=gfortran-6 Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --enable-__cxa_atexit --program-suffix=-6 --enable-languages=c,c++,fortran --with-system-zlib --disable-multilib Thread model: posix gcc version 6.0.0 20151223 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-fsanitize=float-cast-overflow' '-mtune=generic' '-march=x86-64' /usr/local/lib/gcc/x86_64-pc-linux-gnu/6.0.0/f951 t.f90 -quiet -dumpbase t.f90 -mtune=generic -march=x86-64 -auxbase t -version -fsanitize=float-cast-overflow -fintrinsic-modules-path /usr/local/lib64/gcc/x86_64-pc-linux-gnu/6.0.0/finclude -o t.s GNU Fortran (GCC) version 6.0.0 20151223 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 6.0.0 20151223 (experimental), GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2, isl version none GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20151223 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 6.0.0 20151223 (experimental), GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2, isl version none GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 t.f90:18:0: N=daten(j)%daten internal compiler error: Segmentation fault 0xb7b24f crash_signal ../../gcc/gcc/toplev.c:334 0xe07e08 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gcc/gcc/tree.h:3111 0xe07e08 build_call_expr_loc_array(unsigned int, tree_node*, int, tree_node**) ../../gcc/gcc/tree.c:11011 0xe07f7f build_call_expr_loc(unsigned int, tree_node*, int, ...) ../../gcc/gcc/tree.c:11044 0xb9f5f5 ubsan_instrument_float_cast(unsigned int, tree_node*, tree_node*, tree_node*) ../../gcc/gcc/ubsan.c:1611 0x7d8479 convert_to_integer_1 ../../gcc/gcc/convert.c:923 0x6a7a6a convert(tree_node*, tree_node*) ../../gcc/gcc/fortran/convert.c:101 0x7011af gfc_conv_intrinsic_conversion ../../gcc/gcc/fortran/trans-intrinsic.c:336 0x71620f gfc_conv_intrinsic_function(gfc_se*, gfc_expr*) ../../gcc/gcc/fortran/trans-intrinsic.c:7902 0x6f3912 gfc_conv_expr(gfc_se*, gfc_expr*) ../../gcc/gcc/fortran/trans-expr.c:7522 0x6fb83d gfc_trans_assignment_1 ../../gcc/gcc/fortran/trans-expr.c:9249 0x6b5da1 trans_code ../../gcc/gcc/fortran/trans.c:1676 0x6e44a8 gfc_generate_function_code(gfc_namespace*) ../../gcc/gcc/fortran/trans-decl.c:6083 0x671310 translate_all_program_units ../../gcc/gcc/fortran/parse.c:5612 0x671310 gfc_parse_file() ../../gcc/gcc/fortran/parse.c:5818 0x6b2855 gfc_be_parse_file ../../gcc/gcc/fortran/f95-lang.c:201 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. internal compiler error with gcc 5.2 on linux and with gcc 5.3 on os/x mavericks.
[Bug fortran/69063] New: Internal compiler error, -Wunused-parameter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69063 Bug ID: 69063 Summary: Internal compiler error, -Wunused-parameter Product: gcc Version: 5.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Host: x86_64-apple-darwin13.4.0 Target: x86_64-apple-darwin13.4.0 Build: gcc-5.3.0 Created attachment 37140 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37140&action=edit Source code bash-3.2$ LANG=C gfortran -v -c -Wunused-parameter t.f90 Using built-in specs. COLLECT_GCC=gfortran Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc-5.3.0/configure --prefix=/sw --prefix=/sw/lib/gcc5 --mandir=/sw/share/man --infodir=/sw/lib/gcc5/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-fsf-5 Thread model: posix gcc version 5.3.0 (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-c' '-Wunused-parameter' '-mtune=core2' /sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/f951 t.f90 -fPIC -quiet -dumpbase t.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase t -Wunused-parameter -version -fintrinsic-modules-path /sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cc6mEFr6.s GNU Fortran (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0) compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3 warning: GMP header version 6.0.0 differs from library version 6.1.0. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran2008 (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0) compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3 warning: GMP header version 6.0.0 differs from library version 6.1.0. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ' t.f90:8:0: end function f ^ in pp_format, at pretty-print.c:614 Internal compiler error: Error reporting routines re-entered. gfortran: internal compiler error: Abort trap: 6 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Compiling t.c with the comand line option -Wunused-parameter causes also an internal compiler error on linux (gcc 5.2).
[Bug fortran/69303] New: Fortran character common block equivalence lto
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69303 Bug ID: 69303 Summary: Fortran character common block equivalence lto Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Created attachment 37361 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37361&action=edit Tarfile von source files and include file Fortran character common block equivalence lto Compiling p.f90 and mi.f90 into a shared library with the -flto opion active causes a strange "warning: type of 't' does not match original declaration". The definition of the common block is identical in both input files (include statement), though. The same message occurs when the files are compiled with gcc-5.3 on osx or on linux. bash-3.2$ gfortran-6 -v -W -Wall -pedantic -fPIC -flto -c p.f90 Using built-in specs. COLLECT_GCC=gfortran-6 Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160114 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-Wpedantic' '-fPIC' '-flto' '-c' '-mmacosx-version-min=10.9.4' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/f951 p.f90 -fPIC -quiet -dumpbase p.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase p -Wextra -Wall -Wpedantic -version -fPIC -flto -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccXvZBVk.s GNU Fortran (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-Wpedantic' '-fPIC' '-flto' '-c' '-mmacosx-version-min=10.9.4' '-mtune=core2' as -arch x86_64 -force_cpusubtype_ALL -o p.o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccXvZBVk.s COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/ LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../ COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-Wpedantic' '-fPIC' '-flto' '-c' '-mmacosx-version-min=10.9.4' '-mtune=core2' bash-3.2$ gfortran-6 -v -W -Wall -pedantic -fPIC -flto -c mi.f90 Using built-in specs. COLLECT_GCC=gfortran-6 Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160114 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-Wextra' '-Wall' '-Wpedantic' '-fPIC' '-flto' '-c' '-mmacosx-version-min=10.9.4' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/f951 mi.f90 -fPIC -quiet -dumpbase mi.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase mi -Wextra -Wall -Wpedantic -version -fPIC -flto -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccVvSs2m.s GNU Fortran (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --pa
[Bug fortran/69304] New: Fortran logical common block equivalence lto
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69304 Bug ID: 69304 Summary: Fortran logical common block equivalence lto Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Compiling m.f90 and f.f90 into a shared library with the -flto opion active causes a strange "warning: type of 'l' does not match original declaration". The definition of the common block is identical in both input files (include 'l.inc'), though. The same message occurs when the files are compiled with gcc-5.3 on osx or on linux. l.inc COMMON /L/ F LOGICAL(4) F SAVE /L/ !=== m.f90 SUBROUTINE A IMPLICIT NONE INCLUDE 'l.inc' LOGICAL(4) :: M(12) EQUIVALENCE (M(1),F) END SUBROUTINE A !=== t.f90 SUBROUTINE B IMPLICIT NONE INCLUDE 'l.inc' END SUBROUTINE B !=== bash-3.2$ gfortran-6 -v -c -flto -fPIC -W -Wall -pedantic t.f90 Using built-in specs. COLLECT_GCC=gfortran-6 Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160114 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-c' '-flto' '-fPIC' '-Wextra' '-Wall' '-Wpedantic' '-mmacosx-version-min=10.9.4' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/f951 t.f90 -fPIC -quiet -dumpbase t.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase t -Wextra -Wall -Wpedantic -version -flto -fPIC -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccHS2R6E.s GNU Fortran (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 COLLECT_GCC_OPTIONS='-v' '-c' '-flto' '-fPIC' '-Wextra' '-Wall' '-Wpedantic' '-mmacosx-version-min=10.9.4' '-mtune=core2' as -arch x86_64 -force_cpusubtype_ALL -o t.o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccHS2R6E.s COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/ LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../ COLLECT_GCC_OPTIONS='-v' '-c' '-flto' '-fPIC' '-Wextra' '-Wall' '-Wpedantic' '-mmacosx-version-min=10.9.4' '-mtune=core2' bash-3.2$ gfortran-6 -v -c -flto -fPIC -W -Wall -pedantic m.f90 Using built-in specs. COLLECT_GCC=gfortran-6 Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160114 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-c' '-flto' '-fPIC' '-Wextra' '-Wall' '-Wpedantic' '-mmacosx-version-min=10.9.4' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/f951 m.f90 -fPIC -quiet -dumpbase m.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase m -Wextra -Wall -Wpedantic -version -flto -fPIC -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccJqlXsY.s GNU Fortran (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1
[Bug lto/69337] New: Internal compiler error fortran c lto
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69337 Bug ID: 69337 Summary: Internal compiler error fortran c lto Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Host: x86_64-apple-darwin13.4.0 Target: x86_64-apple-darwin13.4.0 Build: gcc version 6.0.0 20160114 Compiling and linking the two files into a shared library causes an ice. The function j is referenced in the file f.c. In the fortran file m.f90 there is a common block named j. This is an regression with respect to gcc 5.3. m.90 subroutine g IMPLICIT NONE COMMON /j/ j_q( 14550) integer(4) :: j_q end subroutine g f.c void j_ (void); int f ( void ) { j_(); return 0; } gcc-6 gfortran-6 -v -c -Wall -W -flto m.f90 Using built-in specs. COLLECT_GCC=gfortran-6 Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160114 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-c' '-Wall' '-Wextra' '-flto' '-mmacosx-version-min=10.9.4' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/f951 m.f90 -fPIC -quiet -dumpbase m.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase m -Wall -Wextra -version -flto -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/finclude -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cc9POn4h.s GNU Fortran (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 COLLECT_GCC_OPTIONS='-v' '-c' '-Wall' '-Wextra' '-flto' '-mmacosx-version-min=10.9.4' '-mtune=core2' as -arch x86_64 -force_cpusubtype_ALL -o m.o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//cc9POn4h.s COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/ LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../ COLLECT_GCC_OPTIONS='-v' '-c' '-Wall' '-Wextra' '-flto' '-mmacosx-version-min=10.9.4' '-mtune=core2' bash-3.2$ gcc-6 -v -c -fPIC -Wall -W -flto f.c Using built-in specs. COLLECT_GCC=gcc-6 Target: x86_64-apple-darwin13.4.0 Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160114 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-c' '-fPIC' '-Wall' '-Wextra' '-flto' '-mmacosx-version-min=10.9.4' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/cc1 -quiet -v -D__DYNAMIC__ f.c -fPIC -quiet -dumpbase f.c -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase f -Wall -Wextra -version -fPIC -flto -o /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccfPEEvn.s GNU C11 (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ignoring nonexistent directory "/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../x86_64-apple-darwin13.4.0/include" #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/include /usr/local/include /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/include-fixed /usr/include /System/Lib
[Bug fortran/69370] New: Fortran spurious warning (regression)?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69370 Bug ID: 69370 Summary: Fortran spurious warning (regression)? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: physiker at toast2 dot net Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: gcc version 6.0.0 20160114 Compiling t.f90 with option -Wconversion active generates the warning 'Change of value in conversion from ‘REAL(8)’ to ‘REAL(4)’. This warning does not occur when the code is compiled by gcc 5.3 or gcc 4.4. The warning is not present if undef is set to less than about 2d10. I would appreciate it very much if the warning is expected. t.f90 program t real(8),parameter :: undef=3.33d33 real(4),parameter :: undef4=real(undef,4) end program t gcc-6: gfortran-6 -v -Wconversion t.f90 Driving: gfortran-6 -v -Wconversion t.f90 -l gfortran -l m -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran-6 COLLECT_LTO_WRAPPER=/common/home/fsy/peschmid/lnx/sw/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=/home/fsy/peschmid/lnx/sw --with-gmp=/home/fsy/peschmid/lnx/sw --with-mpfr=/home/fsy/peschmid/lnx/sw --with-mpc=/home/fsy/peschmid/lnx/sw --with-isl=/home/fsy/peschmid/lnx/sw --enable-__cxa_atexit --enable-languages=c,c++,fortran --program-suffix=-6 Thread model: posix gcc version 6.0.0 20160114 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-Wconversion' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /common/home/fsy/peschmid/lnx/sw/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.0.0/f951 t.f90 -quiet -dumpbase t.f90 -mtune=generic -march=x86-64 -auxbase t -Wconversion -version -fintrinsic-modules-path /common/home/fsy/peschmid/lnx/sw/bin/../lib/gcc/x86_64-pc-linux-gnu/6.0.0/finclude -o /tmp/ccmDPJqS.s GNU Fortran (GCC) version 6.0.0 20160114 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran2008 (GCC) version 6.0.0 20160114 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 6.0.0 20160114 (experimental), GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 t.f90:3:35: real(4),parameter :: undef4=real(undef,4) 1 Warning: Change of value in conversion from ‘REAL(8)’ to ‘REAL(4)’ at (1) [-Wconversion] COLLECT_GCC_OPTIONS='-v' '-Wconversion' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /common/home/fsy/peschmid/lnx/sw/bin/../lib/gcc/x86_64-pc-linux-gnu/6.0.0/../../../../x86_64-pc-linux-gnu/bin/as -v --64 -o /tmp/cc5lgPHU.o /tmp/ccmDPJqS.s GNU assembler version 2.25.51.0.4 (x86_64-pc-linux-gnu) using BFD version (Linux/GNU Binutils) 2.25.51.0.4.20151114 Reading specs from /common/home/fsy/peschmid/lnx/sw/bin/../lib/gcc/x86_64-pc-linux-gnu/6.0.0/../../../../lib64/libgfortran.spec rename spec lib to liborig COLLECT_GCC_OPTIONS='-v' '-Wconversion' '-shared-libgcc' '-mtune=generic' '-march=x86-64' COMPILER_PATH=/common/home/fsy/peschmid/lnx/sw/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.0.0/:/common/home/fsy/peschmid/lnx/sw/bin/../libexec/gcc/:/common/home/fsy/peschmid/lnx/sw/bin/../lib/gcc/x86_64-pc-linux-gnu/6.0.0/../../../../x86_64-pc-linux-gnu/bin/ LIBRARY_PATH=/common/home/fsy/peschmid/lnx/sw/bin/../lib/gcc/x86_64-pc-linux-gnu/6.0.0/:/common/home/fsy/peschmid/lnx/sw/bin/../lib/gcc/:/common/home/fsy/peschmid/lnx/sw/bin/../lib/gcc/x86_64-pc-linux-gnu/6.0.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/intel/composer_xe_2013.1.117/compiler/lib/intel64/:/common/home/fsy/peschmid/lnx/sw/bin/../lib/gcc/x86_64-pc-linux-gnu/6.0.0/../../../../x86_64-pc-linux-gnu/lib/:/common/home/fsy/peschmid/lnx/sw/bin/../lib/gcc/x86_64-pc-linux-gnu/6.0.0/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-Wconversion' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /common/home/fsy/peschmid/lnx/sw/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.0.0/collect2 -plugin /common/home/fsy/peschmid/lnx/sw/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.0.0/liblto_plugin.so -plugin-opt=/common/home/fsy/peschmid/lnx/sw/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccoi1UZW.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lquadmath -plugin-opt=-pass-through=-lm -