aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2001-09-29* cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.Hans-Peter Nilsson2-1/+3
From-SVN: r45878
2001-09-29* doc/invoke.texi (Optimize Options): Delete spurious @table.Hans-Peter Nilsson2-1/+4
From-SVN: r45877
2001-09-29Daily bump.GCC Administrator2-2/+2
From-SVN: r45876
2001-09-29Remove deleted a29k/udi.hZack Weinberg1-1/+0
From-SVN: r45872
2001-09-28varasm.c (assemble_integer): Bound alignment check by BIGGEST_ALIGNMENT.Richard Henderson2-1/+4
* varasm.c (assemble_integer): Bound alignment check by BIGGEST_ALIGNMENT. From-SVN: r45871
2001-09-28* cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.Richard Henderson2-1/+8
From-SVN: r45870
2001-09-28* config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.Rainer Orth2-0/+12
From-SVN: r45866
2001-09-28Add support for 3Dnow builtinsBernd Schmidt7-43/+648
From-SVN: r45863
2001-09-28i386-protos.h (ix86_setup_incoming_varargs, [...]): Declare.Jan Hubicka6-2/+566
* i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg, ix86_va_start, ix86_build_va_list): Declare. * i386.c (ix86_setup_incoming_varargs, ix86_va_arg, ix86_va_start, ix86_build_va_list): New global functions. * i386.md (sse_prologue_save_insn): New insn. (sse_prologue_save): New expander. * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START, BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros. From-SVN: r45862
2001-09-28cpplex.c (new_buff, [...]): Use size_t everywhere, make definitions ↵Neil Booth2-6/+12
consistent with prototypes. * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff): Use size_t everywhere, make definitions consistent with prototypes. From-SVN: r45860
2001-09-28gcse.c (replace_store_insn): Use delete_insn.Jan Hubicka5-26/+25
* gcse.c (replace_store_insn): Use delete_insn. * loop.c (move_movables): Likewise; avoid delete_insn from clobbering notes moved elsewhere. (check_dbra_loop): Use delete_insn. * ssa.c (convert_from_ssa): Likewise. * cse.c (cse_insn): Use delete_insn. From-SVN: r45859
2001-09-28cpphash.h (struct cpp_buff): Make unsigned.Neil Booth6-75/+129
* cpphash.h (struct cpp_buff): Make unsigned. (_cpp_get_buff): Take length of size_t. (_cpp_unaligned_alloc): New. (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New. (struct cpp_reader): Remove ident_pool. Add u_buff. * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool. (cpp_destroy): Destroy u_buff, not ident_pool. * cpplex.c (parse_number, parse_string, save_comment, cpp_token_as_text): Update to use the unaligned buffer. (new_buff): Make unsigned. (_cpp_unaligned_alloc): New. * cpplib.c (glue_header_name): Update to use the unaligned buffer. * cppmacro.c (new_number_token, builtin_macro, stringify_arg): Similarly. (collect_args): Make unsigned. From-SVN: r45858
2001-09-28Daily bump.GCC Administrator2-2/+2
From-SVN: r45857
2001-09-28cpplex.c (cpp_output_token): Use a putc loop for SPELL_OPERATOR, and fwrite ↵Zack Weinberg6-184/+246
for SPELL_IDENT. * cpplex.c (cpp_output_token): Use a putc loop for SPELL_OPERATOR, and fwrite for SPELL_IDENT. * configure.in: Detect fwrite_unlocked and fprintf_unlocked. * configure, config.in: Regenerate. * system.h: Replace fwrite and fprintf with their unlocked variants if available. From-SVN: r45855
2001-09-28expr.c (ffeexpr_sym_rhs_dimlist_): Allow array elements as bounds of ↵Robert Anderson2-1/+8
adjustable arrays. 2001-09-28 Robert Anderson <rwa@alumni.princeton.edu> * expr.c (ffeexpr_sym_rhs_dimlist_): Allow array elements as bounds of adjustable arrays. From-SVN: r45854
2001-09-27dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame in favour of ↵Richard Henderson2-7/+5
.eh_frame. * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame in favour of .eh_frame. From-SVN: r45852
2001-09-27(FUNCTION_VALUE): Change hardcoded 33 and 3 to macros.Aldy Hernandez2-4/+12
LIBCALL_VALUE: Likewise. From-SVN: r45849
2001-09-27loop-2e.x: This is a manifestation of a long-standing bug on i686, apparently.Geoffrey Keating5-0/+59
* gcc.c-torture/execute/loop-2e.x: This is a manifestation of a long-standing bug on i686, apparently. * gcc.c-torture/execute/loop-2c.x: New file. * gcc.c-torture/execute/loop-2d.x: New file. * gcc.c-torture/execute/loop-3c.x: New file. From-SVN: r45845
2001-09-27parse.y (check_final_variable_indirect_assignment): For COMPOUND_EXPR...Alexandre Petit-Bianco2-8/+20
2001-09-26 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (check_final_variable_indirect_assignment): For COMPOUND_EXPR, return only if finals were found initialized properly, if not, keep on checking. (check_final_variable_global_assignment_flag): New local error_found, set when appropriate and used to decide whether to report uninitialized finals. Fixed typo in comment. ( http://gcc.gnu.org/ml/gcc-patches/2001-09/msg01160.html ) From-SVN: r45844
2001-09-27cpphash.h: Update comment.Neil Booth5-187/+65
* cpphash.h: Update comment. * cpplex.c: Update comments. (_cpp_can_paste): Remove. * cpplib.h (_cpp_can_paste): Remove. * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the lexer rather than _cpp_can_paste. From-SVN: r45840
2001-09-27* doc/cppinternals.texi: Update.Neil Booth2-53/+137
From-SVN: r45839
2001-09-27Daily bump.GCC Administrator2-2/+2
From-SVN: r45838
2001-09-26cpphash.h (struct cpp_pool): Remove locks and locked.Neil Booth5-82/+77
* cpphash.h (struct cpp_pool): Remove locks and locked. (struct cpp_context): Add member buff. (struct cpp_reader): Remove member argument_pool. (_cpp_lock_pool, _cpp_unlock_pool): Remove. * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead. * cpplex.c (chunk_suitable): Remove pool argument. (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New. (new_buff, _cpp_extend_buff): Update. (_cpp_get_buff): Fix silly pointer bug. Be more selective about which buffer is returned. (_cpp_next_chunk, _cpp_init_pool): Pool locking removed. (_cpp_lock_pool, _cpp_unlock_pool): Remove. * cppmacro.c (lock_pools, unlock_pools): Remove. (push_ptoken_context): Take a _cpp_buff. (enter_macro_context): Pool locking removed. (replace_args): Use a _cpp_buff for the replacement list with arguments replaced. (push_token_context): Clear buff. (expand_arg): Use _cpp_pop_context. (_cpp_pop_context): Free a context's buffer, if any. From-SVN: r45833
2001-09-26* c-typeck.c (digest_init): Check for sizeless arrays.DJ Delorie2-0/+5
From-SVN: r45831
2001-09-26optabs.c (init_one_libfunc): Create a dummy function type instead of using ↵Richard Henderson2-2/+7
error_mark_node. * optabs.c (init_one_libfunc): Create a dummy function type instead of using error_mark_node. From-SVN: r45830
2001-09-26cpphash.h (struct _cpp_buff, [...]): New.Neil Booth6-117/+247
* cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff, _cpp_extend_buff, _cpp_free_buff): New. (struct cpp_reader): New member free_buffs. * cppinit.c (cpp_destroy): Free buffers. * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff, _cpp_extend_buff, _cpp_free_buff): New. * cpplib.h (struct cpp_options): Remove unused member. * cppmacro.c (collect_args): New. Combines the old parse_arg and parse_args. Use _cpp_buff for memory allocation. (funlike_invocation_p, replace_args): Update. From-SVN: r45827
2001-09-26* final.c (final_scan_insn): Use delete_insn instead of delete_note.Jan Hubicka2-1/+5
From-SVN: r45823
2001-09-26except.c (sjlj_mark_call_sites): Change address inside sequence.Andrew Haley2-3/+6
2001-09-25 Andrew Haley <aph@cambridge.redhat.com> * except.c (sjlj_mark_call_sites): Change address inside sequence. From-SVN: r45822
2001-09-26linux.h (LINK_SPEC): Set dynamic-linker to agree with glibc.Andrew Haley2-1/+6
2001-09-24 Andrew Haley <aph@cambridge.redhat.com> * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with glibc. From-SVN: r45821
2001-09-26Daily bump.GCC Administrator2-2/+2
From-SVN: r45820
2001-09-25install.texi (Specific, [...]): Document.Janis Johnson2-0/+32
* doc/install.texi (Specific, ia64-*-linux): Document. Co-Authored-By: Jim Wilson <wilson@redhat.com> From-SVN: r45812
2001-09-25Fix last patch to allow indexed operand.David Edelsohn1-2/+2
From-SVN: r45809
2001-09-25Makefile.in (cfgrtl.o): Add.Jan Hubicka20-2048/+2190
* Makefile.in (cfgrtl.o): Add. * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks, free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges, free_aux_for_edge): Declare. * cfg.c (HAVE_return): Undefine. * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks, free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges, free_aux_for_edge): New global functions. (first_delete_block): New static variable. (init_flow): Clear first_delete_block. (basic_block_for_insn, label_value_list, tail_recursion_label_list, can_delete_note_p, can_delete_label_p, commit_one_edge_insertion, try_redirect_by_replacing_jump, last_loop_beg_note, back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect, delete_insn, delete_insn_chain, create_basic_block_structure, create_basic_block, flow_delete_block, compute_bb_for_insn, free_bb_for_insn, update_bb_for_insn, set_block_for_insn, set_block_for_new_insns, split_block, merge_blocks_nomove, block_label, try_redirect_by_replacing_jump, last_loop_beg_note, redirect_edge_and_branch, force_nonfallthru_and_redirect, force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge, tidy_fallthru_edges, split_edge, insert_insn_on_edge, commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges, purge_all_dead_edges): Move to .... * cfgrtl.c: New file; .... Here. * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block. (reroder_basic_block): Use alloc_aux_for_blocks. * predict.c (estimate_bb_frequencies): Likewise; use alloc_aux_for_edges. * profile.c (compute_branch_probabilities): Likewise. (branch_prob): Likewise. * reg-stack.c (reg_to_stack): Likewise. * emit-rtl.c (emit_insns_after): Never return NULL. * basic-block.h (set_block_for_new_insns): Delete. * cfgrtl.c (set_block_for_new_insns): Delete. * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn calls when crossjumping. * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call. * unroll.c (copy_loop_body): Use delete_insn. * final.c (final, final_scan_insn): Use delete_insn/delete_note. * function.c (fixup_var_refs_insn, fixup_var_refs_1, keep_stack_depressed): Likewise. * gcse.c (cprop_cc0_jump): Likewise. * local-alloc.c (update_equiv_regs): Likewise. * loop.c (scan_loop, loop_delete_insns): Likewise. * regmove.c (try_auto_increment, fixup_match_1): Likewise. * reload1.c (reload, calculate_needs_all_insns, reload_as_needed, delete_output_reload, delete_address_reloads_1, reload_cse_delete_noop_set, reload_combine, reload_cse_move2add): Likewise. * sibcall.c (replace_call_placeholder): Likewise. * cse.c (cse_insn): Likewise. From-SVN: r45807
2001-09-25SSE/MMX builtins bugfixesBernd Schmidt3-15/+30
From-SVN: r45806
2001-09-25Add target_flags mask bit to builtin definitionsBernd Schmidt2-215/+227
From-SVN: r45805
2001-09-25* 20010925-1.c: New testcase for incorrect sibcall optimization.Graham Stott1-0/+24
From-SVN: r45804
2001-09-25sibcall.c (skip_copy_to_return_value): Tighten return value copy check.Graham Stott2-2/+8
* sibcall.c (skip_copy_to_return_value): Tighten return value copy check. From-SVN: r45803
2001-09-25Daily bump.GCC Administrator2-2/+2
From-SVN: r45800
2001-09-25* gcc.dg/cpp/20000625-2.c: Correct line number.Neil Booth2-1/+5
From-SVN: r45799
2001-09-24* (lwa_operand): Address must be word aligned.David Edelsohn2-1/+8
From-SVN: r45795
2001-09-24tree.c (type_hash_marked_p): Consider as marked if debug symbol number has ↵Richard Kenner2-3/+18
been set. * tree.c (type_hash_marked_p): Consider as marked if debug symbol number has been set. (type_hash_mark): Mark type itself. From-SVN: r45794
2001-09-24c-lex.c (cb_def_pragma): Update.Neil Booth19-566/+794
* c-lex.c (cb_def_pragma): Update. (c_lex): Update, and skip padding. * cppexp.c (lex, parse_defined): Update, remove unused variable. * cpphash.h (struct toklist): Delete. (union utoken): New. (struct cpp_context): Update. (struct cpp_reader): New members eof, avoid_paste. (_cpp_temp_token): New. * cppinit.c (cpp_create_reader): Update. * cpplex.c (_cpp_temp_token): New. (_cpp_lex_direct): Add PREV_WHITE when parsing args. (cpp_output_token): Don't print leading whitespace. (cpp_output_line): Update. * cpplib.c (glue_header_name, parse_include, get__Pragma_string, do_include_common, do_line, do_ident, do_pragma, do_pragma_dependency, _cpp_do__Pragma, parse_answer, parse_assertion): Update. (get_token_no_padding): New. * cpplib.h (CPP_PADDING): New. (AVOID_LPASTE): Delete. (struct cpp_token): New union member source. (cpp_get_token): Update. * cppmacro.c (macro_arg): Convert to use pointers to const tokens. (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p, replace_args, quote_string, stringify_arg, parse_arg, next_context, enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput, _cpp_backup_tokens, _cpp_create_definition): Update. (push_arg_context): Delete. (padding_token, push_token_context, push_ptoken_context): New. (make_string_token, make_number_token): Update, rename. (cpp_get_token): Update to handle tokens as pointers to const, and insert padding appropriately. * cppmain.c (struct printer): New member prev. (check_multiline_token): Constify. (do_preprocessing, cb_line_change): Update. (scan_translation_unit): Update to handle spacing. * scan-decls.c (get_a_token): New. (skip_to_closing_brace, scan_decls): Update. * fix-header.c (read_scan_file): Update. * doc/cpp.texi: Update. * gcc.dg/cpp/macro10.c: New test. * gcc.dg/cpp/strify3.c: New test. * gcc.dg/cpp/spacing1.c: Add tests. * gcc.dg/cpp/19990703-1.c: Remove bogus test. * gcc.dg/cpp/20000625-2.c: Fudge to pass. From-SVN: r45793
2001-09-24libiberty.h (reconcat): New function.Kaveh R. Ghazi2-2/+8
include: * libiberty.h (reconcat): New function. libiberty: * concat.c (reconcat): New function. gcc: * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC. Avoid leak by passing malloc'ed pointer to reconcat, not concat. From-SVN: r45789
2001-09-24* varasm.c (array_size_for_constructor): Handle STRING_CSTs also.DJ Delorie2-0/+11
From-SVN: r45785
2001-09-24* gcc.c-torture/execute/20010924-1.c: New test.DJ Delorie2-0/+75
From-SVN: r45784
2001-09-24flow.c (delete_dead_jumptables): Delete jumptable if the only reference is ↵Ulrich Weigand2-1/+6
from the literal pool. * flow.c (delete_dead_jumptables): Delete jumptable if the only reference is from the literal pool. From-SVN: r45783
2001-09-24* testsuite/objc/execute/paste.m: Remove.Neil Booth2-21/+4
From-SVN: r45782
2001-09-24install.texi (Final install): Request additional information in mail about ↵Janis Johnson2-0/+10
successful builds. * doc/install.texi (Final install): Request additional information in mail about successful builds. From-SVN: r45779
2001-09-24pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.John David Anglin2-25/+32
* pa.c (return_addr_rtx): Return NULL_RTX if count is not zero. Use initial value of return pointer register instead of value in frame-20. Revise comments. From-SVN: r45778
2001-09-24som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.John David Anglin2-6/+23
* som.h (ASM_OUTPUT_EXTERNAL): Improve formatting. (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for the libcall if there isn't a referenced identifier for the symbol. From-SVN: r45777