diff options
author | Richard Henderson <rth@gcc.gnu.org> | 2002-02-10 18:12:41 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-02-10 18:12:41 -0800 |
commit | 65739e62e4c32be813d518e943249b2c9a3512e3 (patch) | |
tree | d795f195370eebc1bc2d0238f2bdb8e50e504bea /gcc/tree.c | |
parent | 247cb9df4b2132bcc0ef4ea4b031e75fd2e19fee (diff) | |
download | gcc-65739e62e4c32be813d518e943249b2c9a3512e3.zip gcc-65739e62e4c32be813d518e943249b2c9a3512e3.tar.gz gcc-65739e62e4c32be813d518e943249b2c9a3512e3.tar.bz2 |
re PR c++/5624 (Strange bug with preprocessed file containing structs)
PR c++/5624
* tree.c (append_random_chars): Don't abort if main_input_filename
does not exist.
From-SVN: r49662
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -4491,16 +4491,23 @@ append_random_chars (template) compiles since this can cause bootstrap comparison errors. */ if (stat (main_input_filename, &st) < 0) - abort (); - - /* In VMS, ino is an array, so we have to use both values. We - conditionalize that. */ + { + /* This can happen when preprocessed text is shipped between + machines, e.g. with bug reports. Assume that uniqueness + isn't actually an issue. */ + value = 1; + } + else + { + /* 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; + value = st.st_dev ^ INO_TO_INT (st.st_ino) ^ st.st_mtime; + } } template += strlen (template); |