Commit Graph

20269 Commits

Author SHA1 Message Date
Zack Weinberg
6afa5179c7 Makefile.in: Fix typos in previous change.
* Makefile.in: Fix typos in previous change.
	(rtsdummy.o): Don't depend on gvarargs.h.

From-SVN: r24754
1999-01-19 05:16:20 +00:00
Jeff Law
151976a811 Daily bump.
From-SVN: r24753
1999-01-18 17:46:03 -07:00
Jason Merrill
d363b1f305 new
From-SVN: r24752
1999-01-18 16:43:11 -05:00
Jason Merrill
b661835c07 update
From-SVN: r24751
1999-01-18 16:42:34 -05:00
Jason Merrill
e6f622865f typeck.c (build_component_ref): Wrap an OVERLOAD around a unique non-static member function.
* typeck.c (build_component_ref): Wrap an OVERLOAD around a unique
	non-static member function.
        * class.c (instantiate_type): Only diagnose illegal address of member
        function if complaining.
        * decl.c (lookup_name_real): Remove duplicate code.

From-SVN: r24750
1999-01-18 09:07:32 -05:00
Jason Merrill
6b9b6b1509 tree.c (copy_template_template_parm): Use permanent_obstack.
* tree.c (copy_template_template_parm): Use permanent_obstack.
        * pt.c (unify): Remove restrictions on deduction of argument
        of template template parameters.
	* rtti.c (build_dynamic_cast_1): Resolve OFFSET_REF exprs.
	* class.c (resolve_address_of_overloaded_function): Show list of
	all candidates, when none of them match.

From-SVN: r24749
1999-01-18 08:32:57 -05:00
Jason Merrill
ddaed37e04 typeck.c (comp_ptr_ttypes_reinterpret): Per ANSI, tighten up definition of 'casting away const' in reinterpret_cast<>.
* typeck.c (comp_ptr_ttypes_reinterpret): Per ANSI, tighten up
	definition of 'casting away const' in reinterpret_cast<>.
	* cvt.c: Add include for decl.h, remove extern for
	static_aggregates which is now provided by decl.h.
	* Makefile.in (cvt.o): Add dependency for decl.h and missing
	dependencies for convert.h and flags.h.
	* decl2.c (do_dtors): Set current location to that of the
	decl, for sensible diagnostics and debugging.
	(check_classfn): Issue `incomplete type' error, if
	class is not defined.
	* cp-tree.h: Add prototype for bound_pmf_p.

From-SVN: r24748
1999-01-18 07:49:20 -05:00
Jason Merrill
8c7707b030 * invoke.texi (C++ Dialect Options): Document -fno-rtti.
From-SVN: r24747
1999-01-18 05:07:21 -05:00
Vladimir Makarov
bef84347b4 [multiple changes]
1999-01-18  Vladimir N. Makarov  <vmakarov@cygnus.com>
	*  invoke.texi (-mcpu=740, -mcpu=750): New options.
        (-m(no-)multiple, -m(no-)string): Describe cases for PPC740 &
	PPC750.
1999-01-18  Michael Meissner  <meissner@cygnus.com>
	* rs6000.h ({ASM,CPP}_CPU_SPEC): Add support for all machines
	supported with -mcpu=xxx.
	(processor_type): Add PROCESSOR_PPC750.
	(ADJUST_PRIORITY): Call rs6000_adjust_priority.
	(RTX_COSTS): Supply costs for 750 multiply/divide operations.
	(rs6000_adjust_priority): Add declaration.
	* rs6000.c (rs6000_override_options): -mcpu={750,740} now sets the
	processor type as 750, not 603.  Allow -mmultiple and -mstring on
	little endian 750 systems.
	(rs6000_adjust_priority): Stub for now.
	(get_issue_rate): The PowerPC 750 can issue 2 instructions/cycle.
	* rs6000.md (function/cpu attributes): Add initial ppc750 support.
	* sysv4.h (STRICT_ALIGNMENT): Don't force strict alignment if
	little endian.
	(CC1_SPEC): Pass -mstrict-align if little endian, and not
	overridden.
	(CC1_ENDIAN_{LITTLE,BIG,DEFAULT}_SPEC): Endian specific configs.
	(SUBTARGET_EXTRA_SPECS): Add cc1 endian specs.
	* {sysv4,eabi}le.h (CC1_ENDIAN_DEFAULT_SPEC): Override, default is
	little endian.
	* t-ppcgas (MULTILIB_*): Delete obsolete Solaris multilibs.

From-SVN: r24746
1999-01-18 09:37:00 +00:00
Gavin Romig-Koch
aa7ecb4aa5 mips.md (div_trap): Split div_trap_mips16 from div_trap.
* config/mips/mips.md (div_trap): Split div_trap_mips16
	from div_trap.
	(div_trap_normal,div_trap_mips16): Correct the length attributes.

From-SVN: r24745
1999-01-18 09:10:44 +00:00
Kaveh R. Ghazi
08c259de90 ch-tree.h: Remove conflicting prototypes for pedwarn, warning_with_decl, and make_dcl_rtl.
* ch-tree.h: Remove conflicting prototypes for pedwarn,
        warning_with_decl, and make_dcl_rtl.

From-SVN: r24744
1999-01-18 08:58:16 +00:00
Kaveh R. Ghazi
87e11268b6 cpplib.c (special_symbol): Qualify a char* with the `const' keyword.
* cpplib.c (special_symbol): Qualify a char* with the `const' keyword.
        Instead of writing to const char *buf directly, use a non-const
        variable `wbuf' to allocate and write a string, then set buf = wbuf.
        * cppulp.c (user_label_prefix): Qualify a char* with the `const'
        keyword.
        * dyn-string.c (dyn_string_append): Likewise.
        * dyn-string.h (dyn_string_append): Likewise.
        * final.c (end_final, output_operand_lossage, asm_fprintf): Likewise.
        * output.h (end_final, output_operand_lossage, asm_fprintf,
        named_section, decode_reg_name, make_decl_rtl, user_label_prefix):
        Likewise.
        * profile.c (init_branch_prob): Likewise.
        * toplev.c (set_target_switch, vmessage,
        v_message_with_file_and_line, v_message_with_decl,
        v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
        verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
        v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
        v_pedwarn_with_file_and_line, vsorry, v_really_sorry,
        open_dump_file, dump_rtl, clean_dump_file,
        print_version, print_single_switch, print_switch_values,
        dump_base_name, debug_args, lang_independent_options,
        user_label_prefix, documented_lang_options, target_switches,
        target_options, print_time, pfatal_with_name, fatal_io_error,
        fatal_insn, default_print_error_function, print_error_function,
        report_error_function, error_with_file_and_line, error_with_decl,
        error_for_asm, error, fatal, warning_with_file_and_line,
        warning_with_decl, warning_for_asm, warning, pedwarn,
        pedwarn_with_decl, pedwarn_with_file_and_line, sorry,
        really_sorry, botch, output_quoted_string, output_file_directive,
        open_dump_file, rest_of_decl_compilation, display_help, main):
        Likewise.
        * toplev.h (print_time, fatal, fatal_io_error, pfatal_with_name,
        fatal_insn, warning, error, pedwarn, pedwarn_with_file_and_line,
        warning_with_file_and_line, error_with_file_and_line, sorry,
        really_sorry, default_print_error_function, report_error_function,
        rest_of_decl_compilation, pedwarn_with_decl, warning_with_decl,
        error_with_decl, error_for_asm, warning_for_asm, output_quoted_string,
        output_file_directive, botch): Likewise.
        * tree.h (make_decl_rtl): Likewise.
        * varasm.c (strip_reg_name, named_section, decode_reg_name,
        make_decl_rtl): Likewise.

From-SVN: r24743
1999-01-18 08:53:41 +00:00
Gavin Romig-Koch
6b106e7db7 Makefile.in (TCL_LIBRARY): Use 'cd' to find the library directory logically rather than physically.
* Makefile.in (TCL_LIBRARY): Use 'cd' to find the library
	directory logically rather than physically.

From-SVN: r24742
1999-01-18 08:39:46 +00:00
Andrew Haley
73333a8791 parse.y (patch_binop): Do a type conversion from signed to unsigned and then back to signed when...
1999-01-18  Andrew Haley  <aph@cygnus.com>
	* parse.y (patch_binop): Do a type conversion from signed to
	unsigned and then back to signed when a ">>>" is found.

From-SVN: r24741
1999-01-18 06:29:26 +00:00
Kaveh R. Ghazi
47c3ed988b Warning fixes:
* loop.c (insert_bct): Hide the definition of variables
        `increment_direction', `compare_direction', `add_iteration' and
        `loop_var_mode'.
        * recog.c (mode_dependent_address_p): Mark parameter `addr' with
        ATTRIBUTE_UNUSED.  Mark label `win' with ATTRIBUTE_UNUSED_LABEL.
        (mode_independent_operand): Mark label `lose' with
        ATTRIBUTE_UNUSED_LABEL.
        * regclass.c (n_occurrences): Remove prototype and definition.
        * reload.c (find_reloads_address_1): Mark variable `tem' with
        ATTRIBUTE_UNUSED.
        * reload1.c (reload): Cast the first two arguments of `bcopy' to PTR.
        * sbitmap.c (sbitmap_copy): Likewise.
        * scan-decls.c (scan_decls): Hide label `handle_comma'.
        * toplev.c (output_lang_identify): Mark prototype with
        ATTRIBUTE_UNUSED.
        * tree.c (make_node): Cast the first argument of `bzero' to PTR.
        (make_tree_vec): Likewise.
        (build1): Likewise.
        * varasm.c (assemble_static_space): Mark variable `tem' with
        ATTRIBUTE_UNUSED.

From-SVN: r24740
1999-01-18 06:17:31 +00:00
Jeffrey A Law
044357a056 Makefile.in: Add many missing dependencies.
* Makefile.in: Add many missing dependencies.

Co-Authored-By: Hans-Peter Nilsson <hp@axis.se>

From-SVN: r24739
1999-01-17 20:51:14 -07:00
Jeff Law
063cd52287 Fix thinko from last second true_dependence -> anti_dependence change.
From-SVN: r24738
1999-01-17 20:40:02 -07:00
Nathan Sidwell
2347364708 Makefile.in (GCOV_INSTALL_NAME): New macro.
* Makefile.in (GCOV_INSTALL_NAME): New macro.
        (install-common): Use it.
        (uninstall): Use it.
        (uninstall): Use correct names for protoize and unprotoize.

From-SVN: r24737
1999-01-17 20:32:53 -07:00
Joern Rennecke
4922ded1e0 Fixed Copyright.
From-SVN: r24736
1999-01-18 03:26:22 +00:00
Joern Rennecke
280f7926d9 Fix Copyright.
From-SVN: r24735
1999-01-18 03:14:02 +00:00
Christian Bruel
db3a887b31 flow.c (last_mem_set): Delete variable.
* flow.c (last_mem_set): Delete variable.  References removed.
        (mem_set_list): New variable.
        (life_analysis): Initialize and finalize alias analysis.
        (propagate_block); Initialize mem_set_list.  Clear for CALL_INSNs.
        (insn_dead_p): For a store to memory, search the entire mem_set_list
        for a match.
        (mark_set_1): Kill entries on the mem_set_list for aliased writes or
        changes to their addresses.  Add new entries to the mem_set_list for
        memory writes writes.
        (mark_used_regs): Kill entries on the mem_set_list which may be
        referenced by a load operation.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r24734
1999-01-17 20:01:26 -07:00
Jeff Law
586fd93912 Daily bump.
From-SVN: r24733
1999-01-17 17:45:02 -07:00
Jeff Law
41af402325 Copyright update.
From-SVN: r24732
1999-01-17 17:08:42 -07:00
Jeff Law
b297255190 alias.c (base_alias_check): Add missing return for differing symbols case.
8
        * alias.c (base_alias_check): Add missing return for differing
        symbols case.

From-SVN: r24731
1999-01-17 17:05:50 -07:00
Jeff Law
c99913856d alias.c (base_alias_check): Add missing return for differing symbols case.
�
        * alias.c (base_alias_check): Add missing return for differing
        symbols case.

From-SVN: r24730
1999-01-17 17:05:47 -07:00
Rainer Orth
c4687d7048 mips-tdump.c (print_file_desc): Handle unknown filenames and missing local symbols.
* mips-tdump.c (print_file_desc): Handle unknown filenames and
        missing local symbols.

From-SVN: r24729
1999-01-17 16:41:47 -07:00
Jeff Law
a5ea6f5710 Pointer to OSF 5.0 object file/symbol table format documentation.
From-SVN: r24728
1999-01-17 16:38:43 -07:00
Richard Henderson
b3c9dc1aea * system.h (bcopy): Implement with memmove not memcpy.
From-SVN: r24727
1999-01-17 13:06:36 -08:00
Jeffrey A Law
ef2b940d6c * Makefile.in (zextract.o): Add dependencies.
From-SVN: r24726
1999-01-17 14:06:25 -07:00
Richard Henderson
bba596a397 * jump.c (rtx_renumbered_equal_p): Special case CODE_LABEL.
From-SVN: r24725
1999-01-17 13:05:29 -08:00
Jeffrey A Law
c65ef754ee * Makefile.in (cppulp.o): Add dependencies.
From-SVN: r24724
1999-01-17 14:04:54 -07:00
Jeffrey A Law
82770562a5 * Makefile.in: Do not put ^Ls at the start of a line.
From-SVN: r24723
1999-01-17 13:58:58 -07:00
Jeffrey A Law
f9670bcecf * i386.md (integer conditional moves): Add missing earlyclobbers.
From-SVN: r24720
1999-01-17 13:27:40 -07:00
Jeff Law
8e55d59ccb 990117-2.c was a duplicate of 981223-1.c. Kill 990117-2.c
From-SVN: r24719
1999-01-17 12:11:55 -07:00
Jeff Law
89098dc1a7 regmove.c (optimize_reg_copy_1): Undo Aug 18 change.
* regmove.c (optimize_reg_copy_1): Undo Aug 18 change.  Update
        REG_N_CALLS_CROSSED and REG_LIVE_LENGH if and only if we change
        where a register is live.

From-SVN: r24718
1999-01-17 11:26:42 -07:00
Jeff Law
20f7cbac8f reg-stack.c (subst_stack_regs_pat): Abort if the destination of a FP conditional move is not on the FP register stack.
* reg-stack.c (subst_stack_regs_pat): Abort if the destination
        of a FP conditional move is not on the FP register stack.
Forgot to check it in last night/this morning.  One should not hack at 4am.

From-SVN: r24716
1999-01-17 11:04:07 -07:00
Zack Weinberg
16e829b30d Added myself, as instructed
From-SVN: r24715
1999-01-17 16:35:21 +00:00
Jeffrey A Law
b96acc3f3f 990117-1.c: New test.
* gcc.dg/990117-1.c: New test.
Heavily edited net test + glibc.

From-SVN: r24714
1999-01-16 19:22:09 -07:00
Jeffrey A Law
82db59b794 Bump for snapshot
From-SVN: r24712
1999-01-16 18:15:08 -07:00
Jeff Law
63709060c8 Daily bump.
From-SVN: r24711
1999-01-16 17:45:02 -07:00
Jeffrey A Law
cf29d761c5 990117-1.c: New test from Horst von Brand.
* gcc.c-torture/compile/990117-1.c: New test from Horst von Brand.
        * gcc.c-torture/compile/990117-2.c: Likewise.

From-SVN: r24710
1999-01-16 16:16:58 -07:00
Jeffrey A Law
f81b9d9599 990117-1.c: New test from Horst von Brand.
* gcc.c-torture/compile/990117-1.c: New test from Horst von Brand.
Derived from glibc & egcs code.

From-SVN: r24709
1999-01-16 16:09:13 -07:00
Jeffrey A Law
5a95c7b0ca * gcc.c-torture/excute/990117-1.c: New test from HJ Lu.
From-SVN: r24708
1999-01-16 16:05:53 -07:00
Jeffrey A Law
148e9d570a reload1.c (reload_cse_regs_1): Do not call reload_cse_simplify_operands for an insn with asm operands.
* reload1.c (reload_cse_regs_1): Do not call
        reload_cse_simplify_operands for an insn with asm operands.

From-SVN: r24707
1999-01-16 15:50:19 -07:00
Jeffrey A Law
62e7b7195c cccp.c (print_help): Fix typos.
* cccp.c (print_help): Fix typos.
        * cpplib.c (print_help): Fix typos.
        * toplev.c (f_optiosn): Fix typos.
        (documented_lang_options): Fix typos.

From-SVN: r24706
1999-01-16 15:45:49 -07:00
Marc Espie
cbc546653d * gcc.c: (do_spec_1): Fix obvious typo.
From-SVN: r24705
1999-01-16 13:53:24 -07:00
Jason Merrill
41eff65293 decl.c (grokdeclarator): Don't make 'main(){}' an error with only -Wreturn-type.
* decl.c (grokdeclarator): Don't make 'main(){}' an error with only
	-Wreturn-type.

Co-Authored-By: Manfred Hollstein <manfred@s-direktnet.de>

From-SVN: r24704
1999-01-16 11:44:35 -05:00
Kaveh R. Ghazi
db838bb85b c-decl.c (duplicate_decls): If `warn_traditional'...
* c-decl.c (duplicate_decls): If `warn_traditional', warn when
        a non-static function declaration follows a static one.
        * invoke.texi (-Wtraditional): Document the extra check now done
        by this flag.

From-SVN: r24703
1999-01-16 16:43:26 +00:00
Jason Merrill
9e3685d5f4 new
From-SVN: r24702
1999-01-16 11:34:32 -05:00
Nathan Sidwell
a7a7710d42 cp-tree.h (struct lang_type): Added has_mutable flag.
* cp-tree.h (struct lang_type): Added has_mutable flag.
	(CLASSTYPE_HAS_MUTABLE): New macro to access it.
	(TYPE_HAS_MUTABLE_P): New macro to read it.
	(cp_has_mutable_p): Prototype for new function.
	* class.c (finish_struct_1): Set has_mutable from members.
	* decl.c (cp_finish_decl): Clear decl's TREE_READONLY flag, if
	it contains a mutable.
	* typeck.c (cp_has_mutable_p): New function.
Fixes g++.other/mutable1.C

From-SVN: r24701
1999-01-16 11:31:12 -05:00