diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-10-26 15:40:14 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-10-26 15:40:14 +0000 |
commit | b36c208a36f0cf14ecdbe05cae7a4c414f60c04a (patch) | |
tree | 8ff063f00956e08787b905d9ca24f573263c2093 /gcc/toplev.c | |
parent | b6b3c13865cfb7ef674fe1364036d7547d4892df (diff) | |
download | gcc-b36c208a36f0cf14ecdbe05cae7a4c414f60c04a.zip gcc-b36c208a36f0cf14ecdbe05cae7a4c414f60c04a.tar.gz gcc-b36c208a36f0cf14ecdbe05cae7a4c414f60c04a.tar.bz2 |
toplev.c (default_get_pch_validity): Guard the use of target_options with #ifdef TARGET_OPTIONS.
* toplev.c (default_get_pch_validity): Guard the use of
target_options with #ifdef TARGET_OPTIONS.
(default_pch_valid_p): Likewise.
From-SVN: r72953
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 8f3f034..6f72550 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -4110,12 +4110,14 @@ default_get_pch_validity (size_t *len) char *result, *r; *len = sizeof (target_flags) + 2; +#ifdef TARGET_OPTIONS for (i = 0; i < ARRAY_SIZE (target_options); i++) { *len += 1; if (*target_options[i].variable) *len += strlen (*target_options[i].variable); } +#endif result = r = xmalloc (*len); r[0] = flag_pic; @@ -4124,6 +4126,7 @@ default_get_pch_validity (size_t *len) memcpy (r, &target_flags, sizeof (target_flags)); r += sizeof (target_flags); +#ifdef TARGET_OPTIONS for (i = 0; i < ARRAY_SIZE (target_options); i++) { const char *str = *target_options[i].variable; @@ -4134,6 +4137,7 @@ default_get_pch_validity (size_t *len) memcpy (r, str, l); r += l; } +#endif return result; } @@ -4179,6 +4183,7 @@ default_pch_valid_p (const void *data_p, size_t len) len -= sizeof (target_flags); /* Check string options. */ +#ifdef TARGET_OPTIONS for (i = 0; i < ARRAY_SIZE (target_options); i++) { const char *str = *target_options[i].variable; @@ -4194,6 +4199,7 @@ default_pch_valid_p (const void *data_p, size_t len) data += l; len -= l; } +#endif return NULL; |