Commit Graph

18106 Commits

Author SHA1 Message Date
Jason Merrill
ff59bfe6b2 expr.c (safe_from_p): Change code to ERROR_MARK only when not accessing nodes.
* expr.c (safe_from_p): Change code to ERROR_MARK only when not
	accessing nodes.
	* toplev.c (display_help): Add braces to shut up warnings.
	* fold-const.c (non_lvalue): Don't deal with null pointer
	constants here.
	(fold, case COMPOUND_EXPR): Wrap a constant 0 in a NOP_EXPR.

From-SVN: r21698
1998-08-13 12:12:55 -04:00
Jason Merrill
0d906a5f36 c-typeck.c (initializer_constant_valid_p): Allow conversion of 0 of any size to a pointer.
* c-typeck.c (initializer_constant_valid_p): Allow conversion of 0
	of any size to a pointer.

From-SVN: r21697
1998-08-13 11:26:46 -04:00
Jim Wilson
6ece24871f Fix cygwin32 build problem with experimental version of winsup.
* i386/winnt.c (i386_pe_asm_file_end): Check TREE_SYMBOL_REFERENCED.

From-SVN: r21696
1998-08-13 06:09:40 -07:00
Jeff Law
1770091dfa Daily bump.
From-SVN: r21692
1998-08-12 18:45:02 -06:00
Jeff Law
edddcea209 ieee.exp: Pass -ffloat-store to compiler for ieee tests.
8
        * execute/ieee/ieee.exp: Pass -ffloat-store to compiler for
        ieee tests.

From-SVN: r21691
1998-08-12 17:14:54 -06:00
Jeff Law
9c70b6df34 ieee.exp: Pass -ffloat-store to compiler for ieee tests.
�
        * execute/ieee/ieee.exp: Pass -ffloat-store to compiler for
        ieee tests.

From-SVN: r21690
1998-08-12 17:14:53 -06:00
Jeffrey A Law
980d0e8162 mn10300.c (REG_SAVE_BYTES): Only reserve space for registers which will be saved.
* mn10300.c (REG_SAVE_BYTES): Only reserve space for registers
        which will be saved.
        * mn10300.md (prologue insn): Only save registers which need saving.
        (epilogue insn): Similarly.

From-SVN: r21687
1998-08-12 10:41:11 -06:00
Jeffrey A Law
6e755043dd mn10300.c, [...]: Remove "global zero register" optimizations.
* mn10300.c, mn10300.h, mn10300.md: Remove "global zero register"
        optimizations.

From-SVN: r21686
1998-08-12 10:27:05 -06:00
Mark Mitchell
49e0438549 pt.c (print_template_context): Don't abort when instantiating a synthesized method.
* pt.c (print_template_context): Don't abort when instantiating a
	synthesized method.

From-SVN: r21685
1998-08-12 14:40:39 +00:00
Mark Mitchell
05008fb97d decl.c (grokdeclarator): Issue errors on namespace qualified declarators in parameter lists or in class...
1998-08-12  Mark Mitchell  <mark@markmitchell.com>
	* decl.c (grokdeclarator): Issue errors on namespace qualified
	declarators in parameter lists or in class scope.

From-SVN: r21684
1998-08-12 13:48:30 +00:00
Gerald Pfeifer
23a05d03eb * egcs_update: Assigned copyright to FSF.
From-SVN: r21682
1998-08-12 11:02:37 +00:00
Gavin Romig-Koch
a9e3e61181 mips.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG for VAR_DECL's in gp addressable sections.
* mips/mips.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG for
	VAR_DECL's in gp addressable sections.

From-SVN: r21681
1998-08-12 09:42:55 +00:00
Jeff Law
87183d21f5 Daily bump.
From-SVN: r21679
1998-08-11 18:45:03 -06:00
John Carr
5f78aa30e7 sparc.c: Change return <exp> to <exp>; return; in functions returning void.
* sparc.c: Change return <exp> to <exp>; return; in functions
 	returning void.
	* sparc.md: Add empty semicolon statement after final label in
	move expanders.

From-SVN: r21678
1998-08-11 17:09:15 -07:00
David S. Miller
16cf811987 sparc.md (define_insn addx_extend): Rename to addx_extend_sp64, only allow when TARGET_ARCH64.
* config/sparc/sparc.md (define_insn addx_extend): Rename to
	addx_extend_sp64, only allow when TARGET_ARCH64.
	(define_insn addx_extend_sp32 and split): Version that works when
	not TARGET_ARCH64.
	(define_insn subx_extend): Likewise.
	(define_split adddi3 and subdi3 with zero extension): Fixup and
	correct bugs when not TARGET_ARCH64.

From-SVN: r21677
1998-08-11 16:50:23 -07:00
Per Bothner
abf82aabd1
Fix incorrect comment.

From-SVN: r21676
1998-08-11 09:34:05 -07:00
John Carr
53bfe9cda9 except.c (set_exception_lang_code, [...]): Use prototype-style definition if __STDC__, to match declaration in except.h.
* except.c (set_exception_lang_code, set_exception_version_code):
	Use prototype-style definition if __STDC__, to match declaration
	in except.h.
	* genemit.c: Change FAIL and DONE macros not to use loops.

From-SVN: r21675
1998-08-11 13:36:42 +00:00
Jim Wilson
cba96cb7e0 Fix sparc64-elf build problem.
* dwarf2out.c (ASM_OUTPUT_DWARF_ADDR_CONST): Use
	ASM_OUTPUT_DWARF2_ADDR_CONST if defined.

From-SVN: r21674
1998-08-11 06:23:44 -07:00
Jim Wilson
ca45b9134f Fix mips16 libgcc build failure.
* mips/mips.md (reload_outsi): Use M16_REG_P when TARGET_MIPS16.

From-SVN: r21673
1998-08-11 05:28:52 -07:00
Dave Love
beaa74ae03 README: Update from Craig.
1998-08-11  Dave Love  <d.love@dl.ac.uk>
	* README: Update from Craig.

From-SVN: r21672
1998-08-11 10:15:04 +00:00
Dave Love
d606ce281e README.g77: Update from Craig.
Tue Aug 11 17:45:39 1998  Dave Love  <d.love@dl.ac.uk>
	* README.g77: Update from Craig.

From-SVN: r21671
1998-08-11 10:13:57 +00:00
Gerald Pfeifer
9b14b81c0c egcs_update: New switch --nostdflags and documentation enhancements.
* egcs_update: New switch --nostdflags and documentation
	enhancements.

Co-Authored-By: Alexandre Oliva <oliva@dcc.unicamp.br>

From-SVN: r21667
1998-08-11 09:04:53 +00:00
Gerald Pfeifer
f717c7e4b0 * egcs_update: New script.
From-SVN: r21664
1998-08-11 08:38:09 +00:00
David S. Miller
89e65674fa sparc.c (const64_operand, [...]): New predicates.
* config/sparc/sparc.c (const64_operand, const64_high_operand):
	New predicates.
	* config/sparc/sparc.h: Declare them.
	(PREDICATE_CODES): Add them.
	* config/sparc/sparc.md (movdi_lo_sum_sp64_dbl,
	movdi_high_sp64_dbl, xordi3_sp64_dbl): Use them.

From-SVN: r21663
1998-08-11 00:13:17 -07:00
David S. Miller
2a01c93937 sparc.c (sparc_emit_set_const32): INTVAL is of type HOST_WIDE_INT.
* config/sparc/sparc.c (sparc_emit_set_const32): INTVAL is of
	type HOST_WIDE_INT.
	(safe_constDI sparc_emit_set_const64_quick1,
	sparc_emit_set_const64_quick2, sparc_emit_set_const64_longway,
	analyze_64bit_constant, const64_is_2insns,
	create_simple_focus_bits): Fix some bugs when compiled on real
	64-bit hosts.
	(function_arg_record_value_3, function_arg_record_value_2,
	function_arg_record_value): Add fully prototyped forward decls.
	* config/sparc/sparc.md (define_insn cmpsi_insn_sp32): Rename back
	to cmpsi_insn and use on both 64 and 32 bit targets.
	(define_insn cmpsi_insn_sp64): Remove.
	(define_expand zero_extendsidi2): Allow for 32-bit target too.
	(define_insn zero_extendsidi2_insn): Rename to
	zero_extendsidi2_insn_sp64.
	(define_insn zero_extendsidi2_insn_sp32): New pattern and
	assosciated forced split for it.

From-SVN: r21662
1998-08-10 22:54:17 -07:00
Jeff Law
aaa642460c Daily bump.
From-SVN: r21660
1998-08-10 18:45:02 -06:00
John Carr
cb6420a0bb sparc.md (define_insn jump): Output ba,pt not b,pt in v9 case as the latter makes the Solaris assembler crash.
* config/sparc/sparc.md (define_insn jump): Output ba,pt not b,pt
	in v9 case as the latter makes the Solaris assembler crash.

From-SVN: r21659
1998-08-10 17:03:39 -07:00
David S. Miller
03ad6f4d34 sparc.c (input_operand): Do not accept a LO_SUM MEM for TFmode when !v9.
* config/sparc/sparc.c (input_operand): Do not accept a LO_SUM MEM
	for TFmode when !v9.  We require offsettable memory addresses.
	* config/sparc/sparc.h (ALTER_HARD_SUBREG): Handle TFmode to
	DFmode register number conversions.
	* config/sparc/sparc.md (define_split DFmode moves): If register
	is a SUBREG do alter_subreg on it before using.
	(define_expand movtf): Fixup comment about alignment on v9.
	(define_split TFmode moves): Don't use gen_{high,low}part, create
	explicit SUBREGs instead.

From-SVN: r21658
1998-08-10 16:47:28 -07:00
John Carr
b8d80a3a83 * Makefile.in (mbchar.o): Depend on mbchar.c.
From-SVN: r21656
1998-08-10 16:06:34 +00:00
Jason Merrill
863878b2f0 x
From-SVN: r21655
1998-08-10 09:55:04 -04:00
Jason Merrill
77d7c64b6e new
From-SVN: r21654
1998-08-10 08:39:12 -04:00
David Edelsohn
f625817271 AIX 4.1.5 binder -bbigtoc relocation overflow fix.
From-SVN: r21653
1998-08-10 06:28:59 -04:00
David S. Miller
e0d8018451 Sparc backend rewrite by rth and myself, please
peruse the lengthy ChangeLog for a blow by blow account.

Co-Authored-By: Richard Henderson <rth@cygnus.com>

From-SVN: r21652
1998-08-09 22:34:44 -07:00
Richard Henderson
b08b85c4a0 alpha.md (extxl+1,+2): New patterns to work around combine lossage.
* alpha.md (extxl+1,+2): New patterns to work around
        combine lossage.

From-SVN: r21651
1998-08-09 18:23:59 -07:00
Jeff Law
4ef30178c0 Daily bump.
From-SVN: r21649
1998-08-09 18:45:01 -06:00
HJ Lu
13fec84826 mt-linux (CXXFLAGS_FOR_TARGET): Add -D_GNU_SOURCE.
* mt-linux (CXXFLAGS_FOR_TARGET): Add -D_GNU_SOURCE.

From-SVN: r21648
1998-08-09 17:17:03 -06:00
HJ Lu
3cf2f67022 mt-linux (CXXFLAGS_FOR_TARGET): Add -D_GNU_SOURCE.
�
        * mt-linux (CXXFLAGS_FOR_TARGET): Add -D_GNU_SOURCE.

From-SVN: r21647
1998-08-09 17:17:02 -06:00
Mark Mitchell
8ec2ac347f pt.c (check_explicit_specialization): Don't abort on bogus explicit instantiations.
* pt.c (check_explicit_specialization): Don't abort on bogus
	explicit instantiations.

From-SVN: r21643
1998-08-09 15:20:40 +00:00
Dave Love
b86c2124e2 Make-lang.in (f/g77.dvi): Replace non-working use of texi2dvi with explicit use of tex.
1998-08-09  Dave Love  <d.love@dl.ac.uk>
	* Make-lang.in (f/g77.dvi): Replace non-working use of texi2dvi
	with explicit use of tex.
	(f77.mostlyclean): Remove TeX index files.
	* g77install.texi (Prerequisites): Kluge round TeX lossage with
	hyphen in @value in @code.

From-SVN: r21642
1998-08-09 03:59:14 +00:00
Jeff Law
7651f57282 Daily bump.
From-SVN: r21639
1998-08-08 18:45:01 -06:00
Gary Thomas
aa4201ad77 8
* rs6000.c (rs6000_allocate_stack_space) Fix typo which
        caused bad assembly code to be generated.

From-SVN: r21638
1998-08-08 12:22:01 -06:00
Gary Thomas
93e42b0fe0
* rs6000.c (rs6000_allocate_stack_space) Fix typo which
        caused bad assembly code to be generated.

From-SVN: r21637
1998-08-08 12:21:59 -06:00
Jeffrey A Law
495c8b281a * netbsd.h: Fix typo.
From-SVN: r21634
1998-08-08 11:53:54 -06:00
Jeff Law
e81b37aafb Daily bump.
From-SVN: r21628
1998-08-07 18:45:02 -06:00
Mark Mitchell
ae58fa02be typeck.c (require_complete_type): Use complete_type_or_else.
* typeck.c (require_complete_type): Use complete_type_or_else.
	(complete_type_or_else): Always return NULL_TREE on failure, as
	documented.
	* pt.c (tsubst_aggr_type): Prototype.
	(tsubst_decl): New function, split out from tsubst.  Set
	input_filename and lineno as appropriate.
	(pop_tinst_level): Restore the file and line number saved in
	push_tinst_level.
	(instantiate_class_template): Set input_filename and lineno as
	appropriate.
	(tsubst): Move _DECL processing to tsubst_decl.  Make sure the
	context for a TYPENAME_TYPE is complete.
	* decl2.c (grokbitfield): Issue errors on bitfields declared with
	function type.
	(do_dtors): As in do_ctors, pretend to be a member of the same
	class as a static data member while generating a call to its
	destructor.

From-SVN: r21627
1998-08-07 16:33:34 +00:00
Mark Mitchell
523633872a cvt.c (cp_convert_to_pointer): Handle NULL pointer conversions, even in complex virtual base class hierarchies.
* cvt.c (cp_convert_to_pointer): Handle NULL pointer
	conversions, even in complex virtual base class hierarchies.

From-SVN: r21626
1998-08-07 09:56:06 +00:00
Jeff Law
bd106708cf Daily bump.
From-SVN: r21623
1998-08-06 18:45:02 -06:00
Mark Mitchell
ed44da020e cp-tree.h (ENUM_TEMPLATE_INFO): New macro.
* cp-tree.h (ENUM_TEMPLATE_INFO): New macro.
	(TYPE_TEMPLATE_INFO): Likewise.
	(SET_TYPE_TEMPLATE_INFO): Likewise.
	(ENUM_TI_TEMPLATE): Likewise.
	(ENUM_TI_ARGS): Likewise.
	(lookup_nested_type_by_name): Remove.
	* decl.c (maybe_process_template_type_declaration): Handle enums.
	(start_enum): Don't check for primary-template enum declarations
	here.
	(finish_enum): Clean up, document.  Make sure template enum
	constants get the correct type.
	(build_enumerator): Copy initializers for template enumerations,
	too.
	(grok_enum_decls): Document.
	* lex.c (do_identifier): Document use of LOOKUP_EXPR a bit
	better.  Build LOOKUP_EXPRs for local variables, even if they are
	TREE_PERMANENT.
	* pt.c (tsubst_enum): Remove field_chain parameter.
	(template_class_depth): Include the depth of surrounding function
	contexts.
	(push_template_decl): Check for primary-template enum declarations
	here.  Deal with enumeration templates.
	(lookup_template_class): Likewise.
	(for_each_template_parm): Likewise.
	(instantiate_class_template): Don't call tsubst_enum directly,
	call tsubst instead, to instantiate enums.  Deal with all
	field_chain issues here, not in tsubst_enum.
	(lookup_nested_type_by_name): Remove.
	(tsubst_aggr_type): Revise handling of enumeration types.
	(tsubst): Likewise.
	(tsubst_copy): Likewise.
	(tsubst_expr): Call tsubst, not tsubst_enum for TAG_DEFNs.

From-SVN: r21622
1998-08-06 16:58:43 +00:00
Mark Mitchell
a8b0896fe6 New test
From-SVN: r21621
1998-08-06 09:56:09 +00:00
Jeff Law
debed82cde Daily bump.
From-SVN: r21619
1998-08-05 18:45:02 -06:00