diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2003-07-06 14:48:56 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-07-06 14:48:56 +0000 |
commit | c07e547752171cafffdbae0c46f90251d266141b (patch) | |
tree | 5ea18708dd25d839ae29066b52fc180c8a8e697e /gcc/tree.c | |
parent | 2aab7ceb8b58b89e48e99c3e5af119cc2f50b81c (diff) | |
download | gcc-c07e547752171cafffdbae0c46f90251d266141b.zip gcc-c07e547752171cafffdbae0c46f90251d266141b.tar.gz gcc-c07e547752171cafffdbae0c46f90251d266141b.tar.bz2 |
tree.h (default_flag_random_seed): Remove.
* tree.h (default_flag_random_seed): Remove.
* toplev.h (local_tick): Declare.
* tree.c (flag_random_seed, default_flag_random_seed): Move to
toplev.c.
(append_random_chars): Don't call default_flag_random_seed.
* toplev.c (flag_random_seed): Define here. Set local_tick.
(local_tick): Define.
(randomize): New, moved from tree.c.
(print_switch_values): Adjust.
(toplev_main): Call randomize.
From-SVN: r69005
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 33 |
1 files changed, 0 insertions, 33 deletions
@@ -4464,38 +4464,6 @@ dump_tree_statistics (void) #define FILE_FUNCTION_FORMAT "_GLOBAL__%s_%s" -const char *flag_random_seed; - -/* Set up a default flag_random_seed value, if there wasn't one already. */ - -void -default_flag_random_seed (void) -{ - unsigned HOST_WIDE_INT value; - char *new_random_seed; - - if (flag_random_seed != NULL) - return; - - /* Get some more or less random data. */ -#ifdef HAVE_GETTIMEOFDAY - { - struct timeval tv; - - gettimeofday (&tv, NULL); - value = (((unsigned HOST_WIDE_INT) tv.tv_usec << 16) - ^ tv.tv_sec ^ getpid ()); - } -#else - value = getpid (); -#endif - - /* This slightly overestimates the space required. */ - new_random_seed = xmalloc (HOST_BITS_PER_WIDE_INT / 3 + 2); - sprintf (new_random_seed, HOST_WIDE_INT_PRINT_UNSIGNED, value); - flag_random_seed = new_random_seed; -} - /* Generate a crc32 of a string. */ unsigned @@ -4568,7 +4536,6 @@ get_file_function_name_long (const char *type) memcpy (q, file, len + 1); clean_symbol_name (q); - default_flag_random_seed (); sprintf (q + len, "_%08X_%08X", crc32_string (0, name), crc32_string (0, flag_random_seed)); |