Commit Graph

18699 Commits

Author SHA1 Message Date
J"orn Rennecke
2abbc1bd67 * reload1.c (reload_combine): Re-add line that got accidentally lost.
From-SVN: r22588
1998-09-25 10:38:08 +01:00
Kaveh R. Ghazi
b370501f72 Warning fixes:
* cp-tree.h (define_case_label): Remove unused parameter.
	(check_java_method): Likewise.
	(grokclassfn): Likewise.
	(expand_aggr_init): Likewise.
	(build_x_delete): Likewise.
	(maybe_end_member_template_processing): Likewise.
	(unshare_base_binfos): Add prototype.
	(string_conv_p): Likewise.
	(my_friendly_abort): Mark with ATTRIBUTE_NORETURN.
	* cvt.c (build_up_reference): Remove unused parameter
 	`checkconst', all callers changed.
	(build_type_conversion): Mark parameter `code' with
	ATTRIBUTE_UNUSED.
	(build_expr_type_conversion): Initialize variable `conv'.
	* decl.c (push_namespace): Initialize variable `d'.
  	(define_case_label): Remove unused parameter `decl', all callers
 	changed.
	* decl2.c (lang_decode_option): If !USE_CPPLIB, mark parameter
 	`argc' with ATTRIBUTE_UNUSED.
	(grokclassfn): Remove unused parameter `cname', all callers
 	changed.
	(check_java_method): Likewise for parameter `ctype'.
	(copy_assignment_arg_p): Mark parameter `virtualp' with
	ATTRIBUTE_UNUSED.
	(finish_prevtable_vardecl): Likewise for parameter `prev'.
	* expr.c (extract_init): Likewise for parameters `decl' and `init'.
	* init.c (expand_aggr_init_1): Remove unused parameter
 	`alias_this', all callers changed.
	(expand_aggr_init): Likewise.
	(expand_default_init): Likewise.
	(build_new_1): Initialize variable `susp'.
	(build_x_delete): Remove unused parameter `type', all callers
	changed.
	* lex.c (set_typedecl_interface_info): Mark parameter `prev' with
	ATTRIBUTE_UNUSED.
	(readescape): Use (unsigned) value in shift.
	(real_yylex): Likewise.  Likewise.  Also cast `sizeof' to int when
	comparing to a signed quantity.
	* pt.c (maybe_end_member_template_processing): Remove unused
 	parameter `decl', all callers changed.
	(check_explicit_specialization): Add braces around empty body in
	an else-statement.
	(current_template_args): Initialize variable `args'.
	(lookup_template_class): Likewise for variable `prev_local_enum'.
	(tsubst_decl): Likewise for variable `r'.
	(set_mangled_name_for_template_decl): Initialize variable
	`context'.
	* spew.c (scan_tokens): Change type of parameter `n' to unsigned.
	Likewise for variable `i'.
	(yylex): Initialize variable `trrr'.
	* typeck.c (compparms): Mark variable `strict' with
	ATTRIBUTE_UNUSED.
	* xref.c (simplify_type): Cast argument of ctype function to
	`unsigned char'.

From-SVN: r22587
1998-09-25 09:00:04 +00:00
Mark Mitchell
3ee9b638ab Remove XFAIL
From-SVN: r22586
1998-09-25 08:37:45 +00:00
Kaveh R. Ghazi
36611067d5 cccp.c (pedwarn_with_file_and_line): For !__STDC__ case...
* cccp.c (pedwarn_with_file_and_line): For !__STDC__ case, avoid
        accessing variables until they are initialized via va_arg().

From-SVN: r22585
1998-09-25 07:49:07 +00:00
Jeff Law
8d62cb85ca Daily bump.
From-SVN: r22584
1998-09-24 18:45:02 -06:00
Mark Mitchell
69851283e8 cp-tree.h (language_lvalue_valid): Remove.
* cp-tree.h (language_lvalue_valid): Remove.
	* decl.c (grokdeclarator): Don't disallow references to functions.
	* tree.c (lvalue_p_1): New function, combining duplicated
	code from ...
	(lvalue_p): Use it.
	(real_lvalue_p): Likewise.
	* typeck.c (language_lvalue_valid): Remove.
	(build_modify_expr): Treat FUNCTION_TYPEs as readonly, even though
	they don't have TREE_READONLY set.
	* typeck2.c (readonly_error): Add case for FUNCTION_DECLs.

From-SVN: r22583
1998-09-24 23:53:37 +00:00
David S. Miller
85ccbba3d7 reload1.c (reload_combine): Initialize set before using.
Thu Sep 24 22:12:16 1998  David S. Miller  <davem@pierdol.cobaltmicro.com>
	* reload1.c (reload_combine): Initialize set before using.

From-SVN: r22582
1998-09-24 16:18:31 -07:00
Benjamin Kosnik
2b23d3b1b7 *** empty log message ***
From-SVN: r22581
1998-09-24 22:30:05 +00:00
Benjamin Kosnik
9a4690080e spew.c (yylex): Give diagnostic.
�
1998-09-24  Benjamin Kosnik  <bkoz@loony.cygnus.com>
	* spew.c (yylex): Give diagnostic.
	* hash.h (is_reserved_word): Add export.
	* gxx.gperf: Ditto.
	* lex.h (rid): Add RID_EXPORT.
	* lex.c (init_parse): Ditto.

From-SVN: r22580
1998-09-24 22:29:31 +00:00
Benjamin Kosnik
4880e218b7 spew.c (yylex): Give diagnostic.
�
1998-09-24  Benjamin Kosnik  <bkoz@loony.cygnus.com>
	* spew.c (yylex): Give diagnostic.
	* hash.h (is_reserved_word): Add export.
	* gxx.gperf: Ditto.
	* lex.h (rid): Add RID_EXPORT.
	* lex.c (init_parse): Ditto.

From-SVN: r22579
1998-09-24 22:29:29 +00:00
Benjamin Kosnik
dfa90a4753 spew.c (yylex): Give diagnostic.
�
1998-09-24  Benjamin Kosnik  <bkoz@loony.cygnus.com>
	* spew.c (yylex): Give diagnostic.
	* hash.h (is_reserved_word): Add export.
	* gxx.gperf: Ditto.
	* lex.h (rid): Add RID_EXPORT.
	* lex.c (init_parse): Ditto.

From-SVN: r22578
1998-09-24 22:29:28 +00:00
Benjamin Kosnik
269d984e34 spew.c (yylex): Give diagnostic.
�
1998-09-24  Benjamin Kosnik  <bkoz@loony.cygnus.com>
	* spew.c (yylex): Give diagnostic.
	* hash.h (is_reserved_word): Add export.
	* gxx.gperf: Ditto.
	* lex.h (rid): Add RID_EXPORT.
	* lex.c (init_parse): Ditto.

From-SVN: r22577
1998-09-24 22:29:27 +00:00
Jason Merrill
0dbb7a102f sdbout.c (sdbout_field_types): Don't emit the types of fields we won't be emitting.
* sdbout.c (sdbout_field_types): Don't emit the types of fields we
	won't be emitting.

From-SVN: r22576
1998-09-24 14:54:38 -04:00
Jason Merrill
03d368760c fix
From-SVN: r22575
1998-09-24 14:21:09 -04:00
Nick Clifton
da9599506e Applied Jim's patch to "insv" pattern
From-SVN: r22574
1998-09-24 17:08:41 +00:00
Jakub Jelinek
3c6088d24f sparc.c (function_value): Perform the equivalent of PROMOTE_MODE for ARCH64.
Thu Sep 24 15:08:08 1998  Jakub Jelinek  <jj@sunsite.ms.mff.cuni.cz>
	* config/sparc/sparc.c (function_value): Perform the equivalent of
	PROMOTE_MODE for ARCH64.
	(eligible_for_epilogue_delay): Allow DImode operations in delay
	slot of a return for ARCH64.

From-SVN: r22573
1998-09-24 09:16:58 -07:00
J"orn Rennecke
711878702f * sh.md (sqrtsf2): Fix mode of sqrt.
From-SVN: r22572
1998-09-24 15:20:37 +01:00
J"orn Rennecke
b29514ee9d reload1.c (choose_reload_regs): Also try inheritance when reload_in is a stack slot of a pseudo...
* reload1.c (choose_reload_regs): Also try inheritance when
	reload_in is a stack slot of a pseudo, even if we already got a
	reload reg.

From-SVN: r22571
1998-09-24 14:58:43 +01:00
J"orn Rennecke
5adf6da0eb reload1.c (reload_cse_regs_1): Renamed from reload_cse_regs.
* reload1.c (reload_cse_regs_1): Renamed from reload_cse_regs.
	(reload_cse_regs): New function body: call reload_cse_regs_1,
	reload_combine, reload_cse_move2add.
	When doing expensive_optimizations, call reload_cse_regs_1 a
	second time after reload_cse_move2add.
	(reload_combine, reload_combine_note_store): New functions.
	(reload_combine_note_use): New function.
	(reload_cse_move2add, move2add_note_store): New functions.

From-SVN: r22570
1998-09-24 14:27:20 +01:00
Jim Wilson
f6b5826298 Fix `make bootstrap' failures where libraries are compiled with wrong compiler.
* Makefile.in (bootstrap): Set r and s before make all.  Use
	BASE_FLAGS_TO_PASS in make all.
	(cross): Likewise.

From-SVN: r22569
1998-09-24 04:13:50 -07:00
J"orn Rennecke
c10638c922 reload.c (find_reloads): In code to promote RELOAD_FOR_X_ADDR_ADDR reloads to RELOAD_FOR_X_ADDRESS...
* reload.c (find_reloads): In code to promote RELOAD_FOR_X_ADDR_ADDR
	reloads to RELOAD_FOR_X_ADDRESS reloads, test for reload sharing.
	Properly keep track of first RELOAD_FOR_X_ADDRESS also for
	more than 3 such reloads.
	If there is not more than one RELOAD_FOR_X_ADDRESS, don't change
	RELOAD_FOR_X_ADDR_ADDR reload.

From-SVN: r22568
1998-09-24 11:51:35 +01:00
J"orn Rennecke
34c7390981 expr.c (store_constructor): When initializing a field that is smaller than a word...
* expr.c (store_constructor): When initializing a field that is smaller
	than a word, at the start of a word, try to widen it to a full word.
	* cse.c (cse_insn): When we are about to change a register,
	remove any invalid references to it.
	(remove_invalid_subreg_refs): New function.
	(mention_regs): Special treatment for SUBREGs.
	(insert_regs): Don't strip SUBREG for call to mention_regs.
	Check if reg_tick needs to be bumped up before that call.
	(lookup_as_function): Try to match known word_mode constants when
	looking for a norrower constant.
	(canon_hash): Special treatment for SUBREGs.

From-SVN: r22567
1998-09-24 10:59:41 +01:00
Dave Love
c5a951a851 g77.texi: Additions about `/*', trailing comments and cpp.
1998-09-23  Dave Love  <d.love@dl.ac.uk>
        * g77.texi: Additions about `/*', trailing comments and cpp.

From-SVN: r22566
1998-09-24 08:40:26 +00:00
David S. Miller
345a616112 [multiple changes]
Thu Sep 24 01:35:34 1998  David S. Miller  <davem@pierdol.cobaltmicro.com>
	* config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Define.
	* config/sparc/sparc.c (sparc64_initialize_trampoline): If that is
	defined, emit libcall to __enable_execute_stack.  Also fix opcodes
	and offsets in actual stack trampoline code so they match the
	commentary and actually work.
Thu Sep 24 01:19:02 1998  Jakub Jelinek  <jj@sunsite.ms.mff.cuni.cz>
	* configure.in (sparcv9-*-solaris): Use t-sol2 and t-sol2-64 for
	tmake_file.
	(sparc64-*-linux): Use t-linux and sparc/t-linux64 for
	tmake_file.  Set extra_parts to needed crt objects.
	* configure: Rebuilt.
	* config/sparc/linux64.h (SPARC_BI_ARCH): Define.
	(TARGET_DEFAULT): Set if default is v9 or ultra.
	(STARTFILE_SPEC32, STARTFILE_SPEC64): New macros.
	(STARTFILE_SPEC): Set to those upon SPARC_BI_ARCH.
	(ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_SPEC): Likewise.
	(SUBTARGET_EXTRA_SPECS, LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
	LINK_SPEC, LINK_ARCH_SPEC): Likewise.
	(TARGET_VERSION): Define.
	(MULTILIB_DEFAULT): Define.
	* config/sparc/sparc.h (CPP_CPU_DEFAULT_SPEC): Rearrange so that
	mixed 32/64 bit compilers based upon SPARC_BI_ARCH work.
	(CPP_CPU64_DEFAULT_SPEC, CPP_CPU32_DEFAULT_SEC): Define
	appropriately.
	(TARGET_SWITCHES): Allow ptr32/ptr64 options once more.
	* config/sparc/sparc.c (sparc_override_options): If arch and
	pointer size disagree, emit diagnostic and fix it up.  If
	SPARC_BI_ARCH and TARGET_ARCH32, set cmodel to CM_32.  Turn off
	V8PLUS in 64-bit mode.
	* config/sparc/t-linux64: New file.
	* config/sparc/t-sol2-64: New file.
	* config/sparc/t-sol2: Adjust build rules to use MULTILIB_CFLAGS.
	* config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Define.
	(ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC,
	CPP_CPU32_DEFAULT_SPEC, CPP_CPU64_DEFAULT_SPEC): Define.
	(ASM_SPEC, CPP_CPU_SPEC): Set appropriately based upon those.
	(STARTFILE_SPEC32, STARTFILE_SPEC32, STARTFILE_ARCH_SPEC):
	Define.
	(STARTFILE_SPEC): Set approriately based upon those.
	(CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Set based upon
	disposition of DEFAULT_ARCH32_P.
	(LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Define.
	(LINK_ARCH_SPEC, LINK_ARCH_DEFAULT_SPEC): Set based upon those.
	(CC1_SPEC, MULTILIB_DEFAULTS): Set based upon DEFAULT_ARCH32_P.
	(MD_STARTFILE_PREFIX): Set correctly based upon SPARC_BI_ARCH.
	* config/sparc/xm-sysv4-64.h (HOST_BITS_PER_LONG): Only set on
	arch64/v9.
	* config/sparc/xm-sp64.h (HOST_BITS_PER_LONG): Likewise.

From-SVN: r22565
1998-09-23 19:44:55 -07:00
Jeff Law
8d9716c63a Daily bump.
From-SVN: r22564
1998-09-23 18:45:03 -06:00
Mark Mitchell
59ec66dc6a rtl.h (init_virtual_regs): New function.
* rtl.h (init_virtual_regs): New function.
	* emit-rtl.c (init_virtual_regs): Define.
	(insn_emit): Use it.
	* integrate.c (save_for_inline_copying): Likewise.

From-SVN: r22563
1998-09-23 23:28:17 +00:00
Nick Clifton
a5f421658c Add Jim's patches to improve reload behaviour.
From-SVN: r22561
1998-09-23 16:44:39 +00:00
Nick Clifton
f916eeb6db Add comment provided by Jim Wilson.
From-SVN: r22560
1998-09-23 16:24:09 +00:00
Richard Henderson
80db34d85b alpha.c (get_aligned_mem): Revert Sep 20 change.
* alpha.c (get_aligned_mem): Revert Sep 20 change.
        (alpha_set_memflags, alpha_set_memflags_1): Likewise.
        (alpha_align_insns): Properly calculate initial offset wrt max_align.

From-SVN: r22559
1998-09-23 06:28:53 -07:00
Richard Earnshaw
7551cbc77e arm.c (find_barrier): Revert change of Apr 23.
* arm.c (find_barrier): Revert change of Apr 23.  Handle table
jumps as a single entity, taking into account the size of the
table.

From-SVN: r22558
1998-09-23 10:49:06 +00:00
Gerald Pfeifer
4be70bc708 * friend.c (do_friend): Make warning a full sentence.
From-SVN: r22555
1998-09-23 04:39:00 +00:00
Jeff Law
b0ec467a7d Daily bump.
From-SVN: r22554
1998-09-22 18:45:02 -06:00
Alexandre Petit-Bianco
eaec171cbc tree.def (SWITCH_EXPR): New tree node definition.
8
	* tree.def (SWITCH_EXPR): New tree node definition.

From-SVN: r22553
1998-09-22 10:48:12 -07:00
Alexandre Petit-Bianco
7c226435db tree.def (SWITCH_EXPR): New tree node definition.
�
	* tree.def (SWITCH_EXPR): New tree node definition.

From-SVN: r22552
1998-09-22 10:48:10 -07:00
Mark Mitchell
27f9a7c6df * parse.y (component_decl_list): Improve error-recovery.
From-SVN: r22551
1998-09-22 12:15:17 +00:00
Benjamin Kosnik
04ddee1bcf decl.c (make_typename_type): Move error to point where name variable can be used by dump_type.
�
1998-09-22  Benjamin Kosnik  <bkoz@loony.cygnus.com>
        * decl.c (make_typename_type): Move error to point where name
        variable can be used by dump_type.

From-SVN: r22550
1998-09-22 12:05:50 +00:00
Mark Mitchell
3ddfb0e624 decl.c (grokfndecl): Improve error-recovery.
* decl.c (grokfndecl): Improve error-recovery.
	* decl2.c (grokfield): Likewise.
	* pt.c (finish_member_template_decl): Likewise.

From-SVN: r22549
1998-09-22 11:58:41 +00:00
Gerald Pfeifer
a105e36f8c Add myself as web pages maintainer; remove myself from "Write After
Approval".

From-SVN: r22548
1998-09-22 08:51:52 +00:00
Bruce Korb
3b0e553482 describe changes
From-SVN: r22547
1998-09-22 07:31:48 +00:00
Bruce Korb
0b4ff5ae82 Add the fixinc generated files to the touch list
From-SVN: r22546
1998-09-22 07:28:05 +00:00
Bruce Korb
f3e28ab46c Commit updates generated from def/tpl files
From-SVN: r22545
1998-09-22 07:23:33 +00:00
Bruce Korb
6096cf9881 Syntax error in sed script, combine '//' fixes
From-SVN: r22544
1998-09-22 07:22:00 +00:00
Bruce Korb
da7275888f remove -p from /bin/sh script
From-SVN: r22543
1998-09-22 07:21:14 +00:00
Jeff Law
ab105e47db Daily bump.
From-SVN: r22542
1998-09-21 18:45:02 -06:00
Jeff Law
d78f7214fe Forgot to commit.
From-SVN: r22541
1998-09-21 18:19:44 -06:00
Jeffrey A Law
83d6aca114 Bump for snapshot
From-SVN: r22539
1998-09-21 17:40:42 -06:00
Ben Elliston
d2dc5cd5fc configure.in: This is GNU CHILL, not GNU Fortran.
1998-09-22  Ben Elliston  <bje@cygnus.com>
        * configure.in: This is GNU CHILL, not GNU Fortran.

From-SVN: r22538
1998-09-22 09:14:17 +10:00
Jeffrey A Law
4d7f493ba1 Bump for snapshot
From-SVN: r22537
1998-09-21 16:31:19 -06:00
Ovidiu Predescu
2e5f02a3e3 encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
* encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
        (get_inner_array_type): Define.

From-SVN: r22536
1998-09-21 16:28:51 -06:00
Jeffrey A Law
31f0adf89f configure.in: Recognize i[34567]86-*-openbsd* and handle it like NetBSD.
* configure.in: Recognize i[34567]86-*-openbsd* and handle it like
        NetBSD.

From-SVN: r22535
1998-09-21 15:49:59 -06:00