aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/expr.c
diff options
context:
space:
mode:
authorOllie Wild <aaw@google.com>2007-09-29 03:47:05 +0000
committerOllie Wild <aaw@gcc.gnu.org>2007-09-29 03:47:05 +0000
commit6dcee2d6ca1ef0f5868640c4880c80d53dffb5c3 (patch)
tree117f5e7112f351b5d67c496778a7e3a085dcdc1b /gcc/cp/expr.c
parent387b05077888ce040a6263a62e0aaef63570ccfb (diff)
downloadgcc-6dcee2d6ca1ef0f5868640c4880c80d53dffb5c3.zip
gcc-6dcee2d6ca1ef0f5868640c4880c80d53dffb5c3.tar.gz
gcc-6dcee2d6ca1ef0f5868640c4880c80d53dffb5c3.tar.bz2
Revert
2007-09-27 Ollie Wild <aaw@google.com> gcc/ * varasm.c (compare_constant): Removed call to lang_hooks.expand_constant. (copy_constants): Removed call to lang_hooks.expand_constant. (compute_reloc_for_constant): Removed call to lang_hooks.expand_constant. (output_addressed_constants): Removed call to lang_hooks.expand_constant. (constructor_static_from_elts_p): Removed call to lang_hooks.expand_constant. (output_constant): Removed calls to lang_hooks.expand_constant. * langhooks.h (struct lang_hooks): Removed field expand_constant. * langhooks-def.h (lhd_return_tree): Removed. (LANG_HOOKS_EXPAND_CONSTANT): Removed. (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT. * langhooks.c (lhd_return_tree): Removed. gcc/cp/ * typeck2.c (digest_init): Call cplus_expand_constant after convert_for_initialization. * cp-objcp-common.h (LANG_HOOKS_EXPAND_CONSTANT): Removed. * expr.c (cplus_expand_constant): Updated function description. From-SVN: r128881
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r--gcc/cp/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index b518646..267b847 100644
--- a/gcc/cp/expr.c
+++ b/gcc/cp/expr.c
@@ -33,7 +33,8 @@ along with GCC; see the file COPYING3. If not see
#include "except.h"
#include "tm_p.h"
-/* Expand C++-specific constants. Currently, this means PTRMEM_CST. */
+/* Hook used by output_constant to expand language-specific
+ constants. */
tree
cplus_expand_constant (tree cst)