aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-02 14:27:27 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-02 14:27:27 +0000
commit1b831c9308be215e465dac7079ba18aca8d2e68f (patch)
treed896e11a6a95d13abb3e459abe93971d51ed804f /gdb/valarith.c
parent97bf5e38c3229ad1965e2839055a7c6baf6a3506 (diff)
downloadgdb-1b831c9308be215e465dac7079ba18aca8d2e68f.zip
gdb-1b831c9308be215e465dac7079ba18aca8d2e68f.tar.gz
gdb-1b831c9308be215e465dac7079ba18aca8d2e68f.tar.bz2
2003-01-02 Andrew Cagney <ac131313@redhat.com>
* valarith.c (value_binop): Delete obsolete code and comments. * configure.host: Ditto. * buildsym.h (make_blockvector): Ditto. * buildsym.c (make_blockvector): Ditto. * defs.h (enum language): Ditto. (chill_demangle): Ditto. * elfread.c (elf_symtab_read): Ditto. * dwarfread.c (CHILL_PRODUCER): Ditto. (set_cu_language): Ditto. (handle_producer): Ditto. * expprint.c (print_subexp): Ditto. * gdbtypes.c (chill_varying_type): Ditto. * gdbtypes.h (builtin_type_chill_bool): Ditto. (builtin_type_chill_char, builtin_type_chill_long): Ditto. (builtin_type_chill_ulong, builtin_type_chill_real): Ditto. (chill_varying_type): Ditto. * language.h (_LANG_chill): Ditto. * language.c (binop_result_type, integral_type): Ditto. (character_type, string_type, structured_type): Ditto. (lang_bool_type, binop_type_check): Ditto. * stabsread.h (os9k_stabs): Ditto. * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto. (define_symbol, read_type, read_struct_fields): Ditto. (read_array_type, read_enum_type, read_huge_number): Ditto. (read_range_type, start_stabs): Ditto. * symfile.c (init_filename_language_table): Ditto. (add_psymbol_with_dem_name_to_list): Ditto. * symtab.c (symbol_init_language_specific): Ditto. (symbol_init_demangled_name, symbol_demangled_name): Ditto. * symtab.h (struct general_symbol_info): Ditto. (SYMBOL_CHILL_DEMANGLED_NAME): Ditto. * typeprint.c (typedef_print): Ditto. * utils.c (fprintf_symbol_filtered): Ditto. * valops.c (value_cast, search_struct_field, value_slice): Delete obsolete code. (varying_to_slice): Delete function. * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents. (varying_to_slice): Delete declaration. * MAINTAINERS: Update.
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r--gdb/valarith.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 279528a..62ebc68 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -859,7 +859,7 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
/* Integral operations here. */
/* FIXME: Also mixed integral/booleans, with result an integer. */
/* FIXME: This implements ANSI C rules (also correct for C++).
- What about FORTRAN and (OBSOLETE) chill ? */
+ What about FORTRAN and (the deleted) chill ? */
{
unsigned int promoted_len1 = TYPE_LENGTH (type1);
unsigned int promoted_len2 = TYPE_LENGTH (type2);
@@ -946,12 +946,6 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
case BINOP_MOD:
/* Knuth 1.2.4, integer only. Note that unlike the C '%' op,
v1 mod 0 has a defined value, v1. */
- /* OBSOLETE Chill specifies that v2 must be > 0, so check for that. */
- /* OBSOLETE if (current_language->la_language == language_chill */
- /* OBSOLETE && value_as_long (arg2) <= 0) */
- /* OBSOLETE { */
- /* OBSOLETE error ("Second operand of MOD must be greater than zero."); */
- /* OBSOLETE } */
if (v2 == 0)
{
v = v1;
@@ -1070,12 +1064,6 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
case BINOP_MOD:
/* Knuth 1.2.4, integer only. Note that unlike the C '%' op,
X mod 0 has a defined value, X. */
- /* OBSOLETE Chill specifies that v2 must be > 0, so check for that. */
- /* OBSOLETE if (current_language->la_language == language_chill */
- /* OBSOLETE && v2 <= 0) */
- /* OBSOLETE { */
- /* OBSOLETE error ("Second operand of MOD must be greater than zero."); */
- /* OBSOLETE } */
if (v2 == 0)
{
v = v1;
@@ -1339,7 +1327,7 @@ value_neg (struct value *arg1)
else if (TYPE_CODE (type) == TYPE_CODE_INT || TYPE_CODE (type) == TYPE_CODE_BOOL)
{
/* Perform integral promotion for ANSI C/C++. FIXME: What about
- FORTRAN and (OBSOLETE) chill ? */
+ FORTRAN and (the deleted) chill ? */
if (TYPE_LENGTH (type) < TYPE_LENGTH (builtin_type_int))
result_type = builtin_type_int;