Commit Graph

45452 Commits

Author SHA1 Message Date
Jim Wilson
2f0da74c47 Don't clobber app register r5 in muldi3.
* config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.

From-SVN: r57375
2002-09-20 16:36:30 -07:00
Jakub Jelinek
dea7379019 i386.md (UNSPEC_GOTNTPOFF, [...]): New.
* config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
	* config/i386/i386.c (legitimate_pic_address_disp_p): Handle
	UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
	(legitimate_address_p): Likewise.
	(legitimize_address): Use @gotntpoff and @indntpoff.
	(output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
	(output_addr_const_extra): Likewise.

From-SVN: r57373
2002-09-21 00:08:34 +02:00
Jim Wilson
a9b2f05974 Fix v850 ICE.
* combine.c (try_combine): When split an instruction pair, where the
	first has a sign_extend src, verify that the src and dest modes match.

From-SVN: r57371
2002-09-20 14:42:25 -07:00
Neil Booth
27eba30922 * testsuite/gcc.dg/cpp/tr-warn2.c: Additional test.
From-SVN: r57370
2002-09-20 21:21:10 +00:00
Nathanael Nerode
8f89dbf4b5 configure.in: Rearrange.
2002-09-20  Nathanael Nerode <neroden@doctor.moo.mud.org>

	* configure.in: Rearrange.

From-SVN: r57369
2002-09-20 21:00:07 +00:00
Richard Henderson
1f7422bdbc mips.c (dfhigh, [...]): Remove.
* config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
        (override_options): Do not initialize them.
        (mips_const_double_ok): Allow no fp constants except zero,
        and not even that for mips16.
        (const_float_1_operand): Use dconst1.
        * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
        movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
        Don't allow arbitrary constants; fix predicates and C constraint.

From-SVN: r57368
2002-09-20 13:11:25 -07:00
Jakub Jelinek
6ba085e708 * gcc.dg/tls/struct-1.c: New test.
From-SVN: r57367
2002-09-20 22:03:40 +02:00
Neil Booth
56941bf2e3 cppmacro.c: Don't warn about function-like macros without '(' during pre-expandion.
* cppmacro.c: Don't warn about function-like macros without
	'(' during pre-expandion.
testsuite:
	* gcc.dg/cpp/tr-warn2.c: Update.

From-SVN: r57366
2002-09-20 19:44:09 +00:00
Jim Wilson
66a0dfebeb Fix -O3 stdarg miscompilation.
* config/v850/v850.c (current_function_anonymous_args): Delete.
	(expand_prologue): Use current_function_args_info.anonymous_args.
	(expand_epilogue): Delete use of current_function_anonymous_args.
	* config/v850/v850.h (struct cum_arg): Add anonymous_args field.
	(INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
	(current_function_anonymous_args): Delete extern declaration.
	(SETUP_INCOMING_VARARGS): Set anonymous_args field.

From-SVN: r57363
2002-09-20 12:15:53 -07:00
Geoffrey Keating
f51eee6af1 rs6000.c (rs6000_emit_prologue): Update for change to load_macho_picbase.
* config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
	to load_macho_picbase.
	* config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
	(load_macho_picbase): Take the symbol to use as a parameter.
	(macho_correct_pic): New insn.
	(builtin_setjmp_reciever): On Darwin, restore the PIC register.

From-SVN: r57360
2002-09-20 18:42:24 +00:00
Geoffrey Keating
97b2385389 rs6000.h (ELIMINABLE_REGS): Use RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
* config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
	RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
	(CAN_ELIMINATE): Likewise.
	(INITIAL_ELIMINATION_OFFSET): Likewise.
	(TOC_REGISTER): Likewise.

From-SVN: r57359
2002-09-20 18:40:27 +00:00
Richard Henderson
46b33600d5 real.c (real_hash): New.
* real.c (real_hash): New.
        * real.h: Declare it.
        * cse.c (canon_hash): Use it.
        * cselib.c (hash_rtx): Likewise.
        * emit-rtl.c (const_double_htab_hash): Likewise.
        * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
        * varasm.c (struct rtx_const): Reduce vector size; separate
        integer and fp vectors.
        (HASHBITS): Remove.
        (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
        take modulus MAX_HASH_TABLE.
        (const_hash): New.  Do take modulus MAX_HASH_TABLE.
        (output_constant_def): Do not take modulus MAX_HASH_TABLE.
        (SYMHASH): Don't use HASHBITS.
        (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
        Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
        (simplify_subtraction): Fix kind comparison.
        (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
        Use a union to pun integer array.
        * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
        only hash two words of integral CONST_DOUBLE.

From-SVN: r57356
2002-09-20 10:50:48 -07:00
Steve Ellcey
40ad65d05e hpux.h (STARTFILE_SPEC): Modify.
* config/ia64/hpux.h (STARTFILE_SPEC): Modify.
	(STARTFILE_PREFIX_SPEC): New.
	(LINK_SPEC): Modify.
	(LIB_SPEC): Modify.
	(LIBGCC_SPEC): New.

From-SVN: r57352
2002-09-20 16:53:25 +00:00
Jakub Jelinek
600f3392f8 i386.c (legitimate_pic_address_disp_p): Allow UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
* config/i386/i386.c (legitimate_pic_address_disp_p): Allow
	UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.

From-SVN: r57351
2002-09-20 18:40:31 +02:00
Richard Earnshaw
651912d6b9 * gcc.c-torture/execute/20020720-1.x: Skip test on ARM-based systems.
From-SVN: r57350
2002-09-20 15:48:05 +00:00
Richard Earnshaw
1ce505c4cd 990208-1.x: XFAIL this at -O3 for ARM-based systems.
* gcc.c-torture/execute/990208-1.x: XFAIL this at -O3 for ARM-based
systems.

From-SVN: r57349
2002-09-20 15:14:19 +00:00
Jeroen Dobbelaere
c1ff6200cc Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
* config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
Add clobber of the condition code register.

From-SVN: r57347
2002-09-20 13:58:49 +00:00
Richard Henderson
60b7870048 real.c (do_fix_trunc): Static.
* real.c (do_fix_trunc): Static.
        (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
        encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
        encode_i370_single, encode_i370_double, encode_c4x_single,
        encode_c4x_extended): Add default abort case.

From-SVN: r57344
2002-09-20 00:56:42 -07:00
Richard Henderson
0ee6fdb5f7 real.h (enum real_value_class, [...]): Move from real.c.
* real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
        MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
        (struct realvaluetype): Remove.
        (REAL_VALUE_TYPE): Use struct real_value.
        (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
        (test_real_width): New.
        * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
        (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
        (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
        real_isneg, real_isnegzero, real_identical, exact_real_inverse,
        real_to_integer, real_to_integer2, real_to_decimal,
        real_to_hexadecimal, real_from_string, real_from_integer,
        real_inf, real_nan, real_2expN, real_convert, real_to_target,
        real_from_target): Likewise.
        * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
        * gengtype-yacc.y (bitfieldopt): Accept an ID as well.

From-SVN: r57343
2002-09-20 00:33:25 -07:00
GCC Administrator
4244981283 Daily bump.
From-SVN: r57342
2002-09-20 07:17:13 +00:00
Richard Henderson
66d93b5aed real.h (UNKNOWN_FLOAT_FORMAT, [...]): Move ...
* real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
        IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
        * defaults.h: ... here.
        * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
        config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
        config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
        config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.

From-SVN: r57336
2002-09-19 23:36:36 -07:00
Hans-Peter Nilsson
6ee3db619b mmix.md ("negdf2"): Rewrite.
* config/mmix/mmix.md ("negdf2"): Rewrite.
	("*expanded_negdf2"): New.

From-SVN: r57332
2002-09-20 03:06:25 +00:00
Hans-Peter Nilsson
e7a35dcc29 * gcc.c-torture/execute/ieee/mzero3.c: New test.
From-SVN: r57331
2002-09-20 03:04:15 +00:00
John David Anglin
f08b7eee21 cp-demangle.c (demangling_new): Cast 0 to enum.
* cp-demangle.c (demangling_new): Cast 0 to enum.
	(demangle_char): Cast return of strdup to char *.
	(is_gnu_v3_mangled_ctor): Cast 0 to enum.
	(is_gnu_v3_mangled_dtor): Likewise.
	* cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
	(work_stuff_copy_to_from): Cast return of xmalloc to char **.
	* fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
	* md5.c (md5_process_bytes): Cast results back to const void *.
	(md5_process_block): Add cast to const md5_uint32 *.
	* regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
	* safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
	unsigned short.
	* splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
	to void *.
	* vasprintf.c (int_vasprintf): Cast return of malloc to char *.

From-SVN: r57330
2002-09-20 02:40:51 +00:00
Hans-Peter Nilsson
e9ad2ad310 Mention removed duplicate cxxfilt setting
From-SVN: r57326
2002-09-20 01:02:18 +00:00
Hans-Peter Nilsson
1db76181e5 scanasm.exp (scan-assembler-dem, [...]): Adjust for c++filt moved to binutils.
* lib/scanasm.exp (scan-assembler-dem, scan-assembler-dem-not):
	Adjust for c++filt moved to binutils.

From-SVN: r57325
2002-09-20 00:52:14 +00:00
Alexandre Oliva
e2bb0cb4b3 libiberty.h (asprintf, vasprintf): Don't declare them if the corresponding HAVE_DECL_ macro is 1.
* libiberty.h (asprintf, vasprintf): Don't declare them if the
corresponding HAVE_DECL_ macro is 1.

From-SVN: r57324
2002-09-20 00:21:54 +00:00
Jim Wilson
ff0765200c fix subreg optimization bug introduced 2002-05-25
fix subreg optimization bug introduced 2002-05-25
	* combine.c (simplify_set): When optimizing a subreg src with a
	cc0 dest, use GET_MODE (src) for mask instead of inner_mode.

From-SVN: r57323
2002-09-19 16:39:34 -07:00
Geoffrey Keating
2ee2d707a7 * gcc.dg/20020312-2.c: Update for darwin.
From-SVN: r57320
2002-09-19 23:01:49 +00:00
Dale Johannesen
307f767b38 Remove creation of invalid subreg. PR 7705, 7339, 7720.
From-SVN: r57315
2002-09-19 18:54:56 +00:00
Nick Clifton
8d87f29506 Update email addresses for bugs and patches.
From-SVN: r57313
2002-09-19 18:07:23 +00:00
Tom Tromey
b5f4221e51 ClassLoader.java (resolveClass0): Set cause for newly-created exception.
* java/lang/ClassLoader.java (resolveClass0): Set cause for
	newly-created exception.

From-SVN: r57310
2002-09-19 17:44:49 +00:00
Ulrich Weigand
cc7ab9b79c s390.c (addr_generation_dependency_p): Handle SUBREG and STRICT_LOW_PART within SET_DEST.
* config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
	and STRICT_LOW_PART within SET_DEST.
	* config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
	splitters, replacing pre-reload splitters.
	("*zero_extendhisi2_31", "*zero_extendqisi2_31",
	"*zero_extendqihi2_31"): New insns.
	("*zero_extendqihi2_64"): Do not clobber CC.

From-SVN: r57309
2002-09-19 17:06:29 +00:00
Devang Patel
70b76b34a3 cp-tree.h: New prototype for walk_vtabls().
2002-09-19  Devang Patel  <dpatel@apple.com>
       * cp/cp-tree.h: New prototype for walk_vtabls().
       * cp/decl.c (walk_vtables_r): New function.
       (struct cp_binding_level): Add new members, namespaces,
       names_size and vtables.
       (add_decl_to_level): Add decl in namespaces or vtables
       chain, if conditions match.
       (walk_vtables): New function.
       (walk_namespaces_r): Travers separate namespace chain
       for namespace decls.
       (wrapup_globals_for_namespace): Use names_size instead
       of list_length().
       * cp/decl2.c (finish_file): Use walk_vtables() instead of
       walk_globals() to walk vtable decls.

From-SVN: r57305
2002-09-19 09:19:36 -07:00
Steve Ellcey
b64ddb88fe hpux.h (CTORS_SECTION_ASM_OP): New.
* config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
	(DTORS_SECTION_ASM_OP): Ditto.
	(READONLY_DATA_SECTION_ASM_OP): Moved.
	(DATA_SECTION_ASM_OP): New.
	(SDATA_SECTION_ASM_OP): New.
	(BSS_SECTION_ASM_OP): New.
	(SBSS_SECTION_ASM_OP): New.
	(TEXT_SECTION_ASM_OP): New.

From-SVN: r57304
2002-09-19 15:52:10 +00:00
Kazu Hirata
9cd10576c5 fp-bit.c: Follow spelling conventions.
* config/fp-bit.c: Follow spelling conventions.
	* config/d30v/d30v.c: Likewise.
	* config/d30v/d30v.h: Likewise.
	* config/fr30/fr30.c: Likewise.
	* config/fr30/fr30.h: Likewise.
	* config/fr30/fr30.md: Likewise.
	* config/frv/frv.c: Likewise.
	* config/frv/frv.h: Likewise.
	* config/h8300/h8300.c: Likewise.
	* config/h8300/lib1funcs.asm: Likewise.
	* config/i370/i370.c: Likewise.
	* config/i386/i386.h: Likewise.
	* config/i386/i386.md: Likewise.
	* config/i386/pentium.md: Likewise.
	* config/i386/winnt.c: Likewise.
	* config/i960/i960.c: Likewise.
	* config/ia64/ia64.h: Likewise.
	* config/ip2k/ip2k.c: Likewise.
	* config/ip2k/ip2k.h: Likewise.
	* config/ip2k/ip2k.md: Likewise.
	* config/ip2k/libgcc.S: Likewise.

From-SVN: r57303
2002-09-19 13:51:24 +00:00
Stephen Clarke
fff08fd8da sh.h (UNSPEC_GOTOFF_P): Define.
2002-09-19  Stephen Clarke <stephen.clarke@superh.com>

	* config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
	(GOTOFF_P): Extend to allow gotoff plus constant.

From-SVN: r57302
2002-09-19 14:17:57 +01:00
GCC Administrator
eee3e0fb0b Daily bump.
From-SVN: r57301
2002-09-19 07:17:12 +00:00
GCC Administrator
bce7beed21 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r57300.3
2002-09-19 07:17:10 +00:00
Loren J. Rittle
b433da3cac * testsuite/18_support/numeric_limits.cc (test_epsilon): New.
From-SVN: r57295
2002-09-19 04:26:25 +00:00
Richard Henderson
bf3d27e689 ifcvt.c (noce_process_if_block): Correctly detect X modified with INSN_B before COND_EARLIEST.
* ifcvt.c (noce_process_if_block): Correctly detect X modified
        with INSN_B before COND_EARLIEST.  Don't check A and B for
        modification in condition range.  Reorder INSN_B for A==B properly.
        (if_convert): Iterate until no matches for a block.

	* gcc.c-torture/execute/20020916-1.c: New.

From-SVN: r57294
2002-09-18 18:07:10 -07:00
Richard Henderson
1b1f20cab9 calls.c (store_one_arg): Rename default_align to parm_align; always adjust parm_align for downward padding.
* calls.c (store_one_arg): Rename default_align to parm_align;
	always adjust parm_align for downward padding.

From-SVN: r57292
2002-09-18 17:37:24 -07:00
Richard Henderson
724838b9aa toplev.c (backend_init): Move init_real_once invocation ...
* toplev.c (backend_init): Move init_real_once invocation ...
        (do_compile): ... here.

From-SVN: r57291
2002-09-18 17:12:07 -07:00
Richard Henderson
2c67b7c62b sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove RTX_UNCHANGING_P markers for successful tail-recursive replacement.
* sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
        RTX_UNCHANGING_P markers for successful tail-recursive replacement.

From-SVN: r57290
2002-09-18 17:10:10 -07:00
Richard Henderson
15769ca344 * real.c (round_for_format): Collect sticky as unsigned long, not bool.
From-SVN: r57289
2002-09-18 17:05:28 -07:00
Alan Modra
678b77333a rs6000.md: (floatdisf2): Rename to floatdisf2_internal1.
* config/rs6000/rs6000.md: (floatdisf2): Rename to
	floatdisf2_internal1.
	(floatdisf2): New define_expand.
	(floatdisf2_internal2): Likewise.

From-SVN: r57288
2002-09-19 08:57:29 +09:30
Richard Henderson
c402b6bfbd real.c (sticky_rshift_significand): Collect sticky as unsigned long, not bool.
* real.c (sticky_rshift_significand): Collect sticky as
        unsigned long, not bool.

From-SVN: r57284
2002-09-18 14:23:24 -07:00
Ulrich Weigand
dea09b1b95 s390.c (s390_address_cost): New function.
* config/s390/s390.c (s390_address_cost): New function.
	config/s390/s390-protos.h (s390_address_cost): Add prototype.
	config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
	(RTX_COST): Use COSTS_N_INSNS.

From-SVN: r57282
2002-09-18 18:57:18 +00:00
Douglas B Rupp
e4850f36e5 stor-layout.c (place_field): Handle alignment of whole structures when MSVC compatible bitfields are involved.
* stor-layout.c (place_field): Handle alignment of whole
        structures when MSVC compatible bitfields are involved.
        Change method of computing location of MS bitfields to
        be compatible with #pragma pack(n).

        * tree.h (record_layout_info): Add new field
        remaining_in_alignment.

        * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
        (pragma pack): Add paragraph on MSVC bitfield packing.

Co-Authored-By: Donn Terry <donnte@microsoft.com>

From-SVN: r57281
2002-09-18 18:51:14 +00:00
Richard Henderson
62f1a74c0f * testsuite/18_support/numeric_limits.cc: Add -mieee for alpha.
From-SVN: r57280
2002-09-18 11:06:13 -07:00