- 08 Mar, 2000 35 commits
-
-
* hashtab.c: Remove debugging variables (all_searches, all_collisions, all_expansions). Delete all_hash_table_collisions. (create_hash_table, delete_hash_table, empty_hash_table, find_hash_table_entry, remove_element_from_hash_table_entry, clear_hash_table_slot, traverse_hash_table, hash_table_size, hash_table_elements_number, hash_table_collisions): Rename to: htab_create, htab_delete, htab_empty, htab_find_slot, htab_remove_elt, htab_clear_slot, htab_traverse, htab_size, htab_elements, htab_collisions. (htab_find): New function, handles common case where you don't plan to add or delete an entry. (htab_expand): Don't create a whole new table, just a new entry vector. (htab_find_slot): Simplify logic. * hashtab.h (hash_table_t): Rename to htab_t. (struct hash_table): Rename to struct htab. Shorten element names. Reorder elements by size. (htab_hash, htab_eq, htab_trav): New typedefs for the callback function pointers. (hash_table_entry_t): Discard; just use void * for element type. From-SVN: r32437
Zack Weinberg committed -
From-SVN: r32436
Zack Weinberg committed -
* Makefile.in (LIBCPP_DEPS): New macro. (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use it to declare deps. * cpperror.c: Include cpphash.h. * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS dingleberry. (lex): Don't use CPP_WARN_UNDEF. (_cpp_parse_expr): Return an int, the truth value. * cppfiles.c: Include cpphash.h. (_cpp_merge_include_chains): Move to cppinit.c and make static. * cppinit.c (include_defaults_array): Disentangle. (cpp_cleanup): Don't free the if stack here. (cpp_finish): Pop off all buffers, not just one. * cpplib.c (eval_if_expr): Return int. (do_xifdef): Rename do_ifdef. (handle_directive): Don't use CPP_PREPROCESSED. (cpp_get_token): Don't use CPP_C89. * fix-header.c: Don't use CPP_OPTIONS. * cpplib.h: Move U_CHAR, enum node_type, struct file_name_list, struct ihash, is_idchar, is_idstart, is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK, CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC, CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q, CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER, CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes of _cpp_simplify_pathname, _cpp_find_include_file, _cpp_read_include_file, and _cpp_parse_expr to cpphash.h. Move struct if_stack to cpplib.c. Move struct cpp_pending to cppinit.c. Change all uses of U_CHAR to be unsigned char instead. Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED. From-SVN: r32435
Zack Weinberg committed -
* dwarf2out.c (dw_fde_struct): Add 'nothrow'. (dwarf2out_begin_prologue): Set it. (output_call_frame_info): Don't emit EH unwind info for leaves. From-SVN: r32434
Jason Merrill committed -
* lib/g++.exp (g++_init): Don't put { } around -fmessage-length=0. (g++_target_compile): Put test-specific options last. From-SVN: r32433
Jason Merrill committed -
* flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow can occur outside of an EH region. * except.c: Correct comments about rethrow behavior. (rethrow_symbol_map): Do nothing if !flag_new_exceptions. * flow.c (make_edges): Always call make_eh_edge for calls. From-SVN: r32432
Jason Merrill committed -
cpp-redef-2.c: New. From-SVN: r32431
Zack Weinberg committed -
* cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete. (struct cpp_buffer): Remove fname and underflow fields. (struct cpp_reader): Remove get_token field. (struct include_hash): Rename to struct ihash. Add typedef to IHASH. (struct if_stack): Remove fname field. (IF_STACK_FRAME): Rename to IF_STACK. * cpperror.c (print_containing_files): Trust that there are no macro buffers below the top file buffer. * cppfiles.c: Replace all references to 'struct include_hash' with 'IHASH'. Rename initialize_input_buffer to init_input_buffer. Don't set or reference cpp_buffer->fname, use buffer->ihash->name instead. * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL not CPP_NULL_BUFFER. * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not IF_STACK_FRAME, IHASH not struct include_hash. * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not struct include_hash, NULL not CPP_NULL_BUFFER. Remove all references to cpp_buffer->fname (delete entirely, or use ->ihash->name instead) and IF_STACK->fname. (cpp_push_buffer): Don't set new->underflow. (do_include): Use cpp_file_buffer. * cpphash.c (collect_formal_parameters): Remove duplicate increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is used as a macro argument name. Don't append "..." to namebuf for varargs macros. After we're done scanning, go through namebuf and make it NUL separated, not comma separated. (_cpp_compare_defs): Remove register tag from variables. Expect defn->argnames to be NUL separated. (_cpp_dump_definition): Expect defn->argnames to be NUL separated and in forward order. * cpphash.h: Update documentation of argnames field. From-SVN: r32430
Zack Weinberg committed -
* builtins.c (expand_builtin_strlen): Be prepared for strlensi to fail. Don't pre-expand the source operand. From-SVN: r32429
Richard Henderson committed -
From-SVN: r32428
Richard Henderson committed -
From-SVN: r32427
Nathan Sidwell committed -
From-SVN: r32426
Nathan Sidwell committed -
From-SVN: r32425
Nathan Sidwell committed -
* decl.c (grok_op_properties): Merge conversion to void warning with other silly op warnings. From-SVN: r32424
Nathan Sidwell committed -
* expr.c (expand_expr, case ARRAY_REF): Still check for missing CONSTRUCTOR element. From-SVN: r32423
Jason Merrill committed -
* typeck2.c (process_init_constructor): Set TREE_PURPOSE of array CONSTRUCTOR elements. Don't use expr_tree_cons. From-SVN: r32422
Jason Merrill committed -
* config/mips/mips.c (mips_expand_prologue): If the last named argument is the vararg marker "va_list", treat it as an unnamed argument. From-SVN: r32421
Gavin Romig-Koch committed -
* dbxout.c (dbxout_parms): When correcting for promoted big-endian parameters, use the mode of the DECL_RTL rather than UNITS_PER_WORD. From-SVN: r32420
Clinton Popetz committed -
* g++.old-deja/g++.brendan/misc12.C: Removed. * g++.old-deja/g++.pt/memtemp77.C: Constify. * g++.old-deja/g++.ext/pretty4.C: New test. From-SVN: r32419
Nathan Sidwell committed -
gcc: * c-common.h (make_fname_decl): Declare. * c-common.c (make_fname_decl): Define. (declare_hidden_char_array): Remove. (declare_function_name): Use make_fname_decl. * c-decl.c (c_make_fname_decl): New function. (init_decl_processing): Set make_fname_decl. gcc/cp: * decl.c (cp_make_fname_decl): New function. (wrapup_globals_for_namespace): Don't emit unused static vars. (init_decl_processing): Remove comment about use of array_domain_type. Set make_fname_decl. (cp_finish_decl): Remove __FUNCTION__ nadgering. * semantics.c (begin_compound_stmt): Remove current_function_name_declared flagging. (expand_stmt): Don't emit unused local statics. * typeck.c (decay_conversion): Don't treat __FUNCTION__ decls specially. From-SVN: r32418
Nathan Sidwell committed -
From-SVN: r32417
Nathan Sidwell committed -
From-SVN: r32416
Neil Booth committed -
* typeck.c (convert_for_assignment): Don't look at array initializer. * call.c (convert_like_real): Likewise. From-SVN: r32415
Nathan Sidwell committed -
* lex.c (read_ucs): New fn. (readescape, skip_white_space): Call it. (is_extended_char, is_extended_char_1): New fns. (utf8_extend_token): New fn, #if 0'd out. (real_yylex): Treat extended chars like letters. From-SVN: r32414
Jason Merrill committed -
From-SVN: r32413
Jeff Law committed -
From-SVN: r32412
Jeffrey A Law committed -
From-SVN: r32410
Philipp Thomas committed -
* pj.c (pj_expand_prologue): current_function->args_info is now current_function_args_info. * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define. From-SVN: r32409
Steve Chamberlain committed -
* libjava.lang/PR162.java: Mention `PR162', not `Test', as class name. From-SVN: r32408
Tom Tromey committed -
c4x.h (PUT_SDB_TYPE): Define so that the type info is output as hexadecimal rather than the default octal. * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is output as hexadecimal rather than the default octal. From-SVN: r32400
Michael Hayes committed -
From-SVN: r32399
Zack Weinberg committed -
1999-11-28 Anthony Green <green@cygnus.com> * decl.c (find_local_variable): Reuse single slot decls when appropriate. (This fixes the Java PR #107: http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00171.html) From-SVN: r32398
Anthony Green committed -
2000-03-07 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (qualify_ambiguous_name): Properly handle expressions using `null'. (This fixes the Java PR #102: http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00152.html) From-SVN: r32397
Alexandre Petit-Bianco committed -
2000-02-22 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (check_final_assignment): Extended to process COMPOUND_EXPR. (patch_assignment): Have check_final_assignment called only once. (This fixes the Java PR #94: http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00125.html) From-SVN: r32396
Alexandre Petit-Bianco committed -
* search.c (note_debug_info_needed): Walk the bases even if we weren't deferring the type itself. From-SVN: r32395
Jason Merrill committed
-
- 07 Mar, 2000 5 commits
-
-
2000-03-07 Neil Booth <NeilB@earthling.net> * cppexp.c (struct operation, left_shift, right_shift, cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some "int"s to "unsigned int"s. * cpplib.c (detect_if_not_defined, do_assert, do_unassert): Similarly. * cpplib.h: Update for above. * mkdeps.c (deps_init, deps_calc_target): Cast pointers returned from allocations. * cppinit.c (opt_comp, parse_options): New functions. (handle_option): Use parse_option to parse a single command line option, that possibly takes an argument. (cpp_handle_options): Sort the array of command line options on first invocation (non-ASCII hosts only). (print_help): Update. 2000-03-07 Zack Weinberg <zack@wolery.cumb.org> * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>. From-SVN: r32394
Zack Weinberg committed -
2000-03-07 Bryce McKinlay <bryce@albatross.co.nz> Test for PR gcj/163: * libjava.lang/PR163.java: New file. * libjava.lang/PR163.xfail: New file. From-SVN: r32393
Bryce McKinlay committed -
* lib/libjava.exp (test_libjava_from_javac): Removed hack for interfaces. Fail if jv-scan reports a parse error. From-SVN: r32392
Tom Tromey committed -
2000-03-07 Alexandre Petit-Bianco <apbianco@cygnus.com> * java-tree.h (IS_INIT_CHECKED): New flag. * check-init.c (check_init): Test and set IS_INIT_CHECKED. * parse.y (patch_string): Call force_evaluation_order on the completed string concatenation tree. * expr.c (force_evaluation_order): Call force_evaluation_order on function's arguments too. (This fixes the Java PR #108: http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00174.html) From-SVN: r32391
Alexandre Petit-Bianco committed -
* cppfiles.c (_cpp_find_include_file): Make sure ih->name is initialized. * cppinit.c (cpp_cleanup): Free imp->nshort also. * cpperror.c (cpp_print_containing_files, cpp_print_file_and_line, v_cpp_message): Rename to print_containing_files, print_file_and_line, and v_message. * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename to _cpp_parse_expr, parse_escape, and lex. (parse_charconst): Remove broken multibyte support. * cppfiles.c (include_hash): Make static. (cpp_included): New function. (merge_include_chains, find_include_file, finclude, simplify_pathname): Rename to _cpp_merge_include_chains, _cpp_find_include_file, _cpp_read_include_file, and _cpp_simplify_pathname. * cpphash.c (cpp_lookup, free_definition, delete_macro, cpp_install, create_definition, macroexpand, compare_defs, dump_definition): Rename to _cpp_lookup, _cpp_free_definition, _cpp_delete_macro, _cpp_install, _cpp_create_definition, _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition. * cppinit.c (cpp_handle_option): Rename to handle_option, make static. * cpplib.c: Remove extern prototype of cpp_parse_expr. * cpphash.h: Update prototypes. * cpplib.h: Likewise. Prototype _cpp_parse_expr here. From-SVN: r32390
Zack Weinberg committed
-