Commit Graph

23763 Commits

Author SHA1 Message Date
Andreas Schwab 3b3958fc9a Move *-*-gnu* pattern below *-*-linux*.
From-SVN: r29026
1999-09-01 08:14:33 +00:00
Jeff Law fe0a8ee66c Daily bump.
From-SVN: r29025
1999-09-01 01:45:44 -06:00
Marc Espie 499b10983a * alias.c (non_local_reference_p): Constify fmt.
From-SVN: r29023
1999-08-31 22:08:57 -07:00
Michael Meissner 7c225121a3 define HAVE_DOS_BASED_FILED_SYSTEM on cygwin
From-SVN: r29022
1999-09-01 03:24:07 +00:00
Tom Tromey 1aaeb2f0b5 jvm.h (_Jv_makeUtf8TypeConst): Removed unused declaration.
* include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
	declaration.

From-SVN: r29021
1999-09-01 02:36:40 +00:00
Jeff Law 06671717b3 Fix typo in comment.
From-SVN: r29019
1999-08-31 18:12:33 -06:00
Jeffrey A Law a12e24fcb9 c-torture.exp: Avoid the "compare executables" optimization when testing native.
* lib/c-torture.exp: Avoid the "compare executables" optimization
        when testing native.

From-SVN: r29018
1999-08-31 17:59:40 -06:00
Jeffrey A Law 61c48fbf26 cse.c (delete_trivially_dead_insns): Do not delete stores to the internal_arg_pointer.
* cse.c (delete_trivially_dead_insns): Do not delete stores to
        the internal_arg_pointer.

From-SVN: r29017
1999-08-31 16:48:58 -06:00
Richard Henderson ede7cd4499 backport: Makefile.in (STAGESTUFF): Add *.peephole2.
Merge peephole2 from new_ia32_branch:
        * Makefile.in (STAGESTUFF): Add *.peephole2.
        (mostlyclean): Likewise.
        (recog.o): Depend on resource.h.

        * final.c (peephole): Conditionalize decl on HAVE_peephole.
        (final_scan_insn): Likewise for the invocation of peephole.
        * genconfig.c (main): Look for peephole and peephole2 patterns.
        Emit HAVE_peephole* accordingly.
        * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
        * flags.h (flag_peephole2): Declare.
        * toplev.c: New pass peephole2.  New flag -fpeephole2.

        * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
        * gencodes.c (main): Likewise.
        * genextract.c (main): Likewise.
        * genoutput.c (main): Likewise.
        * genemit.c (max_operand_1): Look for the max scratch operand.
        (gen_rtx_scratch): New.
        (gen_exp): Use it, and pass on new arg subroutine_type.
        (gen_expand): Take max scratch into account.
        (gen_split): Emit peephole2 functions.
        (output_peephole2_scratch): New.
        (main): Include hard-reg-set.h and resource.h.  Handle peephole2.
        * genrecog.c (routine_type): Add PEEPHOLE2.
        (IS_SPLIT): New.
        (make_insn_sequence): Match outer parallel for peep2.  Discard
        top level scratches and dups.
        (add_to_sequence): New args insn_type and top.  Update all callers.
        Handle toplevel peep2 matching insns.
        (write_subroutine): Handle peep2.
        (write_tree_1): Likewise.
        (write_tree): Likewise.
        (main): Likewise.
        (change_state): New arg afterward.  Update all callers.
        Handle matching separate insns.
        * recog.c (recog_next_insn): New.
        (peephole2_optimize): New.
        * rtl.def (DEFINE_PEEPHOLE2): New.
        * resource.c (find_free_register): New argument last_insn.  Use it
        to find a register available through the entire span.
        * resource.h (find_free_register): Update prototype.

From-SVN: r29015
1999-08-31 13:37:09 -07:00
Richard Henderson 4dfeccf9d0 * getpwd.c: Check HAVE_GETCWD before defining it away.
From-SVN: r29013
1999-08-31 13:33:13 -07:00
Jim Kingdon 8fd8d061f7 i386.c (output_strlen_unroll): Don't write xops[7] label if it wasn't set.
* config/i386/i386.c (output_strlen_unroll): Don't write xops[7]
        label if it wasn't set.

From-SVN: r29010
1999-08-31 13:05:20 -07:00
Zack Weinberg 2ac9349e26 cpplib.c (struct directive): Const-ify name pointer and function pointer prototype.
1999-08-31 12:44 -0700  Zack Weinberg  <zack@bitmover.com>

	* cpplib.c (struct directive): Const-ify name pointer and
	function pointer prototype.
	(validate_else, do_define, do_line, do_include, do_undef,
	do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
	do_elif, do_endif, do_sccs, do_assert, do_unassert,
	do_warning): Const-ify second arg.
	(directive_table): Mark const.  Reorder entries by frequency
	of usage, record statistics.

From-SVN: r29009
1999-08-31 19:46:18 +00:00
Zack Weinberg ef178af3a4 rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and bounds- check RTL accesses if --enable-checking.
1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>

	* rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
	bounds- check RTL accesses if --enable-checking.
	(RTVEC_ELT): Bounds check if --enable-checking.
	(XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
	XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
	(XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
	GET_NUM_ELEM.
	(X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
	X0BBDEF, X0ADVFLAGS):  New macros for accessing '0' slots of RTXes.

	(ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
	(NOTE_SOURCE_FILE): Use X0STR.
	(NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
	MEM_ALIAS_SET): Use X0INT.
	(NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
	JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
	Use X0EXP.
	* real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
	* rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
	(rtl_check_failed_bounds, rtl_check_failed_type1,
	rtl_check_failed_type2, rtvec_check_failed_bounds): New
	functions.
	(fancy_abort): Fix comment.

	* cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
	(cse_insn): Decrement LABEL_NUSES for jump target before
	deleting jump insn.
	* emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
	* final.c (alter_subreg): Compute regno before changing x to
	REG; set REGNO(x) after changing it.
	* flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
	notes containing CONST_INTs.
	(delete_eh_regions): Use NOTE_EH_HANDLER.
	* function.c (put_reg_into_stack): Make reg a MEM before
	initializing it.
	(fixup_var_refs_insns):  Save REG_NOTES (insn) in case we
	delete insn.
	(gen_mem_addressof): Make reg a MEM before initializing it.
	* integrate.c (copy_rtx_and_substitute): Copy '0' slots with
	X0WINT.
	* local-alloc.c (update_equiv_regs): Zap REG_NOTES before
	deleting an insn, not after.
	(block_alloc): Only look at PATTERN(insn) if we have to, and
	only if it's format class 'i'.
	* loop.c (check_dbra_loop): Check bl->biv->add_val is a
	CONST_INT before using its INTVAL.
	* print-rtl.c (print_rtx): Use X0STR.
	* regmove.c (fixup_match_1): Don't look at PATTERN of
	non-class-'i' insn chain elements.
	* reload.c (loc_mentioned_in_p): Take address of
	in->fld[1].rtx directly.
	* reload1.c (reload): Change reg to a MEM before initializing
	it.
	* varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
	have no names.
	* config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.

From-SVN: r29008
1999-08-31 19:39:10 +00:00
Andrew Haley 8230525836 mips.c (machine_dependent_reorg): Force a barrier to output the local constant pool if...
Fri Aug 20 13:43:41 1999  Andrew Haley  <aph@cygnus.com>

	* config/mips/mips.c (machine_dependent_reorg): Force a
	barrier to output the local constant pool if a barrier hasn't
	been found at a natural point in the instruction stream.

From-SVN: r29004
1999-08-31 13:56:41 +00:00
Jeff Law 04b9e2bf66 Daily bump.
From-SVN: r29003
1999-08-31 01:45:14 -06:00
Jeff Law 6f573a73b3 Fix thinko in last change.
From-SVN: r29002
1999-08-31 01:02:46 -06:00
Jeffrey A Law 835126657b emit-rtl.c (copy_rtx_if_shared): A MEM which references virtual_stack_vars_rtx or virtual_incoming_args_rtx can...
* emit-rtl.c (copy_rtx_if_shared): A MEM which references
        virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
        be shared.

From-SVN: r29001
1999-08-31 00:28:16 -06:00
Kaveh R. Ghazi f425a8879b c-parse.in (language_string): Constify.
* c-parse.in (language_string): Constify.

	* dwarf2out.c (language_string): Remove declaration.

	* dwarfout.c (language_string): Likewise.

	* toplev.c (language_string, init_parse, finish_parse): Likewise.

	* tree.h (language_string, init_parse, finish_parse): Declare.

	* i386/sun386.h (language_string): Remove declaration.

	* mips.h (language_string): Likewise.

	* nextstep.h (language_string): Likewise.

	* nextstep21.h (language_string): Likewise.

	* rs6000.c (language_string): Likewise.

In ch:
	* parse.c (language_string): Constify.
In cp:
	* parse.y (language_string): Constify.
In f:
	* com.c (language_string): Constify.
In java:
	* lang.c (language_string): Constify.

From-SVN: r29000
1999-08-31 02:16:34 +00:00
Kaveh R. Ghazi a2957e1d3e Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
* Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
	(getpwd.o): Remove target.

	* getpwd.c: Delete file.  Its in libiberty now.

	* dbxout.c (getpwd): Don't prototype.
	* dwarf2out.c (getpwd): Likewise
	* dwarfout.c (getpwd): Likewise
	* final.c (getpwd): Likewise.
	* protoize.c (getpwd): Likewise.

From-SVN: r28999
1999-08-31 01:01:15 +00:00
Kaveh R. Ghazi 1fdf491e50 repo.c (getpwd): Don't prototype.
* repo.c (getpwd): Don't prototype.
	* xref.c (getpwd): Likewise

From-SVN: r28998
1999-08-31 00:55:39 +00:00
Kaveh R. Ghazi 25c29e1e40 * libiberty.h (getpwd): Prototype.
From-SVN: r28997
1999-08-31 00:52:57 +00:00
Kaveh R. Ghazi 4ac3cb830a Makefile.in (CFILES): Add calloc.c and getpwd.c.
* Makefile.in (CFILES): Add calloc.c and getpwd.c.
	(REQUIRED_OFILES): Add getpwd.o.
	(getpwd.o): Add target.

	* configure.in (AC_PREREQ): Bump to 2.13.
	(AC_CHECK_HEADERS): Add check for <sys/stat.h>.

	* getpwd.c: New file, moved here from gcc.

From-SVN: r28996
1999-08-31 00:50:36 +00:00
Kaveh R. Ghazi 00d30284b8 Makefile.in (LIBS): Fix definition so we link with $(CLIB).
* Makefile.in (LIBS): Fix definition so we link with $(CLIB).
	Remove hacks for stuff which comes from libiberty.

	* Make-lang.in: Likewise.

From-SVN: r28995
1999-08-31 00:34:22 +00:00
Kaveh R. Ghazi 7d12830c32 Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
* Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
	Remove hacks for stuff which now comes from libiberty.

From-SVN: r28994
1999-08-31 00:30:56 +00:00
Kaveh R. Ghazi 5c45a8ac5f * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
From-SVN: r28993
1999-08-31 00:23:40 +00:00
Richard Henderson 963d441197 flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not mark_set_resources.
* flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
        mark_set_resources.

From-SVN: r28990
1999-08-30 16:08:14 -07:00
Hans-Peter Nilsson 2e419d0961 * Makefile.in (chillrt0.o): Depend on chillrt0.c explicitly.
From-SVN: r28989
1999-08-30 16:42:48 -06:00
Hans-Peter Nilsson 24c30b28cd * Makefile.in (xref.o): Depend on xref.c explicitly.
From-SVN: r28988
1999-08-30 16:42:01 -06:00
Jeffrey A Law 252215a77a * invoke.texi: Fix typo.
From-SVN: r28987
1999-08-30 16:38:25 -06:00
Jim Wilson 3f5cd61f62 Make fixinc/ work when autogen is not installed.
* fixinc/Makefile.in (subdir): New.
	(fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
	(Makefile): New.

From-SVN: r28986
1999-08-30 12:27:15 -07:00
Jason Merrill 829297e618 * cp-tree.h (IS_AGGR_TYPE_2): Fix typo.
From-SVN: r28985
1999-08-30 15:14:01 -04:00
Mark Mitchell 8d1e67c6c4 cp-tree.h (begin_init_stmts): Declare.
* cp-tree.h (begin_init_stmts): Declare.
	(finish_init_stmts): Likewise.
	* cvt.c (build_up_reference): Wrap the declaration of a temporary
	in a statement-expression so that we will see it when expanding
	tree structure later.
	* init.c (begin_init_stmts): Don't make it static.
	(finish_init_stmts): Likewise.

From-SVN: r28984
1999-08-30 18:54:20 +00:00
Mark Mitchell 3c5c0849a9 cp-tree.h (start_handler_parms): New function.
* cp-tree.h (start_handler_parms): New function.
	(expand_start_catch_block): Take only one parameter.
	(start_handler_parms): New function.
	* decl.c (start_handler_parms): Define it.
	* except.c (process_start_catch_block): Take only one parameter.
	Don't call grokdeclarator here.
	(expand_start_catch_block): Don't call grokdeclarator here,
	either.
	* parse.y (handler_args): Adjust call to
	expand_start_catch_block.  Use start_handler_parms.
	* pt.c (push_template_decl_real): Make permanent lists have
	permanent elements.
	(tsubst_expr): Adjust calls to expand_start_catch_block
	appropriately.
	* semantics.c (expand_stmt): Likewise.

From-SVN: r28983
1999-08-30 15:50:40 +00:00
Jeff Law 7d53d8239f Daily bump.
From-SVN: r28982
1999-08-30 01:45:14 -06:00
Jeffrey A Law e60d4d7b38 dwarf2out.c (mem_loc_descriptor): New argument MODE.
* dwarf2out.c (mem_loc_descriptor): New argument MODE.  All callers
        changed.  Handle autoincrement addressing modes.

From-SVN: r28981
1999-08-30 01:32:33 -06:00
Jeffrey A Law f83a09927c integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer just like we would the virtual incoming args...
* integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
        just like we would the virtual incoming args register when
        integrating.

From-SVN: r28980
1999-08-30 01:05:29 -06:00
Mark Mitchell 08017b74f3 pt.c (push_template_decl_real): Use template declaration from class type if it exists.
* pt.c (push_template_decl_real): Use template declaration from
	class type if it exists.

From-SVN: r28979
1999-08-30 05:36:00 +00:00
Alex Samuel 1c10870d31 pt.c (push_template_decl_real): Use template declaration from class type if it exists.
* pt.c (push_template_decl_real): Use template declaration from
	class type if it exists.

From-SVN: r28978
1999-08-30 05:22:45 +00:00
David Edelsohn 0d54c3f607 rs6000.h (ASM_FILE_START): Specify complete filename, including path, in .file directive.
* rs6000.h (ASM_FILE_START): Specify complete filename, including
        path, in .file directive.

From-SVN: r28977
1999-08-29 23:21:56 -04:00
Jeffrey A Law 93e0015e79 * gcc.c-torture/execute/990829-1.c: New test.
From-SVN: r28976
1999-08-29 15:48:53 -06:00
Jeffrey A Law 18987000a9 * gcc.c-torture/compile/990829-1.c: New test.
From-SVN: r28975
1999-08-29 14:37:24 -06:00
Russ Allbery 03e76b603c gcc.texi (External Bugs): Remove obsolete note about Perl on SunOS.
* gcc.texi (External Bugs): Remove obsolete note about Perl on
        SunOS.

From-SVN: r28974
1999-08-29 13:48:51 -06:00
Mark Mitchell b7b8bcd23a cp-tree.h (TYPE_NEEDS_CONSTRUCTING): Remove #if 0'd definition.
* cp-tree.h (TYPE_NEEDS_CONSTRUCTING): Remove #if 0'd definition.
	(maybe_inject_for_scope_var): Declare it.
	(initialize_local_var): Likewise.
	* decl.c (maybe_inject_for_scope_var): Make it global.
	(initialize_local_var): Likewise.  Move cleanup handling here,
	from cp_finish_decl.
	(make_rtl_for_nonlocal_decl): Use
	push_obstacks_nochange/pop_obstacks, rather than
	end_temporary_allocation/resume_temporary_allocation.
	(cp_finish_decl): Try to complete the type of a variable when it
	is declared.  Move cleanup-handling to initialize_local_var.
	(expand_static_init): Use tree-building code, rather than
	RTL-building code.
	* decl2.c (get_temp_name): Assert non-initializedness of
	temporaries.
	* init.c (create_temporary_var): Move RTL-assigning code to ...
	(get_temp_regvar): Here.
	* pt.c (tsbust_expr): Fix indentation.  Call cp_finish_decl here.
	* semantics.c (expand_stmt): Don't call cp_finish_decl here.  Just
	call initialize_local_var to generate initialization code.

From-SVN: r28973
1999-08-29 19:03:31 +00:00
Zack Weinberg f84300c426 stdbool.h: Make the typedef name _Bool, with bool a #defined alias.
1999-08-29 08:38 -0700  Zack Weinberg  <zack@bitmover.com>

	* stdbool.h: Make the typedef name _Bool, with bool a #defined
	alias.

From-SVN: r28972
1999-08-29 15:46:14 +00:00
Manfred Hollstein c648f99cd5 * POTFILES.in: Track files recently added/deleted.
From-SVN: r28971
1999-08-29 14:41:53 +00:00
Kaveh R. Ghazi 1b93a502f9 java-tree.h (lang_printable_name): Constify a char*.
* java-tree.h (lang_printable_name): Constify a char*.

	* lang.c (lang_printable_name): Likewise.

From-SVN: r28970
1999-08-29 13:51:39 +00:00
Kaveh R. Ghazi 4b731ffa59 * com.c (lang_printable_name): Constify a char*.
From-SVN: r28969
1999-08-29 13:49:39 +00:00
Kaveh R. Ghazi e1def31b3f cp-tree.h (fndecl_as_string, [...]): Constify a char*.
* cp-tree.h (fndecl_as_string, type_as_string,
	type_as_string_real, args_as_string, decl_as_string,
	expr_as_string, code_as_string, language_as_string,
	parm_as_string, op_as_string, assop_as_string, cv_as_string,
	lang_decl_name, cp_file_of, lang_printable_name): Constify a char*.

	* errfn.c (cp_printer): Likewise.

	* error.c (cp_printer, fndecl_as_string, type_as_string_real,
	type_as_string, expr_as_string, decl_as_string, lang_decl_name,
	cp_file_of, code_as_string, language_as_string, parm_as_string,
	op_as_string, assop_as_string, args_as_string, cv_as_string):
	Likewise.

	* tree.c (lang_printable_name): Likewise.

From-SVN: r28968
1999-08-29 13:47:37 +00:00
Kaveh R. Ghazi fa74c0f64c * lang.c (chill_print_error_function): Constify a char*.
From-SVN: r28967
1999-08-29 13:44:41 +00:00
Kaveh R. Ghazi 5f8ded6628 tree.c (tree_code_name): Constify a char*.
* tree.c (tree_code_name): Constify a char*.

	* tree.h (tree_code_name, decl_printable_name): Likewise.

	* function.h (struct function): Likewise.

	* toplev.c (decl_name, decl_printable_name): Likewise.

	* vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.

	* objc/objc-act.c (decl_printable_name): Remove redundant prototype.
	(init_objc): Remove function pointer cast.

From-SVN: r28966
1999-08-29 13:41:25 +00:00