Commit Graph

24107 Commits

Author SHA1 Message Date
Andreas Jaeger
e86e67304e configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add thread support.
* configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
        thread support.
        * configure: Rebuilt.

From-SVN: r29402
1999-09-14 04:01:01 -06:00
Joel Sherrill
d147663589 configure.in (m68k-*-rtemscoff*): Added.
* configure.in (m68k-*-rtemscoff*): Added.
        * configure.in (mips64orion-*-rtems*): Converted to ELF.
        * configure.in (sparc-*-rtemsaout*): Added as alias for old
        sparc-rtems configuration.
        * configure.in (sparc-*-rtemself*): Added.
        * configure.in (sparc-*-rtems*): Now ELF not a.out.
        * config/i386/rtems.h: Added comment.
        * config/sparc/rtemself.h: New file.

        * configure.in (m68k-rtemself): Added.
        * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
        and DWARF_DEBUGGING_INFO.
        * config/m68k/crti.s: New file.
        * config/m68k/crtn.s: New file.
        * config/m68k/t-crtstuff: New file.
        * config/m68k/rtemself.h: New file.

        * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
        global ctor/dtor and C++ exception handling.
        * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
        for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
        ENDFILE_SPEC.
        * config/i386/t-rtems-i386: New File.

Co-Authored-By: Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
Co-Authored-By: Rosimildo DaSilva <rdasilva@connecttel.com>

From-SVN: r29401
1999-09-14 03:52:09 -06:00
Andreas Schwab
03c0377003 stmt.c (expand_end_case): Return right away if the case stack is empty.
* stmt.c (expand_end_case): Return right away if the case stack is
	empty.

From-SVN: r29400
1999-09-14 07:52:02 +00:00
Jeffrey A Law
21f50117c6 Makefile.in (version.c): Remove rule incorrectly brought in from the gcc2 merge.
* Makefile.in (version.c): Remove rule incorrectly brought in from
        the gcc2 merge.

From-SVN: r29399
1999-09-14 01:48:44 -06:00
Marc Espie
161bc93cb7 * objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
From-SVN: r29398
1999-09-14 01:46:09 -06:00
Marc Espie
4ce8ba6e5a * Makefile.in: Prepend $(SHELL) to move-if-change calls.
From-SVN: r29397
1999-09-14 01:45:42 -06:00
Jeff Law
37ce8f792f Daily bump.
From-SVN: r29396
1999-09-14 01:45:09 -06:00
Marc Espie
84c8132030 Makefile.in: Prepend $(SHELL) to move-if-change calls.
* Makefile.in:  Prepend $(SHELL) to move-if-change calls.
        * msdos/top.sed:  Take into account a prepended $(SHELL) to
        move-if-change.
        * winnt/config-nt.sed:  Likewise.  Kill bogus substitution.

From-SVN: r29395
1999-09-14 01:42:59 -06:00
J"orn Rennecke
18bf656fc3 regmove.c (fixup_match_1): Don't change an unchanging register.
* regmove.c (fixup_match_1): Don't change an unchanging register.
        (stable_but_for_p): Renamed to:
        (stable_and_no_regs_but_for_p).  Reject unchanging registers too.
        Changed all callers.

From-SVN: r29394
1999-09-14 01:39:14 -06:00
Andreas Schwab
328de7dac7 loop.c (strength_reduce): Don't call reg_used_between_p if the insn from BL2 is after the insn from BL.
* loop.c (strength_reduce): Don't call reg_used_between_p if the
        insn from BL2 is after the insn from BL.

From-SVN: r29393
1999-09-14 01:34:59 -06:00
Jeff Law
51f53e0105 Fix typo in comment.
From-SVN: r29392
1999-09-14 01:18:02 -06:00
Jeff Law
66519c706b Fix typos in a recent revision.
From-SVN: r29391
1999-09-14 00:52:41 -06:00
Marc Espie
2ac2226c50 libiberty.h (basename): OpenBSD has a correct prototype.
* libiberty.h (basename):  OpenBSD has a correct prototype.
        (xrealloc):  Remove outdated comment.

From-SVN: r29390
1999-09-14 00:35:01 -06:00
Richard Henderson
4bbf910eef recog.h (INSN_OUTPUT_FORMAT_*): New.
* recog.h (INSN_OUTPUT_FORMAT_*): New.
        (struct insn_data): Merge `template' and `outfun' into `output'.
        Add `output_format'.
        * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
        (struct data): Remove `outfun'; add `output_format'.
        (name_for_index): Remove declaration.
        (output_insn_data): Handle output formats.
        (process_template): Emit the bare array for @.
        (gen_expand, gen_split): Set output_format to NONE.
        * output.h (get_insn_template): Declare.
        * final.c (get_insn_template): New.
        (final_scan_insn): Use it.
        * toplev.c (compile_file): Likewise.

        * c4x/c4x.c (c4x_process_after_reload): Likewise.
        * i860/i860.c (output_delayed_branch): Likewise.
        (output_delay_insn): Likewise.

From-SVN: r29389
1999-09-13 21:19:34 -07:00
Alexandre Oliva
c452dcde0a * rtl.c (obstack_alloc_rtx): Removed.
From-SVN: r29388
1999-09-14 02:31:19 +00:00
Mark Mitchell
9d85d30c20 cp-tree.h (build_target_expr): New function.
* cp-tree.h (build_target_expr): New function.
	* call.c (build_conditional_expr): Use build_target_expr.
	(convert_like): Likewise.
	(build_over_call): Likewise.
	* cvt.c (build_up_reference): Likewise.
	* decl.c (build_cleanup_on_safe_obstack): Fold into ...
	(destroy_local_var): Here.
	(build_target_expr): New function.
	* tree.c (build_cplus_new): Use it.
	(get_target_expr): Likewise.

From-SVN: r29387
1999-09-14 00:50:07 +00:00
Zack Weinberg
88731f16b0 gmicro.md: Disable move DF->DI anonymous pattern.
1999-09-13 17:03 -0700  Zack Weinberg  <zack@bitmover.com>

	* config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.

From-SVN: r29386
1999-09-14 00:02:56 +00:00
Richard Henderson
28d52ffb6d i386.c (call_insn_operand): Reject const_int.
* i386.c (call_insn_operand): Reject const_int.
        (expander_call_insn_operand): Use call_insn_operand.

From-SVN: r29385
1999-09-13 15:22:48 -07:00
Kaveh R. Ghazi
06b8b73051 * gcc.c (getrusage): Wrap prototype arguments in PROTO().
From-SVN: r29384
1999-09-13 21:46:32 +00:00
Zack Weinberg
9a76ab7ea9 Fix typos commenting out movdicc, movdfcc
From-SVN: r29383
1999-09-13 19:20:51 +00:00
Zack Weinberg
dcff18a1ab i370.md (mulsi, [...]): Use DImode operation.
1999-09-13 12:18 -0700  Zack Weinberg  <zack@bitmover.com>

	* config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
	Use DImode operation.

From-SVN: r29382
1999-09-13 19:19:17 +00:00
Zack Weinberg
03c41c05ec gcc.c: Include sys/resource.h.
1999-09-13 12:13 -0700  Zack Weinberg  <zack@bitmover.com>

	* gcc.c: Include sys/resource.h.
	(report_times): New flag.
	(execute):  If report_times is set, calculate and report the
	CPU time consumed by each subprocess.

	(rus, prus): New globals.
	(option_map): Add --time.
	(display_help): Document -time.
	(process_command): Set report_times if -time is given.
	Turn off -pipe if -time is given.

	* invoke.texi: Document new option -time.

	* configure.in: Check for getrusage.  Check if we have to
	prototype getrusage.
	* acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
	* configure: Regenerate.
	* config.in: Regenerate.

From-SVN: r29381
1999-09-13 19:16:24 +00:00
Dave Brolley
503cb43627 cppinit.c (append_include_chain): Initialize 'next' and 'alloc' fields.
Mon Sep 13 12:57:06 1999  Dave Brolley  <brolley@cygnus.com>

	* cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
	fields.

From-SVN: r29380
1999-09-13 12:58:44 -04:00
Nathan Sidwell
54c75f8cd4 sizeof3.C: Remove XFAILS.
* g++.old-deja/g++.other/sizeof3.C: Remove XFAILS.
	* g++.old-deja/g++.other/sizeof4.C: Remove XFAILS.

From-SVN: r29379
1999-09-13 14:23:16 +00:00
Nathan Sidwell
cc3dc6ea43 typeck.c (expr_sizeof): Don't decay arrays and functions.
* typeck.c (expr_sizeof): Don't decay arrays and functions.
	Remove misleading comment.
	(build_compound_expr): Don't decay arrays.

From-SVN: r29378
1999-09-13 13:41:30 +00:00
Nathan Sidwell
a992ebf6ce Set *correct* g++ options.
From-SVN: r29377
1999-09-13 13:14:43 +00:00
Mark Klein
6e47d69e32 * config/mpeix.mt: New for MPEiX port.
From-SVN: r29374
1999-09-13 06:30:08 -06:00
Jeffrey A Law
2da4ce1954 * gcc.c-torture/compile/990913-1.c: New test.
From-SVN: r29373
1999-09-13 06:28:55 -06:00
Jason Merrill
50fd634337 call.c (build_conditional_expr): Always use a TARGET_EXPR for class rvalues again.
* call.c (build_conditional_expr): Always use a TARGET_EXPR for
	class rvalues again.

From-SVN: r29372
1999-09-13 06:12:07 -04:00
Nick Clifton
0924404c54 Move definition of 'thenan' to its own object file in order to save space.
From-SVN: r29371
1999-09-13 09:14:21 +00:00
Jeff Law
9f59f94d74 Daily bump.
From-SVN: r29370
1999-09-13 01:45:11 -06:00
Andreas Schwab
4757f5c9c4 tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and TYPE_SIZE_UNIT.
* tree.c (fix_sizetype):  Exchange the types for TYPE_SIZE and
	TYPE_SIZE_UNIT.

From-SVN: r29369
1999-09-13 07:41:20 +00:00
Kaveh Ghazi
4c3d3ad845 Fix typo in last change.
From-SVN: r29368
1999-09-13 04:40:51 +00:00
Kaveh R. Ghazi
9257393c20 Makefile.in (gcc.o, [...]): Depend on gcc.h.
* Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.

	* gcc.h: New file.
	(lang_specific_driver): Don't take a function pointer parameter.
	All callers changed.

	* gcc.c: Include gcc.h.
	(do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
	lang_specific_extra_outfiles, fatal): Don't declare.
	(multilib_defaults_raw): Constify.
	(read_specs): Call memset, rather than bzero.
	(main): Call return, not exit.
	(lookup_compiler): Call memcpy, not bcopy.
	(fatal): Make extern.

	* cppspec.c: Include gcc.h.
	(lang_specific_driver): Initialize variable `quote'.  Constify a
	char*.  All calls to the function pointer parameter now
	explicitly call `fatal'.

	* gccspec.c (lang_specific_driver): Include gcc.h.

cp:

	* Make-lang.in (g++spec.o): Depend on system.h and gcc.h.

	* g++spec.c: Include gcc.h.
	(lang_specific_driver): Constify a char*.  Call xcalloc, not
 	xmalloc/bzero.  All calls to the function pointer parameter now
 	explicitly call `fatal'.

f:

	* Make-lang.in (g77spec.o): Depend on system.h and gcc.h.

	* g77spec.c: Include gcc.h.
	(g77_xargv): Constify.
	(g77_fn): Add parameter prototypes.
	(lookup_option, append_arg): Add static prototypes.
	(g77_newargv): Constify.
	(lookup_option, append_arg, lang_specific_driver): Constify a char*.
	(lang_specific_driver): All calls to the function pointer
 	parameter now explicitly call `fatal'.

java:

	* Make-lang.in (jvspec.o): Depend on system.h and gcc.h.

	* jvspec.c: Include gcc.h.  Don't include gansidecl.h.
	(do_spec, lang_specific_pre_link, lang_specific_driver,
	input_filename, input_filename_length): Don't declare.
	(main_class_name, jvgenmain_spec, lang_specific_driver):
	Constify a char*.
	(lang_specific_driver): All calls to the function pointer
	parameter now explicitly call `fatal'.

From-SVN: r29367
1999-09-13 03:57:40 +00:00
Mark Mitchell
5d73aa6323 call.c (implicit_conversion): Robustify.
* call.c (implicit_conversion): Robustify.  Handle OFFSET_REFs.
	* cvt.c (ocp_convert): Complete the from and destination types.
	Adjust warning about functions always being `true' in conditionals.
	* decl.c (duplicate_decls): Don't play funny games with abort.
	* error.c (dump_expr): Handle OVERLOADs.
	* spew.c (probe_obstack): Remove.
	* typeck.c (condition_conversion): Use perform_implicit_conversion.

From-SVN: r29366
1999-09-13 00:35:00 +00:00
Mark Mitchell
b7cf61b5b3 decl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.
* decl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.
	(init_decl_processing): Don't set TREE_PERMANENT for the
	error_mark_node.
	(start_decl): Don't rebuild non-permanent ARRAY_TYPEs.
	(grokdeclarator): Likewise.
	(grokparms): Don't check TREE_PERMANENT when building up lists.
	* decl2.c (grokfield): Don't assert TREE_PERMANENT.
	(mark_inline_for_output): Likewise.
	* expr.c (cplus_expand_expr): Don't check TREE_PERMANENT.
	* init.c (build_offset_ref): Don't check TREE_PERMANENT.
	* lex.c (check_newline): Don't check ggc_p; it is always one.
	* pt.c (process_template_parm): Don't check TREE_PERMANENT.
	* spew.c (yylex): Don't copy_node or probe_obstacks for
	non-permanent CONSTANTs and STRINGs.
	* tree.c (build_cplus_array_type_1): Don't fuss with
	TREE_PERMANENT on ARRAY_TYPEs.

From-SVN: r29365
1999-09-12 21:19:02 +00:00
Richard Earnshaw
36ab44c74e arm.c (note_invalid_constants): Use recog_data.operand_type for recog_op_type.
* arm.c (note_invalid_constants): Use recog_data.operand_type
for recog_op_type.

From-SVN: r29364
1999-09-12 18:51:35 +00:00
Bernd Schmidt
7144af1447 Fix stupid mistake
From-SVN: r29363
1999-09-12 15:15:54 +00:00
Bernd Schmidt
01cfef6b10 Add missing declarations
From-SVN: r29362
1999-09-12 15:03:28 +00:00
Bernd Schmidt
eceef4c97d Use structures not many single arrays in reload
From-SVN: r29361
1999-09-12 14:54:56 +00:00
Bernd Schmidt
c2a37c55a6 define_function cleanup
From-SVN: r29360
1999-09-12 14:03:23 +00:00
Richard Henderson
40c1bf53bb * alpha.md (adddi3): Make `pattern' array static.
From-SVN: r29359
1999-09-12 05:46:27 -07:00
Richard Henderson
a995e389c4 Replace insn_foo with insn_data.foo.
From-SVN: r29358
1999-09-12 05:46:08 -07:00
Michael Hayes
ddf16f1841 c4x.h (c4x_rpts_cycles_string, [...]): Constify char *.
* config/c4x/c4x.h (c4x_rpts_cycles_string,
	c4x_cpu_version_string): Constify char *.
	* config/c4x/c4x.c (c4x_rpts_cycles_string,
	c4x_cpu_version_string): Likewise.

From-SVN: r29357
1999-09-12 10:24:02 +00:00
Jeff Law
63fcb74e85 Daily bump.
From-SVN: r29356
1999-09-12 01:45:08 -06:00
Richard Henderson
24554b03c6 tree.c (save_tree_status): Revert 10 Sep change.
* tree.c (save_tree_status): Revert 10 Sep change.
        (restore_tree_status): Likewise.  Call obstack_free with NULL
        before freeing the obstack proper.

From-SVN: r29355
1999-09-11 23:30:39 -07:00
Richard Henderson
1497faf6be * cse.c (cse_main): If gc'ing, collect around cse_basic_block.
From-SVN: r29354
1999-09-11 23:26:04 -07:00
Richard Henderson
0172a8f1f4 ggc-simple.c (ggc_pop_context): Fold outstanding bytes into surrounding context.
* ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
        surrounding context.

From-SVN: r29353
1999-09-11 23:25:44 -07:00
Alexandre Petit-Bianco
f4e16489df re GNATS gcj/18 (Internal error: segfault on invalid cast)
Sat Sep 11 16:46:44 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (find_applicable_accessible_methods_list): Search
        abstract classes as interfaces.

(Fix to Java PR #18:
 http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00015.html)

From-SVN: r29352
1999-09-11 20:20:31 -07:00
Mark Mitchell
858e574fdc tree.c (type_hash_canon): Put all types in the hash-table, when GC'ing.
* tree.c (type_hash_canon): Put all types in the hash-table, when
	GC'ing.

From-SVN: r29351
1999-09-12 02:49:34 +00:00