aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-03-07jcf.h (COMPARE_FILENAMES): New macro similar to "strcmp" to compare file ↵Ranjit Mathew3-5/+28
name components depending on the... 2003-03-05 Ranjit Mathew <rmathew@hotmail.com> * jcf.h (COMPARE_FILENAMES): New macro similar to "strcmp" to compare file name components depending on the case-sensitivity or otherwise of the host file system. * jcf-path.c (add_entry): Use COMPARE_FILENAMES instead of "strcmp" to compare file name components. Use IS_DIR_SEPARATOR instead of comparing directly against DIR_SEPARATOR. (jcf_path_extdirs_arg): Use IS_DIR_SEPARATOR instead of comparing directly against DIR_SEPARATOR. From-SVN: r63927
2003-03-07h8300.md (a peephole2): Don't use reg_overlap_mentioned_p.Kazu Hirata2-1/+5
* config/h8300/h8300.md (a peephole2): Don't use reg_overlap_mentioned_p. From-SVN: r63925
2003-03-07c-pch.c: Include langhooks.h.Geoffrey Keating7-22/+87
* c-pch.c: Include langhooks.h. (IDENT_LENGTH): New. (get_ident): New. (pch_ident): Delete. (pch_init): Use get_ident, IDENT_LENGTH. (c_common_valid_pch): Likewise. Also, use actual language in warning message. * Makefile.in (c-pch.o): Add langhooks.h to dependencies. * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate c-parse.in. * objc/Make-lang.in (objc/objc-act.o): Add dependency on gt-objc-objc-act.h. (gt-objc-objc-act.h): New rule. * objc/lang-specs.h: Support PCH. * objc/objc-act.c: Include gt-objc-objc-act.h. (objc_add_static_instance): Move num_static_inst out, mark for PCH. (build_selector_reference_decl): Move idx out, mark for PCH. (build_class_reference_decl): Likewise. (build_objc_string_decl): Move *_idx out, mark for PCH. (build_tmp_function_decl): Move xxx out, mark for PCH. From-SVN: r63924
2003-03-07rs6000.c (rs6000_binds_local_p): Consider global functions for inlining on ↵Dale Johannesen2-5/+12
Darwin. 2003-03-06 Dale Johannesen <dalej@apple.com> * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider global functions for inlining on Darwin. From-SVN: r63923
2003-03-07Daily bump.GCC Administrator1-1/+1
From-SVN: r63922
2003-03-07haifa-sched.c (schedule_block): Don't call reorder when sorting is prohibited.Vladimir Makarov2-1/+6
2003-03-06 Vladimir Makarov <vmakarov@redhat.com> * haifa-sched.c (schedule_block): Don't call reorder when sorting is prohibited. From-SVN: r63915
2003-03-06Makefile.in (c-ppoutput.o): Update.Neil Booth9-66/+90
* Makefile.in (c-ppoutput.o): Update. * c-common.h (init_pp_output): New. (preprocess_file): Update. * c-lex.c (init_c_lex): Move mbchar initialization to cpplib. Register builtins. * c-opts.c (c_common_init): Call init_pp_output if preprocessing. Make call to cpp_read_main_file common to whether preprocessing or not. Don't register builtins. * c-ppoutput.c: Include c-pragma.h. (setup_callbacks): Rename init_pp_output. (preprocess_file): No longer setup callbacks or call cpp_read_main_file. * cpphash.h (_cpp_init_mbchar): New. * cppinit.c (init_library): Call _cpp_init_mbchar. * cpplex.c (_cpp_init_mbchar): New. From-SVN: r63913
2003-03-06Fix typo in previous patchMark Mitchell1-2/+1
From-SVN: r63912
2003-03-06re PR c++/9965 (ICE in cp_expr_size)Mark Mitchell4-22/+41
PR c++/9965 * call.c (reference_binding): Add ref_is_var parameter. (implicit_conversion): Adjust call to reference_binding. (initialize_reference): Likewise. PR c++/9965 * g++.dg/init/ref2.C: New test. From-SVN: r63909
2003-03-06emit-rtl.c (gen_lowpart): When requesting the low-part of a MEM...Roger Sayle2-0/+12
* emit-rtl.c (gen_lowpart): When requesting the low-part of a MEM, try loading the MEM into a register and taking the low-part of that, to help CSE see the use of the MEM in its true mode. From-SVN: r63907
2003-03-06re PR c++/9400 (Warning -Wshadow warns of shadowed declaration of THIS in ↵Mark Mitchell4-1/+20
local classes.) PR c++/9400 * decl.c (pushdecl): Don't check for shadowing of DECL_ARTIFICIAL PARM_DECLs. PR c++/9400 * g++.dg/warn/Wshadow-2.C: New test. From-SVN: r63904
2003-03-06re PR c++/9791 (-Woverloaded-virtual reports hiding of destructor)Mark Mitchell4-5/+40
PR c++/9791 * class.c (get_basefndecls): Use lookup_fnfields_1. PR c++/9791 * g++.dg/warn/Woverloaded-1.C: New test. From-SVN: r63899
2003-03-06[multiple changes]DJ Delorie4-21/+139
2002-03-05 Tom Tromey <tromey@redhat.com> * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Define. 2002-03-05 Nick Clifton <nickc@cambridge.redhat.com> * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on operand 2. ("*ineqbranchsi"): Likewise. 2002-03-05 Andrew Haley <aph@cambridge.redhat.com> * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete mem_fake_push_rtx. Instead construct a SEQUENCE to show the register store followed by a stack increment. 2002-03-05 Chris Moller <cmoller@redhat.com> * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term to inhibit saving CARRY_REGS. * config/stormy16/stormy16.c (xs_hi_general_operand): added predicate to detect and error-out on out-of-range const_ints for movhi. * config/stormy16/stormy16.md (movhi): use xs_hi_general_operand. * config/stormy16/stormy16.c (xstormy16_expand_prologue): added a check for local vbl size overflow. * config/stormy16/stormy16.c (xs_hi_nonmemory_operand): added predicate to detect and error-out on out-of-range const_ints for addhi and subhi. * config/stormy16/stormy16.md (addhi3, addchi4, addchi5, subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand. * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): add a term to accept PRE_MODIFY addresses. * config/stormy16/stormy16.c (xstormy16_expand_move): add code to expand PRE_MODIFY addresses to an add followed by a move. From-SVN: r63898
2003-03-06tree-inline.c (inlinable_function_p): Revert earlier change pending ↵Jason Merrill2-5/+8
investigation. * tree-inline.c (inlinable_function_p): Revert earlier change pending investigation. From-SVN: r63897
2003-03-06* gcc.dg/i386-local.c: Fix typo.Jan Hubicka2-1/+2
From-SVN: r63893
2003-03-06* config/h8300/h8300.md (a new peephole2): New.Kazu Hirata2-0/+23
From-SVN: r63892
2003-03-06re PR c++/9188 ([New parser] Strange wording of error message)Kriang Lerdsuwanakij2-2/+9
PR c++/9188 * parser.c (cp_parser_type_parameter): Remove redundant `expect' in error message. (cp_parser_single_declaration): Likewise. From-SVN: r63891
2003-03-06* cgraph.c (cgraph_node): Do not confuse nested functions and methods.Jan Hubicka2-1/+5
From-SVN: r63889
2003-03-06dwarf2out.c (size_of_die): Compute size of external reference to die correctly.Zdenek Dvorak2-1/+9
* dwarf2out.c (size_of_die): Compute size of external reference to die correctly. From-SVN: r63888
2003-03-06mmix.md ("*movcc_expanded"): New pattern.Hans-Peter Nilsson2-1/+54
* config/mmix/mmix.md ("*movcc_expanded"): New pattern. ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New expanders. From-SVN: r63887
2003-03-06* expr.h (lang_expand_expr): Delete obsolete prototype.Roger Sayle2-8/+4
From-SVN: r63886
2003-03-06* emit-rtl.c (gen_highpart_mode): Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r63885
2003-03-06h8300.md (a peephole2): Generalize to accept a memory operand.Kazu Hirata2-6/+10
* config/h8300/h8300.md (a peephole2): Generalize to accept a memory operand. From-SVN: r63883
2003-03-05alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.Olivier Hainque4-7/+34
* config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'. * config/alpha/alpha.c (print_operand, case '+'): New. * config/alpha/alpha.md (call_osf_1_noreturn): Document and use. (call_value_osf_1_noreturn): Likewise. From-SVN: r63882
2003-03-06Daily bump.GCC Administrator1-1/+1
From-SVN: r63881
2003-03-05stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.Richard Kenner2-8/+16
* stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN. (expand_end_bindings): Likewise. From-SVN: r63874
2003-03-05re PR c++/9440 (error message about "non-lvalue in unary '&'" when using ?: ↵Jason Merrill2-7/+9
operator) PR c++/9440 * call.c (build_conditional_expr): Use convert rather than an explicit NOP_EXPR. From-SVN: r63872
2003-03-05pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.John David Anglin2-1/+10
* pa.md (return_external_pic): Add !TARGET_PA_20 to constraint. (epilogue): Don't generate return_external_pic when emitting PA 2.0 code. From-SVN: r63871
2003-03-05tm.texi: Document TARGET_DWARF_REGISTER_SPAN.Aldy Hernandez8-5/+149
2003-03-05 Aldy Hernandez <aldyh@redhat.com> * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN. * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New. * hooks.c (hook_rtx_rtx_null): New. * hooks.h (hook_rtx_rtx_null): Protoize. * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro. (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN. * target.h (struct gcc_target): Add dwarf_register_span. * dwarf2out.c (multiple_reg_loc_descriptor): New. (one_reg_loc_descriptor): New. (reg_loc_descriptor): Add support for values that span more than one register. From-SVN: r63870
2003-03-05Makefile.in (calls.o, [...]): Depend on cgraph.hJan Hubicka10-5/+104
* Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h * alias.c: Include cgraph.h (mark_constant_function): Use cgraph_rtl_info. * calls.c: Include cgraph.h (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const calls. (expand_call): Use cgraph_rtl_info to set preferred stack boundary. * cgraph.c (cgraph_rtl_info): New function. * cgraph.h (cgraph_rtl_info): Declare (cgraph_rtl_info): Likewise. * function.h (struct function): Add recursive_call_emit. * toplev.c: Include cgraph.h. (rest_of_compilation): Set preferred_incoming_stack_boundary. * gcc.dg/i386-local2.c: New. From-SVN: r63868
2003-03-05h8300.c (output_simode_bld): Clear the destination first if possible.Kazu Hirata3-13/+31
* config/h8300/h8300.c (output_simode_bld): Clear the destination first if possible. * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an alternative. (extzv_1_r_inv_h8300hs): Likewise. From-SVN: r63867
2003-03-05decl.c (cp_binding_level): Add static_decls varray member.Matt Austern2-14/+33
* decl.c (cp_binding_level): Add static_decls varray member. (add_decl_to_level): Add static/inline namespace scope declarations to static_decls array. (wrapup_global_for_namespace): Pass static_decls only, instead of all decls, to wrapup_global_declarations/check_global_declarations. (push_namespace): Initialize static_decls for ordinary namespaces. (cxx_init_decl_processing): Initialize static_decls for global namespace. From-SVN: r63866
2003-03-05basic-block.h (EDGE_IRREDUCIBLE_LOOP, [...]): New.Zdenek Dvorak10-136/+426
* basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New. * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump. * cfgloop.c (flow_loop_free): Made global. (establish_preds): New static function. (flow_loop_tree_node_add): Handle subloops of added loop correctly. (get_loop_exit_edges): New. (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags. * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare. * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible loops. * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for removability of an edge. (fix_irreducible_loops): New static function. (find_path, remove_path): Add ability to remove enclosing loops. (unloop): New. (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP flags. * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag. * loop-unroll.c (peel_loops_completely): Do not duplicate loop if not neccessary. (decide_peel_completely, peel_loops_completely): Allow complete peeling of non-duplicable once rolling loops. * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags. From-SVN: r63864
2003-03-05sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value for ↵J"orn Rennecke2-4/+13
align_jumps is 4. * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value for align_jumps is 4. (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL, use GENERAL_REGS. From-SVN: r63863
2003-03-05m68hc11.h (PAD_VARARGS_DOWN): Define and return according to va_arg type.Stephane Carrez4-51/+12
* config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return according to va_arg type. (EXPAND_BUILTIN_VA_ARG): Remove. * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove. * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove. From-SVN: r63859
2003-03-05* g++.dg/abi/layout3.C: New test.Mark Mitchell2-0/+30
From-SVN: r63856
2003-03-05rs6000.c (rs6000_variable_issue): Remove unnecessary else clauses.David Edelsohn2-4/+7
* config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary else clauses. From-SVN: r63850
2003-03-05raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid warning, and ↵Geert Bosch2-7/+20
fix return type for the IN_RTS && !SJLJ case. ada/9961 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid warning, and fix return type for the IN_RTS && !SJLJ case. From-SVN: r63842
2003-03-05i386.c (ix86_save_reg): Also test current_function_uses_const_pool.Michael Matz2-1/+7
* i386/i386.c (ix86_save_reg): Also test current_function_uses_const_pool. From-SVN: r63840
2003-03-05unwind.h: Add the GPL exception.Michael Matz3-0/+13
* unwind.h: Add the GPL exception. * Makefile.in (USER_H): Add unwind.h. From-SVN: r63839
2003-03-05re PR c/9799 (mismatching structure initializer with nested flexible array ↵Eric Botcazou4-0/+28
member, segfaults) PR c/9799 * c-typeck.c (push_init_level): Add sanity check. From-SVN: r63831
2003-03-05* class.c (end_of_class): Correct thinko.Mark Mitchell2-1/+5
From-SVN: r63829
2003-03-05* treetree.c (init_c_lex): Follow change to c-common.h.Andreas Jaeger2-127/+131
From-SVN: r63828
2003-03-05* config-lang.in: Replace ${libstdcxx_version} by its value.Nathanael Nerode2-1/+5
From-SVN: r63827
2003-03-05i386-local.c: New.Jan Hubicka11-31/+200
* gcc.dg/i386-local.c: New. * toplev.c (rest_of_compilation): Deffer RTL compilation only when RTL inlining is done. * cgraphunit.c (cgraph_mark_local_functions): New local function. (cgraph_optimize): Mark local functions. * i386-protos.h (init_cumulative_args): Update prototype. * i386.c (init_cumulative_args): Use register passing convention for local functions. * cgraph.c (cgraph_global_info_ready): New global variable (cgraph_local_info, cgraph_global_info): New functions. * cgraph.h (struct cgraph_local_info, cgraph_global_info): New structures. (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready): Declare. * cgraphunit.c (cgraph_finalize_function): Set inline_many. (cgraph_mark_functions_to_output): Use inline_many. (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally. (cgraph_expand_functions): Expand inline functions last. (cgraph_optimize): Do not emit uneeded functions. From-SVN: r63822
2003-03-05Daily bump.GCC Administrator1-1/+1
From-SVN: r63821
2003-03-05* expr.c (convert_modes): Check for legal hard register.Steve Ellcey2-0/+6
From-SVN: r63813
2003-03-04cp-tree.h (cxx_saved_binding): Declare.Gabriel Dos Reis3-23/+56
* cp-tree.h (cxx_saved_binding): Declare. (struct saved_scope): Adjust type of field 'old_binding'. * decl.c (cxx_saved_binding_make): New macro. (struct cxx_saved_binding): Define. (store_bindings): Adjust prototype. Use cxx_saved_binding to save C++ bindings. (maybe_push_to_top_level): Adjust local variable type. (pop_from_top_level): Likewise. From-SVN: r63810
2003-03-04sourcebuild.texi (Front End Directory): Document tags.Tom Tromey6-9/+30
* doc/sourcebuild.texi (Front End Directory): Document tags. * configure: Rebuilt. * configure.in (target_list): Added tags. * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory TAGS files by reference. * objc/Make-lang.in (objc.tags): New target. From-SVN: r63808
2003-03-04* Make-lang.in (treelang.tags): New target.Tom Tromey2-0/+7
From-SVN: r63807