aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2000-10-01c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.Mark Mitchell22-71/+224
* c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only. (lang_mark_false_label_stack): Remove. * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate <top level> string in GC area. (mark_splay_tree_node): New function. (mark_splay_tree): Likewise. * except.c (mark_eh_status): Only call lang_mark_false_label_stack if it exists. * ggc-callbacks.c (lang_mark_false_label_stack): Remove. * ggc-common.c (lang_mark_false_label_stack): Change type. * ggc.h (ggc_alloc_string): Add comment. (ggc_strdup): New function. * decl.c (lang_mark_false_label_stack): Remove. * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared. * com.c (lang_mark_false_label_stack): Remove. Convert to GC. * Make-lang.in (s-java): Don't depend on ggc-callbacks.o. * Makefile.in (BACKEND): Don't include ggc-callbacks.o. (typeck.o): Depend on ggc.h. * class.c (add_method_1): Use GC functions for allocation. (init_class_processing): Register roots. * decl.c (ggc_p): Set to 1. (pending_local_decls): Make it static. (push_jvm_slot): Use GC functions for allocation. (init_decl_processing): Register roots. (give_name_to_locals): Use GC functions for allocation. (lang_mark_tree): New function. * java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Use GC functions for allocation. * jcf-parse.c (jcf_parse_source): Use ggc_strdup. * lex.c (java_lex): Use build_string, rather than replicating it inline. * parse.y (goal): Add more roots. (mark_parser_ctxt): New function. * typeck.c: Include ggc.h. * splay-tree.c (splay_tree_insert): Fix formatting. From-SVN: r36687
2000-10-01avr.h (BRANCH_COST): Define as 0.Denis Chertykov3-0/+15
* config/avr/avr.h (BRANCH_COST): Define as 0. * config/pdp11/pdp11.c: #include "tree.h" added. From-SVN: r36686
2000-10-01avr.c (ashlhi3_out, [...]): Optimize more cases with known shift count.Marek Michalkiewicz3-46/+348
* config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases with known shift count. * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3): New alternative for shift count 2 with no scratch register. (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to "set_n" for shift counts 1 and 2. From-SVN: r36685
2000-10-01Daily bump.Jeff Law2-2/+2
From-SVN: r36684
2000-10-01rs6000.md (movsi_to_cr): Remove the USE.Geoff Keating5-70/+103
* config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate the mask value from the individual SET operations. (return_internal_si): Move the USE after the RETURN. (return_internal_di): Likewise. (return_and_restore_fpregs_si): Likewise. (return_and_restore_fpregs_di): Likewise. (return_eh_si): Likewise. (return_eh_di): Likewise. * config/rs6000/rs6000.c (mtcrf_operation): Don't look for, or check, the USE. (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr. Don't generate a PARALLEL around a single operation movsi_to_cr. Generate the RETURN first in any PARALLELs. * rtlanal.c (single_set_1): Use fatal_insn to display the invalid insn. Check for more cases when a USE or CLOBBER occurs before a SET. * Makefile.in: Update dependencies for rtlanal.o. From-SVN: r36683
2000-10-01New testZack Weinberg1-0/+9
From-SVN: r36682
2000-09-30* i386.c: Move include of "config.h" to before that of <setjmp.h>.Joseph Myers2-1/+5
From-SVN: r36677
2000-09-30c-tree.texi, [...]: Consistently use @email for formatting email addresses.Joseph Myers8-14/+23
* c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi: Consistently use @email for formatting email addresses. cp: * gxxint.texi: Use @email for formatting email addresses. From-SVN: r36676
2000-09-30Daily bump.Jeff Law2-2/+2
From-SVN: r36675
2000-09-29cse.c (notreg_cost): New argument outer.Richard Henderson2-10/+29
* cse.c (notreg_cost): New argument outer. (COST): Pass in SET to notreg_cost (COST_IN): New. (fold_rtx): Use COST_IN. Prefer constants when costs are the same. From-SVN: r36671
2000-09-29parse.y (maybe_yank_clinit): Also keep <clinit> if its body contains ↵Alexandre Petit-Bianco2-1/+35
something else than MODIFY_EXPR. 2000-09-29 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (maybe_yank_clinit): Also keep <clinit> if its body contains something else than MODIFY_EXPR. (http://gcc.gnu.org/ml/gcc-patches/2000-09/msg01141.html) From-SVN: r36670
2000-09-29inclhack.def (broken_cabs): Generalize regex.David Edelsohn3-6/+11
* fixinc/inclhack.def (broken_cabs): Generalize regex. * fixinc/fixincl.x: Regenerate. From-SVN: r36669
2000-09-29loop.c (check_final_value): A GIV is not replaceable if used before set.Franz Sirl2-21/+20
2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * loop.c (check_final_value): A GIV is not replaceable if used before set. From-SVN: r36668
2000-09-29* version.c: Bump to gcc-2.97.Jeffrey A Law2-2/+6
From-SVN: r36667
2000-09-29error.c: Remove direct obstack manipulation.Gabriel Dos Reis5-327/+312
cp/ * error.c: Remove direct obstack manipulation. Replace with output_buffer-based formatting. Adjust calls to removed macros. (obstack_chunk_alloc, obstack_chunk_free): Remove. (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP, OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise. testsuite/ * g++.old-deja/g++.ext/pretty3.C: Fix comparison with __PRETTY_FUNCTION__. * g++.old-deja/g++.ext/pretty2.C: Likewise. From-SVN: r36666
2000-09-29final.c (final_scan_insn): Remove extra extract_insn call; Use caching for ↵Jan Hubicka5-64/+138
constrain_operands. * final.c (final_scan_insn): Remove extra extract_insn call; Use caching for constrain_operands. (cleanup_subreg_operands): Use caching for extract_insn. * recog.c (constrain_operands_cached): New. * recog.h (constrain_operands_cached): Declare. * i386.c (ix86_attr_length_immediate_default, ix86_attr_length_address_default, ix86_agi_dependant): Cache extract_insn call. * recog.c (asm_noperands): Tweak. (extract_insn): Do not call asm_noperads for non-asm instructions. From-SVN: r36665
2000-09-29recog.c (recog_memoized): Rename to recog_memoized_1.Jan Hubicka6-92/+137
* recog.c (recog_memoized): Rename to recog_memoized_1. * recog.h (recog_memoized): Rename to recog_memoized_1. (recog_memoized): New macro. * rtl.h (single_set): Rename to single_set_1 (single_set): New macro. * rtlanal.c (single_set): Rename to single_set_1; expect clobbers to be last. * i386.md (strmovsi_1, strmovhi_1 strmovqi_1): Do not use match_dup of input operands at outputs. Use register_operand for memory expression. (rep_movsi): Put use last, canonicalize. Use register_operand for memory expression. (rep_movqi): Put use last. Use register_operand for memory expression. (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup of input operands at outputs. Use register_operand for memory expression. (rep_stossi): Put use last; canonicalize; fix match_dup in the address expression (rep_stosqi): Likewise. (memcmp expander): Update calls. (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in the clobbers. * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is VOIDmode. (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons. From-SVN: r36664
2000-09-29Daily bump.Jeff Law2-2/+2
From-SVN: r36663
2000-09-29freebsd-aout.h: New, FreeBSD a.out config file.David O'Brien10-353/+373
2000-09-28 David O'Brien <obrien@FreeBSD.org> * config/i386/freebsd-aout.h: New, FreeBSD a.out config file. Contains the old contents of config/i386/freebsd.h * config/i386/freebsd.h: Now the ELF rather than a.out config file. Contains the old contents of config/i386/freebsd-elf.h * config/i386/freebsd-elf.h: Retire this file -- contents moved to config/i386/freebsd.h. * configure.in: Adjust for above changes. * po/POTFILES.in: Likewise. * po/en_GB.po: Likewise. * po/gcc.pot: Likewise. * configure: Rebuilt. Approved by: Richard Henderson <rth@cygnus.com> Message-ID: <20000927093029.A30906@cygnus.com> From-SVN: r36662
2000-09-28doloop.c (doloop_modify): Prevent delete_insn() from deleting too much.Franz Sirl2-5/+23
2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * doloop.c (doloop_modify): Prevent delete_insn() from deleting too much. Prefer loop->top over loop->start as target for the new JUMP insn. (doloop_valid_p): Ignore loop with exit_count != 0. From-SVN: r36661
2000-09-28* gcc.dg/wtr-int-type-1.c: Don't expect a warning from system headers.Kaveh R. Ghazi2-1/+4
From-SVN: r36660
2000-09-28invoke.texi (i386 Options): Add athlon to table of possible choices for -mcpu=.Philipp Thomas2-1/+6
2000-09-28 Philipp Thomas <pthomas@suse.de> * invoke.texi (i386 Options): Add athlon to table of possible choices for -mcpu=. From-SVN: r36659
2000-09-28diagnostic.h (output_clear_message_text): New function.Gabriel Dos Reis3-9/+22
* diagnostic.h (output_clear_message_text): New function. (output_message_text): New macro. * diagnostic.c (clear_text_info): Rename to output_clear_message_text. (output_clear): Adjust. (output_finish): Rename to output_finalize_message. Tweek. (output_to_stream): Adjust. From-SVN: r36658
2000-09-28Daily bump.Jeff Law2-2/+2
From-SVN: r36656
2000-09-28cpperror.c (_cpp_begin_message): Do the test for suppression of warnings and ↵Neil Booth6-25/+48
pedantic warnings before the "is a... * cpperror.c (_cpp_begin_message): Do the test for suppression of warnings and pedantic warnings before the "is a warning an error" tests. * cppinit.c (cpp_handle_option): Remove surplus \n. * cpplex.c (ON_REST_ARG): Delete. (skip_block_comment): Initialise prevc. (parse_args): Improve error messages. (maybe_paste_with_next): Use CONTEXT_VARARGS rather than ON_REST_ARG. * cpplib.c (cpp_push_buffer): Fix grammar in message. * cppmain.c (main): Set callbacks for #ident and #pragma only if no_output option is false. (do_pragma_implementation): Only call the #pragma handler if it is set in the cpp_reader structure. From-SVN: r36655
2000-09-27Patch by rth to fix inline-of-an-inline return-value bug.Donald Lindsay2-0/+12
From-SVN: r36654
2000-09-27extend.texi, [...]: Consistently use @uref for formatting URLs.Joseph Myers5-14/+18
* extend.texi, invoke.texi, gcc.texi, install.texi: Consistently use @uref for formatting URLs. From-SVN: r36653
2000-09-27Daily bump.Jeff Law2-2/+2
From-SVN: r36652
2000-09-27djgpp.h (UNIQUE_SECTION): Constify the variables name and prefix.Mark Elbrecht2-1/+7
* config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables name and prefix. From-SVN: r36651
2000-09-26Remove stray whitespace on blank lineZack Weinberg1-1/+1
From-SVN: r36649
2000-09-26gcc.c (cpp_options): Add spec for -ftabstop=.Neil Booth7-35/+66
* gcc.c (cpp_options): Add spec for -ftabstop=. (invoke_as): New spec that handles invoking as. Update specs to handle -save-temps and -traditional. * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h: Use invoke_as. * cp/lang-specs.h, objc/lang-specs.h: Update to use invoke_as, and handle -save-temps and -traditional (if appropriate). From-SVN: r36646
2000-09-26sparc.c (sparc_emit_set_const64): Don't abort when op0 is a SUBREG.Jakub Jelinek5-4/+34
* config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when op0 is a SUBREG. (function_arg_slotno): Accept TImode/CTImode. * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define to UNITS_PER_WORD. * gcc.c-torture/compile/20000923-1.c: New test. From-SVN: r36645
2000-09-26flow.c (flow_loop_pre_header_scan): Punt if loop enters from entry block.Michael Hayes2-4/+13
* flow.c (flow_loop_pre_header_scan): Punt if loop enters from entry block. From-SVN: r36644
2000-09-26Daily bump.Jeff Law2-2/+2
From-SVN: r36643
2000-09-25Fix bad use of FP reg in post-modify address.Jim Wilson2-7/+15
* config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS. (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P. (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG. (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P. From-SVN: r36640
2000-09-25cpplex.c (parse_args): Don't set VOID_REST flag.Neil Booth4-30/+34
* cpplex.c (parse_args): Don't set VOID_REST flag. (Fix diagnostic merge problem). (CONTEXT_VARARGS): New flag. (maybe_paste_with_next): Set context earlier in loop. Use it. Do varargs test with CONTEXT_VARARGS flag. (push_arg_context): Set CONTEXT_VARARGS flag if we're pushing an argument context for a varargs argument. * cpplib.h (VOID_REST): Delete. * gcc.dg/cpp/vararg1.c: Add test case. From-SVN: r36638
2000-09-25Makefile.in.in: Remove stamp-check-pot from list of default targets as ↵Philipp Thomas2-1/+7
checks are only possible... 2000-09-26 Philipp Thomas <pthomas@suse.de> * Makefile.in.in: Remove stamp-check-pot from list of default targets as checks are only possible in a complete source tree and all languages configured. From-SVN: r36637
2000-09-25flags.h: Declare warning flag warn_system_headers.Branko Cibej12-23/+90
2000-09-25 Branko Cibej <branko.cibej@hermes.si> * flags.h: Declare warning flag warn_system_headers. * toplev.c: Define it. (W_options): Add option -Wsystem-headers. * diagnostic.c (count_error): Test warn_system_headers. * invoke.texi: Add description for -Wsystem-headers. * cpplib.h (cpp_options): New member warn_system_headers. * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test CPP_IN_SYSTEM_HEADER. * cpplib.c (do_import, do_pragma_once): Likewise. * cpperror.c (_cpp_begin_message): Test warn_system_headers and CPP_IN_SYSTEM_HEADER. * cppinit.c (handle_option): Recognize -Wsystem_headers. (print_help): Describe -Wsystem_headers. * cpplex.c (lex_line): Reorganize condition so that warnings about C++ comments in system headers can be enabled. Remove label do_line_comment. From-SVN: r36636
2000-09-25cpplex.c (save_comment): Only store the initial '/' now.Neil Booth2-47/+42
* cpplex.c (save_comment): Only store the initial '/' now. (lex_token): Combine handling of the two comment types. Pass everything but the initial '/' to save_comment. From-SVN: r36635
2000-09-25cpphash.h (_cpp_digraph_spellings, [...]): New library-internal prototypes.Neil Booth7-380/+423
* cpphash.h (_cpp_digraph_spellings, _cpp_process_directive, _cpp_can_paste): New library-internal prototypes. * cpplex.c (dump_param_spelling, output_line_command, output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Move to cppoutput.c. (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix. * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to cppoutput.c. * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token, dump_param_spelling, output_line_command, cpp_scan_buffer, cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved from elsewhere. * Makefile.in: Add cppoutput.c. * po/POTFILES.in: Add cppoutput.c. From-SVN: r36634
2000-09-25crash20.C: Make ready for libstdc++-v3.Theodore Papadopoulo4-7/+13
2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> * g++.old-deja/g++.other/crash20.C: Make ready for libstdc++-v3. * g++.old-deja/g++.pt/ttp62.C: Same. * g++.old-deja/g++.other/inline14.C: Same. From-SVN: r36633
2000-09-25ia64.c (ia64_print_operand): Define 'e' as 64-n.Richard Henderson3-8/+82
* config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n. * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't split until after reload. (rotlsi3, rotldi3): New. From-SVN: r36632
2000-09-25diagnostic.c (output_last_position): Define.Gabriel Dos Reis3-2/+26
* diagnostic.c (output_last_position): Define. (set_real_maximum_length): Tweek. * diagnostic.h (output_last_position): Declare. From-SVN: r36629
2000-09-25i386.c: Fix formatting.Kazu Hirata2-142/+140
2000-09-25 Kazu Hirata <kazu@hxi.com> * config/i386/i386.c: Fix formatting. From-SVN: r36628
2000-09-25emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when ↵Alan Lehotsky2-1/+7
UNITS_PER_WORD is small. * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when UNITS_PER_WORD is small. From-SVN: r36625
2000-09-25c-common.c (format_char_info): Add flags2; update comments.Joseph Myers2-64/+76
* c-common.c (format_char_info): Add flags2; update comments. (print_char_table, scan_char_table, time_char_table): Split some flags out into flags2. (check_format_info): Use flags2 for those flags, for identifying the initial character of a scanf scanset, and for identifying printf formats where the '0' flag is ignored with precision. From-SVN: r36623
2000-09-25tm.texi: Make documented *_ASM.*_OP:s include spacing.Hans-Peter Nilsson2-53/+63
* tm.texi: Make documented *_ASM.*_OP:s include spacing. Fix typos in description for LONG_LONG_TYPE_SIZE and FINI_SECTION_ASM_OP. From-SVN: r36622
2000-09-25Change callers in config/[n-z]*/ (the rest) to match:Hans-Peter Nilsson10-30/+42
Changes add TABs on either or both sides, covering start of line, up to any operand for all .*ASM.*_OP definitions. From-SVN: r36621
2000-09-25Change callers in config/m*/ to match:Hans-Peter Nilsson25-106/+106
Changes add TABs on either or both sides, covering start of line, up to any operand for all .*ASM.*_OP definitions. From-SVN: r36620
2000-09-25Change callers in config/[h-l]*/ to match:Hans-Peter Nilsson21-63/+63
Changes add TABs on either or both sides, covering start of line, up to any operand for all .*ASM.*_OP definitions. From-SVN: r36619