aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
1999-01-30cccp.c (main): Only call setlocale (LC_MESSAGES, ...) if LC_MESSAGES is defined.Jeffrey A Law8-0/+23
* cccp.c (main): Only call setlocale (LC_MESSAGES, ...) if LC_MESSAGES is defined. * collect2.c (main): Likewise. * cppmain.c (main): Likewise. * gcc.c (main): Likewise. * gcov.c (main): Likewise. * protoize.c (main): Likewise. * toplev.c (main): Likewise. From-SVN: r24923
1999-01-30pa.md (parallel shift and shiftadd): Mark output of shift as an earlyclobber.Jeffrey A Law2-24/+30
* pa.md (parallel shift and shiftadd): Mark output of shift as an earlyclobber. Fixes -O1 bootstrap problem. From-SVN: r24922
1999-01-30* gcc.dg/990130-1.c: New test.Jeffrey A Law2-0/+28
From-SVN: r24917
1999-01-30loop.c: Disable recent loop changes.Jeffrey A Law2-1/+10
* loop.c: Disable recent loop changes. Temporary as Joern continues to fix problems. From-SVN: r24916
1999-01-29Daily bump.Jeff Law1-1/+1
From-SVN: r24911
1999-01-29* loop.c (strength_reduce): Size reg_map according to reg_iv_type.J"orn Rennecke2-5/+13
From-SVN: r24910
1999-01-29* check-init.c (check_init): Fix CLEANUP_POINT_EXPR typo.Richard Henderson2-1/+5
From-SVN: r24909
1999-01-29emit-rtl.c (remove_insn): New function.Dave Brolley4-12/+68
Fri Jan 29 18:26:07 1999 Dave Brolley <brolley@cygnus.com> * emit-rtl.c (remove_insn): New function. * rtl.h (remove_insn): Add prototype. * function.c (reposition_prologue_and_epilogue_notes): Call remove_insn. From-SVN: r24908
1999-01-29parse.h (BUILD_APPEND): If ARG is a non-String object reference...Tom Tromey3-7/+19
* parse.h (BUILD_APPEND): If ARG is a non-String object reference, then cast it to Object before calling `append' method. From-SVN: r24907
1999-01-29* loop.c (recombine_givs): Don't try to derive givs that have combined.J"orn Rennecke2-7/+8
From-SVN: r24906
1999-01-29toplev.c (notice, fnotice): Check ANSI_PROTOTYPES...Kaveh R. Ghazi4-7/+16
* toplev.c (notice, fnotice): Check ANSI_PROTOTYPES, not __STDC__, when declaring arguments and calling va_arg() to initialize them. * collect2.c (notice): Likewise. * loop.c (find_life_end): Use PROTO() macro in the prototype. From-SVN: r24905
1999-01-29collect2.c (error): Fix typo in declaration.Kaveh R. Ghazi6-5/+18
* collect2.c (error): Fix typo in declaration. * cpperror.c (cpp_message): Likewise. * cpplib.c (cpp_warning): Likewise. * cpplib.h (cpp_notice): Use PVPROTO not VPROTO, also add ATTRIBUTE_PRINTF_1. * toplev.c (error): Fix typo in declaration. From-SVN: r24904
1999-01-29loop.c (strength_reduce): Fix HAVE_cc0 handling when scanning forward from ↵J"orn Rennecke2-3/+7
cont dominator. * loop.c (strength_reduce): Fix HAVE_cc0 handling when scanning forward from cont dominator. From-SVN: r24903
1999-01-29cccp.c (eprint_string): Constify a char*.Kaveh R. Ghazi2-64/+95
* cccp.c (eprint_string): Constify a char*. (notice): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. (vnotice): Constify a char*. (error): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. (verror): Constify a char*. (warning): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. (vwarning): Constify a char*. (error_with_line): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_2. (verror_with_line): Constify a char*. (vwarning_with_line): Likewise. (warning_with_line): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_2. (pedwarn): Constify a char*. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. (pedwarn_with_line): Likewise with ATTRIBUTE_PRINTF_2. (pedwarn_with_file_and_line): Likewise with ATTRIBUTE_PRINTF_4. Also correct typo in parameter name declaration. (make_assertion): Constify a char*. (quote_string_for_make): Likewise. (deps_output): Likewise. (fatal): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. Use ATTRIBUTE_NORETURN not an explicit "__attribute__ ((noreturn))". (fancy_abort): Likewise for ATTRIBUTE_NORETURN. (pfatal_with_name): Likewise. (pipe_closed): Likewise. (memory_full): Likewise. From-SVN: r24902
1999-01-28Daily bump.Jeff Law1-1/+1
From-SVN: r24901
1999-01-28check-init.c (check_bool2_init, [...]): Handle TRUTH_AND_EXPR, ↵Per Bothner2-2/+14
TRUTH_OR_EXPR, and TRUTH_XOR_EXPR. � * check-init.c (check_bool2_init, check_bool_init, check_init): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR. * jcf-write.c (generate_bytecode_insns): Likewise. From-SVN: r24900
1999-01-28check-init.c (check_bool2_init, [...]): Handle TRUTH_AND_EXPR, ↵Per Bothner1-0/+3
TRUTH_OR_EXPR, and TRUTH_XOR_EXPR. � * check-init.c (check_bool2_init, check_bool_init, check_init): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR. * jcf-write.c (generate_bytecode_insns): Likewise. From-SVN: r24899
1999-01-28loop.c (strength_reduce): Grow set_in_loop / n_times_set / may_not_optimize ↵J"orn Rennecke2-4/+30
to proper size when... * loop.c (strength_reduce): Grow set_in_loop / n_times_set / may_not_optimize to proper size when converting biv increments into givs. If necessary, reallocate reg_iv_type / reg_iv_info before calling recombine_givs. From-SVN: r24898
1999-01-28add new testMichael Meissner2-0/+54
From-SVN: r24897
1999-01-28Happy new year.Joern Rennecke2-2/+2
From-SVN: r24896
1999-01-28loop.c (recombine_givs): New parameter unroll_p.J"orn Rennecke2-5/+23
* loop.c (recombine_givs): New parameter unroll_p. If set, don't generate complex adds. Changed caller. Don't generate adds that cost more than the original one. (strength_reduce): Warning fixes. From-SVN: r24895
1999-01-28cp-tree.h (struct tree_binding): Replace scope field with a union.Jason Merrill3-3/+12
* cp-tree.h (struct tree_binding): Replace scope field with a union. (BINDING_SCOPE): Adjust. * decl.c (BINDING_LEVEL): Adjust. From-SVN: r24894
1999-01-28configure.in (hppa1.0-hp-hpux10*): Use t-pa.Jeffrey A Law3-92/+99
* configure.in (hppa1.0-hp-hpux10*): Use t-pa. * configure: Rebuilt. From-SVN: r24892
1999-01-27Daily bump.Jeff Law1-1/+1
From-SVN: r24891
1999-01-27Move `normal_memory_operand' from gcc2 merge into the operandRichard Henderson1-11/+11
predicates section of the file. From-SVN: r24890
1999-01-27rtl.h (insn_first_p): Declare.J"orn Rennecke7-94/+1040
* rtl.h (insn_first_p): Declare. * rtlanal.c (insn_first_p): New function. * loop.h (varray.h): Include. (struct induction): Change combined_with to unsigned. New members derived, ix and last_use. (reg_iv_type, reg_iv_info): Now varray_type. All references changed. (REG_IV_TYPE, REG_IV_INFO): Define. (first_increment_giv, last_increment_giv): Declare. * loop.c (loop_number_loop_cont): New static variable. (loop_number_cont_dominator): Likewise. (reg_iv_type, reg_iv_info): Now varray_type. (first_increment_giv, last_increment_giv): New variables. (compute_luids, verify_dominator, find_life_end): New functions. (cmp_recombine_givs_stats, recombine_givs): Likewise. (loop_optimize): Allocate loop_number_loop_cont and loop_number_cont_dominator. Use compute_luids. (find_and_verify_loops): Initialize loop_number_loop_cont and loop_number_cont_dominator. (strength_reduce): Try to find bivs that can be expressed as givs of another biv, and to convert biv increments into givs. Call recombine_givs. Handle derived givs. (record_biv): New argument location. All callers changed. (record_giv): Initialize derived and last_use fields. (basic_induction_var): New argument location. All callers changed. (combine_givs): Don't combine a DEST_REG giv with a DEST_ADDR giv. Increment combined_with instead of setting to 1. * unroll.c (derived_regs): New static variable. (unroll_loop): Initialize it. Allocate local_regno according to max_reg_num. (copy_loop_body): Cope with derived givs. (find_splittable_givs): Check for Givs made from biv increments. Set derived_regs for givs. * Makefile.in (stmt.o, loop.o, unroll.o): Depend on loop.h . From-SVN: r24889
1999-01-27Add new testMichael Meissner2-1/+21
From-SVN: r24888
1999-01-27function.c (purge_addressof_1): Handle case when a register has been used in ↵J"orn Rennecke2-1/+19
a wider mode. * function.c (purge_addressof_1): Handle case when a register has been used in a wider mode. From-SVN: r24887
1999-01-27Add new testMichael Meissner2-0/+35
From-SVN: r24886
1999-01-27cpplib.h (cpp_notice): Add prototype.Dave Brolley2-0/+5
Wed Jan 27 11:58:18 1999 Dave Brolley <brolley@cygnus.com> * cpplib.h (cpp_notice): Add prototype. From-SVN: r24884
1999-01-27Remove trigraph in commentZack Weinberg1-1/+1
From-SVN: r24881
1999-01-26Merge in gcc2 snapshot 19980929. See gcc/ChangeLog and gcc/FSFChangeLog forJeffrey A Law73-2258/+6011
details. From-SVN: r24879
1999-01-26rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX.Richard Henderson3-5/+8
* rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX. * rs6000.md (movsi, movdi): Likewise. From-SVN: r24877
1999-01-26Daily bump.Jeff Law1-1/+1
From-SVN: r24876
1999-01-26pt.c (instantiate_class_template): Set up the DECL_INITIAL of member constants.Jason Merrill3-1/+11
* pt.c (instantiate_class_template): Set up the DECL_INITIAL of member constants. g++.ns/template6.C * init.c (expand_member_init): Pull out TYPE_MAIN_VARIANT in a ctor initializer. g++.other/typedef6.C From-SVN: r24875
1999-01-26tweak formattingJason Merrill1-17/+19
From-SVN: r24874
1999-01-26add commentsJason Merrill1-1/+58
From-SVN: r24873
1999-01-26Fix i960 build failure with unrecognizable insn.Jim Wilson2-2/+14
* function.c (expand_function_end): Pass arg_pointer_save_area to validize_mem before using it. Emit code into a sequence. From-SVN: r24872
1999-01-26rs6000.md (doz + set cr and or + set cr patterns): Add missing '#' to split ↵David Edelsohn2-44/+51
patterns. * rs6000.md (doz + set cr and or + set cr patterns): Add missing '#' to split patterns. Correct indentation of some new patterns. From-SVN: r24871
1999-01-26cppfiles.c (safe_read): Deleted.Zack Weinberg4-133/+293
1999-01-26 12:11 -0500 Zack Weinberg <zack@midnite.ec.rhno.columbia.edu> * cppfiles.c (safe_read): Deleted. (read_and_prescan): New function, replaces safe_read, converts and/or warns about trigraphs, silently converts odd line terminators (\r, \n\r, \r\n). Warns about no newline at EOF. (finclude): Use read_and_prescan; turn off nonblocking mode on the input descriptor; remove file-size-examination and no-newline-at-EOF gunk which is longer necessary; be more careful about checking that we've been handed a legitimate file to read (only real files, pipes, and ttys are acceptable). * cpplib.h (cpp_options): Rename no_trigraphs flag to `trigraphs' and invert its sense. (trigraph_table): Declare. (cpp_warning_with_line): Prototype. * cpplib.c: Remove all references to trigraph_pcp. Define trigraph_table; initialize it in initialize_char_syntax. Open files in nonblocking mode. s/no_trigraphs/trigraphs/ throughout, and invert sense. Put cpp_warning_with_line back in and export it. From-SVN: r24870
1999-01-25tree.c (equal_functions): Fix name in prototype.Jason Merrill5-15/+26
* tree.c (equal_functions): Fix name in prototype. * decl.c (push_local_binding): Add FLAGS argument. (pushdecl, push_overloaded_decl): Pass it. * decl2.c (do_local_using_decl): Likewise. * cp-tree.h: Adjust prototype. * decl.c (poplevel): Fix logic. From-SVN: r24869
1999-01-26c4x.h (COUNTER_REGS): New register class.Michael Hayes3-9/+29
Tue Jan 26 23:21:49 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * config/c4x/c4x.h (COUNTER_REGS): New register class. * config/c4x/c4x.md (*rptb_init): Change constraints. (rptb_end): Emit alternate looping instructions if RC register not allocated for loop counter. (decrement_and_branch_on_count): Allow other registers for loop counter. From-SVN: r24868
1999-01-25decl.c (push_local_binding): Also wrap used decls in a TREE_LIST.Jason Merrill3-15/+34
* decl.c (push_local_binding): Also wrap used decls in a TREE_LIST. (poplevel): Handle that. Fix logic for removing TREE_LISTs. (cat_namespace_levels): Don't loop forever. Fixes 733Y14. * typeck.c (build_reinterpret_cast): Fix typo in duplicated test. From-SVN: r24867
1999-01-25Daily bump.Jeff Law1-1/+1
From-SVN: r24866
1999-01-25class.c (resolve_address_of_overloaded_function): Mark the chosen function used.Jason Merrill7-21/+41
* class.c (resolve_address_of_overloaded_function): Mark the chosen function used. * call.c (build_call): Make sure that a function coming in has been marked used already. * decl.c (expand_static_init): Call mark_used instead of assemble_external. * except.c (call_eh_info, do_pop_exception, expand_end_eh_spec, alloc_eh_object, expand_throw): Likewise. * init.c (build_builtin_delete_call): Likewise. * rtti.c (call_void_fn, get_tinfo_fn, build_dynamic_cast_1, expand_si_desc, expand_class_desc, expand_ptr_desc, expand_attr_desc, expand_generic_desc): Likewise. From-SVN: r24862
1999-01-25tree.c (equal_functions): New function.Martin v. Löwis2-2/+22
* tree.c (equal_functions): New function. (ovl_member): Call it. From-SVN: r24861
1999-01-25cppexp.c: (struct arglist): Removed.Zack Weinberg2-212/+229
1999-01-25 14:26 -0500 Zack Weinberg <zack@rabi.columbia.edu> * cppexp.c: (struct arglist): Removed. (parse_number): Use HOST_WIDE_INT for the accumulator. Allow two `l' suffixes unless C89. Clean up. Make static. (parse_charconst): New function broken out of cpp_lex. Code cleaned up drastically. Don't use a token_buffer. (token_buffer): Removed. (cpp_lex): Don't call parse_number on a constant string. Use parse_charconst. (cpp_parse_expr): Properly handle an ERROR op returned by cpp_lex. From-SVN: r24859
1999-01-25cpplib.c: Don't include signal.h, sys/times.h, or sys/resource.h.Zack Weinberg2-55/+46
1999-01-25 14:10 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu> * cpplib.c: Don't include signal.h, sys/times.h, or sys/resource.h. Don't declare localtime. (macroexpand): Handle special symbols here. (push_macro_expansion): Chop off the trailing '@ ' if possible here. (cpp_get_token): Don't do either of the above two things here. Move `string' label just after case '"' so that wide strings don't crash the preprocessor. From-SVN: r24858
1999-01-25except.c, [...] (expand_resume_after_catch): new function.Andrew Haley4-10/+18
Mon Jan 25 17:39:19 1999 Andrew Haley <aph@cygnus.com> * except.c, java-except.h (expand_resume_after_catch): new function. * expr.c (java_lang_expand_expr): call expand_resume_after_catch to branch back to main flow of control after a catch block. From-SVN: r24857
1999-01-25New test case.Martin v. Löwis1-0/+12
From-SVN: r24854