aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2000-04-18Fix problem with relocs in read-only sections for C++ code.Jim Wilson2-0/+9
* config/ia64/sysv4.h (SELECT_SECTION): Use data_section if flag_pic and RELOC. From-SVN: r33239
2000-04-18cccp.c, [...]: Removed.Zack Weinberg35-16068/+542
* cccp.c, cexp.y, cexp.c, cccp.1: Removed. * configure.in: Delete --disable-cpplib option and all references to cpp_main. * configure: Regenerate. * Makefile.in: Remove all references to CCCP, CCCP_OBJS, @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o, cccp.o, cccp, or cppmain. Link cppmain.o straight to cpp$(exeext). Add --no-headers to makeinfo command line when generating INSTALL. Install and uninstall cpp.1 manpage, not cccp.1. * install.texi: Delete all references to cexp.y/cexp.c. Delete ancient instructions for compiling GCC on 3b1. * INSTALL: Regenerate. * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, ch/decl.c, ch/lex.c, cp/lex.c, f/lex.c, mips/t-ecoff, mips/t-elf, mips/t-r3900: Remove references to cccp.c. * convex.h, fx80.h, m68k.h, pdp11.h, contrib/gcc_update, f/g77install.texi: Remove references to cexp.c/cexp.y. * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING, which is no longer tested anywhere. * po/POTFILES.in: Remove cccp.c and cexp.c. Comment out alpha/vms-tramp.asm. From-SVN: r33238
2000-04-18cppinit.c (handle_option): Don't run error message through gettext twice.Zack Weinberg2-1/+6
* cppinit.c (handle_option): Don't run error message through gettext twice. From-SVN: r33237
2000-04-18conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.Richard Kenner11-53/+75
* gcc/conflict.c (conflict_graph_add): Pass enum type to htab_find_slot. * gcc/cpperror.c (hashtab.h): Now include. * gcc/cppexp.c (hashtab.h): Likewise. * gcc/cpplex.c (hashtab.h): Likewise. * gcc/cppfiles.c (hashtab.h): Likewise. (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type to htab_find_slot_with_hash. * gcc/cpphash.c (hashtab.h): Now include. (_cpp_lookup_slot): INSERT is now enum insert_option. * gcc/cpphash.h (_cpp_lookup_slot): Likewise. * gcc/cppinit.c (hashtab.h): Include earlier. (initialize_builtins): Pass enum to htab_find_slot. * gcc/cpplib.c (hashtab.h): Now include. (do_define, do_undef): Pass enum type to _cpp_lookup_slot. (do_pragma_poison, do_assert): Likewise. * gcc/emit-rtl.c (gen_rtx_CONST_INT): Pass enum to htab_find_slot_with_hash. * gcc/simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise. * gcc/tree.c (type_hash_add): Likewise. (build1): Minor cleanup. * include/hashtab.h (enum insert_option): New type. (htab_find_slot, htab_find_slot_with_hash): Use it. * libiberty/hashtab.c: Various minor cleanups. (htab_find_slot_with_hash): INSERT is now enum insert_option. (htab_find_slot): Likewise. From-SVN: r33236
2000-04-18cp-tree.h (lang_decl_flags): Remove const_memfunc and volatile_memfunc.Mark Mitchell6-23/+54
* cp-tree.h (lang_decl_flags): Remove const_memfunc and volatile_memfunc. Add destructor_attr. Adjust dummy. (DECL_DESTRUCTOR_P): Use destructor_attr. (DECL_CONST_MEMFUNC_P): Reimplement. (DECL_VOLATILE_MEMFUNC_P): Remove. * class.c (finish_struct_methods): Use CLASSTYPE_DESTRUCTORS. (overrides): Use DECL_DESTRUCTOR_P. (check_for_override): Likewise. * decl.c (start_function): Likewise. * decl2.c (grokfclassfn): Likewise. (check_classfn): Likewise. (grok_function_init): Likewise. From-SVN: r33235
2000-04-18* gengenrtl.c (genlegend): Fix misspelling.Stan Cox2-1/+5
From-SVN: r33234
2000-04-18configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added.Robert Lipe10-197/+273
* configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that bitfields of the host compiler are not signed quantities. * config.in: Regenerate. * configure: Regenerate. * system.h (USE_ENUM_BITFIELDS): Added. (ENUM_BITFIELDS): Added. * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD. (SHORT_ENUM_BUG): Deleted. * tree.h (tree_common): Members `code', `mode', `built_in_class', now ENUM_BITFIELD. * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted. (CODE_FIELD_BUG): Likewise. * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG. (OLD_CC): Likewise. * config/m68k/x-ccur (X_CFLAGS): Likewise. From-SVN: r33233
2000-04-18ggc-common.c: Add missing blanks.Richard Kenner4-4/+12
* ggc-common.c: Add missing blanks. * print-tree.c (print_node): Print DECL_OFFSET_ALIGN. * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment. From-SVN: r33232
2000-04-18stmt.c (mark_case_node): New function.Richard Kenner2-11/+22
* stmt.c (mark_case_node): New function. (mark_case_nesting): Call it. From-SVN: r33231
2000-04-18expmed.c (emit_store_flag): If comparing two-word integer with zero, can ↵Richard Kenner2-6/+32
optimize NE, EQ, GE, and LT. * expmed.c (emit_store_flag): If comparing two-word integer with zero, can optimize NE, EQ, GE, and LT. From-SVN: r33230
2000-04-18Fix typo.Richard Henderson1-1/+1
From-SVN: r33229
2000-04-18cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the mark is active.Mark Mitchell3-1/+14
* cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the mark is active. From-SVN: r33228
2000-04-18Add expected errorMark Mitchell1-1/+1
From-SVN: r33227
2000-04-18c-decl.c (mark_binding_level): Use 'for' instead of `while'.Richard Kenner5-230/+274
* c-decl.c (mark_binding_level): Use 'for' instead of `while'. * conflict.c: Minor cleanups. * optabs.c: Add blank line * simplify-rtx.c: From-SVN: r33226
2000-04-18re GNATS gcj/211 (gcjh doesn't handle method names that are reserved C++ ↵Tom Tromey2-21/+85
keywords) PR gcj/211: * gjavah.c (utf8_cmp): Changed return value. (cxx_keyword_subst): Handle all C++ keywords. Allocate new return result. (cxx_keywords): New global. (get_field_name): Handle new result of cxx_keyword_subst. (print_method_info): Likewise. From-SVN: r33225
2000-04-18Daily bump.Jeff Law2-2/+2
From-SVN: r33224
2000-04-18cppexp.c (lex): Don't assume tokens are NUL terminated.Zack Weinberg9-103/+139
* cppexp.c (lex): Don't assume tokens are NUL terminated. * cpplib.c (do_include, do_import, do_include_next, read_line_number, detect_if_not_defined): Likewise. * cpphash.c (collect_expansion): Likewise. (special_symbol, _cpp_macroexpand): Check return from cpp_file_buffer. * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete macros. Delete all uses. * gcc.dg/cpp-mi.c: Add two more test cases. * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files. From-SVN: r33223
2000-04-17bb-reorder.c (fixup_reorder_chain): Don't look up new block again.Richard Henderson2-3/+23
* bb-reorder.c (fixup_reorder_chain): Don't look up new block again. (reorder_basic_blocks): If no epilogue in rtl, force last block last. From-SVN: r33221
2000-04-18decl2.c (grokfield): Issue error on illegal data member declaration.Mark Mitchell3-1/+28
* decl2.c (grokfield): Issue error on illegal data member declaration. From-SVN: r33220
2000-04-18function.c (expand_function_start): Use hard_function_value to compute the ↵Mark Mitchell2-6/+6
RTL to use for DECL_RESULT. * function.c (expand_function_start): Use hard_function_value to compute the RTL to use for DECL_RESULT. From-SVN: r33219
2000-04-17Regen after last changeZack Weinberg1-7/+10
From-SVN: r33218
2000-04-17* method.c (make_thunk): Set DECL_CONTEXT for a THUNK_DECL.Mark Mitchell2-0/+5
From-SVN: r33216
2000-04-17i386.c (athlon_cost): Fix lea, divide and XFmode move costs.Jan Hubicka4-66/+236
* i386.c (athlon_cost): Fix lea, divide and XFmode move costs. (x86_integer_DFmode_moves, x86_partial_reg_dependency, x86_memory_mismatch_stall): New global variables. (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only alloved; fix load penalties for Athlon. * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency, x86_memory_mismatch_stall): Declare. (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY, TARGET_MEMORY_MISMATCH_STALL): New. * i386.md (athlon scheduling parameters): Fix latencies according to Athlon Optimization Manual. (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to vector. (fsqrt instruction patterns): Set athlon_decode to direct. (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines. (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY and TARGET_PARTIAL_REGISTER_STALL machines. (pushdf_nointeger): New pattern. (pushdf_integer): Rename from pushdf. (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines. (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines. From-SVN: r33215
2000-04-17loop.c (canonicalize_condition): Add WANT_REG argument.Richard Henderson5-79/+75
* loop.c (canonicalize_condition): Add WANT_REG argument. Stop the search if we match it. * expr.h (canonicalize_condition): Update decl. * predict.c (expected_value_to_br_prob): Use it. Track last expected value note. (find_expected_value): Remove. * reorg.c (mostly_true_jump): Always use BR_PROB if present. From-SVN: r33214
2000-04-17gjavah.c (print_name_for_stub_or_jni): Don't prefix method names with a ↵Bryce McKinlay2-5/+14
newline, for CNI. 2000-04-17 Bryce McKinlay <bryce@albatross.co.nz> * gjavah.c (print_name_for_stub_or_jni): Don't prefix method names with a newline, for CNI. (print_stub_or_jni): Print a space or newline before method name for CNI as well as JNI. (print_cxx_classname): Don't write leading "::" in CNI stub method. (process_file): Include gcj/cni.h if generating CNI stubs. From-SVN: r33213
2000-04-17aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).Zack Weinberg7-387/+260
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]). (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of a plain file. * configure.in: Call AC_FUNC_MMAP_FILE. * configure: Regenerate. * config.in: Regenerate. * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP. * fixinc/fixincl.c: Likewise. From-SVN: r33212
2000-04-17builtins.c (expand_builtin_expect): New.Richard Henderson11-32/+256
* builtins.c (expand_builtin_expect): New. (expand_builtin): Call it. * builtins.def (BUILT_IN_EXPECT): New. * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect. * extend.texi: Document it. * predict.c (expected_value_to_br_prob): New. (find_expected_value): New. * basic-block.h (expected_value_to_br_prob): Declare. * toplev.c (rest_of_compilation): Invoke it. * rtl.h (NOTE_EXPECTED_VALUE): New. (NOTE_INSN_EXPECTED_VALUE): New. * rtl.c (note_insn_name): Update. * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special cases; handle NOTE_INSN_EXPECTED_VALUE. From-SVN: r33211
2000-04-17sparc.c (eligible_for_sibcall_delay): Cannot use leaf sibcall delay slot if ↵Jakub Jelinek2-3/+10
flag_pic. * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use leaf sibcall delay slot if flag_pic. (output_sibcall): Always emit call for leaf sibcall if flag_pic. From-SVN: r33210
2000-04-17Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.Kaveh R. Ghazi3-1/+10
* Makefile.in (stmp-fixproto): Acknowledge errors in fixproto. * fixproto: If fix-header fails, exit with an error. From-SVN: r33208
2000-04-17cse.c (struct check_depdendence_data): New.Jan Hubicka2-13/+36
* cse.c (struct check_depdendence_data): New. (check_dependence): New function. (invalidate): Use check_depdenence. From-SVN: r33207
2000-04-17Daily bump.Jeff Law2-2/+2
From-SVN: r33206
2000-04-17class.c (build_vtable_entry): Don't build thunks for type-info functions.Mark Mitchell2-1/+9
* class.c (build_vtable_entry): Don't build thunks for type-info functions. From-SVN: r33201
2000-04-17dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that UNITS_PER_WORD is ↵Mark Mitchell2-2/+5
unsigned. * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that UNITS_PER_WORD is unsigned. From-SVN: r33200
2000-04-17* tree.h (struct tree_common): Remove misleading comment.Mark Mitchell2-5/+6
From-SVN: r33199
2000-04-17re GNATS gcj/205 (gcjh confused about similar method and attribute names)Tom Tromey2-2/+7
* gjavah.c (decompile_method): Use print_field_name. Fixes PR gcj/205. From-SVN: r33198
2000-04-16decl.c (decls_match): Allow a redeclaration of a builtin to specify args ↵Jason Merrill2-1/+7
while the builtin did not. * decl.c (decls_match): Allow a redeclaration of a builtin to specify args while the builtin did not. From-SVN: r33195
2000-04-16Fix typo in recent entry.Richard Henderson1-2/+2
From-SVN: r33194
2000-04-16Fix date on last entry.Richard Henderson1-1/+1
From-SVN: r33193
2000-04-16Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole message in ↵Dave Pitts12-55/+110
quotes. * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole message in quotes. Otherwise, IBM's make program treats the '#' as the start of a comment and ignores the remainder of the line. * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed upper case. * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC. * cexp.y (initialize_random_junk): Likewise. * cppfiles.c (find_include_file): Cast alloca return value. * cppinit.c (initialize_standard_includes): Likewise. * cpplib.c (cpp_define, cpp_undef): Likewise. * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT. * final.c (output_asm_insn): Allow for holes in EBCDIC. * fold-const.c (CHARMASK): New. (real_hex_to_f): Use it. * real.c (CHARMASK): New. (etoasc, asctoeg): Use it. (asctoeg): EBCDIC lower case characters preceed upper case. From-SVN: r33192
2000-04-16i370.c (mvs_add_label): Change spacing for coding conventions.Richard Henderson5-48/+49
* i370.c (mvs_add_label): Change spacing for coding conventions. * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the outputing case vectors. (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT. (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check, since vector in in the data CSECT. (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation. * i370.md (Many patterns): Put the length in the XL directives. (movdi): Put back STM and MVC in definition. (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370 pattern using the TCA. * oe.h (CPP_SPEC): Added to allow trigraphs. * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does not support the "long long" type. From-SVN: r33191
2000-04-16mips-protos.h (mips_legitimate_address_p): New function.Mark Mitchell4-123/+178
* config/mips/mips-protos.h (mips_legitimate_address_p): New function. (mips_reg_mode_ok_for_base_p): Likewise. * config/mips/mips.h (REG_OK_STRICT_P): Don't define. (REG_OK_FOR_INDEX_P): Define unconditionally. (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p. (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p. * config/mips/mips.c (mips16_simple_memory_operand): Adjust now that GET_MODE_SIZE is unsigned. (mips_reg_mode_ok_for_base_p): Define. (mips_legitimate_address_p): Likewise. Adjust now that GET_MODE_SIZE is unsigned. (block_move_loop): Make the number of bytes unsigned. (expand_block_move): Likewise. (function_arg): Make the loop counter unsigned to match the boundary condition. From-SVN: r33188
2000-04-16rtl.h (enum insn_note): New enumeration.Richard Henderson3-50/+84
* rtl.h (enum insn_note): New enumeration. Subsume NOTE_INSN_DELETED and friends. (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS. * rtl.c (note_insn_name): Tweek string order. From-SVN: r33187
2000-04-16Fix typoMark Mitchell1-1/+1
From-SVN: r33186
2000-04-16cp-tree.def (THUNK_DECL): Add to documentation.Mark Mitchell7-108/+222
* cp-tree.def (THUNK_DECL): Add to documentation. * cp-tree.h (flag_huge_objects): Declare. * class.c (modify_vtable_entry): Tidy. (update_vtable_entry_for_fn): Split out from dfs_modify_vtables. Calculate delta appropriately for the new ABI. (dfs_modify_vtables): Use it. (modify_all_vtables): Fix thinko in code to add overriding copies of functions to primary vtables. (build_clone): Fix typo in comment. (clone_function_decl): Correct order of destructors in vtable. (build_vbase_offset_vtbl_entries): Adjust comment. (dfs_vcall_offset_queue_p): Remove. (dfs_build_vcall_offset_vtbl_entries): Update BV_VCALL_INDEX. (build_vcall_offset_vtbl_entries): Juse use dfs_skip_vbases. (build_vtable_entry): Correct check for pure virtual functions. Don't declare flag_huge_objects. * decl.c (flag_huge_objects): Remove declaration. * method.c (make_thunk): Tweak mangling for vcall offset thunks. Use int_size_in_bytes. (emit_thunk): Handle vcall offset thunks. From-SVN: r33185
2000-04-16Daily bump.Jeff Law2-2/+2
From-SVN: r33184
2000-04-16cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it to offset * 2.Zack Weinberg2-1/+4
* cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it to offset * 2. From-SVN: r33183
2000-04-16New testMark Mitchell1-0/+21
From-SVN: r33182
2000-04-16cpplex.c (output_line_command): Remove debugging prints.Zack Weinberg2-16/+33
* cpplex.c (output_line_command): Remove debugging prints. (cpp_output_tokens): Don't write out a zero-length buffer or try to see if it has a newline in it. (_cpp_expand_to_buffer): Copy the source buffer before pushing. (_cpp_read_and_prescan): Move shift-down of pushback bytes to the end of the loop. Use memmove. Don't read past the end of the buffer. Remove trailing newlines from error messages. From-SVN: r33180
2000-04-16cpphash.h (SYNTAX_INCLUDE, [...]): new.Neil Booth3-35/+52
* cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new. * cpplib.c: Add new syntax flags to directive table, and supporting macros. From-SVN: r33179
2000-04-16Update.Ulrich Drepper1-0/+5
From-SVN: r33175