tree.c (append_random_char): Conditionalize INO for VMS.
* tree.c (append_random_char): Conditionalize INO for VMS. Co-Authored-By: Douglas B Rupp <rupp@gnat.com> From-SVN: r47827
This commit is contained in:
parent
6d8b12448d
commit
0b6c426b5d
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Dec 9 20:19:32 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||||
|
Douglas B. Rupp <rupp@gnat.com>
|
||||||
|
|
||||||
|
* tree.c (append_random_char): Conditionalize INO for VMS.
|
||||||
|
|
||||||
2001-12-09 Richard Henderson <rth@redhat.com>
|
2001-12-09 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* cfgcleanup.c (label_is_jump_target_p): New function.
|
* cfgcleanup.c (label_is_jump_target_p): New function.
|
||||||
|
|
14
gcc/tree.c
14
gcc/tree.c
|
@ -4467,14 +4467,20 @@ append_random_chars (template)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
/* VALUE should be unique for each file and must
|
/* VALUE should be unique for each file and must not change between
|
||||||
not change between compiles since this can cause
|
compiles since this can cause bootstrap comparison errors. */
|
||||||
bootstrap comparison errors. */
|
|
||||||
|
|
||||||
if (stat (main_input_filename, &st) < 0)
|
if (stat (main_input_filename, &st) < 0)
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
value = st.st_dev ^ st.st_ino ^ st.st_mtime;
|
/* In VMS, ino is an array, so we have to use both values. We
|
||||||
|
conditionalize that. */
|
||||||
|
#ifdef VMS
|
||||||
|
#define INO_TO_INT(INO) ((int) (INO)[1] << 16 ^ (int) (INO)[2])
|
||||||
|
#else
|
||||||
|
#define INO_TO_INT(INO) INO
|
||||||
|
#endif
|
||||||
|
value = st.st_dev ^ INO_TO_INT (st.st_ino) ^ st.st_mtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
template += strlen (template);
|
template += strlen (template);
|
||||||
|
|
Loading…
Reference in New Issue