aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2001-02-24flow.c (find_sub_basic_blocks): New function.Jan Hubicka2-5/+130
* flow.c (find_sub_basic_blocks): New function. (split_block): Be ready for basic block introduced by CODE_LABEL. (commit_one_edge_insertion): Call find_sub_basic_block. * flow.c (make_edges): Add edge from entry for blocks starting with label having ALTERNATE_NAME From-SVN: r40021
2001-02-24function.c (epilogue_done): Be ready for first basic block not containing ↵Jan Hubicka2-2/+18
PROLOGUE_END note. * function.c (epilogue_done): Be ready for first basic block not containing PROLOGUE_END note. (reposition_prologue_and_epilogue_notes): Avoid placing PROLOGUE_END note between BASIC_BLOCK. From-SVN: r40020
2001-02-24* loop.c (canonicalize_condition): Move to reversed_comparison_code.Jan Hubicka2-23/+17
From-SVN: r40019
2001-02-23i960.h (FRAME_POINTER_REQUIRED): Revert removal of check for ↵DJ Delorie2-1/+11
current_function_has_nonlocal_goto from 1999-11-12. * config/i960/i960.h (FRAME_POINTER_REQUIRED): Revert removal of check for current_function_has_nonlocal_goto from 1999-11-12. From-SVN: r40018
2001-02-23diagnostic.c (trim_filename): No longer static.Richard Kenner5-29/+39
* diagnostic.c (trim_filename): No longer static. * toplev.h (trim_filename): Declare. * rtl.c (rtl_check_failed_bounds): Call internal_error. (rtl_check_failed_type1, rtl_check_failed_type2): Likewise. (rtl_check_failed_code1, rtl_check_failed_code2): Likewise. (rtvec_check_failed_bounds): Likewise. * tree.c (tree_check_failed, tree_class_check_failed): Likewise. From-SVN: r40016
2001-02-23convert.c (convert_to_integer): Don't do unsigned unless result or both ↵Richard Kenner2-3/+6
inputs are unsigned. * convert.c (convert_to_integer): Don't do unsigned unless result or both inputs are unsigned. From-SVN: r40014
2001-02-23fold-const.c (fold_convert): Don't call size_int_type_wide if input overflows.Richard Kenner2-0/+4
* fold-const.c (fold_convert): Don't call size_int_type_wide if input overflows. From-SVN: r40012
2001-02-23c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.Richard Kenner8-0/+29
* c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK. * ch/decl.c, f/com.c, java/decl.c: Likewise. From-SVN: r40010
2001-02-23* varasm.c (output_constant): Recompute CODE after lang-specific fn.Richard Kenner2-1/+8
From-SVN: r40008
2001-02-23Makefile.in (resource.o): Add params.h dependence.Jeffrey Oldham5-12/+51
2001-02-23 Jeffrey Oldham <oldham@codesourcery.com> * Makefile.in (resource.o): Add params.h dependence. * params.def (MAX_DELAY_SLOT_LIVE_SEARCH): New parameter. * params.h (MAX_DELAY_SLOT_LIVE_SEARCH): Likewise. * resource.c: Add dependence on params.h. (current_live_regs): Fix explanatory comment. (find_basic_block): Add new parameter to permit limiting search for a BARRIER. (mark_target_live_regs): Add new argument to find_basic_block call. (incr_ticks_for_insn): Likewise. From-SVN: r40001
2001-02-23diagnostic.c (output_to_stream): Rename to output_buffer_to_stream.Gabriel Dos Reis3-12/+29
* diagnostic.c (output_to_stream): Rename to output_buffer_to_stream. Loses the stream parameter. (init_output_buffer): Set diagnosic_buffer's stream. (flush_diagnostic_buffer): Adjust. (default_print_error_function): Likewise. (finish_diagnostic): Likewise. (verbatim): Likewise. * diagnostic.h (struct output_buffer): Add `stream' field. (output_buffer_attached_stream): New macro. From-SVN: r39999
2001-02-23fold-const.c (extract_muldiv): If not MULT_EXPR, check if either operand is ↵Jakub Jelinek4-4/+49
divisible by C. * fold-const.c (extract_muldiv) [case PLUS_EXPR]: If not MULT_EXPR, check if either operand is divisible by C. (multiple_of_p): Handle LSHIFT_EXPR with small constant shift. If type is signed, consider negative numbers as well. * gcc.c-torture/execute/20010222-1.c: New test. From-SVN: r39996
2001-02-23Daily bump.GCC Administrator2-2/+2
From-SVN: r39992
2001-02-23* spew.c (yylex): Correct handling of friends.Mark Mitchell3-3/+23
From-SVN: r39990
2001-02-22crtbegin.asm (.fini): Use pc-relative relocs to reach .text instead of ↵Richard Henderson3-14/+21
gp-relative relocs. * config/ia64/crtbegin.asm (.fini): Use pc-relative relocs to reach .text instead of gp-relative relocs. * config/ia64/crtend.asm (.init): Likewise. From-SVN: r39986
2001-02-22mangle.c (write_encoding): Pass write_function_type the FUNCTION_DECL for ↵Mark Mitchell2-22/+52
the function being encoded. * mangle.c (write_encoding): Pass write_function_type the FUNCTION_DECL for the function being encoded. (write_function_type): Pass it along to write_bare_function_type. (write_bare_function_type): Pass it along to write_method_parms. (write_method_parms): Don't mangle the compiler-generated parameters to a constructor or destructor. From-SVN: r39985
2001-02-22* extend.texi (C++ Attributes): Fix typo.Andreas Jaeger2-33/+37
From-SVN: r39982
2001-02-22optimize.c: Include toplev.h for note_deferral_of_defined_inline_function ↵Andreas Jaeger2-48/+54
prototype. * optimize.c: Include toplev.h for note_deferral_of_defined_inline_function prototype. From-SVN: r39981
2001-02-22cp-tree.h (struct lang_decl_inlined_fns): New.Jakub Jelinek6-4/+151
* cp-tree.h (struct lang_decl_inlined_fns): New. (struct lang_decls): Add inlined_fns. (DECL_INLINED_FNS): New macro. * optimize.c (struct inline_data): Add inlined_fns. (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro. (inlinable_function_p): Likewise, fix typo in comment, function is not inlinable if it already inlined function currently being optimized. (expand_call_inline): Add fn to inlined_fns if neccessary. (optimize_function): Initialize inlined_fns. Save inlined_fns into DECL_INLINED_FNS after expanding inlines. * decl.c (mark_inlined_fns): New function. (lang_mark_tree): Call it. * g++.old-deja/g++.other/inline20.C: New test. From-SVN: r39977
2001-02-22Daily bump.GCC Administrator2-2/+2
From-SVN: r39975
2001-02-21Refine syscall_linkage attribute semantics to fix security hole.David Mosberger2-3/+16
* config/ia64/ia64.c (ia64_epilogue_uses): For syscall_linkage functions, drop current_function_args_info.words test. (ia64_compute_frame_size): Mark syscall_linkage functions as using eight input registers. From-SVN: r39965
2001-02-21Added.Ovidiu Predescu1-0/+12
From-SVN: r39964
2001-02-21nested-1.m: Added (contributed by Nicola Pero).Ovidiu Predescu1-0/+4
Wed Feb 21 12:38:22 2001 Ovidiu Predescu <ovidiu@cup.hp.com> * objc/execute/nested-1.m: Added (contributed by Nicola Pero). From-SVN: r39963
2001-02-21fix freebsd version check of GCCLoren J. Rittle4-141/+147
Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r39961
2001-02-21gcc.c: Add comment explaining how to add a command-line option.Jeffrey D. Oldham2-1/+46
2001-02-21 Jeffrey D. Oldham <oldham@codesourcery.com> * gcc.c: Add comment explaining how to add a command-line option. Add title to specs language comment. From-SVN: r39960
2001-02-21gcc.c (cc1_options): Add "-param".Jeffrey Oldham3-6/+17
2001-02-21 Jeffrey Oldham <oldham@codesourcery.com> * gcc.c (cc1_options): Add "-param". (DEFAULT_WORD_SWITCH_TAKES_ARG): Likewise. (option_map): Likewise. * toplev.c (display_help): Add entry for "--param". (independent_decode_option): Fix typographical error. From-SVN: r39958
2001-02-21i386.c (function_arg_advance): Pass SSE arguments in registers.Catherine Moore2-8/+31
* i386.c (function_arg_advance): Pass SSE arguments in registers. (function_arg): Likewise. Co-Authored-By: Bernd Schmidt <bernds@redhat.com> Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r39955
2001-02-21fixed typo in last commit re REVERSE_CONDEXEC_PREDICATES_PAldy Hernandez1-1/+2
From-SVN: r39954
2001-02-21* i386.md (mmx_lshrdi3, mmx_ashldi3): Guard by unspec.Jan Hubicka2-4/+10
From-SVN: r39952
2001-02-21h8300.md (iorsi3): Do not output an extra newline character.Kazu Hirata2-2/+8
2001-02-21 Kazu Hirata <kazu@hxi.com> * config/h8300/h8300.md (iorsi3): Do not output an extra newline character. (xorsi3): Likewise. From-SVN: r39950
2001-02-21flow.c (init_propagate_block_info): Canon address and use single_set for ↵Jan Hubicka2-9/+15
killing dead memory stores. * flow.c (init_propagate_block_info): Canon address and use single_set for killing dead memory stores. From-SVN: r39949
2001-02-21Makefile.in (reorg.o): Add params.h dependence.Jeffrey Oldham5-82/+100
2001-02-21 Jeffrey Oldham <oldham@codesourcery.com> * Makefile.in (reorg.o): Add params.h dependence. * params.def: Fix typographical error in comment. (MAX_DELAY_SLOT_INSN_SEARCH): New parameter. * params.h: Modify introductory comment. (MAX_DELAY_SLOT_INSN_SEARCH): New parameter. * reorg.c: Add dependence on params.h. (redundant_insn): Add parameterized throttle for search. (fill_simple_delay_slots): Add a comment explaining a variable. Move conditional out of loop, simplifying code. (fill_eager_delay_slots): Fix typographical error in comment. From-SVN: r39948
2001-02-21new macro REVERSE_CONDEXEC_PREDICATES_PAldy Hernandez3-1/+25
From-SVN: r39947
2001-02-21tree.h (DECL_UNINLINABLE): Move from C++ frontend.Jason Merrill14-73/+151
* tree.h (DECL_UNINLINABLE): Move from C++ frontend. (struct tree_decl): Add uninlinable bitfield. * c-decl.c (duplicate_decls): Set it. * integrate.c (function_cannot_inline_p): Check it. * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag. (DECL_UNINLINABLE): Move to middle-end. * dwarf2out.c (add_name_and_src_coords_attributes): Don't add DW_AT_MIPS_linkage_name to abstract methods. (dwarf2out_abstract_function): Emit class context before calling set_decl_abstract_flags. Don't clear DECL_ABSTRACT. (gen_subprogram_die): Remove obsolete code. (gen_member_die): Don't include clones in the member list. (gen_decl_die): Emit abstract info for clone origin. * dwarfout.c (output_type): Don't include clones in the member list. * dbxout.c (dbxout_type_methods): Ignore abstract methods. * toplev.c (note_deferral_of_defined_inline_function): Don't clear DECL_ABSTRACT on a function that already has it set. * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn. * decl.c (duplicate_decls): Preserve DECL_ABSTRACT. * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone. * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the parms and outer BLOCK. note_deferral_of_defined_inline_function. * dwarf2out.c (gen_formal_types_die): Also accept a FUNCTION_DECL. (get_subprogram_die): Pass it in. * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on second parm of op=. From-SVN: r39945
2001-02-21flow.c (mark_set_1): Make not_dead unsigned long.Richard Earnshaw2-6/+13
* flow.c (mark_set_1): Make not_dead unsigned long. For non-pseudos, use it as a bitmask of the hard regs that don't die. From-SVN: r39943
2001-02-21New test.Gabriel Dos Reis2-0/+17
From-SVN: r39942
2001-02-21Daily bump.GCC Administrator2-2/+2
From-SVN: r39939
2001-02-21cppfiles.c: Update comments.Neil Booth5-49/+48
* cppfiles.c: Update comments. (_cpp_read_file): Don't check for NULL filenames any more. * cppinit.c (cpp_start_read): Don't do canonicalization of in_fname and out_fname. Use the passed file name exclusively. (_cpp_handle_options): Don't treat "-" as a command line option, but as a normal filename. (_cpp_post_options): Canonicalize in_fname and out_fname. * cppmain.c (printer_init): Don't check out_fname for NULL. * c-lex.c (orig_filename): Rename cpp_filename for clarity. (init_c_lex): Update, and use "" to represent stdin to CPP. (yyparse): Update. From-SVN: r39938
2001-02-20quadlib.c (_U_Qfcnvfxt_quad_to_usgl): New function.Will Cohen3-1/+18
* config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_usgl): New function. * config/pa/long_double.h (FIXUNS_TRUNCTFSI2_LIBCALL): Added. (INIT_TARGET_OPTABS): Use FIXUNS_TRUNCTFSI2_LIBCALL for fixunstfsi_libfunc. From-SVN: r39937
2001-02-21rs6000.c (output_cbranch): Output branches on separate lines instead of ↵Stan Shebs2-1/+6
using ';' to separate. * config/rs6000/rs6000.c (output_cbranch): Output branches on separate lines instead of using ';' to separate. From-SVN: r39935
2001-02-20cppinit.c (set_lang): Move builtin handling to...Neil Booth2-14/+24
* cppinit.c (set_lang): Move builtin handling to... (init_builtins): ...here. (_cpp_create_reader): Move call to set_lang. From-SVN: r39934
2001-02-20parse.y (check_inner_class_access): Moved declaration of local ↵Alexandre Petit-Bianco2-1/+7
`enclosing_decl_type' to the right location. 2001-02-20 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (check_inner_class_access): Moved declaration of local `enclosing_decl_type' to the right location. (http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01258.html) From-SVN: r39933
2001-02-20stmt.c (expand_return): If an attempt is made to return the error_mar_node...Mark Mitchell4-3/+30
* stmt.c (expand_return): If an attempt is made to return the error_mar_node, treat the return like a return without a value. From-SVN: r39924
2001-02-20Fix spelling errorRichard Kenner1-1/+1
From-SVN: r39921
2001-02-20Daily bump.GCC Administrator2-2/+2
From-SVN: r39920
2001-02-20sibcall.c (skip_copy_to_return_value): Call identify_call_return_value here, ↵Zack Weinberg10-51/+280
and return orig_insn if it returns zero. * sibcall.c (skip_copy_to_return_value): Call identify_call_return_value here, and return orig_insn if it returns zero. Hardret and softret arguments now unnecessary. (call_ends_block_p): Don't call identify_call_return_value here. * ggc-common.c (ggc_mark_rtx_children): No need to mark 'S' or 's' slots in RTXen. * ggc-page.c, ggc-simple.c (ggc_mark_if_gcable): Delete function. * ggc.h (ggc_mark_if_gcable): Delete prototype. testsuite: * g77.dg: New directory. * g77.dg/20010216-1.f: New test case. * g77.dg/dg.exp: New driver. * lib/g77-dg.exp: New driver library. From-SVN: r39916
2001-02-19pa.c (move_operand): Accept code to load the address of a symbol out of the ↵Jeffrey A Law4-52/+48
DLT as a valid move operand. * pa.c (move_operand): Accept code to load the address of a symbol out of the DLT as a valid move operand. (print_operand, case 'A'): New to handle generating a DLT reference for a LO_SUM expression. * pa.h (EXTRA_CONSTRAINT): Handle 'A' for DLT LO_SUM references. * pa.md (movsi, movdi patterns): Allow DLT LO_SUM references. From-SVN: r39914
2001-02-19Forgot this file on last check-in.Bryce McKinlay1-5/+0
From-SVN: r39910
2001-02-19parse.y (parser_check_super_interface): Don't call check_pkg_class_access ↵Bryce McKinlay2-41/+146
for an inner interface. * parse.y (parser_check_super_interface): Don't call check_pkg_class_access for an inner interface. (parser_check_super): Don't call check_pkg_class_access for inner class. (do_resolve_class): Simplify enclosing type loop. Don't call check_pkg_class_access if CL and DECL are not set. (find_in_imports_on_demand): Set DECL if class_type needed to be loaded. Don't call check_pkg_class_access for an inner class. (check_inner_class_access): Rewritten to implement member access rules as per spec 6.6.1. (check_pkg_class_access): Handle the empty package correctly. (in_same_package): New function. Determine if two classes are in the same package. From-SVN: r39909
2001-02-19decl2.c (set_decl_namespace): Allow explicit instantiations in any namespace.Mark Mitchell3-0/+13
* decl2.c (set_decl_namespace): Allow explicit instantiations in any namespace. From-SVN: r39907