diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-01-14 16:35:24 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-01-14 16:35:40 -0800 |
commit | 82c9a4f85e8522bc9e578725075d5c0535940b32 (patch) | |
tree | a62d943911c77cdf16ea58ce2edcbf56c0cbe1ed /ChangeLog | |
parent | d7890e6947114785755ae5b1cf5310491092ee0b (diff) | |
download | glibc-82c9a4f85e8522bc9e578725075d5c0535940b32.tar glibc-82c9a4f85e8522bc9e578725075d5c0535940b32.tar.gz glibc-82c9a4f85e8522bc9e578725075d5c0535940b32.tar.bz2 glibc-82c9a4f85e8522bc9e578725075d5c0535940b32.zip |
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 (time_t_max): Removed.
(time_t_min): Likewise.
(TYPE_SIGNED): New.
(TYPE_MINIMUM): Likewise.
(TYPE_MAXIMUM): Likewise.
(TIME_T_MIN): Likewise.
(TIME_T_MAX): Likewise.
(mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
and TIME_T_MIN.
(do_test): Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,17 @@ +2016-01-14 H.J. Lu <hongjiu.lu@intel.com> + + [BZ #19466] + * time/tst-mktime2.c (time_t_max): Removed. + (time_t_min): Likewise. + (TYPE_SIGNED): New. + (TYPE_MINIMUM): Likewise. + (TYPE_MAXIMUM): Likewise. + (TIME_T_MIN): Likewise. + (TIME_T_MAX): Likewise. + (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX + and TIME_T_MIN. + (do_test): Likewise. + 2016-01-14 Amit Pawar <amit.pawar@amd.com> [BZ #19467] |