This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 time/19466] time/tst-mktime2.c is compiled into an infinite loop with -Os


https://sourceware.org/bugzilla/show_bug.cgi?id=19466

--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, hjl/pr19463 has been created
        at  cc0a0c005ec9824aa781de778eef7afe1f45d830 (commit)

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cc0a0c005ec9824aa781de778eef7afe1f45d830

commit cc0a0c005ec9824aa781de778eef7afe1f45d830
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Jan 14 06:43:38 2016 -0800

    Add libc_feclearexcept_env

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5d7f37fa6c31dad10f3a0d2169d9f133155117ea

commit 5d7f37fa6c31dad10f3a0d2169d9f133155117ea
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Jan 14 04:15:03 2016 -0800

    Use TIME_T_MAX and TIME_T_MIN in tst-mktime2.c

    GCC 5.3 compiles

    for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
        continue;

    into an infinite loop with -Os.  We can copy TIME_T_MAX and TIME_T_MIN
    from time/mktime.c.

        [BZ #19466]
        * time/tst-mktime2.c (TYPE_SIGNED): New.
        (TYPE_MINIMUM): Likewise.
        (TYPE_MAXIMUM): Likewise.
        (TIME_T_MIN): Likewise.
        (TIME_T_MAX): Likewise.
        (do_test): Initialize time_t_max and time_t_min with TIME_T_MAX
        and TIME_T_MIN.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4dc17be7296be7855db6d02e75def6b2251f9d68

commit 4dc17be7296be7855db6d02e75def6b2251f9d68
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jan 13 15:03:46 2016 -0800

    Avoid strdup/strndup/strsep

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6afb23118f1a0611b08b852c9186be1f9f735835

commit 6afb23118f1a0611b08b852c9186be1f9f735835
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jan 13 14:10:34 2016 -0800

    Allow inline in sys/sysmacros.h when building glibc

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8d085b56186b4c168af5be927f439080886a6bcf

commit 8d085b56186b4c168af5be927f439080886a6bcf
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jan 13 13:31:34 2016 -0800

    Include <bits/stdio.h> when building glibc

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f5537521e486c6df985435d99252370cef9e3e98

commit f5537521e486c6df985435d99252370cef9e3e98
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jan 13 17:26:00 2016 -0800

    Add <bits/string-1.h> to define _STRING_ARCH_unaligned

    _STRING_ARCH_unaligned is used unconditionally in glibc.  But
    <bits/string.h>, which defines _STRING_ARCH_unaligned, isn't
    included with -Os.  This patch adds <bits/string-1.h> to define
    _STRING_ARCH_unaligned, which is included unconditionally from
    <string.h>.

        [BZ #19462]
        * bits/string.h (_STRING_ARCH_unaligned): Removed.
        * string/Makefile (headers): Add bits/string-1.h.
        * string/bits/string-1.h: New file.
        * sysdeps/s390/bits/string-1.h: Likewise.
        * sysdeps/x86/bits/string-1.h: Likewise.
        * string/string.h: Include <bits/string-1.h>.
        * sysdeps/aarch64/bits/string.h: Renamed to ...
        * sysdeps/aarch64/bits/string-1.h: This.
        * sysdeps/m68k/m680x0/m68020/bits/string.h: Renamed to ...
        * sysdeps/m68k/m680x0/m68020/bits/string-1.h: This.
        * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Removed.
        * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Likewise.
        * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Likewise.

-----------------------------------------------------------------------

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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