Commit Graph

21509 Commits

Author SHA1 Message Date
Nick Clifton
de77e128c3 Include dbxelf.h
From-SVN: r25996
1999-03-26 10:49:03 +00:00
Nick Clifton
cedcf9372a Move stabs specific target macros out od svr4.h and elfos.h and into dbxelf.h
From-SVN: r25995
1999-03-26 10:45:27 +00:00
Kaveh R. Ghazi
d8e178a02b Warning fixes:
* call.c (op_error): Const-ify a char*.
        (add_candidate, source_type, add_warning): Add static prototype.
        (print_z_candidates): Const-ify a char*.
        * class.c (resolve_address_of_overloaded_function,
        fixed_type_or_null, build_vtable_entry_ref): Add static prototype.
        (get_vtable_name, finish_struct_1): Const-ify a char*.
        * cvt.c (convert_to_reference): Likewise.
        * decl.c (redeclaration_error_message, record_builtin_type,
        record_unknown_type, member_function_or_else, bad_specifiers):
        Likewise.
        (find_binding, select_decl, unqualified_namespace_lookup,
        lookup_flags, qualify_lookup, record_builtin_java_type, tag_name):
        Add static prototype.
        (warn_extern_redeclared_static, duplicate_decls, pushdecl,
        implicitly_declare, record_builtin_java_type, define_function,
        grok_op_properties, tag_name): Const-ify a char*.
        * cp-tree.h (FORMAT_VBASE_NAME): Allow parameter `BUF' to be const.
        (define_function, finish_builtin_type): Const-ify a char*.
        (cp_error, cp_error_at, cp_warning, cp_warning_at, cp_pedwarn,
        cp_pedwarn_at, cp_compiler_error, cp_sprintf): Add prototype args.
        (file_name_nondirectory): Const-ify a char*.
        (init_filename_times): Don't prototype.
        (compiler_error): Prototype.
        (yyerror, init_repo): Const-ify a char*.
        (build_srcloc): Don't prototype.
        (build_x_indirect_ref, build_indirect_ref, build_component_addr):
        Const-ify a char*.
        (warn_for_assignment): Don't prototype.
        (convert_for_initialization, readonly_error, check_for_new_type,
        GNU_xref_begin, GNU_xref_file, GNU_xref_ref, GNU_xref_call):
        Const-ify a char*.
        * decl2.c (acceptable_java_type, output_vtable_inherit,
        setup_initp, start_objects, finish_objects, do_dtors, do_ctors,
        merge_functions, decl_namespace, validate_nonmember_using_decl,
        do_nonmember_using_decl): Add static prototype.
        (lang_f_options): Const-ify a char*.
        (finish_builtin_type): Likewise.
        (add_function, arg_assoc_namespace, arg_assoc_class): Add static
        prototype.
        * errfn.c: Include cp-tree.h.
        (cp_thing): Add static prototype.
        (compiler_error): Don't protoptype.
        (cp_compiler_error): Cast `compiler_error' to `errorfn' before
        passing it to `cp_thing'.
        * error.c (interesting_scope_p): Add static prototype.
        * except.c (build_eh_type_type, build_eh_type_type_ref): Const-ify
        a char*.
        * init.c (compiler_error): Don't prototype.
        (member_init_ok_or_else): Const-ify a char*.
        (build_java_class_ref): Add static prototype.
        * lex.c (compiler_error): Don't prototype.
        (get_time_identifier, interface_strcmp, extend_token_buffer,
        handle_cp_pragma): Const-ify a char*.
        (is_global, init_filename_times): Add static prototype.
        (file_name_nondirectory, cplus_tree_code_name): Const-ify a char*.
        (compiler_error): Change from fixed args to variable args.
        (yyerror): Const-ify a char*.
        * parse.y (cond_stmt_keyword): Const-ify a char*.
        (parse_decl): Add static prototype.
        * pt.c (template_args_equal, print_template_context): Likewise.
        (print_candidates, check_default_tmpl_args): Const-ify a char*.
        (instantiate_class_template): Likewise.
        * repo.c (get_base_filename, open_repo_file, init_repo): Likewise.
        * rtti.c (call_void_fn, expand_generic_desc, expand_si_desc,
        expand_class_desc, expand_ptr_desc, expand_attr_desc): Likewise.
        * search.c (lookup_field_info, lookup_member): Likewise.
        (lookup_member): Cast the first argument of `bzero' to a PTR.
        * sig.c (compiler_error): Don't prototype.
        (build_signature_pointer_or_reference_nam): Const-ify a char*.
        (get_sigtable_name, build_member_function_pointer): Likewise.
        * tree.c (compiler_error): Don't prototype.
        (no_linkage_helper, build_srcloc): Add static prototype.
        (build_vbase_pointer_fields): Const-ify a char*.
        (__eprintf): Don't unnecessarily handle `const' when !__STDC__.
        * typeck.c (compiler_error): Don't prototype.
        (convert_for_assignment): Const-ify a char*.
        (comp_cv_target_types): Add static prototype.
        (build_x_indirect_ref, build_indirect_ref, convert_arguments,
        build_component_addr, build_unary_op, convert_for_initialization):
        Const-ify a char*.
        * typeck2.c (ack): Add static prototype and change from fixed args
        to variable args.
        (readonly_error, check_for_new_type): Const-ify a char*.
        * xref.c (_XREF_FILE, find_file, filename, fctname, declname,
        fixname, open_xref_file, classname, GNU_xref_begin): Likewise.
        (GNU_xref_file): Likewise.  Also use `xmalloc' instead of `malloc'.
        (GNU_xref_end_scope, GNU_xref_ref, GNU_xref_decl, GNU_xref_call,
        gen_assign, GNU_xref_member): Const-ify a char*.

From-SVN: r25994
1999-03-26 07:45:00 +00:00
Charles M. Hannum
1424137450 fold-const.c (fold_truthop): Verify that the lhs and rhs are in the same bit position when...
* fold-const.c (fold_truthop): Verify that the lhs and rhs are
       in the same bit position when optimizing bitfield references
       which have the same mask.

From-SVN: r25993
1999-03-25 18:08:54 -07:00
Martin v. Löwis
5197829d3c gcc.texi (Copy Assignment): New node.
* gcc.texi (Copy Assignment): New node.
	* gxxint.texi: Remove old discussion on copying virtual bases.

From-SVN: r25992
1999-03-26 00:58:14 +00:00
Jeff Law
dd4b5f0d25 Daily bump.
From-SVN: r25991
1999-03-25 17:45:03 -07:00
Jeffrey A Law
9f29bdb0f8 * gcc.c-torture/execute/990326-1.c: New test from Charles Hannum.
From-SVN: r25990
1999-03-25 16:55:15 -07:00
Zack Weinberg
08dc830e4f gcc.c: Compile unconditionally all code formerly dependent on #ifdef LANG_SPECIFIC_DRIVER.
* gcc.c: Compile unconditionally all code formerly dependent
	on #ifdef LANG_SPECIFIC_DRIVER.
	* gccspec.c: New file with stub lang_specific_driver,
	lang_specific_pre_link.
	* Makefile.in: Link gccspec.o into xgcc.  Add rule to compile
	gccspec.c.
	* cp/Make-lang.in: Remove all references to g++.o/g++.c.
	Link g++ from gcc.o.
	* f/Make-lang.in: Remove all references to g77.o/g77.c.
	Link g77 from gcc.o.
	* java/Make-lang.in: Remove all references to gcj.o/gcj.c.
	Link gcj from gcc.o.

From-SVN: r25989
1999-03-25 16:36:47 -07:00
Craig Burley
96e57dac2f New tests (one might fail due to complex alias problems)
From-SVN: r25988
1999-03-25 18:09:01 -05:00
Jason Merrill
f3fc6b6c45 * gcc.texi (Temporaries): Update.
From-SVN: r25987
1999-03-25 16:25:27 -05:00
John Wehle
e2064f2a45 Added John Wehle.
From-SVN: r25986
1999-03-25 21:11:47 +00:00
Jason Merrill
2f435bed98 * decl2.c (comdat_linkage): Treat vtables like functions.
From-SVN: r25985
1999-03-25 14:45:25 -05:00
Richard Henderson
e55b448636 combine.c (distribute_notes): Place REG_LABEL also where REG_EQUAL indicates.
* combine.c (distribute_notes): Place REG_LABEL also where
        REG_EQUAL indicates.

From-SVN: r25984
1999-03-25 08:54:31 -08:00
Finn Hakansson
cc29143343 * loop.c (strength_reduce): Correct a comment.
From-SVN: r25983
1999-03-25 09:31:16 -07:00
Mark Mitchell
cf38f48a33 * pt.c (tsubst_decl): Tsubst into DECL_BEFRIENDING_CLASSES.
From-SVN: r25982
1999-03-25 13:28:41 +00:00
Jim Wilson
4e8d7ddc2a Fix missing initializer compile-time warning messages.
* a29k/a29k.h (TARGET_SWITCHES): Add doc strings.
	* i960/i960.h (TARGET_SWITCHES): Add doc strings.
	* invoke.texi (a29k): Add documentation for -mno-multm option.

From-SVN: r25981
1999-03-25 04:54:06 -08:00
Andrew Macleod
5fa671cf5b rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
Thu Mar 25 14:04:54 EST 1999  Andrew MacLeod  <amacleod@cygnus.com>
	* rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
	* rtl.h (struct rtx_def): Update comment for frame_related field.
	(set_unique_reg_note): Declare prototype.
	* dwarf2out.c (dwarf2out_frame_debug_expr): Split out from
	'dwarf2out_frame_debug' to handle only expressions, and process
	component parts of a PARALLEL expression.
	(dwarf2out_frame_debug): Process insns only, and call
	new function 'dwarf2out_frame_debug_expr' for patterns.
	* emit-rtl.c (set_unique_reg_note): New function to add a reg note,
	but if there is an existingone, deletes it first.
	* expmed.c (expand_mult, expand_divmod): Use set_unique_reg_note.
	* optabs.c (add_equal_note, expand_binop): Use set_unique_reg_note.
	(emit_no_conflict_block, emit_libcall_block): Use set_unique_reg_note.
	(expand_fix):  Use set_unique_reg_note.

From-SVN: r25980
1999-03-25 12:04:26 +00:00
Andrew Macleod
7e5bda2c38 rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
d
Thu Mar 25 14:04:54 EST 1999  Andrew MacLeod  <amacleod@cygnus.com>
	* rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
	* rtl.h (struct rtx_def): Update comment for frame_related field.
	(set_unique_reg_note): Declare prototype.
	* dwarf2out.c (dwarf2out_frame_debug_expr): Split out from
	'dwarf2out_frame_debug' to handle only expressions, and process
	component parts of a PARALLEL expression.
	(dwarf2out_frame_debug): Process insns only, and call
	new function 'dwarf2out_frame_debug_expr' for patterns.
	* emit-rtl.c (set_unique_reg_note): New function to add a reg note,
	but if there is an existingone, deletes it first.
	* expmed.c (expand_mult, expand_divmod): Use set_unique_reg_note.
	* optabs.c (add_equal_note, expand_binop): Use set_unique_reg_note.
	(emit_no_conflict_block, emit_libcall_block): Use set_unique_reg_note.
	(expand_fix):  Use set_unique_reg_note.

From-SVN: r25979
1999-03-25 12:04:25 +00:00
Andrew Macleod
87b47c855d rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
a
Thu Mar 25 14:04:54 EST 1999  Andrew MacLeod  <amacleod@cygnus.com>
	* rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
	* rtl.h (struct rtx_def): Update comment for frame_related field.
	(set_unique_reg_note): Declare prototype.
	* dwarf2out.c (dwarf2out_frame_debug_expr): Split out from
	'dwarf2out_frame_debug' to handle only expressions, and process
	component parts of a PARALLEL expression.
	(dwarf2out_frame_debug): Process insns only, and call
	new function 'dwarf2out_frame_debug_expr' for patterns.
	* emit-rtl.c (set_unique_reg_note): New function to add a reg note,
	but if there is an existingone, deletes it first.
	* expmed.c (expand_mult, expand_divmod): Use set_unique_reg_note.
	* optabs.c (add_equal_note, expand_binop): Use set_unique_reg_note.
	(emit_no_conflict_block, emit_libcall_block): Use set_unique_reg_note.
	(expand_fix):  Use set_unique_reg_note.

From-SVN: r25978
1999-03-25 12:04:24 +00:00
Andrew Macleod
b664de3a04 rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
Thu Mar 25 14:04:54 EST 1999  Andrew MacLeod  <amacleod@cygnus.com>
	* rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
	* rtl.h (struct rtx_def): Update comment for frame_related field.
	(set_unique_reg_note): Declare prototype.
	* dwarf2out.c (dwarf2out_frame_debug_expr): Split out from
	'dwarf2out_frame_debug' to handle only expressions, and process
	component parts of a PARALLEL expression.
	(dwarf2out_frame_debug): Process insns only, and call
	new function 'dwarf2out_frame_debug_expr' for patterns.
	* emit-rtl.c (set_unique_reg_note): New function to add a reg note,
	but if there is an existingone, deletes it first.
	* expmed.c (expand_mult, expand_divmod): Use set_unique_reg_note.
	* optabs.c (add_equal_note, expand_binop): Use set_unique_reg_note.
	(emit_no_conflict_block, emit_libcall_block): Use set_unique_reg_note.
	(expand_fix):  Use set_unique_reg_note.

From-SVN: r25977
1999-03-25 12:04:22 +00:00
Andrew Macleod
2b4b3e5f21 rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
Thu Mar 25 14:04:54 EST 1999  Andrew MacLeod  <amacleod@cygnus.com>
	* rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
	* rtl.h (struct rtx_def): Update comment for frame_related field.
	(set_unique_reg_note): Declare prototype.
	* dwarf2out.c (dwarf2out_frame_debug_expr): Split out from
	'dwarf2out_frame_debug' to handle only expressions, and process
	component parts of a PARALLEL expression.
	(dwarf2out_frame_debug): Process insns only, and call
	new function 'dwarf2out_frame_debug_expr' for patterns.
	* emit-rtl.c (set_unique_reg_note): New function to add a reg note,
	but if there is an existingone, deletes it first.
	* expmed.c (expand_mult, expand_divmod): Use set_unique_reg_note.
	* optabs.c (add_equal_note, expand_binop): Use set_unique_reg_note.
	(emit_no_conflict_block, emit_libcall_block): Use set_unique_reg_note.
	(expand_fix):  Use set_unique_reg_note.

From-SVN: r25976
1999-03-25 12:04:19 +00:00
Andrew Macleod
0a4b90568d rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
�
Thu Mar 25 14:04:54 EST 1999  Andrew MacLeod  <amacleod@cygnus.com>
	* rtl.texi (RTX_FRAME_RELATED_P): Add documentation.
	* rtl.h (struct rtx_def): Update comment for frame_related field.
	(set_unique_reg_note): Declare prototype.
	* dwarf2out.c (dwarf2out_frame_debug_expr): Split out from
	'dwarf2out_frame_debug' to handle only expressions, and process
	component parts of a PARALLEL expression.
	(dwarf2out_frame_debug): Process insns only, and call
	new function 'dwarf2out_frame_debug_expr' for patterns.
	* emit-rtl.c (set_unique_reg_note): New function to add a reg note,
	but if there is an existingone, deletes it first.
	* expmed.c (expand_mult, expand_divmod): Use set_unique_reg_note.
	* optabs.c (add_equal_note, expand_binop): Use set_unique_reg_note.
	(emit_no_conflict_block, emit_libcall_block): Use set_unique_reg_note.
	(expand_fix):  Use set_unique_reg_note.

From-SVN: r25975
1999-03-25 12:04:16 +00:00
Art Haas
9d4c59ab20 tlink.c (symbol_hash_newfunc): Remove redundant call to hash_newfunc.
* tlink.c (symbol_hash_newfunc): Remove redundant call to
	hash_newfunc.
	(file_hash_newfunc, demangled_hash_newfunc): Likewise.

From-SVN: r25974
1999-03-25 06:50:02 -05:00
Richard Henderson
ab8cc6ab9f * i386.h (PREFERRED_STACK_BOUNDARY): Set to 128.
From-SVN: r25973
1999-03-25 02:06:56 -08:00
Philip Blundell
925a60f3e7 Applied patch from Phillip Blundell <pb@nexus.co.uk>:
This patch fixes a couple of Linux-specific problems with profiling and
  debugging.  It's against the trunk version.  Without it gdb reports wrong
  line numbers and -pg does not work at all.

From-SVN: r25972
1999-03-25 09:45:15 +00:00
Jason Merrill
fe1e8929ab new
From-SVN: r25971
1999-03-24 22:50:54 -05:00
Nathan Sidwell
45075bf3df decl.c (init_decl_processing): Add signed' type as a synonym for int'.
* decl.c (init_decl_processing): Add `signed' type as a synonym
	for `int'.

From-SVN: r25970
1999-03-24 22:50:45 -05:00
Jason Merrill
0b9c1e4dc4 update
From-SVN: r25969
1999-03-24 22:28:39 -05:00
Jason Merrill
b8b0126f61 new
From-SVN: r25968
1999-03-24 22:28:05 -05:00
Jason Merrill
5b163de408 typeck.c (common_type): Handle cv-qual unification for pointers to members.
* typeck.c (common_type): Handle cv-qual unification for pointers
	to members.
	* decl.c (unqualified_namespace_lookup): Return error_mark_node
	on error.
	(lookup_name_real): Set LOOKUP_COMPLAIN when *not* parsing.
	* lex.c (do_identifier): If we got error_mark_node, call
	lookup_name again.

From-SVN: r25967
1999-03-24 22:06:16 -05:00
Finn Hakansson
63681b5ff9 * rtl.h (MEM_COPY_ATTRIBUTES): Remove unnecessary ending backslash.
From-SVN: r25966
1999-03-24 18:14:00 -07:00
Axel Thimm
b6c8f0b758 * Makefile.in (RANLIB_TEST): Improve test.
From-SVN: r25965
1999-03-24 18:07:20 -07:00
Donn Terry
835c8e044b combine.c (force_to_mode, case PLUS): Use sign extended mask when masking the low bits out of a constant.
* combine.c (force_to_mode, case PLUS): Use sign extended mask
        when masking the low bits out of a constant.

From-SVN: r25964
1999-03-24 17:48:16 -07:00
Jeff Law
5e7d21e916 Daily bump.
From-SVN: r25963
1999-03-24 17:45:02 -07:00
Martin v. Löwis
9e3a8a5825 Add main, then link it
From-SVN: r25962
1999-03-25 00:36:15 +00:00
Martin v. Löwis
51795d12fb Can't link it - no main()
From-SVN: r25961
1999-03-25 00:33:16 +00:00
Mark Elbrecht
f3692274cb system.h (STDIN_FILENO): Provide default definition if one is not provided by the system header files.
* system.h (STDIN_FILENO): Provide default definition if one is not
        provided by the system header files.
        (STDOUT_FILENO, STDERR_FILENO): Likewise.
        * i386/xm-djgpp.h (COLLECT2_HOST_INITIALIZATION): New macro.
        * collect2.c (main): Use it.
        (pexecute_pid): New variable. Holds return value from call to pexecute.
        (collect2_execute): Rework to use pexecute instead of fork.
        (collect2_wait): Use pwait() instead of wait().

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

From-SVN: r25960
1999-03-24 16:35:34 -07:00
Richard Earnshaw
cc33944a7a fold-const.c (make_range): If orig_type is unset, set it as soon as we know the type.
* fold-const.c (make_range): If orig_type is unset, set it as soon
        as we know the type.  Remove now unnecessary set of orig_type for
        conversions.

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

From-SVN: r25959
1999-03-24 15:48:37 -07:00
Mark Elbrecht
79d868e887 * i386/djgpp.h: Fix typo.
From-SVN: r25958
1999-03-24 15:30:18 -07:00
Jeffrey A Law
940e53cefe mkfixinc.sh: Recognize cygwin* instead of only cygwin32.
* fixinc/mkfixinc.sh: Recognize cygwin* instead of only
        cygwin32.

From-SVN: r25957
1999-03-24 15:26:54 -07:00
Jeffrey A Law
7633094fe2 * gcc.c-torture/execute/990324-1.c: New test.
From-SVN: r25956
1999-03-24 14:55:06 -07:00
Mumit Khan
da4b192759 configure.in (AC_PREREQ): Update to 2.13.
�
        * configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.

From-SVN: r25955
1999-03-24 14:46:41 -07:00
Mumit Khan
e33abc2d02 configure.in (AC_PREREQ): Update to 2.13.
�
        * configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.

From-SVN: r25954
1999-03-24 14:46:39 -07:00
Mumit Khan
3508525e5c configure.in (AC_PREREQ): Update to 2.13.
�
        * configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.

From-SVN: r25953
1999-03-24 14:46:18 -07:00
Jeff Law
411a2e59fa configure.in (AC_PREREQ): Update to 2.13.
H
        * configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.

From-SVN: r25952
1999-03-24 14:46:17 -07:00
Mumit Khan
5e34b217d1 configure.in (EXEEXT): Define.
Wed Mar 24 22:36:45 1999  Mumit Khan  <khan@xraylith.wisc.edu>
        * configure.in (EXEEXT): Define.
        (compiler_name): Use.

From-SVN: r25951
1999-03-24 14:44:48 -07:00
Mumit Khan
763ecbbc61 configure.in (EXEEXT): Define.
0
        * configure.in (EXEEXT): Define.
        (compiler_name): Use.

From-SVN: r25950
1999-03-24 14:44:23 -07:00
Mumit Khan
adbfd1de80 configure.in (EXEEXT): Define.
8
        * configure.in (EXEEXT): Define.
        (compiler_name): Use.

From-SVN: r25949
1999-03-24 14:44:22 -07:00
Nick Clifton
6aa489b470 Accept both 'model' and '__model__' as attribute names.
Ref: CR 100400-990301-CR-1

From-SVN: r25948
1999-03-24 15:47:29 +00:00
Joern Rennecke
d676f55c32 Added star.
From-SVN: r25947
1999-03-24 13:47:44 +00:00