diff options
author | Geoffrey Keating <geoffk@apple.com> | 2003-01-22 01:11:17 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2003-01-22 01:11:17 +0000 |
commit | d24652eedff2a7ec56e5ee3e7fd2cc755225cff3 (patch) | |
tree | 24f49177f876ad140b2726abd6011a4b0fee99cc /gcc/config/darwin.c | |
parent | 1c99d804eeb06044f5e7b3ff7b840a3570aa59c1 (diff) | |
download | gcc-d24652eedff2a7ec56e5ee3e7fd2cc755225cff3.zip gcc-d24652eedff2a7ec56e5ee3e7fd2cc755225cff3.tar.gz gcc-d24652eedff2a7ec56e5ee3e7fd2cc755225cff3.tar.bz2 |
rs6000.md: Remove warning.
* config/rs6000/rs6000.md: Remove warning.
(builtin_setjmp_receiver): Likewise.
* config/darwin.c (update_stubs): Slightly improve terrible hack
with identifiers. Add comment pointing out problems with it.
(update_non_lazy_ptrs): Likewise.
From-SVN: r61585
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r-- | gcc/config/darwin.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index bce6d11..376f1fb 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1,5 +1,5 @@ /* Functions for generic Darwin as target machine for GNU C compiler. - Copyright (C) 1989, 1990, 1991, 1992, 1993, 2000, 2001, 2002 + Copyright (C) 1989, 1990, 1991, 1992, 1993, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Contributed by Apple Computer Inc. @@ -1016,7 +1016,9 @@ update_non_lazy_ptrs (name) name2 = darwin_strip_name_encoding (sym_name); if (strcmp (name1, name2) == 0) { - IDENTIFIER_POINTER (TREE_VALUE (temp)) = name; + /* FIXME: This breaks the identifier hash table. */ + IDENTIFIER_NODE_CHECK (TREE_VALUE (temp))->identifier.id.str + = (unsigned char *) name; break; } } @@ -1080,7 +1082,9 @@ update_stubs (name) name2 = darwin_strip_name_encoding (sym_name); if (strcmp (name1, name2) == 0) { - IDENTIFIER_POINTER (TREE_VALUE (temp)) = name; + /* FIXME: This breaks the identifier hash table. */ + IDENTIFIER_NODE_CHECK (TREE_VALUE (temp))->identifier.id.str + = (unsigned char *) name; break; } } @@ -1097,7 +1101,7 @@ machopic_select_section (exp, reloc, align) { if (flag_writable_strings) data_section (); - else if (TREE_STRING_LENGTH (exp) != + else if ((size_t) TREE_STRING_LENGTH (exp) != strlen (TREE_STRING_POINTER (exp)) + 1) readonly_data_section (); else |