Commit Graph

38231 Commits

Author SHA1 Message Date
Benjamin Kosnik
99e9125d77 fstream.tcc (filebuf::showmanyc): Simplify.
2001-10-29  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3647
	* include/bits/fstream.tcc (filebuf::showmanyc): Simplify.
	* testsuite/27_io/filebuf.cc (test07): New test.
	(test03): Modify showmanyc test.

From-SVN: r46610
2001-10-29 19:29:29 +00:00
Geert Bosch
4565903525 * init.c:
(Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
	const.
	(_gnat_error_handler): Make MSG const.

	* sysdep.c: Fix localtime_r problem on LynxOS.
	Also remove #elif to avoid warnings.

	* misc.c (yyparse): Don't set up and register jmpbuf; remove decls
	used by this.

	* decl.c (annotate_value): Make SIZE unsigned to avoid warning.

From-SVN: r46609
2001-10-29 18:45:03 +01:00
Toon Moene
4b77bfab08 news.texi: Document new ability to compile programs with arrays larger than 512 Mbyte on...
2001-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>

	* news.texi: Document new ability to compile programs with
	arrays larger than 512 Mbyte on 32-bit targets.

From-SVN: r46608
2001-10-29 17:41:16 +00:00
Richard Kenner
15228eb606 * Makefile.in (OBJS): Put all files in alphabetical order.
From-SVN: r46607
2001-10-29 09:34:18 -05:00
Richard Kenner
94784fb92a dwarf2out.c (add_const_value_attribute): Fix error in last change.
* dwarf2out.c (add_const_value_attribute): Fix error in last
	change.

From-SVN: r46606
2001-10-29 07:24:17 -05:00
Jan Hubicka
473fb060f3 basic-block.h (purge_all_dead_edges): Add update_life_p argument.
* basic-block.h (purge_all_dead_edges): Add update_life_p argument.
	* cfgcleanup.c (merge_blocks): Update the life flag after merging;
	fix warning.
	* cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
	(life_analysis): call purge_all_dead_edges after deleting noops.
	(delete_noop_move): Do not purge CFG.
	* toplev.c (rest_of_compilation): Update purge_all_dead_edges call.

From-SVN: r46605
2001-10-29 11:45:45 +00:00
GCC Administrator
4fdaa8786f Daily bump.
From-SVN: r46602
2001-10-29 08:16:23 +00:00
Joseph Myers
4d42a8ae2e * update_web_docs: Generate libiberty and gnat-style manuals.
From-SVN: r46601
2001-10-29 01:30:31 +00:00
David Edelsohn
d2574c50f6 aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
* config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
        * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
        (ASM_GLOBALIZE_LABEL): Use assemble_name.
        (ASM_OUTPUT_COMMON): Likewise.
        * config/rs6000/rs6000.c (print_operand): Use assemble_name.
        (rs6000_output_function_epilogue): Likewise.
        (output_mi_thunk): Fix typo.
        (rs6000_output_symbol_ref): Use assemble_name.
        (output_toc): Likewise.
        * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
        * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
        assemble_name calls STRIP_NAME_ENCODING.
        (ASM_OUTPUT_LABEL): Use assemble_name.
        (ASM_GLOBALIZE_LABEL): Likewise.
        (ASM_DECLARE_FUNCTION_NAME): Likewise.
        (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
        (ASM_OUTPUT_LOCAL): Likewise.

From-SVN: r46600
2001-10-28 16:45:46 -05:00
Richard Kenner
ce2d32cd37 builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
* builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
	(expand_builtin_apply, expand_builtin_return): Likewise.
	(expand_builtin_va_arg, expand_builtin_va_copy): Likewise.

From-SVN: r46598
2001-10-28 15:42:29 -05:00
Joseph Myers
ff7cc30768 ChangeLog.0, [...]: Fix spelling errors.
* ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
	ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
	c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
	configure, configure.in, except.c, except.h, flow.c, function.c,
	gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
	predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
	sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
	unroll.c: Fix spelling errors.

From-SVN: r46595
2001-10-28 20:09:17 +00:00
Joseph Myers
306ef64467 ChangeLog.1, [...]: Fix spelling errors.
* ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
	semantics.c, spew.c: Fix spelling errors.

From-SVN: r46593
2001-10-28 19:25:00 +00:00
Joseph Myers
0c688a7d77 * doc/extend.texi, doc/invoke.texi: Fix spelling.
From-SVN: r46591
2001-10-28 19:12:12 +00:00
Joseph Myers
67dda4b520 * doc/gcc.texi: Document use of "dependent" and American spelling.
From-SVN: r46589
2001-10-28 18:59:25 +00:00
Jan Hubicka
58f698416a expr.c (emit_group_load): Support CONCATs by storing them to memory and reloading.
* expr.c (emit_group_load): Support CONCATs by storing them to memory
	and reloading.

From-SVN: r46586
2001-10-28 16:10:12 +00:00
Richard Kenner
61cb205c64 * expr.c (store_constructor_field): Only call adjust_address on MEM.
From-SVN: r46585
2001-10-28 11:06:17 -05:00
Jan Hubicka
9591d21063 genrecog.c (write_switch): Output if before switch for DT_elt_zero_wide_safe.
* genrecog.c (write_switch):  Output if before switch for
	DT_elt_zero_wide_safe.

From-SVN: r46584
2001-10-28 16:00:22 +00:00
Kaveh R. Ghazi
d506f6496f Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
* Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
	* i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
	(FUNCTION_PROFILER): Const-ify.
	* halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
	(eliminate_constant_term, assemble_name, output_addr_const):
	Remove declarations.
	(ptr_half_pic_address_p, half_pic_hash): Prototype.
	(all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
	half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
	* halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
	(half_pic_declare, half_pic_external): Const-ify.
	* toplev.c: Include "halfpic.h".

From-SVN: r46583
2001-10-28 14:01:20 +00:00
Joseph Myers
f710504c07 alpha.md, [...]: Fix spelling errors.
* config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
	config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
	config/i386/i386.c, config/i386/i386-interix.h,
	config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
	config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
	config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
	config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
	config/sparc/sparc.c, config/m68hc11/m68hc11.c,
	config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
	config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
	spelling errors.

From-SVN: r46582
2001-10-28 13:22:02 +00:00
Joseph Myers
638e383e25 86numaux.adb, [...]: Fix spelling errors.
* 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
	exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
	g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
	g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
	layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
	s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
	sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
	sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
	sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
	types.ads, urealp.adb: Fix spelling errors.

From-SVN: r46581
2001-10-28 12:56:08 +00:00
Joseph Myers
f63d1bf775 ChangeLog.0, [...]: Fix spelling errors.
* ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
	ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
	c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
	collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
	haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
	regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
	system.h, toplev.c: Fix spelling errors.

From-SVN: r46580
2001-10-28 12:42:06 +00:00
Joseph Myers
63f6bcd791 * ChangeLog, configure: Fix spelling errors.
From-SVN: r46579
2001-10-28 12:08:43 +00:00
GCC Administrator
82e255f2d4 Daily bump.
From-SVN: r46575
2001-10-28 07:16:09 +00:00
Richard Kenner
157bd2bb7d * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
From-SVN: r46574
2001-10-27 22:34:18 -04:00
Richard Kenner
e7af1d4538 dwarf2out.c (reg_number): Abort if pseudo.
* dwarf2out.c (reg_number): Abort if pseudo.
	(reg_loc_descriptor): Return 0 if pseudo.
	(is_based_loc): Return 0 if pseudo.
	(mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
	recursive calls.
	(concat_loc_descriptor): Return 0 if either part's descriptor is 0.
	(loc_descriptor): Return 0 if can't find location and handle 0
	return from recursive calls.
	(loc_descriptor_from_tree): Likewise.
	Fix handling of indirect.
	Also return 0 for PLACEHOLDER_EXPR.
	Clean up COMPONENT_REF cases.
	(add_AT_location_descriptor): Simplify, but handle 0 return from
	loc_descriptor.
	(add_const_value_attribute): Avoid shift count warning.
	(add_bound_info): Remove test for PLACEHOLDER_EXPR here.
	Set comp_unit_die as context if not in function.

From-SVN: r46573
2001-10-27 22:30:03 -04:00
Richard Kenner
6b7d57c7e7 mips-protos.h: Break up long lines.
* config/mips/mips-protos.h: Break up long lines.
	Remove needless #ifdef/#endif blocks.
	Don't declare functions declared in file made by genpreds or recog.h.
	* config/mips/mips.c (mips_output_function_prologue): TSIZE
	is now HOST_WIDE_INT; delete unneeded casts.
	* config/mips/mips.h: Don't use #elif.

From-SVN: r46572
2001-10-27 18:41:00 -04:00
Richard Kenner
70072ed99e expr.c (stor_constructor_field): Always call adjust_address.
* expr.c (stor_constructor_field): Always call adjust_address.
	Copy TARGET before changing its alias set.
	(store_field): Likewise, for TO_RTX.
	(get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
	replacement.
	(safe_from_p, case ADDR_EXPR): Properly check for conflict.
	(find_placeholder): Return 0 if can't find object.
	(expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
	returns 0.

From-SVN: r46571
2001-10-27 17:30:46 -04:00
Tom Tromey
2bd989ca96 jni.h (struct JNINativeInterface): Returns jsize, not jint.
* include/jni.h (struct JNINativeInterface) [GetStringLength]:
	Returns jsize, not jint.

From-SVN: r46569
2001-10-27 18:24:51 +00:00
Jan Hubicka
f4f17e7dc5 * ifcvt.c (if_convert): Call clear_aux_for_blocks.
From-SVN: r46568
2001-10-27 14:33:12 +00:00
Laurent Guerby
97f6baa0ca trans.c (gigi): Fix non determinism leading to bootstrap comparison failures for debugging...
* trans.c (gigi): Fix non determinism leading to bootstrap
	comparison failures for debugging information.

From-SVN: r46567
2001-10-27 16:26:32 +02:00
Florian Weimer
46b58b8c69 * gnat_rm.texi: Use @./@: where appropriate.
From-SVN: r46566
2001-10-27 16:23:21 +02:00
Kriang Lerdsuwanakij
765430000d * decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
From-SVN: r46565
2001-10-27 14:05:34 +00:00
Jan Hubicka
7dddfb65cf cfgcleanup.c (merge_blocks_move_predecessor_nojumps, [...]): Set BB_UPDATE_LIFE.
* cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
	merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
	(merge_blocks): Properly udpate life after making edge nonfallthru.
	* cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.

From-SVN: r46564
2001-10-27 10:17:44 +00:00
GCC Administrator
ba087771c0 Daily bump.
From-SVN: r46563
2001-10-27 07:16:40 +00:00
Tom Tromey
a0e16076a2 Adler32.java: Use correct class name.
* java/util/zip/Adler32.java: Use correct class name.  (Re-merge
	from Classpath.)

From-SVN: r46561
2001-10-26 22:01:03 +00:00
Kazu Hirata
a7812c0b00 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
From-SVN: r46560
2001-10-26 21:08:47 +00:00
Neil Booth
a38b987a89 c-typeck.c (convert_arguments): When comparing for enumeral type equality, use TYPE_MAIN_VARIANT.
* c-typeck.c (convert_arguments): When comparing for enumeral
	type equality, use TYPE_MAIN_VARIANT.
	* gcc.dg/Wconversion.c: New tests.

From-SVN: r46559
2001-10-26 20:49:48 +00:00
Robert Dewar
30151c7b3b * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
From-SVN: r46558
2001-10-26 20:49:37 +02:00
Kazu Hirata
d65f74782c s390.c: Fix comment typos.
* s390/s390.c: Fix comment typos.
	* s390/s390.h: Likewise.
	* s390/s390.md: Likewise.

From-SVN: r46557
2001-10-26 18:29:51 +00:00
Alexandre Oliva
6c624f7f88 tree-inline.c (WALK_SUBTREE_TAIL): New macro.
* tree-inline.c (WALK_SUBTREE_TAIL): New macro.
(walk_tree): Use it for tail calls where appropriate.

From-SVN: r46556
2001-10-26 18:27:13 +00:00
Alexandre Oliva
45c23566b6 cse.c (check_for_label_ref): Don't require REG_LABEL notes for non-local label_refs.
* cse.c (check_for_label_ref): Don't require REG_LABEL notes for
non-local label_refs.

From-SVN: r46555
2001-10-26 17:43:51 +00:00
Kazu Hirata
11a802bf1d * config/h8300/h8300.md (4 anonymous patterns): New.
From-SVN: r46554
2001-10-26 17:09:33 +00:00
Kazu Hirata
cb33eb17f7 h8300.c (get_shift_alg): Clean up.
* config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
	algorithm through the shift_info structure.
	(emit_a_shift): Update the use of get_shift_alg.

From-SVN: r46553
2001-10-26 17:06:27 +00:00
Richard Kenner
c0b1738da2 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
From-SVN: r46552
2001-10-26 19:03:05 +02:00
Richard Kenner
5b09c15368 decl.c (validate_size): Modify message for bad size to avoid implication that compiler is modifying the...
* decl.c (validate_size): Modify message for bad size to avoid
	implication that compiler is modifying the size.

From-SVN: r46551
2001-10-26 18:59:34 +02:00
Robert Dewar
4d55366883 * prj-util.adb: Minor reformatting. Fix bad header format.
From-SVN: r46550
2001-10-26 18:52:22 +02:00
Robert Dewar
3e542a58b2 sinfo.ads: Define Associated_Node to overlap Entity field.
* sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.

	* sinfo.ads: Clarify use of Associated_Node (documentation only).

	* sem_ch12.adb: Change Node4 to Associated_Node. Change
	Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
	much more narrowly in places where needed. These are cleanups.

From-SVN: r46549
2001-10-26 18:44:45 +02:00
Joel Brobecker
0bf08bfe35 5zosinte.ads (null_pthread): new constant.
* 5zosinte.ads (null_pthread): new constant.

	* 5ztaprop.adb:
	(Initialize_TCB): Initialize thread ID to null, to be able to verify
	 later that this field has been set.
	(Finalize_TCB): ditto.
	(Suspend_Task): Verify that the thread ID is not null before using it.
	(Resume_Task): ditto.

	* s-tasdeb.adb:
	(Resume_All_Tasks): Lock the tasks list before using it.
	(Suspend_All_Tasks): ditto.

From-SVN: r46548
2001-10-26 18:09:47 +02:00
Richard Kenner
7a3a8c068b decl.c (gnat_to_gnu_entity, [...]): Make constant variant of designated type for Is_Access_Constant.
* decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
	Make constant variant of designated type for Is_Access_Constant.
	Call update_pointer_to with main variant.

	* trans.c (process_freeze_entity, process_type):
	Call update_pointer_to on main variant.

	* utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
	If main variant, update all other variants.

	* utils2.c (build_unary_op, case INDIRECT_REF): No longer set
	TREE_STATIC.

From-SVN: r46547
2001-10-26 18:01:07 +02:00
Robert Dewar
b403bd177c * prj-util.adb: Minor reformatting
From-SVN: r46546
2001-10-26 17:52:50 +02:00