diff options
author | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-08 10:40:33 +0000 |
---|---|---|
committer | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-08 10:40:33 +0000 |
commit | c48e08ab5ea626cd131e3238ff6562301732c014 (patch) | |
tree | 3e3a84626684e5290e51449663618c58f2e432b5 | |
parent | 03da418aa61d16ec8f9ac847640881826e9a9a73 (diff) | |
download | gcc-c48e08ab5ea626cd131e3238ff6562301732c014.tar.gz |
* toplev.c (randomize): Correct call to time().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69083 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/toplev.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c2621df17df..44b946beef5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-07-08 Danny Smith <dannysmith@users.sourceforge.net> + + * toplev.c (randomize): Correct call to time(). + 2003-07-08 Jakub Jelinek <jakub@redhat.com> * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and diff --git a/gcc/toplev.c b/gcc/toplev.c index 38374467181..b7bbe8aecbc 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1589,7 +1589,7 @@ randomize (void) } #else { - time_t now = time (); + time_t now = time (NULL); if (now != (time_t)-1) local_tick = (unsigned) now; |