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 #7 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  90a92f4c01b8976c2dc9cb4fca777e8deb3f0c35 (commit)

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

commit 90a92f4c01b8976c2dc9cb4fca777e8deb3f0c35
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Jan 14 10:16:35 2016 -0800

    Compile x86 syscalls with -fomit-frame-pointer

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

commit a2af01a280588db874185810db9a3f8c31d973bb
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=ca3e8c11725b51e3f3d571f89c8242558b994e84

commit ca3e8c11725b51e3f3d571f89c8242558b994e84
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=987076add1938731768539e8657ff18ed5aa2466

commit 987076add1938731768539e8657ff18ed5aa2466
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=be5d38a4e308215ffa34236d667ba5794d60d72c

commit be5d38a4e308215ffa34236d667ba5794d60d72c
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=296fd33f86472df57f63c8960e476f2b99670e85

commit 296fd33f86472df57f63c8960e476f2b99670e85
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=d00caa24e1fcda5e317e7dd825a4fa023aa27583

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

    Add string_private.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.  Since _STRING_ARCH_unaligned is internal to
    glibc and may change between glibc releases, it should be made
    private to glibc.  This patch adds string_private.h to define
    _STRING_ARCH_unaligned, which is included unconditionally from
    internal <string.h> for glibc build.

        [BZ #19462]
        * bits/string.h (_STRING_ARCH_unaligned): Removed.
        * include/string.h: Include <string_private.h>.
        * sysdeps/aarch64/bits/string.h: Renamed to ...
        * sysdeps/aarch64/string_private.h: This.
        * sysdeps/generic/string_private.h: New file.
        * sysdeps/s390/string_private.h: Likewise.
        * sysdeps/x86/string_private.h: Likewise.
        * sysdeps/m68k/m680x0/m68020/bits/string.h: Renamed to ...
        * sysdeps/m68k/m680x0/m68020/string_private.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]