This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/19524] 5 times uninitialized var in libgfortran



------- Comment #4 from tobi at gcc dot gnu dot org  2005-11-18 12:59 -------
I think that the following patch is the one responsible:

2005-05-15  Andreas Jaeger  <aj@suse.de>

        * m4/eoshift1.m4: Initialize variables to avoid warnings.
        * m4/eoshift3.m4: Initialize variables to avoid warnings.
        * generated/eoshift1_4.c, generated/eoshift1_8.c,
        generated/eoshift3_4.c, generated/eoshift3_8.c: Regenerated.

        * intrinsics/spread_generic.c (spread): Initialize variables to
        avoid warnings.

        * intrinsics/eoshift0.c (eoshift0): Initialize variables to avoid
        warnings.
        * intrinsics/eoshift2.c (eoshift2): Initialize variables to avoid
        warnings.

        * io/list_read.c (nml_get_obj_data): Initialize variables to avoid
        warnings.

        * intrinsics/pack_generic.c (pack): Remove unneeded calculation.

        * m4/matmull.m4 (matmul_): Remove unneeded calculations, fix
        pointer cast to avoid warning.
        * generated/matmul_l4.c: Regenerated.
        * generated/matmul_l8.c: Regenerated.

        * Makefile.am: Remove AM_CFLAGS here.
        * configure.ac: Define AM_CFLAGS and AM_FCFLAGS so that warnings
        are set.  Set additionally -Wstrict-prototypes for CFLAGS.
        * Makefile.in: Regenerated.
        * aclocal.m4: Regenerated.
        * configure: Regenerated.

        * intrinsics/system_clock.c (system_clock_4, system_clock_8): Add
        missing returns, reformat a bit.

        * io/write.c (nml_write_obj): Use %d again - and cast to int,
        st_sprintf does not handle %ld.

        * io/unit.c (is_internal_unit): Add void as parameter list.

        * io/transfer.c: Move prototype declarations before the functions.

        * runtime/normalize.c (almostone_r4, almostone_r8): Fix parameter
        list.

        * intrinsics/random.c (KISS_DEFAULT_SEED): Remove extra semicolon.

        * io/transfer.c: Do not use empty initializers for global objects.
        Add missing initializers.

        * io/lock.c: Do not use empty initializers for global objects.

        * io/close.c: Add missing initializers.

        * runtime/environ.c: Add missing initializers. Do not use empty
        initializers for global object.
        (init_string): Mark argument as unused.

        * runtime/main.c (cleanup): Fix parameter list.

        * io/io.h: Fix parameter lists.

        * m4/transpose.m4, m4/matmul.m4: Fix pointer cast to avoid
        warning.

        * generated/transpose_c4.c, generated/transpose_c8.c,
        generated/transpose_i4.c, generated/transpose_i8.c,
        generated/matmul_c4.c, generated/matmul_c8.c,
        generated/matmul_i4.c, generated/matmul_i8.c,
        generated/matmul_r4.c, generated/matmul_r8.c: Regenerated.

        * io/write.c (nml_write_obj): Fix 64-bit problem.

        * io/list_read.c (nml_get_obj_data): Add missing braces around
        initializer to avoid warnings.

        * intrinsics/etime.c (etime_sub): Remove unused variable.

        * intrinsics/chdir.c, intrinsics/getlog.c, intrinsics/link.c,
        intrinsics/symlnk.c, intrinsics/perror.c: Include <string.h> for
        prototypes.

        * runtime/string.c (compare0): Remove unused variable.
        * io/unit.c (init_units): Remove unused variables.
        * intrinsics/getcwd.c (getcwd_i4_sub): Remove unused variable.
        * intrinsics/unlink.c (unlink_i4_sub): Remove unused variable.
        * intrinsics/stat.c (stat_i4_sub, fstat_i8_sub, fstat_i4_sub,
        stat_i8_sub): Remove unused variable.


-- 

tobi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19524


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]