Commit Graph

35848 Commits

Author SHA1 Message Date
Benjamin Kosnik
8c3b1101bf mknumeric_limits: Add static definitions, format.
2001-06-19  Benjamin Kosnik  <bkoz@redhat.com>

	* mknumeric_limits: Add static definitions, format.
	* testsuite/18_support/numeric_limits.cc (test02): Add test.

	* include/c_std/bits/std_cwchar.h: Include ctime.
	* testsuite/17_intro/header_cwchar.cc : Check.

	* include/c_std/bits/std_cwctype.h: Inject wctype.
	* testsuite/17_intro/header_cwctype.cc: Update.

From-SVN: r43467
2001-06-20 03:06:44 +00:00
Benjamin Kosnik
54da4898cc mknumeric_limits: Add static defintions, format.
2001-06-19  Benjamin Kosnik  <bkoz@redhat.com>

	* mknumeric_limits: Add static defintions, format.
	* testsuite/18_support/numeric_limits.cc (test02): Add test.

	* include/c_std/bits/std_cwchar.h: Include ctime.
	* testsuite/17_intro/header_cwchar.cc : Check.

	* include/c_std/bits/std_cwctype.h: Inject wctype.

From-SVN: r43466
2001-06-20 03:05:31 +00:00
Geoffrey Keating
78373aded0 rtl.texi (Machine Modes): Correct description of floating-point modes on machines with non-8-bit bytes.
* doc/rtl.texi (Machine Modes): Correct description of
	floating-point modes on machines with non-8-bit bytes.

From-SVN: r43465
2001-06-19 18:30:28 +00:00
Jeffrey A Law
fd9305ef93 ssa.c (remove_phi_alternative): Remove declaration.
* ssa.c (remove_phi_alternative): Remove declaration.  No longer
        static.  Second argument is a pointer to a basic block structure,
        not a basic block index.
        (convert_to_ssa): Do not remove dead code.
        (convert_from_ssa): Do not remove dead code to create death notes.
        * ssa.h (remove_phi_alternative): Declare.

From-SVN: r43464
2001-06-19 10:54:26 -06:00
Jeffrey A Law
164d59e04e flow.c (delete_unreachable_blocks): Fix patch error in previous change (call to find_unreachable_blocks was lost).
* flow.c (delete_unreachable_blocks): Fix patch error in
        previous change (call to find_unreachable_blocks was lost).

From-SVN: r43463
2001-06-19 09:03:01 -06:00
Bernd Schmidt
4fb3cbd7e5 Fix incorrect note handling.
From-SVN: r43462
2001-06-19 14:34:23 +00:00
Jeffrey A Law
10ab5c54a1 ssa.c (ssa_uses): Remove definition.
* ssa.c (ssa_uses): Remove definition.
        (apply_delayed_renames): Don't grow ssa_uses.
        (rename_block): Remove comment related to ssa_uses.
        (rename_registers): Do not initialize ssa_uses.
        (convert_from_ssa): Do not free ssa_uses.

From-SVN: r43460
2001-06-19 08:18:49 -06:00
Jeffrey A Law
57fae080ee Makefile.in (OBJS): Replace dce.o with ssa-dce.o
* Makefile.in (OBJS): Replace dce.o with ssa-dce.o
        (dependencies): Replace dce.c with ssa-dce.c and dce.o with
        ssa-dce.o.

From-SVN: r43459
2001-06-19 08:13:13 -06:00
Jeffrey A Law
30eadf3d09 * POTFILES.in: Replace dce.c with ssa-dce.c.
From-SVN: r43458
2001-06-19 08:04:13 -06:00
Jeffrey A Law
d11ace49cf * ssa-dce.c: Renamed from dce.c.
From-SVN: r43457
2001-06-19 07:53:25 -06:00
Richard Sandiford
c93586fa83 except.c (initialize_handler_parm): Expect __cxa_begin_catch to return pointers to data members by reference rather...
* except.c (initialize_handler_parm): Expect __cxa_begin_catch to
        return pointers to data members by reference rather than by value.

From-SVN: r43456
2001-06-19 09:32:57 -04:00
Mark J. Roberts
a0d4ddde2c BigInteger.java (byteArrayToIntArray): Don't include extraneous/malformed sign word.
2001-06-19  Mark J. Roberts  <mjr@statesmean.com>

	* java/math/BigInteger.java (byteArrayToIntArray): Don't include
	extraneous/malformed sign word.

From-SVN: r43455
2001-06-19 11:42:03 +00:00
Eric Christopher
57dadce202 emit-rtl.c (gen_lowpart_common): Do not assume that SFmode and DFmode are UNITS_PER_WORD and 2*UNITS_PER_WORD.
2001-06-19  Eric Christopher <echristo@redhat.com>

	* emit-rtl.c (gen_lowpart_common): Do not assume that SFmode
	and DFmode are UNITS_PER_WORD and 2*UNITS_PER_WORD.  Use
	GET_MODE_BITSIZE instead of GET_MODE_SIZE/UNITS_PER_WORD.

From-SVN: r43454
2001-06-19 08:34:34 +00:00
GCC Administrator
beec1ac56e Daily bump.
From-SVN: r43453
2001-06-19 07:16:51 +00:00
Benjamin Kosnik
3768cee7ca stl_raw_storage_iter.h: Format.
2001-06-18  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/stl_raw_storage_iter.h: Format. Correct derivation.
	* testsuite/20_util/raw_storage_iterator.cc: Same.

        * include/bits/stl_alloc.h (_S_chunk_alloc): Change malloc to
        operator new.
        (__mem_interface): New typedef for switching between malloc and new.
	* testsuite/20_util/allocator_members.cc: New file.

	* testsuite/20_util/comparisons.cc: New file.
	* testsuite/20_util/pairs.cc: New file.

From-SVN: r43451
2001-06-19 01:51:33 +00:00
J"orn Rennecke
afbc5d8693 sh.c (output_branch): Delete bogus code.
* sh.c (output_branch): Delete bogus code.

	* sh.c (initial_elimination_offset):
	Fix FROM == RETURN_ADDRESS_POINTER_REGNUM case.

From-SVN: r43450
2001-06-19 01:58:29 +01:00
Richard Henderson
c8b2822138 * concat.c: Include <sys/types.h>.
From-SVN: r43449
2001-06-18 13:46:48 -07:00
Jeffrey A Law
1e29ee12f0 flow.c (find_unreachable_blocks): New function.
* flow.c (find_unreachable_blocks): New function.
	(delete_unreachable_blocks): Use find_unreachable_blocks.
	* basic-block.h (find_unreachable_blocks): Declare.

From-SVN: r43448
2001-06-18 13:46:37 -06:00
Jeffrey A Law
fbf8334971 * dce.c (eliminate_dead_code): Fix formatting glitch.
From-SVN: r43447
2001-06-18 12:57:41 -06:00
Stan Shebs
b2af8e32ec objc.dg: New directory.
* objc.dg: New directory.
	* objc.dg/dg.exp: New file.
	* objc.dg/alias.m: New.
	* objc.dg/class-1.m: New.
	* objc.dg/class-2.m: New.
	* objc.dg/const-str-1.m: New.
	* objc.dg/const-str-2.m: New.
	* objc.dg/id-1.m: New.
	* objc.dg/method-1.m: New.
	* objc.dg/super-class-1.m: New.
	* lib/objc-dg.exp: New file.

From-SVN: r43446
2001-06-18 16:48:37 +00:00
Jason Merrill
0d97bf4c2c Implement the Named Return Value optimization.
* c-common.h (RETURN_NULLIFIED_P): New macro.
        * c-semantics.c (genrtl_return_stmt): Check it.
        * cp-tree.h (struct cp_language_function): Add x_return_value.
        (current_function_return_value): Now a macro.
        * decl.c: Don't define it.
        (define_label, finish_case_label): Don't clear it.
        (init_decl_processing): Don't register it with GC.
        * semantics.c (genrtl_finish_function): Don't check it for
        no_return_label.  Copy the RTL from the return value to
        current_function_return_value and walk, calling...
        (nullify_returns_r): ...this new fn.
        * typeck.c (check_return_expr): Set current_function_return_value.

        * expr.c (clear_storage): Set TREE_NOTHROW on the decl for memset.
        (emit_block_move): Likewise.

From-SVN: r43445
2001-06-18 12:15:12 -04:00
Jan Hubicka
923cbdc322 unroll.c: Include predict.h.
* unroll.c: Include predict.h.
	(unroll_loop): Drop prediction notes on preconditioning.
	* predict.def (PRED_LOOP_PRECONDITIONG, PRED_LOOP_CONDITION):
	New; add comments on the others.
	* Makefile.in: (unroll.o): Add dependancy on predict.h.
	* loop.c (strength_reduce): Fix branch prediction.

	* stmt.c (emit_case_nodes): Optimize test whether index is in given
	interval.

	* predict.c (estimate_probability): Do not bail out early
	when note is present.
	(combine_predictions_for_insn): Fix note removal code.

From-SVN: r43441
2001-06-18 15:35:47 +00:00
Jason Merrill
049d2def48 tidy
From-SVN: r43440
2001-06-18 07:17:53 -04:00
GCC Administrator
3b40a21431 Daily bump.
From-SVN: r43433
2001-06-18 07:16:16 +00:00
Ben Elliston
ea446801a0 except.c (resolve_fixup_regions): Initialise "cleanup".
2001-06-18  Ben Elliston  <bje@redhat.com>

	* except.c (resolve_fixup_regions): Initialise "cleanup".

From-SVN: r43432
2001-06-18 16:43:51 +10:00
Neil Booth
ee773fcc77 * tm.texi: Document STDC_0_IN_SYSTEM_HEADERS.
From-SVN: r43426
2001-06-17 09:50:00 +00:00
GCC Administrator
e6f03f41c5 Daily bump.
From-SVN: r43424
2001-06-17 07:16:08 +00:00
Richard Kenner
d04218c0d4 expr.c (expand_expr, [...]): If taking address of SAVE_EXPR, use put_var_into_stack.
* expr.c (expand_expr, case ADDR_EXPR): If taking address of SAVE_EXPR,
	use put_var_into_stack.

From-SVN: r43423
2001-06-16 20:18:44 -04:00
John David Anglin
eaea542ac2 mangle1.C: Modify regexp to test for `[: \t\n]' at end of label name.
* g++.dg/mangle1.C: Modify regexp to test for `[: \t\n]' at end
	of label name.

From-SVN: r43422
2001-06-16 18:30:32 +00:00
Franz Sirl
38935c2126 gccspec.c (lang_specific_driver): If compiling ObjC, add -shared-libgcc when necessary.
2001-06-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * gccspec.c (lang_specific_driver): If compiling ObjC, add
        -shared-libgcc when necessary.
        * Makefile.in (gccspec.o): Compile with DRIVER_DEFINES.

From-SVN: r43421
2001-06-16 16:33:28 +00:00
Daniel Berlin
ea1939969e bitmap.h: Add dump_bitmap...
2001-06-16  Daniel Berlin  <dan@cgsoftware.com>

	* bitmap.h: Add dump_bitmap, bitmap_zero, bitmap_union_of_diffs,
	bitmap_a_or_b, bitmap_a_and_b, bitmap_first_set_bit,
	bitmap_last_set_bit. All for compatibility with sbitmap's.

	*bitmap.c (bitmap_zero): New function.
	(bitmap_union_of_diffs): New function.
	(bitmap_first_set_bit): New function.
	(bitmap_last_set_bit): New function.

From-SVN: r43420
2001-06-16 16:13:25 +00:00
Neil Booth
6d34c1c4f3 cpp.texi, [...]: Update.
* cpp.texi, invoke.texi: Update.
	* cpp.1, gcc.1: Regenerate.

From-SVN: r43419
2001-06-16 10:59:48 +00:00
Jan Hubicka
138b7342b1 * i386.md (minsf): Fix splitter. (PR fortran/3191)
From-SVN: r43418
2001-06-16 10:48:06 +00:00
GCC Administrator
cb04bcd880 Daily bump.
From-SVN: r43416
2001-06-16 07:16:10 +00:00
Tom Tromey
a5c30a8cff * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
From-SVN: r43415
2001-06-15 23:44:45 +00:00
Neil Booth
827a5be702 cpp.texi: Update.
* doc/cpp.texi: Update.
	* doc/cpp.1: Regenerate.

From-SVN: r43414
2001-06-15 23:40:33 +00:00
Tom Tromey
6728a61d1f natRuntime.cc (_Jv_FindSymbolInExecutable): Return NULL if no library on the list has the symbol.
* java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
	NULL if no library on the list has the symbol.
	(init): Call add_library on the program itself.
	* prims.cc (JvRunMain): Initialize Runtime before searching for
	`main'.
	(_Jv_RunMain): Likewise.

From-SVN: r43413
2001-06-15 23:22:02 +00:00
Phil Edwards
21ea1c28cf documentation.html: Point to new doxygen'ed collection.
2001-06-15  Phil Edwards  <pme@sources.redhat.com>

	* docs/html/documentation.html:  Point to new doxygen'ed collection.

From-SVN: r43412
2001-06-15 22:57:30 +00:00
Loren J. Rittle
3c6bb1dbfc * doc/install.texi: Use correct markup hints.
From-SVN: r43411
2001-06-15 22:25:18 +00:00
Dennis Bjorklund
c764671cb0 sv.po: Updated.
2001-06-15  Dennis Bjorklund  <db@zigo.dhs.org>

	* sv.po: Updated.  Approximately 1100 of 3600 strings translated.

From-SVN: r43410
2001-06-15 22:13:00 +00:00
Tom Tromey
39986dd5ee jni.cc (ClassClass): Removed; updated all users.
* jni.cc (ClassClass): Removed; updated all users.
	(ObjectClass): Likewise.
	(ThrowableClass): Likewise.
	(MethodClass): Likewise.
	(ThreadGroupClass): Likewise.
	(local_ref_table): Renamed from `ref_table'.
	(global_ref_table): New global.
	(_Jv_JNI_Init): Initialize both ref tables.
	(mark_for_gc): Added `ref_table' parameter.
	(unmark_for_gc): Likewise.  Also, fail if we unreferenced too many
	times.
	(_Jv_JNI_NewGlobalRef): Updated for new mark function.
	(_Jv_JNI_DeleteGlobalRef): Likewise.
	(_Jv_JNI_DeleteLocalRef): Likewise.
	(_Jv_JNI_NewLocalRef): Likewise.
	(_Jv_JNI_PopLocalFrame): Likewise.
	(_Jv_JNI_GetStringChars): Likewise.
	(_Jv_JNI_ReleaseStringChars): Likewise.
	(_Jv_JNI_GetPrimitiveArrayElements): Likewise.
	(_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.

From-SVN: r43409
2001-06-15 22:09:10 +00:00
Richard Kenner
b927dc2237 * function.c (gen_mem_addressof): Handle case where DECL is SAVE_EXPR.
From-SVN: r43408
2001-06-15 18:08:42 -04:00
Richard Kenner
f6261a8a6f * explow.c (expr_size): If DECL and size specified, use it.
From-SVN: r43407
2001-06-15 18:05:09 -04:00
Zack Weinberg
1c5dd43ff7 cpp.texi: Formatting corrections.
* doc/cpp.texi: Formatting corrections.
Correct buggy example of use of __GNUC__ etc.
Clarify $ in identifiers.
* doc/cpp.1: Regenerate.

From-SVN: r43404
2001-06-15 17:57:48 +00:00
Jan Hubicka
76791f3d95 * optabs.c (expand_twoval_binop): Avoid undefined behaviour.
From-SVN: r43403
2001-06-15 17:44:56 +00:00
Rainer Orth
f254110619 install.texi (Specific, alpha*-*-*): Fixed Tru64 UNIX etc.
* doc/install.texi (Specific, alpha*-*-*): Fixed Tru64 UNIX
	etc. spelling.
	(Specific, alpha-*-osf1): Renamed to alpha*-*-osf*.
	Added Tru64 UNIX V5.1 bootstrap hints.
	(Specific, alpha*-*-osf*): Removed old section, obsolete.

From-SVN: r43402
2001-06-15 17:35:48 +00:00
Andreas Jaeger
e15ed7908c install.texi (Specific): Mention that glibc cannot be compiled with GCC 3.0.
* doc/install.texi (Specific): Mention that glibc cannot be
	compiled with GCC 3.0.

From-SVN: r43400
2001-06-15 18:41:07 +02:00
Jason Merrill
13de7ec4a5 class.c (dfs_accumulate_vtbl_inits): Just point to the base we're sharing a ctor vtable with.
* class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
	sharing a ctor vtable with.  Merge code for cases 1 and 2.
	(binfo_ctor_vtable): New fn.
	(build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.

From-SVN: r43399
2001-06-15 10:03:09 -04:00
Andrew Haley
2a8bb5cfe6 combine.c (nonzero_bits): Don't optimize away division by zero.
2001-06-14  Andrew Haley  <aph@redhat.com>

	* combine.c (nonzero_bits): Don't optimize away division by
	zero.

From-SVN: r43398
2001-06-15 13:27:03 +00:00
Jason Merrill
50622d8b6c add missing function
From-SVN: r43397
2001-06-15 07:45:27 -04:00