diff options
author | jlquinn <jlquinn@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-18 03:22:16 +0000 |
---|---|---|
committer | jlquinn <jlquinn@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-18 03:22:16 +0000 |
commit | 723ebaea39cb2d29bd1895b74c328b2117f85dda (patch) | |
tree | 5a308f9f5ea576441818080da2b096c0cfbed2b5 /libcpp/symtab.c | |
parent | a0ebcd509e809e55daf9b821eb98687adbc6dd2a (diff) | |
download | gcc-723ebaea39cb2d29bd1895b74c328b2117f85dda.tar.gz |
2009-07-17 Jerry Quinn <jlquinn@optonline.net>
* directives.c (do_linemarker, do_line): Use CPP_STRING for
ignored enum value.
* files.c (find_file_in_dir): Add cast from void* to char*.
* symtab.c (ht_lookup_with_hash): Add cast from void* to char*.
* Makefile.in: (WARN_CFLAGS): Use general and C-specific
warnings.
(CXX, CXXFLAGS, WARN_CXXFLAGS, ALL_CXXFLAGS,
ENABLE_BUILD_WITH_CXX, CCDEPMODE, CXXDEPMODE, COMPILER,
COMPILER_FLAGS): New.
(DEPMODE): Set from CCDEPMODE or CXXDEPMODE.
(COMPILE.base): Use COMPILER instead of CC. Use COMPILER_FLAGS
instead of ALL_CFLAGS.
* configure.ac: Invoke AC_PROG_CXX. Separate C-specific warnings
from other warnings. Add -Wc++-compat to C-specific warnings.
Check for --enable-build-with-cxx. Set and substitute
ENABLE_BUILD_WITH_CXX. Invoke ZW_PROG_COMPILER_DEPENDENCIES
according to ENABLE_BUILD_WITH_CXX. Invoke AC_LANG before
AC_CHECK_HEADERS.
* configure: Rebuild.
* include/cpp-id-data.h: Remove extern "C".
* include/line-map.h: Likewise.
* include/mkdeps.h: Likewise.
* include/symtab.h: Likewise.
* internal.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149763 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/symtab.c')
-rw-r--r-- | libcpp/symtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/symtab.c b/libcpp/symtab.c index 086d775d599..48a5338b1f8 100644 --- a/libcpp/symtab.c +++ b/libcpp/symtab.c @@ -163,7 +163,7 @@ ht_lookup_with_hash (hash_table *table, const unsigned char *str, if (table->alloc_subobject) { - char *chars = table->alloc_subobject (len + 1); + char *chars = (char *) table->alloc_subobject (len + 1); memcpy (chars, str, len); chars[len] = '\0'; HT_STR (node) = (const unsigned char *) chars; |