Commit Graph

47721 Commits

Author SHA1 Message Date
Raif S. Naffah
17e39e5c61 BigInteger.java: Updated notice to include years 2002 and 3.
2003-02-10  Raif S. Naffah <raif@fl.net.au>

	* java/math/BigInteger.java:
	Updated notice to include years 2002 and 3.
	Added 2 private (int) arrays with values from the HAC (Handbook of
	Applied Cryptography -A. Menezes & al): k[] that contains bit lengths
	and t[] that contains nbr. of tests --used in isProbablePrime().

	* java/math/BigInteger.java (make(long)): Merged into valueOf(long).

	* java/math/BigInteger.java (make(int[],int), add(int,int),
	add(BI,BI,int), times(BI,int), divide(long,long,BI,BI,int), gcd(BI),
	isProbablePrime(int), shift(BI,int), valueOf(String,int), neg(BI),
	bitOp(int,BI,BI), and(BI,int)): Use valueOf(long) instead of
	make(long).

	* java/math/BigInteger.java (euclidInv): Reduce number of work vars
	(euclidInv(int,int,int)): Now returns an array of 2 ints instead of 3.
	(euclidInv(BI,BI,BI)): Used to return an array of 2 BIs; now accepts 6
	BIs and returns void.
	(modInverse(BI)): Use new signatures of euclidInv().

	* java/math/BigInteger.java (isProbablePrime(int)): Use divide() with
	static small primes instead of remainder().
	Use pre-computed max nbr of trials based on bitlength of BI to test.
	Use pre-computed small primes for the trial tests instead of random
	numbers.

	* java/math/BigInteger.java (isOdd, isMinusOne, pow): Removed.
	not used.

	* java/math/BigInteger.java (format(int,StringBuffer)): Removed
	invoacation of MPN.chars_per_word().  not used.

	* java/math/BigInteger.java (gcd(int,int)): Declared 'tmp' once as
	local var and used where needed.

	* java/math/BigInteger.java (modPow(BI,BI)): Fixed spelling.
	Combined declaration with initialisation of locals.
	Removed unused var.

	* java/math/BigInteger.java: Style changes
	(pow(int)): Removed 'else' keyword.
	(toString(int)): idem.
	(doubleValue()): idem.
	(bitLength()): idem.
	(equals(Object)): Use static methods name in same class w/o prepending
	class name.
	(doubleValue()): idem.
	(setNegative(BI)): idem.
	(negate()): idem.
	(and(BI,int)): idem.
	(and(BI)): idem.
	(gcd(BI)): idem.
	(byteArrayToIntArray()): Removed casting to (int). this is
	std. behaviour.
	(canonicalize()): idem.
	(alloc(int)): Always instantiate a new BI.

From-SVN: r62656
2003-02-10 23:45:31 +00:00
Kazu Hirata
2a4e6df4ce h8300.md (abssf2): New.
* config/h8300/h8300.md (abssf2): New.
	(*abssf2_h8300): Likewise.
	(*abssf2_h8300hs): Likewise.

From-SVN: r62654
2003-02-10 22:45:39 +00:00
Phil Edwards
411e27598d tree.c (build_tree_list): Fix parameter names in comment.
2003-02-10  Phil Edwards  <pme@gcc.gnu.org>

	* tree.c (build_tree_list):  Fix parameter names in comment.

From-SVN: r62653
2003-02-10 20:47:04 +00:00
Janis Johnson
2b24fc41b9 ppc64-fp.c: New file.
2003-02-10  Janis Johnson  <janis187@us.ibm.com>

	* config/rs6000/ppc64-fp.c: New file.
	* config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.

From-SVN: r62652
2003-02-10 20:45:59 +00:00
David Edelsohn
1b1edcfa61 - Really commit ctz patch.
From-SVN: r62649
2003-02-10 15:13:01 -05:00
Tom Tromey
848f2ce8d5 Timestamp.java (compareTo(Object)): New method.
* java/sql/Timestamp.java (compareTo(Object)): New method.
	(compareTo(Timestamp)): Likewise.
	(serialVersionUID): Updated.

From-SVN: r62648
2003-02-10 19:56:12 +00:00
Josef Zlomek
aa634f11e6 Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
* Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
	* bb-reorder.c (make_reorder_chain): Deleted.
	(make_reorder_chain_1): Deleted.
	(find_traces): New function.
	(rotate_loop): New function.
	(mark_bb_visited): New function.
	(find_traces_1_round): New function.
	(copy_bb): New function.
	(bb_to_key): New function.
	(better_edge_p): New function.
	(connect_traces): New function.
	(copy_bb_p): New function.
	(get_uncond_jump_length): New function.
	(reorder_basic_blocks): Use new functions (Software Trace Cache).
	* cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
	boundaries.

From-SVN: r62645
2003-02-10 19:18:42 +00:00
Aldy Hernandez
17edbda579 rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
2003-02-10  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.

From-SVN: r62644
2003-02-10 18:42:19 +00:00
Dan Nicolaescu
57116c342f tree.h (struct tree_decl): Remove unused live_range_rtl field.
* tree.h (struct tree_decl): Remove unused live_range_rtl field.
	(DECL_LIVE_RANGE_RTL): Remove.

From-SVN: r62642
2003-02-10 17:46:07 +00:00
Dan Nicolaescu
7a93f73934 cp-tree.h (struct lang_type_header): Make all fields unsigned char.
* cp-tree.h (struct lang_type_header): Make all fields unsigned
        char.

From-SVN: r62641
2003-02-10 17:44:55 +00:00
Nick Clifton
4f44824549 Replace occurances of "GNU CC" with "GCC" and reformat as appropriate.
From-SVN: r62640
2003-02-10 16:33:09 +00:00
Kazu Hirata
19190d2751 clzsi2.c: Remove.
* config/h8300/clzsi2.c: Remove.
	* config/h8300/ctzsi2.c: Likewise.
	* config/h8300/paritysi2.c: Likewise.
	* config/h8300/popcountsi2.c: Likewise.
	* config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
	ctzsi2, paritysi2, and popcountsi2.

From-SVN: r62637
2003-02-10 13:20:54 +00:00
Eric Botcazou
ecf92f8227 re PR c/7741 (ICE on conflicting types (make_decl_rtl at varasm.c:834))
PR c/7741
	* c-decl.c (duplicate_decls): Discard the initializer of the
	new decl when the types are conflicting.

Co-Authored-By: Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>

From-SVN: r62631
2003-02-10 12:45:54 +00:00
Josef Zlomek
ac5e69da56 Makefile.in (sreal.o): Added.
* Makefile.in (sreal.o): Added.
	(predict.o): Depends on sreal.h instead of real.h.
	* sreal.c: New file.
	* sreal.h: New file.
	* predict.c: Use sreal.c instead of real.c.

From-SVN: r62630
2003-02-10 12:34:24 +00:00
Jan Hubicka
637df4f4ba * gcc.dg/i386-fpcvt-1.c: New test.
From-SVN: r62627
2003-02-10 12:12:56 +00:00
Nick Clifton
63a3b0a700 oops - omiited from previous delta:
* Contributed support for the Cirrus EP9312 "Maverick"
    floating point co-processor.  Written by Aldy Hernandez
    <aldyh@redhat.com>.
    (config/arm/arm.c): Add Cirrus support.
    (config/arm/arm.h): Likewise.
    (config/arm/aout.h): Likewise.
    (config/arm/arm.md): Likewise.
    (config/arm/arm-protos.h): Likewise.
    (config.gcc): Likewise.
    (doc/invoke.texi): Describe new -mcpu value and new
    -mcirrus-fix-invalid-insns switch,
    (cirrus.md): New file.

From-SVN: r62626
2003-02-10 11:46:40 +00:00
Nick Clifton
9b6b54e2fe Add support for Cirrus EP9312, an ARM variant.
From-SVN: r62625
2003-02-10 11:45:26 +00:00
Jan Hubicka
949824fe34 combine.c (combine_simplify_rtx): Simplify using (float_truncate (float x)) is (float x) (float_extend...
* combine.c (combine_simplify_rtx): Simplify using
	(float_truncate (float x)) is (float x)
	(float_extend (float_extend x)) is (float_extend x).

From-SVN: r62624
2003-02-10 10:56:05 +00:00
Alan Modra
546ff7777c calls.c (try_to_integrate): Tidy stack_usage_map access.
* calls.c (try_to_integrate): Tidy stack_usage_map access.
	(emit_library_call_value_1): Likewise.	Formatting.
	(store_one_arg): Likewise.

From-SVN: r62622
2003-02-10 16:46:53 +10:30
Aldy Hernandez
626098f9b9 [multiple changes]
2003-02-09  Nick Clifton  <nickc@redhat.com>
            Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
        spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
        spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
        spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
        spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
        docs.  Add range test for immediate value.

2003-02-09  Aldy Hernandez  <aldyh@redhat.com>

        Rename spe_evxor to xorv2si3.
        (xorv4hi3): New.
        (xorv1di3): New.

From-SVN: r62621
2003-02-10 05:00:17 +00:00
Glen Nakamura
8d23a2c818 extend.texi (C++98 Thread-Local Edits): Add missing @item tag.
* doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
	tag.

From-SVN: r62620
2003-02-10 00:24:44 +00:00
GCC Administrator
2ae4751af4 Daily bump.
From-SVN: r62619
2003-02-10 00:17:05 +00:00
Jan Hubicka
fdc4b40b65 i386.c (vector_move_operand): New predicate.
* i386.c (vector_move_operand): New predicate.
	(ix86_expand_vector_move): Be happy about 0.
	* i386.h (PREDICATE_CODES): Add sse-move_operand.
	* i386.md (mov*_internal): Add 'C' alternative.

From-SVN: r62612
2003-02-09 23:30:51 +00:00
Jan Hubicka
35c28a1330 * i386.md (floathi*): Deal with SSE.
From-SVN: r62611
2003-02-09 22:59:20 +00:00
Jan Hubicka
852c8ba12e simplify-rtx.c (simplify_unary_operation, [...]): Deal with vector modes
* simplify-rtx.c (simplify_unary_operation,
	simplify_binary_operation):  Deal with vector modes
	(simplify_ternary_operation):  Deal with no-op VEC_MERGE.

From-SVN: r62610
2003-02-09 22:55:35 +00:00
Richard Sandiford
2382b79f35 toplev.c (rest_of_compilation): Recompute register usage after split_all_insns.
* toplev.c (rest_of_compilation): Recompute register usage after
	split_all_insns.

From-SVN: r62607
2003-02-09 19:18:54 +00:00
Richard Henderson
8275b011ca libgcc-std.ver (__clztf2): New.
* libgcc-std.ver (__clztf2): New.
        (__ctztf2, __popcounttf2, __paritytf2): New.
        * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
        __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
        adjust code to match the different type sizes.
        * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
        __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.

        * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
        TImode; select word_mode and twice that.
        (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
        select the modes from float, double, and long double.
        (init_optabs): Remove duplicate initializations.

From-SVN: r62606
2003-02-09 10:35:22 -08:00
Kazu Hirata
5d4b76c0a9 builtin-bitops-1.c: When testing the int-wide bitops, use the constants of the same width.
* gcc.c-torture/execute/builtin-bitops-1.c: When testing the
	int-wide bitops, use the constants of the same width.
	Likewise, if long long is 32-bit wide, test bitops using
	32-bit constants.

From-SVN: r62603
2003-02-09 13:09:45 +00:00
Wolfgang Bangerth
794aca5dcd install.texi: Squeeze and streamline section on testing and regression checking.
* doc/install.texi: Squeeze and streamline section on
	testing and regression checking.

From-SVN: r62601
2003-02-09 13:04:01 +00:00
Jan Hubicka
d9deed68d4 i386.md (ahi?v*3): Set third operand type to TImode.
* i386.md (ahi?v*3): Set third operand type to TImode.
	* i386.c (ix86_expand_binop_builtin): Extend operand when needed.

	* simplify-rtx.c (simplify_subreg): Fix conversion from vector into
	integer mode.

	* rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
	Change code so they are arithmetic expressions now.
	* simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
	simplify_ternary_operation): Deal with VEC_* expressions.

	* i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.

From-SVN: r62600
2003-02-09 12:35:28 +00:00
Jan Hubicka
83fd323c4c cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
* cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
	* reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
	possibly got duplicated.

From-SVN: r62599
2003-02-09 11:06:41 +00:00
Richard Henderson
4ee7aa6044 alpha.c (override_options): Turn off explicit relocs until post-peep2 code duplication resolved.
* config/alpha/alpha.c (override_options): Turn off explicit
        relocs until post-peep2 code duplication resolved.

From-SVN: r62597
2003-02-08 21:21:00 -08:00
Kazu Hirata
c117dddced optabs.c (expand_unop): Widen clz properly when clz is done via libcall.
* optabs.c (expand_unop): Widen clz properly when clz is done
	via libcall.

From-SVN: r62595
2003-02-09 04:25:16 +00:00
John David Anglin
5053bdf834 atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock): Correct alignment.
* hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
	Correct alignment.
	(__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
	lock.

From-SVN: r62593
2003-02-09 03:23:13 +00:00
GCC Administrator
cefadf78ae Daily bump.
From-SVN: r62592
2003-02-09 00:17:03 +00:00
Roger Sayle
afc432a9ae jcf-io.c (java_or_class_file): Use libiberty's lbasename instead of basename to avoid compiler warnings on Tru64.
* jcf-io.c (java_or_class_file): Use libiberty's lbasename
	instead of basename to avoid compiler warnings on Tru64.

From-SVN: r62582
2003-02-08 18:49:22 +00:00
Kazu Hirata
8aa063fb46 clzsi2.c: Replace "GNU CC" with "GCC".
* config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
	* config/h8300/crti.asm: Likewise.
	* config/h8300/crtn.asm: Likewise.
	* config/h8300/ctzsi2.c: Likewise.
	* config/h8300/fixunssfsi.c: Likewise.
	* config/h8300/h8300-protos.h: Likewise.
	* config/h8300/h8300.c: Likewise.
	* config/h8300/h8300.h: Likewise.
	* config/h8300/h8300.md: Likewise.
	* config/h8300/paritysi2.c: Likewise.
	* config/h8300/popcountsi2.c: Likewise.
	* config/h8300/rtems.h: Likewise.

From-SVN: r62581
2003-02-08 18:27:12 +00:00
Zdenek Dvorak
01a132bbda invoke.texi: Documentation for my previous commit.
* doc/invoke.texi: Documentation for my previous commit.
	* doc/passes.texi: Ditto.

From-SVN: r62580
2003-02-08 14:51:06 +00:00
Zdenek Dvorak
617b465c7f cfgloop.h (fix_loop_placement, [...]): Declare.
* cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
	duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
	Declare.
	(DLTHE_FLAG_UPDATE_FREQ): New.
	* cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
	loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
	rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
	fix_bb_placement, fix_bb_placements, place_new_loop,
	scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
	New static functions.
	(fix_loop_placement, can_duplicate_loop_p,
	duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
	New functions.

	* cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
	unswitch_loops): Declare.
	* loop-init.c: New file.
	* loop-unswitch.c: New file.
	* Makefile.in (loop-init.o, loop-unswitch.o): New.
	* params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
	* toplev.c (DFI_loop2): New dump.
	(flag_unswitch_loops): New.
	(lang_independent_options): Add it.
	(rest_of_compilation): Call new loop optimizer.
	(parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.

From-SVN: r62578
2003-02-08 14:29:00 +00:00
Kazu Hirata
3bd03194ff clzsi2.c: New.
* config/h8300/clzsi2.c: New.
	* config/h8300/ctzsi2.c: Likewise.
	* config/h8300/paritysi2.c: Likewise.
	* config/h8300/popcountsi2.c: Likewise.
	* config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.

From-SVN: r62577
2003-02-08 13:22:46 +00:00
Laurynas Biveinis
669e906239 * MAINTAINERS: Update my email
From-SVN: r62575
2003-02-08 10:52:39 +00:00
David Edelsohn
949939097e - Add ctz patterns.
From-SVN: r62572
2003-02-07 22:59:40 -05:00
David Edelsohn
d865b1226d rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
* config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
        * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
        (ffssi2): Use clz instead of unspec.
        (clzdi2): Rename from cntlzd2.
        (ffsdi2): Use clz instead of unspec.

From-SVN: r62570
2003-02-07 20:51:26 -05:00
Loren J. Rittle
8f37dd984b freebsd.h (LINK_SPEC): Weaken error to notice.
* config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
	* config/ia64/freebsd.h (LINK_SPEC): Likewise.
	* config/sparc/freebsd.h (LINK_SPEC): Likewise.
	* config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
	* gcc.dg/20021014-1.c: Annotate with expected notice text.

From-SVN: r62567
2003-02-08 01:11:35 +00:00
GCC Administrator
0a6bc31450 Daily bump.
From-SVN: r62566
2003-02-08 00:17:03 +00:00
Wolfgang Bangerth
83205b9b4a * doc/trouble.texi: Document pitfalls of two-stage name lookup.
From-SVN: r62558
2003-02-07 23:12:03 +00:00
Richard Henderson
710ee3ed76 gcse.c (local_cprop_find_used_regs): New.
* gcse.c (local_cprop_find_used_regs): New.
        (local_cprop_pass): Use it.

From-SVN: r62555
2003-02-07 14:57:41 -08:00
Fred Fish
3ef879d2ae mips-tfile.c (parse_def): Parenthesize assignments to fix precedence bugs.
2003-02-04  Fred Fish  <fnf@intrinsity.com>

        * mips-tfile.c (parse_def): Parenthesize assignments to fix
        precedence bugs.

From-SVN: r62553
2003-02-07 22:50:09 +00:00
Segher Boessenkool
a0f0e96302 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
From-SVN: r62552
2003-02-07 14:39:49 -08:00
Roger Sayle
46847aa6e7 builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
* builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
	(BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
	(BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
	* builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
	builtin functions (and their __builtin_* variants).
	* builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
	(expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
	when not optimizing.

	* doc/extend.texi: Document new pow and atan2 builtins, and
	their float and long double variants.  Realphabetize builtins.

	* testsuite/gcc.dg/builtins-4.c: New test case.

From-SVN: r62551
2003-02-07 22:37:57 +00:00