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 #9 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  62e07f1cd82019c8cc5a493b8927db7d54ee053f (commit)

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

commit 62e07f1cd82019c8cc5a493b8927db7d54ee053f
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Jan 14 12:49:13 2016 -0800

    Call math_opt_barrier inside if

    Since floating-point operation may trigger floating-point exceptions,
    we call math_opt_barrier inside if to prevent code motion.

        [BZ #19465]
        * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
        inside if.

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

commit 54bf044cd7ff1944c5a59d2daa97abfa2fb31061
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=0227d76ce0799fea0eb5cc9862ad73ddfc13810e

commit 0227d76ce0799fea0eb5cc9862ad73ddfc13810e
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=0a9b3b93f0a0868c518af7ebcc5b9a8126c7e0e5

commit 0a9b3b93f0a0868c518af7ebcc5b9a8126c7e0e5
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=c0d2afe47ec858e0363c15bb92078ead8edecd7d

commit c0d2afe47ec858e0363c15bb92078ead8edecd7d
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=91c5dfa432a6be078105f8aacf8acd0eb26de8f4

commit 91c5dfa432a6be078105f8aacf8acd0eb26de8f4
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=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]