Mumit Khan [Sat, 30 Jan 1999 07:07:42 +0000 (07:07 +0000)]
config.guess: Add support for i386-pc-interix.
* config.guess: Add support for i386-pc-interix.
* config.sub: Likewise.
* configure.in: Likewise.
* config/mh-interix: New file.
From-SVN: r24913
Jeff Law [Sat, 30 Jan 1999 00:45:02 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24911
J"orn Rennecke [Fri, 29 Jan 1999 19:27:51 +0000 (19:27 +0000)]
* loop.c (strength_reduce): Size reg_map according to reg_iv_type.
From-SVN: r24910
Richard Henderson [Fri, 29 Jan 1999 16:48:14 +0000 (08:48 -0800)]
* check-init.c (check_init): Fix CLEANUP_POINT_EXPR typo.
From-SVN: r24909
Dave Brolley [Fri, 29 Jan 1999 15:25:17 +0000 (15:25 +0000)]
emit-rtl.c (remove_insn): New function.
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
Tom Tromey [Fri, 29 Jan 1999 15:16:12 +0000 (15:16 +0000)]
parse.h (BUILD_APPEND): If ARG is a non-String object reference...
* parse.h (BUILD_APPEND): If ARG is a non-String object reference,
then cast it to Object before calling `append' method.
From-SVN: r24907
J"orn Rennecke [Fri, 29 Jan 1999 14:36:59 +0000 (14:36 +0000)]
* loop.c (recombine_givs): Don't try to derive givs that have combined.
From-SVN: r24906
Kaveh R. Ghazi [Fri, 29 Jan 1999 12:10:52 +0000 (12:10 +0000)]
toplev.c (notice, fnotice): Check ANSI_PROTOTYPES...
* 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
Kaveh R. Ghazi [Fri, 29 Jan 1999 11:41:02 +0000 (11:41 +0000)]
collect2.c (error): Fix typo in declaration.
* 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
J"orn Rennecke [Fri, 29 Jan 1999 07:46:16 +0000 (07:46 +0000)]
loop.c (strength_reduce): Fix HAVE_cc0 handling when scanning forward from cont dominator.
* loop.c (strength_reduce): Fix HAVE_cc0 handling when scanning
forward from cont dominator.
From-SVN: r24903
Kaveh R. Ghazi [Fri, 29 Jan 1999 04:18:00 +0000 (04:18 +0000)]
cccp.c (eprint_string): Constify a char*.
* 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
Jeff Law [Fri, 29 Jan 1999 00:45:03 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24901
Per Bothner [Thu, 28 Jan 1999 16:40:56 +0000 (16:40 +0000)]
check-init.c (check_bool2_init, [...]): Handle TRUTH_AND_EXPR, 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
Per Bothner [Thu, 28 Jan 1999 16:40:54 +0000 (08:40 -0800)]
check-init.c (check_bool2_init, [...]): Handle TRUTH_AND_EXPR, 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
J"orn Rennecke [Thu, 28 Jan 1999 16:19:58 +0000 (16:19 +0000)]
loop.c (strength_reduce): Grow set_in_loop / n_times_set / may_not_optimize 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
Michael Meissner [Thu, 28 Jan 1999 16:05:21 +0000 (16:05 +0000)]
add new test
From-SVN: r24897
Joern Rennecke [Thu, 28 Jan 1999 15:36:05 +0000 (15:36 +0000)]
Happy new year.
From-SVN: r24896
J"orn Rennecke [Thu, 28 Jan 1999 15:28:14 +0000 (15:28 +0000)]
loop.c (recombine_givs): New parameter unroll_p.
* 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
Jason Merrill [Thu, 28 Jan 1999 09:47:48 +0000 (09:47 +0000)]
cp-tree.h (struct tree_binding): Replace scope field with a union.
* cp-tree.h (struct tree_binding): Replace scope field with a union.
(BINDING_SCOPE): Adjust.
* decl.c (BINDING_LEVEL): Adjust.
From-SVN: r24894
Jeffrey A Law [Thu, 28 Jan 1999 08:46:11 +0000 (08:46 +0000)]
configure.in (hppa1.0-hp-hpux10*): Use t-pa.
* configure.in (hppa1.0-hp-hpux10*): Use t-pa.
* configure: Rebuilt.
From-SVN: r24892
Jeff Law [Thu, 28 Jan 1999 00:45:02 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24891
Richard Henderson [Wed, 27 Jan 1999 17:54:45 +0000 (09:54 -0800)]
Move `normal_memory_operand' from gcc2 merge into the operand
predicates section of the file.
From-SVN: r24890
J"orn Rennecke [Wed, 27 Jan 1999 15:45:50 +0000 (15:45 +0000)]
rtl.h (insn_first_p): Declare.
* 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
Michael Meissner [Wed, 27 Jan 1999 11:49:36 +0000 (11:49 +0000)]
Add new test
From-SVN: r24888
J"orn Rennecke [Wed, 27 Jan 1999 11:35:30 +0000 (11:35 +0000)]
function.c (purge_addressof_1): Handle case when a register has been used in a wider mode.
* function.c (purge_addressof_1): Handle case when a register
has been used in a wider mode.
From-SVN: r24887
Michael Meissner [Wed, 27 Jan 1999 10:02:24 +0000 (10:02 +0000)]
Add new test
From-SVN: r24886
Dave Brolley [Wed, 27 Jan 1999 09:04:57 +0000 (09:04 +0000)]
cpplib.h (cpp_notice): Add prototype.
Wed Jan 27 11:58:18 1999 Dave Brolley <brolley@cygnus.com>
* cpplib.h (cpp_notice): Add prototype.
From-SVN: r24884
Zack Weinberg [Wed, 27 Jan 1999 07:28:14 +0000 (07:28 +0000)]
Remove trigraph in comment
From-SVN: r24881
Jeffrey A Law [Wed, 27 Jan 1999 01:43:17 +0000 (01:43 +0000)]
Merge in gcc2 snapshot
19980929. See gcc/ChangeLog and gcc/FSFChangeLog for
details.
From-SVN: r24879
Richard Henderson [Wed, 27 Jan 1999 01:14:29 +0000 (17:14 -0800)]
rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX.
* rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX.
* rs6000.md (movsi, movdi): Likewise.
From-SVN: r24877
Jeff Law [Wed, 27 Jan 1999 00:45:03 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24876
Jason Merrill [Tue, 26 Jan 1999 20:23:36 +0000 (20:23 +0000)]
pt.c (instantiate_class_template): Set up the DECL_INITIAL of member constants.
* 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
Jason Merrill [Tue, 26 Jan 1999 19:34:46 +0000 (14:34 -0500)]
tweak formatting
From-SVN: r24874
Jason Merrill [Tue, 26 Jan 1999 19:34:06 +0000 (14:34 -0500)]
add comments
From-SVN: r24873
Jim Wilson [Tue, 26 Jan 1999 13:34:42 +0000 (13:34 +0000)]
Fix i960 build failure with unrecognizable insn.
* function.c (expand_function_end): Pass arg_pointer_save_area to
validize_mem before using it. Emit code into a sequence.
From-SVN: r24872
David Edelsohn [Tue, 26 Jan 1999 10:45:37 +0000 (05:45 -0500)]
rs6000.md (doz + set cr and or + set cr patterns): Add missing '#' to split 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
Zack Weinberg [Tue, 26 Jan 1999 09:12:47 +0000 (09:12 +0000)]
cppfiles.c (safe_read): Deleted.
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
Jason Merrill [Tue, 26 Jan 1999 02:33:46 +0000 (02:33 +0000)]
tree.c (equal_functions): Fix name in prototype.
* 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
Michael Hayes [Tue, 26 Jan 1999 02:33:29 +0000 (02:33 +0000)]
c4x.h (COUNTER_REGS): New register class.
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
Jason Merrill [Tue, 26 Jan 1999 00:50:29 +0000 (19:50 -0500)]
decl.c (push_local_binding): Also wrap used decls in a TREE_LIST.
* 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
Jeff Law [Tue, 26 Jan 1999 00:45:02 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24866
Jason Merrill [Mon, 25 Jan 1999 20:43:21 +0000 (20:43 +0000)]
class.c (resolve_address_of_overloaded_function): Mark the chosen function used.
* 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
Martin v. Löwis [Mon, 25 Jan 1999 16:09:05 +0000 (16:09 +0000)]
tree.c (equal_functions): New function.
* tree.c (equal_functions): New function.
(ovl_member): Call it.
From-SVN: r24861
Gerald Pfeifer [Mon, 25 Jan 1999 14:10:10 +0000 (15:10 +0100)]
egcs_update: Use "if" instead of "&&".
* egcs_update: Use "if" instead of "&&". Touch generated files
only after the corresponding *.y files.
From-SVN: r24860
Zack Weinberg [Mon, 25 Jan 1999 11:28:11 +0000 (11:28 +0000)]
cppexp.c: (struct arglist): Removed.
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
Zack Weinberg [Mon, 25 Jan 1999 11:23:01 +0000 (11:23 +0000)]
cpplib.c: Don't include signal.h, sys/times.h, or sys/resource.h.
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
Andrew Haley [Mon, 25 Jan 1999 10:32:18 +0000 (10:32 +0000)]
except.c, [...] (expand_resume_after_catch): new function.
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
Martin v. Löwis [Mon, 25 Jan 1999 00:48:11 +0000 (00:48 +0000)]
New test case.
From-SVN: r24854
Jeff Law [Mon, 25 Jan 1999 00:45:01 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24853
Michael Meissner [Sun, 24 Jan 1999 17:29:31 +0000 (17:29 +0000)]
Fixup changelog comment
From-SVN: r24852
David Edelsohn [Sun, 24 Jan 1999 17:20:07 +0000 (17:20 +0000)]
Fix problems found by David Edelsohn I caused
From-SVN: r24851
Jason Merrill [Sun, 24 Jan 1999 15:56:46 +0000 (15:56 +0000)]
* cvt.c (cp_convert_to_pointer): Fix conversion of 0 to pmf.
From-SVN: r24850
Martin v. Löwis [Sun, 24 Jan 1999 15:38:44 +0000 (15:38 +0000)]
decl.c (decls_match): Return 1 if old and new are identical.
1999-01-25 Martin von Loewis <loewis@informatik.hu-berlin.de>
* decl.c (decls_match): Return 1 if old and new are identical.
(push_overloaded_decl): Set OVL_USED when PUSH_USING.
From-SVN: r24849
Jeffrey A Law [Sun, 24 Jan 1999 07:24:00 +0000 (07:24 +0000)]
stmt.c (stmt_loop_nest_empty): New function.
* stmt.c (stmt_loop_nest_empty): New function.
* tree.h (stmt_loop_nest_empty): Declare it.
From-SVN: r24844
Jeffrey A Law [Sun, 24 Jan 1999 07:13:55 +0000 (07:13 +0000)]
rtl.def (CALL_PLACEHOLDER): New rtx code.
�
* rtl.def (CALL_PLACEHOLDER): New rtx code.
From-SVN: r24843
Michael Hayes [Sun, 24 Jan 1999 01:52:01 +0000 (01:52 +0000)]
Convert all direct memory references to use LO_SUM and remove machdep hack that used to do this.
Convert all direct memory references to use LO_SUM and remove machdep
hack that used to do this.
Sun Jan 24 21:24:43 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x/c4x.c (c4x_emit_move_sequence, c4x_encode_section_info):
New functions.
(c4x_check_legit_addr): Remove USE and PLUS, allow
LO_SUM, and disable SYMBOL_REF, LABEL_REF, and CONST cases.
(c4x_legitimize_address): Penalise SYMBOL_REF, LABEL_REF, and
CONST cases. Add LO_SUM.
(c4x_print_operand): Modified 'C' and 'R' cases for calls.
Added 'U' case. Remove dependence on SYMBOL_REF_FLAG.
(c4x_print_operand_address): Handle LO_SUM.
(c4x_scan_for_ldp): Delete. Hooray!
(c4x_process_after_reload): Remove call to c4x_scan_for_ldp.
Split all insns.
(c4x_immed_int_constant): Renamed from c4x_int_constant. All callers
changed.
(c4x_immed_float_constant): Renamed from c4x_float_constant. All
callers changed.
(c4x_T_constraint): Allow LO_SUM, disable SYMBOL_REF, LABEL_REF,
and CONST.
(c4x_U_constraint, symbolic_operand): New functions.
(src_operand): Allow 'I' constants in HImode. Allow LO_SUM,
disable SYMBOL_REF, LABEL_REF, and CONST.
(lsrc_operand, tsrc_operand): Call src_operand instead of
general_operand.
(c4x_operand_subword): Update comments.
* config/c4x/c4x.c (TARGET_LOAD_ADDRESS): New macro.
(LEGITIMATE_CONSTANT_P): Allow SYMBOL_REF, LABEL_REF, CONST,
plus HIGH and LO_SUM for the C40.
(ENCODE_SECTION_INFO): Define macro.
(symbolic_operand, c4x_U_constraint, c4x_emit_move_sequence): New
prototypes.
(PREDICATE_CODES): Add symbolic_operand.
* config/c4x/c4x.md (movqi, movgqf, movhi, movhi): Call
c4x_emit_move_sequence.
(floatunsqiqf2, fixuns_truncqfqi2): Rework emitted RTL
to avoid symbol references.
(all patterns with g constraint): Replace 'g' constraint with 'rIm'.
(set_high): Renamed from set_high_use.
(set_lo_sum): Renamed from set_ior_lo_use.
(all call patterns): Make MEM explicit in call address operands.
Modified output templates to use 'U' modifier.
From-SVN: r24842
Jeffrey A Law [Sun, 24 Jan 1999 01:15:09 +0000 (18:15 -0700)]
Bump for snapshot
From-SVN: r24840
Jason Merrill [Sun, 24 Jan 1999 00:59:21 +0000 (00:59 +0000)]
decl.c (start_function): Make member functions one_only on windows.
* decl.c (start_function): Make member functions one_only on windows.
* decl2.c (import_export_decl): Likewise.
* decl.c (grokdeclarator): Don't complain about implicit int in
a system header. Change same-name field check to not complain in
a system header instead of within extern "C".
From-SVN: r24839
Jeff Law [Sun, 24 Jan 1999 00:45:03 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24838
Kaveh Ghazi [Sat, 23 Jan 1999 21:49:56 +0000 (21:49 +0000)]
Update copyrights for the last patch
From-SVN: r24837
Kaveh Ghazi [Sat, 23 Jan 1999 21:24:02 +0000 (21:24 +0000)]
Update copyrights
From-SVN: r24836
Kaveh R. Ghazi [Sat, 23 Jan 1999 20:47:03 +0000 (20:47 +0000)]
Warning fixes:
* Makefile.in (parse.o): Depend on $(CONFIG_H) and
$(srcdir)/../system.h.
(class.o): Depend on $(PARSE_H) and $(srcdir)/../output.h.
(jcf-parse.o): Depend on $(srcdir)/../toplev.h.
(jcf-write.o): Likewise.
(jv-scan.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h.
(mangle.o): Depend on $(srcdir)/../toplev.h.
(parse-scan.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h.
(zextract.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h.
* class.c: Include output.h and parse.h.
(mangled_classname): Add the `const' keyword to a char*.
(find_named_method): Hide unused function definition.
(build_utf8_ref): Change type of variable `c' to unsigned char.
Use ISALPHA/ISDIGIT instead of isalpha/isdigit.
(build_class_ref): Add the `const' keyword to a char*.
(layout_class_method): Remove unused variable `buf'.
* decl.c (find_local_variable): Remove unused variable `rtl'.
(pushdecl): Likewise for variables `different_binding_level' and
`oldglobal'.
(pushlevel): Mark parameter `unused' with ATTRIBUTE_UNUSED.
(maybe_build_cleanup): Likewise for parameter `decl'.
* except.c (expand_start_java_handler): Mark parameter `range'
with ATTRIBUTE_UNUSED.
* expr.c: Include except.h.
(pop_type): Remove unused variable `i'.
(pop_value): Likewise for variables `n_words' and `i'.
(expand_java_arrayload): Likewise for variable `convert'.
(java_lang_expand_expr): Likewise for variables `op0', `type',
`mode', `unsignedp', `node' and `elements'.
(expand_byte_code): Likewise for variables `prev_eh_ranges' and
`eh_ranges'.
(process_jvm_instruction): Add a `const' qualifier to a char*.
* gjavah.c (output_directory): Add the `const' keyword to a char*.
(temp_directory): Likewise.
(print_c_decl): Likewise.
(print_method_info): Likewise.
(decode_signature_piece): Likewise.
(print_mangled_classname): Likewise.
* java-except.h: Provide prototypes for maybe_start_try,
maybe_end_try and add_handler.
* java-tree.h (mangled_classname): Add the `const' keyword to a char*.
(parse_error_context): Likewise. Also add ATTRIBUTE_PRINTF_2.
(pushdecl_top_level, alloc_class_constant, unicode_mangling_length,
init_expr_processing, push_super_field, init_class_processing,
can_widen_reference_to, class_depth, verify_jvm_instructions,
maybe_pushlevels, maybe_poplevels, process_jvm_instruction,
set_local_type, merge_type_state, push_type, load_type_state,
add_interface, find_in_current_zip, append_gpp_mangled_classtype,
emit_unicode_mangled_name): Add prototypes.
* jcf-dump.c (print_constant): Add the `const' keyword to a char*.
(print_signature_type): Use ISDIGIT, not isdigit.
(print_signature): Remove unused variable `j'.
* jcf-io.c (jcf_filbuf_from_stdio): Cast the result of `fread' to
int when comparing against one.
* jcf-parse.c: Include toplev.h.
* jcf-write.c: Likewise. Don't include <string.h> or <sys/stat.h>.
(localvar_free): Remove unused variable `i'.
(generate_bytecode_conditional): Likewise for variable `kind'.
* jv-scan.c: Include config.h and system.h. Remove redundant
OS header and gansidecl.h includes.
(warning): Add the `const' keyword to a char*. Also add
ATTRIBUTE_PRINTF_1 to the prototype. Check ANSI_PROTOTYPES, not
__STDC__, when determining whether to use ANSI-isms.
(fatal): Likewise. Also add ATTRIBUTE_UNUSED.
(xmalloc): Don't redundantly prototype here.
(main): Remove unused parameter `envp'. Also fix the arguments
passed to function `fatal' to match the format specifier.
* lang.c (java_tree_code_name): Add the `const' keyword to a char*.
* mangle.c: Include toplev.h.
(emit_unicode_mangled_name): Declare parameter `len'.
* parse.y (parse_warning_context): Add the `const' keyword to a
char*. Also add ATTRIBUTE_PRINTF_2 to the prototype. Check
`ANSI_PROTOTYPES' not `__STDC__' for whether to use ANSI-isms.
(issue_warning_error_from_context): Add the `const' keyword to
a char*.
(parse_error_context): Likewise. Also check `ANSI_PROTOTYPES'
not `__STDC__' for whether to use ANSI-isms.
* typeck.c (incomplete_type_error): Mark parameters `value' and
`type' with ATTRIBUTE_UNUSED.
(parse_signature_type): Use ISDIGIT, not isdigit.
* verify.c (check_pending_block): Add the `const' keyword to a char*.
(verify_jvm_instructions): Likewise. Remove unused variables
`field_name' and `default_val'.
* zextract.c: Include config.h and system.h. Remove redundant
OS header includes.
* zipfile.h: Prototype `read_zip_archive'.
From-SVN: r24835
Kaveh R. Ghazi [Sat, 23 Jan 1999 19:45:50 +0000 (19:45 +0000)]
final.c (bb_str): Qualify a char* with the keyword `const'.
* final.c (bb_str): Qualify a char* with the keyword `const'.
(add_bb_string, final_scan_insn, output_asm_insn): Likewise.
* fix-header.c (read_scan_file): Likewise.
* genoutput.c (output_epilogue, process_template): Likewise.
* local-alloc.c (requires_inout, block_alloc): Likewise.
* output.h (output_asm_insn, assemble_string): Likewise.
* recog.c (recog_constraints, check_asm_operands,
decode_asm_operands, extract_insn, preprocess_constraints,
constrain_operands): Likewise.
* recog.h (operand_alternative, recog_constraints, insn_template,
insn_outfun, insn_operand_constraint, insn_name): Likewise.
* regclass.c (record_reg_classes, scan_one_insn): Likewise.
* regmove.c (find_matches): Likewise.
* reload.c (alternative_allows_memconst): Likewise.
* reload1.c (constraint_accepts_reg_p,
reload_cse_simplify_operands): Likewise.
* rtl.h (decode_asm_operands): Likewise.
* scan.h (fn_decl): Likewise.
* varasm.c (assemble_string): Likewise.
From-SVN: r24834
Jeffrey A Law [Sat, 23 Jan 1999 12:07:37 +0000 (12:07 +0000)]
configure.in (gcc_tooldir): Handle case where exec_prefix has not been explicitly set.
* configure.in (gcc_tooldir): Handle case where exec_prefix has
not been explicitly set.
* configure: Rebuilt.
Check it in now that it's tested.
From-SVN: r24831
Jeffrey A Law [Sat, 23 Jan 1999 01:57:51 +0000 (01:57 +0000)]
fold-const.c (lshift_double): Mark 'prec' arguments as possibly unused.
* fold-const.c (lshift_double): Mark 'prec' arguments as possibly
unused.
From-SVN: r24830
Jeff Law [Sat, 23 Jan 1999 01:50:19 +0000 (18:50 -0700)]
Copyright update.
From-SVN: r24829
Jeffrey A Law [Sat, 23 Jan 1999 01:49:56 +0000 (01:49 +0000)]
bitmap.h (bitmap_head_def): Make indx field unsigned.
* bitmap.h (bitmap_head_def): Make indx field unsigned.
Fixes a couple minor warnings.
From-SVN: r24828
Jeff Law [Sat, 23 Jan 1999 00:45:03 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24825
Jeffrey A Law [Sat, 23 Jan 1999 00:43:38 +0000 (00:43 +0000)]
configure.in (gcc_tooldir): When not making a relative gcc_tooldir...
* configure.in (gcc_tooldir): When not making a relative gcc_tooldir,
use $exec_prefix/$target_alias for gcc_tooldir.
From-SVN: r24824
Richard Henderson [Fri, 22 Jan 1999 11:52:05 +0000 (03:52 -0800)]
cppp.c (xrealloc): Fix typo last change.
* cppp.c (xrealloc): Fix typo last change.
* cppalloc.c, gcc.c, genattr.c, genattrtab.c, gencodes.c: Likewise.
* genconfig.c, genemit.c, genextract.c, genflags.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
From-SVN: r24823
Zack Weinberg [Fri, 22 Jan 1999 10:33:38 +0000 (10:33 +0000)]
cpp-if1.c: New test - torture test of preprocessor's number conversion in #if directives.
* cpp-if1.c: New test - torture test of preprocessor's number conversion
in #if directives.
* cpp-if2.c: New test - torture test of preprocessor's character constant
conversion in #if directives.
Both these tests are entirely my own invention.
From-SVN: r24822
Michael Meissner [Fri, 22 Jan 1999 09:30:07 +0000 (09:30 +0000)]
Use alternate crs if cr0 not available
From-SVN: r24821
Jeffrey A Law [Fri, 22 Jan 1999 07:17:21 +0000 (07:17 +0000)]
Makefile.in (gcc_tooldir): Move before first reference.
* Makefile.in (gcc_tooldir): Move before first reference.
Let autoconf substitute in a value.
* configure.in (gcc_tooldir): Only use a relative path to the
tool directory if $exec_prefix == $prefix.
* configure: Rebuilt.
From-SVN: r24820
Jeffrey A Law [Fri, 22 Jan 1999 06:46:43 +0000 (06:46 +0000)]
* Makefile.in (tooldir): Replace with gcc_tooldir.
From-SVN: r24819
Jeff Law [Fri, 22 Jan 1999 00:45:02 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24818
Richard Henderson [Thu, 21 Jan 1999 22:52:33 +0000 (14:52 -0800)]
Update sparc -mcpu= documentation.
From-SVN: r24817
Richard Henderson [Thu, 21 Jan 1999 22:42:21 +0000 (14:42 -0800)]
Update copyright.
From-SVN: r24816
Jeffrey A Law [Thu, 21 Jan 1999 22:29:14 +0000 (22:29 +0000)]
m68k.md (ashldi_const): Disable for !TARGET_5200.
* m68k.md (ashldi_const): Disable for !TARGET_5200. Fix indention.
(ashldi3 expander): Similarly. Update comments.
(ashrdi_const, lshrdi_const): Fix indention.
(ashrdi3, lshrdi3): FIx indention. Update comments.
From-SVN: r24814
Richard Henderson [Thu, 21 Jan 1999 21:54:47 +0000 (13:54 -0800)]
* emit-rtl.c (try_split): Don't try to split non-instructions.
From-SVN: r24813
Mark Mitchell [Thu, 21 Jan 1999 21:16:22 +0000 (21:16 +0000)]
cp-tree.h (PUSH_GLOBAL): New macro.
* cp-tree.h (PUSH_GLOBAL): New macro.
(PUSH_LOCAL): Likewise.
(PUSH_USING): Likewise.
(namespace_bindings_p): Declare.
(push_overloaded_decl): Likewise.
* decl.c (push_overloaded_decl): Don't make it static. Check for
illegal declarations after using declarations here.
(namespace_bindings_p): Likewise.
(duplicate_decls): Don't consider declarations from different
namespaces to be the same.
(pushdecl): Use symbolic PUSH_ constants in calls to
push_overloaded_decl.
(push_overloaded_decl_1): Likewise.
* decl2.c (validate_nonmember_using_decl): Tweak `std' handling.
(do_nonmember_using_decl): Check for illegal using declarations
after ordinary declarations here.
(do_local_using_decl): Call pushdecl to insert declarations.
From-SVN: r24812
Andrew MacLeod [Thu, 21 Jan 1999 20:50:56 +0000 (20:50 +0000)]
* expr.c (emit_push_insn): Fix Dumb Typo.
From-SVN: r24811
Richard Henderson [Thu, 21 Jan 1999 20:32:52 +0000 (12:32 -0800)]
rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Recognize and accept transformations that we have performed earlier.
* rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Recognize and accept
transformations that we have performed earlier.
* alpha.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
From-SVN: r24809
Richard Henderson [Thu, 21 Jan 1999 20:32:21 +0000 (12:32 -0800)]
alpha.md (prologue_stack_probe_loop): Don't do our own label handling, call gen_label_rtx instead.
* alpha.md (prologue_stack_probe_loop): Don't do our own label
handling, call gen_label_rtx instead.
From-SVN: r24808
Jason Merrill [Thu, 21 Jan 1999 18:39:29 +0000 (18:39 +0000)]
* decl.c (grokdeclarator): Fix lang_c -> lang_name_c typo.
From-SVN: r24807
Richard Henderson [Thu, 21 Jan 1999 17:47:36 +0000 (09:47 -0800)]
cccp.c (xrealloc): Call malloc given a NULL old pointer.
* cccp.c (xrealloc): Call malloc given a NULL old pointer.
* collect2.c, cppalloc.c, gcc.c, genattr.c, genattrtab.c: Likewise.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genflags.c, genopinit.c, genoutput.c, genpeep.c: Likewise.
* genrecog.c, mips-tfile.c, protoize.c: Likewise.
From-SVN: r24806
Richard Henderson [Thu, 21 Jan 1999 17:46:43 +0000 (09:46 -0800)]
* configure.in ({rs6000|powerpc}-ibm-aix4.[12]*): Add missing `then'.
From-SVN: r24805
Michael Meissner [Thu, 21 Jan 1999 16:52:47 +0000 (16:52 +0000)]
--with-gnu-ld uses different x- fiile under aix 4.1
From-SVN: r24804
Mark Mitchell [Thu, 21 Jan 1999 14:29:33 +0000 (14:29 +0000)]
cp-tree.h (PARM_DECL_EXPR): Delete.
* cp-tree.h (PARM_DECL_EXPR): Delete.
(convert_default_arg): Change prototype.
(check_default_argument): Declare.
(search_tree): Likewise.
* call.c (convert_default_arg): Take the function to which the
default argument belongs as a parameter, and do any necessary
instantiation here, instead of ...
(build_over_call): Here.
* decl.c (local_variable_p): New function.
(check_default_argument): Likewise, split out and tidied from ...
(grokparms): Here.
* error.c (dump_expr): Don't set PARM_DECL_EXPR.
* pt.c (tsubst_call_declarator_parms): New function.
(for_each_template_parm): Handle ARRAY_REFs. Do the obvious thing
with CALL_EXPRs, rather than trying to be clever.
(tsubst): Use tsubst_call_declarator_parms.
* tree.c (search_tree): Don't make it static.
* typeck.c (convert_arguments): Use new interface to
convert_default_arg.
From-SVN: r24803
Dave Brolley [Thu, 21 Jan 1999 12:58:38 +0000 (12:58 +0000)]
cppexp.c (cpp_lex): Allocate token_buffer dynamically.
Thu Jan 21 15:48:03 1999 Dave Brolley <brolley@cygnus.com>
* cppexp.c (cpp_lex): Allocate token_buffer dynamically.
From-SVN: r24802
Andrew MacLeod [Thu, 21 Jan 1999 11:33:44 +0000 (11:33 +0000)]
expr.c (MOVE_BY_PIECES_P): Define condition for deciding to use move_by_pieces.
* expr.c (MOVE_BY_PIECES_P): Define condition for deciding to use
move_by_pieces.
(MOVE_MAX_PIECES): Define maximum number of bytes to move at once.
(USE_LOAD_POST_INCREMENT, USE_LOAD_PRE_DECREMENT): Define defaults.
(USE_STORE_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Define defaults.
(move_by_pieces): Use new macros.
(emit_block_move): Use new macros.
(clear_by_pieces): Use new macros.
(clear_storage): Use new macros.
(emit_push_insn): Use new macros.
(expand_expr): Use new macros.
* config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_LOAD_PRE_DECREMENT):
Define.
(USE_STORE_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Define.
(MOVE_BY_PIECES_P): Define based on alignment and TARGET_SMALLCODE.
(MOVE_MAX_PIECES): move 8 bytes on SH4.
* tm.texi(MOVE_BY_PIECES_P, MOVE_MAX_PIECES, USE_LOAD_POST_INCREMENT,
USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT,
USE_STORE_PRE_DECREMENT): Describe new macros.
From-SVN: r24801
Vladimir N. Makarov [Thu, 21 Jan 1999 11:20:09 +0000 (11:20 +0000)]
varasm.c (output_constant_pool): Use floor_log2 instead of exact_log2 for ASM_OUTPUT_ALIGN.
Thu Jan 21 14:13:31 1999 Vladimir N. Makarov <vmakarov@cygnus.com>
* varasm.c (output_constant_pool): Use floor_log2 instead of
exact_log2 for ASM_OUTPUT_ALIGN.
* stor-layout.c (layout_type): Do machine-dependent extra alignment.
* emit-rtl.c (operand_subword): Handle case when a subword outside
the operand.
* tm.texi (ROUND_TYPE_{SIZE,ALIGN}): More accurate descriptions of
the macros.
From-SVN: r24800
Gerald Pfeifer [Thu, 21 Jan 1999 10:39:11 +0000 (11:39 +0100)]
Makefile.am (SUBDIRS): Include util again in order to generate install-info.
* Makefile.am (SUBDIRS): Include util again in order to generate
install-info.
* Makefile.in: Rebuild.
From-SVN: r24799
Gerald Pfeifer [Thu, 21 Jan 1999 10:23:11 +0000 (10:23 +0000)]
Remove obsolete file, whose contents has moved to the web pages as
readings.html.
From-SVN: r24798
Andrew Haley [Thu, 21 Jan 1999 08:50:06 +0000 (08:50 +0000)]
[multiple changes]
Thu Jan 21 16:00:06 1999 Andrew Haley <aph@cygnus.com>
* typeck.c (convert): Allow conversions to void type: some
optimizations in gcc do this.
Thu Jan 21 15:21:49 1999 Andrew Haley <aph@cygnus.com>
* typeck.c (convert_ieee_real_to_integer): New function.
(convert): When not using fast-math and using hardware fp, convert
an IEEE NaN to zero.
From-SVN: r24797
Richard Henderson [Thu, 21 Jan 1999 02:21:28 +0000 (18:21 -0800)]
cse.c (fold_rtx): Revert 29 Dec change.
* cse.c (fold_rtx): Revert 29 Dec change.
(cse_insn): Revert 12 Jan change.
* expr.c (expand_builtin): Don't emit CONST around CONSTANT_P_RTX.
* regclass.c (reg_scan_mark_refs): Revert 29 Dec change.
* rtl.def: Likewise.
* rtl.h (CONSTANT_P): Likewise.
* expr.c (emit_move_insn): Never try to flush CONSTANT_P_RTX
to memory.
* recog.c (immediate_operand): Accept CONSTANT_P_RTX.
* alpha.c (input_operand): Likewise.
* c4x.c (const_operand): Likewise.
* explow.c (allocate_dynamic_stack_space): Use register_operand
instead of arith_operand, which does not exist.
* 1750a.h: Fix comment closure.
* a29k.c (a29k_set_memflags): Fix typo in 19 Jan change.
* arc.md (one_cmplsi2_set_cc_insn): Fix set mode mismatch.
* arm.h (TARGET_SWITCHES): Fix typo.
* i370.md (anon mult and div patterns): Fix set mode mismatch.
* i860.c (output_delayed_branch): Fix operands to constrain_operands.
(output_delay_insn): Likewise.
* m88k.md (anon rotate insns): Fix set mode mismatch.
(anon BLKmode moves): Commonize and fix set mode mismatches.
* ns32k.md (udivmoddi[shq]i4_internal): Fix mode mismatch.
* romp.md (movdf): Fix typo.
From-SVN: r24796
Jeff Law [Thu, 21 Jan 1999 00:45:03 +0000 (17:45 -0700)]
Daily bump.
From-SVN: r24795
Nathan Sidwell [Wed, 20 Jan 1999 23:33:47 +0000 (23:33 +0000)]
Makefile.in (install-common): Remove extraneous chmod for gcov install.
* Makefile.in (install-common): Remove extraneous chmod for gcov
install.
From-SVN: r24794
Ulrich Drepper [Wed, 20 Jan 1999 18:05:11 +0000 (18:05 +0000)]
Update.
From-SVN: r24793
Ulrich Drepper [Wed, 20 Jan 1999 18:04:49 +0000 (18:04 +0000)]
(__destroy_aux): Use != instead of < for ForwardIterator comparison.
From-SVN: r24792
Mark Mitchell [Wed, 20 Jan 1999 17:01:43 +0000 (17:01 +0000)]
* stl_config.h (__STL_USE_NAMESPACES): Define.
From-SVN: r24791