Commit Graph

18412 Commits

Author SHA1 Message Date
Jeffrey A Law 974fd19467 configure.in (m68k-next-nextstep3*): Use collect2.
* configure.in (m68k-next-nextstep3*): Use collect2.
        * configure: Rebuilt.

From-SVN: r22336
1998-09-08 15:58:22 -06:00
Martin v. Löwis ab4856b150 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
From-SVN: r22335
1998-09-08 14:33:57 -04:00
Dave Love 8f13fd73bb u77-test.f (main): New file, somewhat altered from libf2c/libU77 version.
1998-09-08  Dave Love  <d.love@dl.ac.uk>
	* g77.f-torture/execute/u77-test.f (main): New file, somewhat
	altered from libf2c/libU77 version.

From-SVN: r22333
1998-09-08 14:58:46 +00:00
Dave Love d919746c4b New file, somewhat altered from libf2c/libU77 version.
From-SVN: r22332
1998-09-08 14:58:01 +00:00
Mumit Khan 5f5fc7ebfd * parse.y (nomods_initdcl0): Set up the parser stack correctly.
From-SVN: r22331
1998-09-08 10:00:19 -04:00
Joern Rennecke d3adbeea55 Typo fix in comment.
From-SVN: r22330
1998-09-08 14:42:58 +01:00
Mark Mitchell 0c8feefe30 cp-tree.h (anonymous_namespace_name): Declare.
* cp-tree.h (anonymous_namespace_name): Declare.
	* decl.c: Define it.
	(push_namespace): Use anonymous_namespace_name, rather than local
	static anon_name.
	* error.c (dump_decl): If a namespace is named
	anonymous_namespace_name, call it {anonymous}.

From-SVN: r22329
1998-09-08 11:37:48 +00:00
Mark Mitchell 57af83585d decl.c (grokparms): Distinguish between references and pointers in error message.
* decl.c (grokparms): Distinguish between references and pointers
	in error message.

From-SVN: r22328
1998-09-08 10:04:38 +00:00
Jeffrey A Law 9de92eb5d0 * rts.h: Update with missing code.
From-SVN: r22327
1998-09-08 03:42:42 -06:00
Jeffrey A Law e742fecc31 gjavah.c (print_class_decls): Fix thinko in arglist
* gjavah.c (print_class_decls): Fix thinko in arglist
        * jcv-io.c (find_classfile): Similarly.

From-SVN: r22326
1998-09-08 03:35:36 -06:00
Richard Henderson 76a837824a pt.c (process_partial_specialization): Consistantly allocate and zero tpd.parms based on ntparms.
* pt.c (process_partial_specialization): Consistantly allocate
	and zero tpd.parms based on ntparms.  Use tpd2.parms, not
	tpd.parms, where appropriate.

Co-Authored-By: Mark Mitchell <mark@markmitchell.com>

From-SVN: r22325
1998-09-08 09:06:28 +00:00
Jeff Law f2bd33a3e6 Daily bump.
From-SVN: r22324
1998-09-07 18:45:01 -06:00
Nathan Sidwell a2f319ea78 * gcc/configure.in: Don't assume srcdir is .../gcc
From-SVN: r22323
1998-09-07 18:41:00 -06:00
John Wehle a300b8d994 global.c: Update comments.
* global.c: Update comments.
        (global_alloc): Assign allocation-numbers
        even for registers allocated by local_alloc in case
        they are later spilled and retry_global_alloc is called.
        (mark_reg_store, mark_reg_clobber,
        mark_reg_conflicts, mark_reg_death): Always record a
        conflict with a pseudo register even if it has been
        assigned to a hard register.
        (dump_conflicts): Don't list pseudo registers already assigned to
        a hard register as needing to be allocated, but do list their
        conflicts.
        * local-alloc.c: Update comment.

From-SVN: r22322
1998-09-07 18:29:35 -06:00
Jeffrey A Law 4b877abdec * config.guess: Fix "tr" code. From Weiwen Liu.
From-SVN: r22321
1998-09-07 18:19:58 -06:00
Jeffrey A Law 75a398647e configure.in: Check for bogus GCC_EXEC_PREFIX and LIBRARY_PATH.
* configure.in: Check for bogus GCC_EXEC_PREFIX and LIBRARY_PATH.
        * configure: Rebuilt.

From-SVN: r22320
1998-09-07 16:39:41 -06:00
Michael Meissner b5370a8895 Fix name for -mcpu=ec603e; Make sure all targets that turn on -msoft-float use the correct multilibs
From-SVN: r22315
1998-09-07 20:42:22 +00:00
Kaveh R. Ghazi 96e88994f8 mkstemp.c: Include config.h even when not IN_GCC.
* mkstemp.c: Include config.h even when not IN_GCC.  Wrap header
       inclusions inside HAVE_*_H macros.  Include ansidecl.h when not
       IN_GCC.
       * vasprintf.c: Include stdarg.h/varargs.h first.
       * vprintf.c: Likewise.

From-SVN: r22314
1998-09-07 20:37:13 +00:00
Kaveh R. Ghazi 25074193a0 * toplev.c (print_switch_values): Make static to match prototype.
From-SVN: r22313
1998-09-07 20:35:41 +00:00
Jeffrey A Law bcf12124f0 configure.in: If we are unable to find the "gnatbind" program...
* configure.in: If we are unable to find the "gnatbind" program,
        then do not configure the ada subdir.
        * configure: Rebuilt.

From-SVN: r22312
1998-09-07 12:15:42 -06:00
Mark Mitchell 71271702b7 Back out previous change
From-SVN: r22311
1998-09-07 15:40:51 +00:00
Jason Merrill 8251199e44 revert error reporting patch
From-SVN: r22310
1998-09-07 10:25:35 -04:00
Jeffrey A Law 5db17173c6 * Makefile.in (INCLUDES): Update for recent toplevel gcc changes.
From-SVN: r22309
1998-09-07 07:00:59 -06:00
Mark Mitchell 4d6e34ea2b cp-tree.h (cp_error): Prototype.
* cp-tree.h (cp_error): Prototype.
	(cp_error_at): Likewise.
	(cp_warning): Likewise.
	(cp_warning_at): Likewise.
	(cp_pedwarn): Likewise.
	(cp_pedwarn_at): Likewise.
	(cp_compiler_error): Likewise.
	(cp_sprintf): Likewise.
	(cp_enable_warning): Likewise.
	* errfn.c: Remove hack to avoid error-function prototypes when
	including cp-tree.h.

Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

From-SVN: r22308
1998-09-07 11:35:39 +00:00
Dave Love b32067b2e2 sfe.c, dfe.c: Revert last change.
1998-09-07  Dave Love  <d.love@dl.ac.uk>
	* libI77/sfe.c, libI77/dfe.c: Revert last change.

From-SVN: r22307
1998-09-07 02:45:42 +00:00
Dave Love ccea2926bd Revert last change.
From-SVN: r22306
1998-09-07 02:45:11 +00:00
Jeff Law 40d72cefa2 Daily bump.
From-SVN: r22305
1998-09-06 18:45:03 -06:00
Mark Mitchell d41fbd2cb8 cp-error.def: New file.
* cp-error.def: New file.
	* Make-lang.in (cc1plus): Add dependency on it.
	* Makefile.in (CXX_TREE_H): Likewise.
	* cp-tree.h (error_code): New type.
	Include cp-error.def to get error codes.  Make it possible to
	include cp-tree.h in errfn.c.
	(enable_warning): New function.
	(flag_diag_codes): New variable.
	* errfn.c: Include cp-tree.h.
	(cp_err_msg): New type.  Include cp-error.def to define it.
	(err_msgs): New variable.
	(is_warning_enabled): New function.
	(cp_thing): Take an error_code, not a format string.  Output the
	diagnostic code if flag_diag_codes.
	(cp_error, cp_compiler_error, cp_sprintf, cp_error_at): Take
	error_codes, not format strings.
	(cp_warning, cp_pedwarn, cp_warning_at, cp_pedwarn_at): Likewise.
	Call is_warning_enabled.
	* decl2.c (flag_diag_codes): New variable.
	(lang_decode_option): Handle -fdiag-codes and -Wnumber.
	* lang-options.h: Add -fdiag-codes, -fno-diag-codes, and
	-W-number-, and -Wno-number.
	* class.c: Update all calls to error-functions.
	* cvt.c: Likewise.
	* decl.c: Likewise.
	* decl2.c: Likewise.
	* except.c: Likewise.
	* expr.c: Likewise.
	* friend.c: Likewise.
	* lex.c: Likewise.
	* parse.y: Likewise.
	* pt.c: Likewise.
	* repo.c: Likewise.
	* rtti.c: Likewise.
	* search.c: Likewise.
	* semantics.c: Likewise.
	* sig.c: Likewise.
	* tree.c: Likewise.
	* typeck.c: Likewise.
	* typeck2.c: Likewise.
	* xref.c: Likewise.

From-SVN: r22304
1998-09-06 19:45:16 +00:00
Anthony Green e04a16fbee Initial revision
From-SVN: r22299
1998-09-06 15:36:06 +00:00
Jeffrey A Law fc08e32958 Bump for snapshot
From-SVN: r22298
1998-09-06 08:04:04 -06:00
Jeffrey A Law 2c54a9ca03 Bump for snapshot
From-SVN: r22297
1998-09-06 07:28:10 -06:00
Dave Love 181cbf1736 io0.f: Test formatted direct i/o too.
1998-09-06  Dave Love  <d.love@dl.ac.uk>
	* g77.f-torture/execute/io0.f: Test formatted direct i/o too.

From-SVN: r22296
1998-09-06 06:25:18 +00:00
Dave Love b1f20ce35a Test formatted direct i/o too.
From-SVN: r22295
1998-09-06 06:24:38 +00:00
Dave Love b76d335291 1998-09-06 Dave Love <d.love@dl.ac.uk>
From Toon to fix spurious recursive i/o errors:
	* libI77/sfe.c (e_wdfe): Set f__init.
	* libI77/dfe.c (c_dfe): Check and set f__init.
	(s_rdfe, s_wdfe): Don't check and set f__init.

From-SVN: r22294
1998-09-06 06:15:14 +00:00
Kaveh R. Ghazi 114791ea10 Makefile.in (toplev.o): Depend on $(EXPR_H).
* Makefile.in (toplev.o): Depend on $(EXPR_H).
        (insn-extract.o, insn-attrtab.o): Depend on toplev.h.
        * gansidecl.h: Define ATTRIBUTE_NORETURN.
        * genattrtab.c: Have insn-attrtab.c include toplev.h.
        * genextract.c: Have insn-extract.c include toplev.h.
        * rtl.h: Don't prototype `fatal_insn_not_found' and `fatal_insn'.
        * toplev.c: Include expr.h.
        (really_sorry, fancy_abort): Remove prototypes.
        (set_target_switch): Add argument in prototype.
        (vfatal): Mark prototype with ATTRIBUTE_NORETURN.
        (v_really_sorry): Likewise.
        (print_version, print_single_switch, print_switch_values): Make
        static and add prototype arguments.
        (decl_printable_name): Add prototype arguments.
        (lang_expand_expr_t): New typedef.
        (lang_expand_expr): Declare as a lang_expand_expr_t.
        (incomplete_decl_finalize_hook): Add prototype argument.
        (decl_name): Mark variable `verbosity' with ATTRIBUTE_UNUSED.
        (botch): Likewise for variable `s'.
        (rest_of_type_compilation): Mark variables `type' and `toplev'
        with ATTRIBUTE_UNUSED if none of DBX_DEBUGGING_INFO,
        XCOFF_DEBUGGING_INFO or SDB_DEBUGGING_INFO are defined.
        (display_help): Make variable `i' an `unsigned long'.
        (main): Remove unused parameter `envp'.
        Cast assignment to `lang_expand_expr' to a `lang_expand_expr_t'.
        Cast -1 when comparing it with a `size_t'.
        * toplev.h (fatal, fatal_io_error, pfatal_with_name): Mark
        prototype with ATTRIBUTE_NORETURN.
        (fatal_insn_not_found, fatal_insn, really_sorry,
        push_float_handler, pop_float_handler): Add prototypes.
        (fancy_abort): Mark prototype with ATTRIBUTE_NORETURN.
        (do_abort, botch): Add prototypes.

From-SVN: r22293
1998-09-06 05:56:20 +00:00
John Carr a269a03c80 final.c (final): If a label is reached only from a single jump...
(
	* final.c (final): If a label is reached only from a single jump,
	call NOTICE_UPDATE_CC on the jump and its predecessor before
	emitting the insn after the label.
	* i386.h: Add AMD K6 support.
	Change TARGET_* macros to use table lookup.
	(INITIALIZE_TRAMPOLINE): Improve trampoline code.
	(ADJUST_COST): Change definition to call function in i386.c.
	(ISSUE_RATE): Define as 2 for anything newer than an 80486.
	* i386.c: Add AMD K6 support.
	Add constants for feature tests used by TARGET_* macros.
	(split_di): If before reload, call gen_lowpart and gen_highpart.
	(x86_adjust_cost): New function.
	(put_jump_code): New function.
	(print_operand): New codes 'D' and 'd'.
	* i386.md: New insn types.  New insn attribute "memory".
	Redefine scheduling parameters to use new types and add AMD K6
	support.  Explicitly set type of most insns.
	(move insns): K6 prefers movl $0,reg to xorl reg,reg.  Pentium
	Pro and K6 prefer movl $1,reg to incl reg.
	(adddi3, subdi3): Set cc_status.
	(DImode shift patterns): Change label counters from HOST_WIDE_INT
	to int; x86 can't have more than 2^31 DImode shifts per	file.
	(setcc): Combine all setcc patterns.  Allow writing memory.
	Combine all jump patterns using match_operator.
	(*bzero): Name pattern.  Emit mutliple stos instructions when that
	is faster than rep stos.
	(xordi3, anddi3, iordi3): Simplify DImode logical patterns and
	add define_split.
	* ch/Make-lang.in: Comment ^L characters.  Sun make doesn't like them.

From-SVN: r22292
1998-09-06 05:52:08 +00:00
John Carr f429f2c549 final.c (final): If a label is reached only from a single jump...
�
	* final.c (final): If a label is reached only from a single jump,
	call NOTICE_UPDATE_CC on the jump and its predecessor before
	emitting the insn after the label.
	* i386.h: Add AMD K6 support.
	Change TARGET_* macros to use table lookup.
	(INITIALIZE_TRAMPOLINE): Improve trampoline code.
	(ADJUST_COST): Change definition to call function in i386.c.
	(ISSUE_RATE): Define as 2 for anything newer than an 80486.
	* i386.c: Add AMD K6 support.
	Add constants for feature tests used by TARGET_* macros.
	(split_di): If before reload, call gen_lowpart and gen_highpart.
	(x86_adjust_cost): New function.
	(put_jump_code): New function.
	(print_operand): New codes 'D' and 'd'.
	* i386.md: New insn types.  New insn attribute "memory".
	Redefine scheduling parameters to use new types and add AMD K6
	support.  Explicitly set type of most insns.
	(move insns): K6 prefers movl $0,reg to xorl reg,reg.  Pentium
	Pro and K6 prefer movl $1,reg to incl reg.
	(adddi3, subdi3): Set cc_status.
	(DImode shift patterns): Change label counters from HOST_WIDE_INT
	to int; x86 can't have more than 2^31 DImode shifts per	file.
	(setcc): Combine all setcc patterns.  Allow writing memory.
	Combine all jump patterns using match_operator.
	(*bzero): Name pattern.  Emit mutliple stos instructions when that
	is faster than rep stos.
	(xordi3, anddi3, iordi3): Simplify DImode logical patterns and
	add define_split.
	* ch/Make-lang.in: Comment ^L characters.  Sun make doesn't like them.

From-SVN: r22291
1998-09-06 05:52:02 +00:00
John Carr 9ef4c6ef3c final.c (final): If a label is reached only from a single jump...
d
	* final.c (final): If a label is reached only from a single jump,
	call NOTICE_UPDATE_CC on the jump and its predecessor before
	emitting the insn after the label.
	* i386.h: Add AMD K6 support.
	Change TARGET_* macros to use table lookup.
	(INITIALIZE_TRAMPOLINE): Improve trampoline code.
	(ADJUST_COST): Change definition to call function in i386.c.
	(ISSUE_RATE): Define as 2 for anything newer than an 80486.
	* i386.c: Add AMD K6 support.
	Add constants for feature tests used by TARGET_* macros.
	(split_di): If before reload, call gen_lowpart and gen_highpart.
	(x86_adjust_cost): New function.
	(put_jump_code): New function.
	(print_operand): New codes 'D' and 'd'.
	* i386.md: New insn types.  New insn attribute "memory".
	Redefine scheduling parameters to use new types and add AMD K6
	support.  Explicitly set type of most insns.
	(move insns): K6 prefers movl $0,reg to xorl reg,reg.  Pentium
	Pro and K6 prefer movl $1,reg to incl reg.
	(adddi3, subdi3): Set cc_status.
	(DImode shift patterns): Change label counters from HOST_WIDE_INT
	to int; x86 can't have more than 2^31 DImode shifts per	file.
	(setcc): Combine all setcc patterns.  Allow writing memory.
	Combine all jump patterns using match_operator.
	(*bzero): Name pattern.  Emit mutliple stos instructions when that
	is faster than rep stos.
	(xordi3, anddi3, iordi3): Simplify DImode logical patterns and
	add define_split.
	* ch/Make-lang.in: Comment ^L characters.  Sun make doesn't like them.

From-SVN: r22290
1998-09-06 05:52:01 +00:00
John Carr 0d83c20351 final.c (final): If a label is reached only from a single jump...
0
	* final.c (final): If a label is reached only from a single jump,
	call NOTICE_UPDATE_CC on the jump and its predecessor before
	emitting the insn after the label.
	* i386.h: Add AMD K6 support.
	Change TARGET_* macros to use table lookup.
	(INITIALIZE_TRAMPOLINE): Improve trampoline code.
	(ADJUST_COST): Change definition to call function in i386.c.
	(ISSUE_RATE): Define as 2 for anything newer than an 80486.
	* i386.c: Add AMD K6 support.
	Add constants for feature tests used by TARGET_* macros.
	(split_di): If before reload, call gen_lowpart and gen_highpart.
	(x86_adjust_cost): New function.
	(put_jump_code): New function.
	(print_operand): New codes 'D' and 'd'.
	* i386.md: New insn types.  New insn attribute "memory".
	Redefine scheduling parameters to use new types and add AMD K6
	support.  Explicitly set type of most insns.
	(move insns): K6 prefers movl $0,reg to xorl reg,reg.  Pentium
	Pro and K6 prefer movl $1,reg to incl reg.
	(adddi3, subdi3): Set cc_status.
	(DImode shift patterns): Change label counters from HOST_WIDE_INT
	to int; x86 can't have more than 2^31 DImode shifts per	file.
	(setcc): Combine all setcc patterns.  Allow writing memory.
	Combine all jump patterns using match_operator.
	(*bzero): Name pattern.  Emit mutliple stos instructions when that
	is faster than rep stos.
	(xordi3, anddi3, iordi3): Simplify DImode logical patterns and
	add define_split.
	* ch/Make-lang.in: Comment ^L characters.  Sun make doesn't like them.

From-SVN: r22289
1998-09-06 05:51:59 +00:00
Dave Love ccc9661c66 x-next (BOOT_LDFLAGS): Define suitably for f771 linking.
Sun Sep  6 11:17:20 1998  Dave Love  <d.love@dl.ac.uk>
	* config/m68k/x-next (BOOT_LDFLAGS): Define suitably for f771
	linking.

From-SVN: r22288
1998-09-06 03:21:32 +00:00
Dave Love 143190e33b (BOOT_LDFLAGS): Define suitably for f771 linking.
From-SVN: r22287
1998-09-06 03:20:54 +00:00
Jeff Law bb5c298fe0 Daily bump.
From-SVN: r22286
1998-09-05 18:45:02 -06:00
Jeffrey A Law de8ff40405 allgmem.c: Do not include config.h anymore.
* allgmem.c: Do not include config.h anymore.
        * allmem.c allocate.c andps.c cardps.c cause.c copyps.c: Likewise.
        * diffps.c eqps.c exh.c exhstack.c ffsetclrps.c ffsetps.c: Likewise.
        * flsetclrps.c flsetps.c inbitstr.c inps.c leps.c ltps.c: Likewise.
        * neps.c notps.c orps.c retmem.c rtsdummy.c setbitps.c: Likewise.
        * setbits.c sliceps.c terminate.c unhex.c unhex1.c xorps.c: Likewise.

From-SVN: r22285
1998-09-05 18:33:30 -06:00
Richard Henderson cf396f5f04 Revert prototype for function not comitted.
From-SVN: r22284
1998-09-05 16:07:00 -07:00
Jeffrey A Law 0c2e9d7ad3 Makefile.in (INCLUDES): Update after recent toplevel gcc reorganizations.
* Makefile.in (INCLUDES): Update after recent toplevel gcc
        reorganizations.

From-SVN: r22283
1998-09-05 17:02:22 -06:00
Jeffrey A Law d261f3f9e6 Makefile.in (INCLUDES): Update after recent reorganization at the toplevel gcc directory.
* Makefile.in (INCLUDES): Update after recent reorganization at the
        toplevel gcc directory.

From-SVN: r22281
1998-09-05 16:51:23 -06:00
Richard Henderson f7e2dc364e * Makefile.in: Update dependancies for top-level gcc files that moved.
From-SVN: r22279
1998-09-05 15:26:50 -07:00
Richard Henderson 6abc6f40ef alpha.c (alpha_ra_ever_killed): Inspect the topmost sequence, not whatever we're generating now.
* alpha.c (alpha_ra_ever_killed): Inspect the topmost sequence,
        not whatever we're generating now.
        * alpha.c (set_frame_related_p, FRP): New.
        (alpha_expand_prologue): Mark frame related insns.
        (alpha_expand_epilogue): Likewise, but with a null FRP.
        * alpha.h (INCOMING_RETURN_ADDR_RTX): New.
        * alpha.md (exception_receiver): New.
        * alpha/crtbegin.asm (.eh_frame): New beginning.
        (__do_frame_setup, __do_frame_takedown): New.
        * alpha/crtend.asm (.eh_frame): New ending.
        * alpha/elf.h (DWARF2_DEBUGGING_INFO): Define.
        (ASM_SPEC): Don't emit both dwarf2 and mdebug.
        (ASM_FILE_START): Don't emit .file for dwarf2.

From-SVN: r22277
1998-09-05 15:22:07 -07:00
Richard Henderson 07ebc9309d rtl.h (enum reg_note): Add REG_FRAME_RELATED_EXPR.
* rtl.h (enum reg_note): Add REG_FRAME_RELATED_EXPR.
        * rtl.c (reg_note_name): Likewise.
        * rtl.texi (REG_NOTES): Likewise.
        * dwarf2out.c (dwarf2out_frame_debug): Use it.  Recognize a store
        without an offset.

From-SVN: r22273
1998-09-05 14:57:56 -07:00
Mark Mitchell 6c30752f09 cp-tree.h (TI_PENDING_SPECIALIZATION_FLAG): Remove.
* cp-tree.h (TI_PENDING_SPECIALIZATION_FLAG): Remove.
	* class.c (finish_struct): Remove hackery to deal with explicit
	specializations in class scope.
	* decl.c (grokfndecl): Improve error-recovery.
	* decl2.c (grokfield): Likewise.
	* pt.c (check_specialization_scope): New function.
	(begin_specialization): Call it.
	(process_partial_specialization): New function, split out from
	push_template_decl.  Check partial specializations more
	stringently.
	(push_template_decl): Call it.
	(check_explicit_specialization): Don't attempt to handle explicit
	specializations in class scope.
	(template_parm_data): Document.  Add current_arg and
	arg_uses_template_parms.
	(mark_template_parm): Set it.
	(tsubst_arg_types): Remove unused variable.
	* semantics.c (begin_class_definition): Tweak.

From-SVN: r22271
1998-09-05 20:14:21 +00:00