https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78054
Bug ID: 78054 Summary: gfortran.dg/pr70673.f90 FAILs at -O0 Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: ebotcazou at gcc dot gnu.org Target Milestone: --- It's an issue similar to PR fortran/68887. pr70673.f90 fails on SPARC/Solaris: FAIL: gfortran.dg/pr70673.f90 -O0 execution test while it seems to pass on more mainstream platforms, for example x86-64/Linux. Yet Valgrind complains on x86-64/Linux: ==10882== Memcheck, a memory error detector ==10882== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==10882== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info ==10882== Command: ./pr70673 ==10882== ==10882== Conditional jump or move depends on uninitialised value(s) ==10882== at 0x4C290BD: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==10882== by 0x4008DD: __m_MOD_s (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== by 0x400BDE: MAIN__ (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== by 0x400C15: main (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== ==10882== Conditional jump or move depends on uninitialised value(s) ==10882== at 0x4008EA: __m_MOD_s (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== by 0x400BDE: MAIN__ (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== by 0x400C15: main (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== ==10882== Conditional jump or move depends on uninitialised value(s) ==10882== at 0x4008F5: __m_MOD_s (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== by 0x400BDE: MAIN__ (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== by 0x400C15: main (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== ==10882== Conditional jump or move depends on uninitialised value(s) ==10882== at 0x400946: __m_MOD_s (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== by 0x400BDE: MAIN__ (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== by 0x400C15: main (in /home/eric/build/gcc/sparc-sun-solaris2.10/pr70673) ==10882== ==10882== ==10882== HEAP SUMMARY: ==10882== in use at exit: 0 bytes in 0 blocks ==10882== total heap usage: 25 allocs, 25 frees, 11,859 bytes allocated ==10882== ==10882== All heap blocks were freed -- no leaks are possible ==10882== ==10882== For counts of detected and suppressed errors, rerun with: -v ==10882== Use --track-origins=yes to see where uninitialised values come from ==10882== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0) so there is probably a general issue lurking.