Commit Graph

15718 Commits

Author SHA1 Message Date
Jeffrey A Law
f75fb5095c * Make-lang.in: Remove more references to libf77.
From-SVN: r18404
1998-03-04 09:35:10 -07:00
Ulrich Drepper
875dfceca0 (operator<<): Correct type of numeric argument.
From-SVN: r18403
1998-03-04 12:40:30 +00:00
Jim Wilson
89a5e42bfd Fix typo found by Kaveh Ghazi while looking at -Wall problems.
* mips.md (movdf_internal1a): Fix misplaced parenthesis in condition.

From-SVN: r18402
1998-03-04 04:15:47 -08:00
Michael Tiemann
5427d758dd rtti.c (get_tinfo_fn_dynamic): If this function is called an FLAG_RTTI is unset...
* rtti.c (get_tinfo_fn_dynamic): If this function is called an
	FLAG_RTTI is unset, initialize type info machinery and continue
	with FLAG_RTTI enabled.
	(get_typeid): Ditto.

From-SVN: r18401
1998-03-04 07:13:02 -05:00
Jason Merrill
8f279ed7be typeck.c (unary_complex_lvalue): &D::i has type B::* if i comes from B.
* typeck.c (unary_complex_lvalue): &D::i has type B::* if i comes
	from B.

From-SVN: r18400
1998-03-04 06:56:29 -05:00
Mark Mitchell
a1da6cbacf pt.c (finish_member_template_decl): Deal more gracefully with invalid declarations.
* pt.c (finish_member_template_decl): Deal more gracefully with
	invalid declarations.

From-SVN: r18399
1998-03-04 11:33:01 +00:00
J"orn Rennecke
1dd8faa86e * final.c (final_scan_insn, case CODE_LABEL: Cleanup.
From-SVN: r18398
1998-03-04 10:50:18 +00:00
Joern Rennecke
923f7cf923 Fix typo in this patch:
* final.c (insn_current_reference_address):
        Use SEQ instead of BRANCH as argument to align_fuzz, to get a
        proper alignment chain.

From-SVN: r18397
1998-03-04 08:13:16 +00:00
J"orn Rennecke
e2faec7588 final.c (shorten_branches): Tag the loop alignment onto the first label after NOTE_INSN_LOOP_BEG even if...
* final.c (shorten_branches): Tag the loop alignment onto the
	first label after NOTE_INSN_LOOP_BEG even if there is an
	intervening insn.

From-SVN: r18396
1998-03-04 07:54:28 +00:00
J"orn Rennecke
2602447552 final.c (insn_current_reference_address): Use SEQ instead of BRANCH as argument to align_fuzz...
* final.c (insn_current_reference_address):
	Use SEQ instead of BRANCH as argument to align_fuzz, to get a
	proper alignment chain.

From-SVN: r18392
1998-03-03 15:52:48 -07:00
Jason Merrill
3c21589560 cvt.c, [...]: Clean up more old overloading code, old RTTI code, and some formatting quirks.
* cvt.c, decl.c, decl2.c, init.c, rtti.c, typeck.c, typeck2.c,
	cp-tree.h: Clean up more old overloading code, old RTTI code, and
	some formatting quirks.

From-SVN: r18391
1998-03-03 17:27:04 -05:00
J"orn Rennecke
de7987a645 final.c (max_labelno): New static variable.
* final.c (max_labelno): New static variable.
        (final_scan_insn): Check max_labelno before outputting an
        alignment for a label.
        (shorten_branches): Remove unused variable length_align.
Fix some minor problems with new shortening code.

From-SVN: r18390
1998-03-03 13:45:49 -07:00
Kaveh R. Ghazi
27d8f9ea6f Warning fixes:
Tue Mar  3 14:27:23 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
        * sparc.c (ultrasparc_adjust_cost): Add default case in
        enumeration switch.
         * sparc.h: Add prototypes for extern functions defined in
        sparc.c.

From-SVN: r18387
1998-03-03 11:33:31 +00:00
Nick Clifton
bd33435646 Do not generate a <name>.dbr file when dumping RTL unless DELAY_SLOTS is defined.
From-SVN: r18386
1998-03-03 10:06:54 +00:00
Jeffrey A Law
b99bb832d8 * makeinfo/makeinfo.c (CommandTable): Fix braces in initializer.
From-SVN: r18385
1998-03-03 02:03:45 -07:00
Jason Merrill
277294d73b call.c, [...]: Remove support for -fno-ansi-overloading and overloading METHOD_CALL_EXPR.
* call.c, class.c, cp-tree.h, cvt.c, decl.c, init.c, lex.c,
	method.c, pt.c, ptree.c, typeck.c: Remove support for
	-fno-ansi-overloading and overloading METHOD_CALL_EXPR.
	* class.h: Remove.
	* Makefile.in: Adjust.

From-SVN: r18384
1998-03-02 22:24:44 -05:00
Jason Merrill
4943217104 * pt.c (unify): Don't allow reduced cv-quals when strict.
From-SVN: r18383
1998-03-02 20:57:32 -05:00
Manfred Hollstein
5f9e09cd6c g77.texi: Use @url for citing URLs.
�
	* g77.texi: Use @url for citing URLs.

From-SVN: r18381
1998-03-03 01:51:51 +00:00
Manfred Hollstein
207ee1570c g77.texi: Use @url for citing URLs.
E
	* g77.texi: Use @url for citing URLs.

From-SVN: r18380
1998-03-03 01:51:49 +00:00
Jason Merrill
54e97afb94 oops
From-SVN: r18378
1998-03-02 20:44:37 -05:00
Jason Merrill
3b3ba9f0a6 call.c, [...]: Remove nsubsts parm from *type_unification* and unify.
* call.c, class.c, pt.c, cp-tree.h: Remove nsubsts parm from
	*type_unification* and unify.

From-SVN: r18377
1998-03-02 20:39:03 -05:00
Manfred Hollstein
d9f1e3dad5 reorg.c (fill_eager_delay_slots): Add new argument delay_list in call to fill_slots_from_thread.
8
	* reorg.c (fill_eager_delay_slots): Add new argument delay_list
	in call to fill_slots_from_thread.

From-SVN: r18368
1998-03-02 22:37:37 +00:00
Manfred Hollstein
1838fe6d47 reorg.c (fill_eager_delay_slots): Add new argument delay_list in call to fill_slots_from_thread.
�
	* reorg.c (fill_eager_delay_slots): Add new argument delay_list
	in call to fill_slots_from_thread.

From-SVN: r18367
1998-03-02 22:37:35 +00:00
J"orn Rennecke
687d0ab643 Formatting fix.
From-SVN: r18364
1998-03-02 15:04:08 +00:00
Richard Henderson
b0021153cb linux.h (CPP_PREDEFINES): Correct connecting whitespace to SUB_CPP_PREDEFINES.
* alpha/linux.h (CPP_PREDEFINES): Correct connecting whitespace
to SUB_CPP_PREDEFINES.  Reported by asun@saul4.u.washington.edu.

From-SVN: r18361
1998-03-02 05:46:33 -08:00
Jason Merrill
2604412d6c parse.y (explicit_template_type): Remove TEMPLATE keyword.
* parse.y (explicit_template_type): Remove TEMPLATE keyword.
	(nested_name_specifier): And add it before this use.
	(typename_sub0): And this use.  Also add use without the keyword.
	(typename_sub1): Likewise.
	* pt.c (instantiate_class_template): Don't actually instantiate
	anything if our type uses template parms.

From-SVN: r18358
1998-03-02 07:22:33 -05:00
J"orn Rennecke
fc470718ac final.c (insn_last_address, [...]): New variables.
* final.c (insn_last_address, insn_current_align, uid_align):
	New variables.
	(in_align_chain, align_fuzz, align_shrink_fuzz): New functions.
	(insn_current_reference_address): Likewise.
	(shorten_branches, final_scan_insn): Implement LABEL_ALIGN,
	LABEL_ALIGN_AFTER_BARRIER and LOOP_ALIGN target macros.
	(label_to_alignment): New function.
	* genattrtab.c (write_test_expr): If one of LABEL_ALIGN,
	LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN is defined, call
	insn_current_reference_address instead of insn_current_address.
	(or_attr_value, write_length_unit_log): New functions.
	(main): Call write_length_unit_log.
	(write_const_num_delay_slots): Output extra '\n'.
	* alpha.h (ASM_OUTPUT_LOOP_ALIGN, ASM_OUTPUT_ALIGN_CODE):
	replace with:
	(LOOP_ALIGN, ALIGN_LABEL_AFTER_BARRIER).
	* i386.h, i386/osfrose.h, i386/svr3dbx.h, m68k.h, sparc.h: Likewise.
	* arc.h, m32r.h (ASM_OUTPUT_LOOP_ALIGN): replace with:
	(LOOP_ALIGN).
	* i960.h, m88k.h: (ASM_OUTPUT_ALIGN_CODE): Replace with:
	(LABEL_ALIGN_AFTER_BARRIER).
	* ns32k/encore.h, ns32k/merlin.h, ns32k.h, ns32k/sequent.h: Likewise.
	* ns32k/tek6000.h: Likewise.
	* i386/gas.h (ASM_OUTPUT_LOOP_ALIGN, ASM_OUTPUT_ALIGN_CODE): Delete.
	* i386.md (casesi+1): Use ASM_OUTPUT_ALIGN instead of
	ASM_OUTPUT_ALIGN_CODE.

From-SVN: r18357
1998-03-02 11:54:35 +00:00
Jim Wilson
948edfa702 decl.c (start_function): Don't call temporary_allocation for a nested function.
* decl.c (start_function): Don't call temporary_allocation for a
	nested function.

From-SVN: r18356
1998-03-02 06:06:14 -05:00
Jeffrey A Law
54f00917bc Bump for snapshot
From-SVN: r18354
1998-03-01 18:05:53 -07:00
Jeffrey A Law
38630f7e2e Bump for snapshot
From-SVN: r18353
1998-03-01 17:52:20 -07:00
Jason Merrill
574817a219 pt.c (instantiate_class_template): Don't mess with friends if our type uses template parms.
* pt.c (instantiate_class_template): Don't mess with friends if
	our type uses template parms.

From-SVN: r18350
1998-03-01 16:07:22 -05:00
Jeff Law
ab63953e19 reorg.c (fill_slots_from_thread): Don't steal delay list from target if condition code of jump conflicts with...
* reorg.c (fill_slots_from_thread): Don't steal delay list from target
        if condition code of jump conflicts with opposite_needed.
        * reorg.c (fill_slots_from_thread): Mark resources referenced in
        opposite_needed thread.  Return delay_list even when cannot get
        any more delay insns from end of subroutine.
        * reorg.c (fill_slots_from_thread): New parameter, delay_list.
        All callers changed.

From-SVN: r18348
1998-03-01 10:24:18 -07:00
Jeffrey A Law
925b1f338e * ginclude/va-ppc.h (va_arg): Fix typo in long long support.
From-SVN: r18346
1998-03-01 10:11:31 -07:00
Bruno Haible
72dd050ade frame.c (start_fde_sort, [...]): New functions for fast sorting of an FDE array.
* frame.c (start_fde_sort, fde_split, heapsort, fde_merge,
        end_fde_sort): New functions for fast sorting of an FDE array.
        (fde_insert): Simplified.
        (add_fdes): Change argument list.
        (frame_init): Use the new functions.

From-SVN: r18345
1998-03-01 10:09:39 -07:00
Jeffrey A Law
c7271385a3 * i386.c (reg_mentioned_in_mem): Fix dangling else statement.
From-SVN: r18344
1998-03-01 10:07:50 -07:00
Jeffrey A Law
de153e8290 * fold-const.c (fold_range_test): Always return a value.
From-SVN: r18343
1998-03-01 10:04:14 -07:00
Mumit Khan
81023100d3 winnt.c (i386_pe_unique_section): Put read-only data in the text section unless READONLY_DATA_SECTION is defined.
* config/i386/winnt.c (i386_pe_unique_section): Put read-only
        data in the text section unless READONLY_DATA_SECTION is defined.

From-SVN: r18342
1998-03-01 09:55:15 -07:00
Jeffrey A Law
818e50a59d c-parse.in (undeclared variable error): Tweak error message to be clearer.
* c-parse.in (undeclared variable error): Tweak error message to
        be clearer.

From-SVN: r18341
1998-03-01 09:46:44 -07:00
Jeffrey A Law
c93dc3ace6 Bump for snapshot
From-SVN: r18325
1998-03-01 03:22:38 -07:00
Jason Merrill
ca40b399b1 missed
From-SVN: r18324
1998-02-28 20:57:25 -05:00
Mark Mitchell
90ca38bbee * final.c (final_scan_insn): Undo overzealous removal of `set'.
From-SVN: r18323
1998-03-01 00:08:36 +00:00
Jason Merrill
b9af0782c4 new
From-SVN: r18304
1998-02-28 10:32:36 -05:00
Jason Merrill
11686454d6 parse.y (nested_name_specifier): Use explicit_template_type.
* parse.y (nested_name_specifier): Use explicit_template_type.
	(typename_sub): Allow a template_type, an explicit_template_type,
	or an implicit template type at the end.
	* lex.c (yyprint): Handle a PTYPENAME being a TEMPLATE_DECL.
	* decl.c (make_typename_type): Handle template-id where the name
	is a TEMPLATE_DECL.
	* call.c (build_scoped_method_call): Handle member template
	destructor call.
	* pt.c (tsubst_copy, METHOD_CALL_EXPR): Don't assume a member
	destructor is represented by the type.

From-SVN: r18303
1998-02-28 10:32:02 -05:00
Jason Merrill
b2b7d40a91 cp-tree.h (TYPENAME_TYPE_FULLNAME): New macro.
* cp-tree.h (TYPENAME_TYPE_FULLNAME): New macro.
	* parse.y (nested_name_specifier): Add 'template' case.
	(explicit_template_type): New rule.
	(typename_sub): Use it.
	* decl.c (make_typename_type): Handle getting a template-id for NAME.
	* pt.c (tsubst): Likewise.

From-SVN: r18296
1998-02-28 07:19:29 -05:00
Kaveh R. Ghazi
5feca98414 pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated case...
* pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated
       case, add parentheses to specify the proper order of precedence in
       the if-statement.

From-SVN: r18291
1998-02-28 07:34:12 +00:00
Kaveh R. Ghazi
5172371191 Fix warious warnings:
* c-aux-info.c: Include string.h/strings.h.
	* pa.c: Include stdlib.h.
	(pa_combine_instructions): Prototype the function.
	(pa_can_combine_p, forward_branch_p, shadd_constant_p): Likewise.
	(reloc_needed): Add default case for enumeration switch.
	(remove_useless_addtr_insns): Remove unused variable `all'.
	(hppa_expand_prologue): Add explicit braces to avoid
	ambiguous `else'.
	(output_function_epilogue): Remove unused variable `i'.
	(output_millicode_call): Remove unused variable `link'.
	(shadd_constant_p, forward_branch_p): Make the function static.
	(following_call): Explicitly declare to return int.
	(pa_reorg): Declare as void.
	(pa_combine_instructions): Declare as static void.  Add
	parentheses around && within ||.
	* pa.h: Add prototypes for pa_reorg, symbolic_operand,
	following_call, function_label_operand, lhs_lshift_cint_operand
	and zdepi_cint_p.
	* pa.md: Add parentheses around && within ||.
	* cppalloc.c: Include stdlib.h.
	* cpperror.c (cpp_print_containing_files): Remove unused variable
	`i'.  Fix format specifier in fprintf.
	* cse.c (cse_around_loop): Add explicit braces to avoid
	ambiguous `else'.
	(delete_dead_from_cse): Wrap variable `tem' in macro HAVE_cc0.
	* expr.c (expand_expr): Add parentheses around && within ||.
	* final.c (app_enable): Replace fprintf with fputs where there are
	no format specifiers and no trailing argument after the string.
	Eg, when printing ASM_APP_ON/ASM_APP_OFF.
	(app_disable): Likewise.
	(final_end_function): Likewise.
	(final_scan_insn): Likewise.  Remove unused variable `set'.
	(profile_function): Wrap empty if-statement body in {} brackets.
	* function.c: Include stdlib.h.
	(pad_below): Wrap prototype and definition in ARGS_GROW_DOWNWARD.
	(reposition_prologue_and_epilogue_notes): Add parentheses
	around assignment used as truth value.
	* integrate.c (expand_inline_function): Wrap variable
	`cc0_insn' in macro HAVE_cc0.
	* jump.c (jump_optimize): Wrap variable `q' in macro
	HAVE_cc0.  Remove unused variable `prev1'.
	* libgcc2.c (__bb_exit_trace_func): Add parentheses around &&
	within ||.  Fix format specifier in fprintf.
	(__bb_init_prg): Add parentheses around assignment used as
	truth value.
	* local-alloc.c: Include stdlib.h.
	(requires_inout): Add parentheses around assignment used
	as truth value.
	* loop.c (analyze_loop_iterations): Wrap prototype and definition
	in macro HAVE_decrement_and_branch_on_count.
	(insert_bct, instrument_loop_bct): Likewise.
	(move_movables): Add parentheses around assignment used as
	truth value.
	(consec_sets_invariant_p): Likewise.
	(maybe_eliminate_biv_1): Wrap variable `new' in macro HAVE_cc0.
	* objc/objc-act.c: Include stdlib.h.
	(lookup_method_in_protocol_list): Wrap empty else-statement body
	in braces.
	(lookup_protocol_in_reflist): Likewise.
	(objc_add_static_instance): Remove unused variables `decl_expr'
	and `decl_spec'.
	(get_objc_string_decl): Remove unused variable `decl'.
	(generate_static_references): Remove unused variables `idecl' and
	`instance'.
	(check_protocols): Wrap empty else-statement body in braces.
	* protoize.c: Include stdlib.h.
	(substr): Add parentheses around assignment used as truth value.
	(abspath): Likewise.
	(shortpath): Likewise.
	* regmove.c (fixup_match_1): Add parentheses around assignment
	used as truth value.
	* reload.c (push_secondary_reload): Remove unused variable `i'.
	(find_reloads): Add parentheses around assignment used as truth
	value.
	* reload1.c: Include stdlib.h.
	* rtl.h: Correct typo in prototype of offsettable_memref_p.
	* stmt.c (add_case_node): Add parentheses around assignment used
	as truth value.
	(case_tree2list): Likewise.
	* tree.c (valid_machine_attribute): Wrap variable `decl_attr_list'
	in macro VALID_MACHINE_DECL_ATTRIBUTE.  Wrap variable
	`type_attr_list' in macro VALID_MACHINE_TYPE_ATTRIBUTE.
	(merge_attributes): Add explicit braces to avoid ambiguous
	`else'.
	* unroll.c (copy_loop_body): Wrap variable `cc0_insn' in
	macro HAVE_cc0.
	* varasm.c: Include stdlib.h.

From-SVN: r18290
1998-02-28 07:06:53 +00:00
Kaveh R. Ghazi
c580105315 I've backed out of including stat.h via system.h because stat.h can define...
I've backed out of including stat.h via system.h because stat.h can
define static functions (eg on x86 svr4 according to jfc@mit.edu)
causing code bloat.
        * system.h: Remove sys/stat.h.
        * gcc.c: Add sys/stat.h.

From-SVN: r18289
1998-02-28 06:11:54 +00:00
Kaveh Ghazi
3d85c12ecc ChangeLog entry, omitted for change described below, is now installed:
* genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE.
        * genattrtab.c: Likewise.
        * genconfig.c: Likewise.
        * genemit.c: Likewise.
        * genextract.c: Likewise.
        * genflags.c: Likewise.
        * genopinit.c: Likewise.
        * genoutput.c: Likewise.
        * genpeep.c: Likewise.
        * genrecog.c: Likewise.
        * tlink.c: Likewise.  Also wrap `getenv' in NEED_DECLARATION_GETENV.

From-SVN: r18288
1998-02-28 05:01:14 +00:00
Jason Merrill
bd8c73e92a new
From-SVN: r18287
1998-02-27 12:46:18 -05:00
Jason Merrill
db897306f2 pt.c (add_to_template_args): Fix thinko.
* pt.c (add_to_template_args): Fix thinko.
	(instantiate_class_template): Call it later.

From-SVN: r18286
1998-02-27 12:46:01 -05:00