Commit Graph

45213 Commits

Author SHA1 Message Date
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
Richard Earnshaw 872e50d35b re PR rtl-optimization/7967 (optimization produces wrong code (ARM))
PR optimization/7967
* arm.md (ne_zeroextractsi): Add clobber of the condition code
register.

From-SVN: r57278
2002-09-18 14:01:58 +00:00
Nathan Sidwell dd29188b82 decl.c (grokdeclarator): Use assert, not internal_error.
cp:
	* decl.c (grokdeclarator): Use assert, not internal_error. Don't
	ICE with invalid pointers & references.
testsuite:
	* g++.old-deja/g++.other/crash32.C: Mark ICE.

From-SVN: r57277
2002-09-18 13:08:34 +00:00
Kazu Hirata 5e7a8ee032 s390.c: Follow spelling convention.
* config/s390/s390.c: Follow spelling convention.
	* config/sh/lib1funcs.asm: Likewise.
	* config/sh/sh.c: Likewise.
	* config/sh/sh.h: Likewise.
	* config/sparc/sparc.c: Likewise.
	* config/sparc/sparc.h: Likewise.
	* config/sparc/sparc.md: Likewise.
	* config/stormy16/stormy16.c: Likewise.
	* config/stormy16/stormy16.h: Likewise.
	* config/v850/v850.c: Likewise.
	* config/v850/v850.h: Likewise.
	* config/vax/vax.c: Likewise.
	* config/vax/vax.h: Likewise.

From-SVN: r57276
2002-09-18 11:43:45 +00:00
Michael Koch a2f2457fa4 Matcher.java, [...]: Merge with classpath, new files.
2002-09-18  Michael Koch  <konqueror@gmx.de>

	* java/util/regex/Matcher.java, java/util/regex/Pattern.java,
	java/util/regex/PatternSyntaxException.java:
	Merge with classpath, new files.
	* Makefile.am (core_java_source_files):
	Added java/util/regex/Matcher.java,
	java/util/regex/Pattern.java,
	java/util/regex/PatternSyntaxException.java
	* Makefile.in: Regenerated.
	* include/config.h.in: Added HAVE_NET_IF_H.
	* java/net/natNetworkInterface.cc (getRealNetworkInterfaces):
	Removed #if 0 ... #endif.

From-SVN: r57275
2002-09-18 10:15:52 +00:00
Nick Clifton 00a892b812 rs6000.c (rs6000_emit_move): Handle V1DImode moves.
* config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
* config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
* config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.

From-SVN: r57274
2002-09-18 07:54:57 +00:00
GCC Administrator 60a0224c1e Daily bump.
From-SVN: r57273
2002-09-18 07:17:15 +00:00
GCC Administrator 5d70f0f318 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r57272.3
2002-09-18 07:17:14 +00:00
Zack Weinberg bfb530012d ABOUT-GCC-NLS: Remove reference to enquire...
* ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
	statement that the only translation is to en_UK.

From-SVN: r57267
2002-09-18 05:07:02 +00:00
Kazu Hirata 825dda426b alpha.c: Follow spelling conventions.
* config/alpha/alpha.c: Follow spelling conventions.
	* config/alpha/alpha.h: Likewise.
	* config/alpha/alpha.md: Likewise.
	* config/arc/arc.h: Likewise.
	* config/arm/arm.c: Likewise.
	* config/arm/arm.h: Likewise.
	* config/arm/arm.md: Likewise.
	* config/arm/pe.c: Likewise.
	* config/arm/unknown-elf.h: Likewise.
	* config/avr/avr.c: Likewise.
	* config/avr/avr.h: Likewise.
	* config/c4x/c4x.c: Likewise.
	* config/cris/cris.c: Likewise.
	* config/cris/cris.h: Likewise.

From-SVN: r57266
2002-09-17 23:10:04 +00:00
Samuel Figueroa 8e16ab9995 Sam Figueroa's change to add ASM_OUTPUT_ALIGN_WITH_NOP.
From-SVN: r57261
2002-09-17 21:36:29 +00:00
Dale Johannesen ac19be7eba Do not foward a branch to just after a loop exit before
loop optimization; this broke doloop detection.

From-SVN: r57260
2002-09-17 21:25:13 +00:00
Tom Tromey 6a0225133c re PR java/7950 (jc1 parses files ending in 0x0d incorrectly)
* lex.c (java_read_unicode_collapsing_terminators): Handle case
	where \r appears at EOF.  Fixes PR java/7950.

From-SVN: r57258
2002-09-17 20:59:53 +00:00
Nick Clifton f1acdf8b0f (output_return_instruction): Do not writeback the stack pointer when it is being loaded.
(output_return_instruction): Do not writeback the stack pointer when it is
being loaded.  (arm_output_epilogue): Likewise.

From-SVN: r57256
2002-09-17 19:29:12 +00:00
Kazu Hirata 24491a0950 optabs.c (prepare_cmp_insn): Let emit_library_call_value generate a pseudo reg that receives the result of a...
* optabs.c (prepare_cmp_insn): Let emit_library_call_value
	generate a pseudo reg that receives the result of a libcall.
	(prepare_float_lib_cmp): Likewise.

From-SVN: r57255
2002-09-17 19:02:58 +00:00
Joseph Myers ec55ac6864 * update_web_docs (MANUALS): Add fastjar.
From-SVN: r57254
2002-09-17 19:14:37 +01:00
Steve Ellcey e6c247e043 * config/ia64/elf.h: Remove CPP_PREDEFINES.
From-SVN: r57253
2002-09-17 15:50:08 +00:00
Nicola Pero ff2522a5c9 New tests for ObjC typechecking
From-SVN: r57251
2002-09-17 14:00:15 +00:00
Nicola Pero 1074d9d492 Fixed ObjC typechecking, particularly case with protocols
From-SVN: r57250
2002-09-17 13:59:30 +00:00
Nick Clifton 256e9fd21a machmode.def (V1DImode): New mode.
* machmode.def (V1DImode): New mode.  A single element vector.
* tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
  (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
* tree.c (build_common_tree_nodes_2): Build
  unsigned_V1DI_type_node and V1D1_type_node.
* c-common.c (c_common_type_for_mode): Return
  unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
* rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.

From-SVN: r57248
2002-09-17 13:03:40 +00:00
Nicola Pero 838c4534d4 Extended/updated objc documentation on constant string classes
From-SVN: r57247
2002-09-17 11:51:40 +00:00
Michael Koch 17656182f7 natNetworkInterface.cc: Removed unneed and yet wrong includes.
2002-09-17  Michael Koch  <konqueror@gmx.de>

	* java/net/natNetworkInterface.cc:
	Removed unneed and yet wrong includes.

From-SVN: r57246
2002-09-17 10:57:14 +00:00
Richard Henderson eaff3bf8c3 trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
* trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
        * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
        * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
        (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
        * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
        and real_2expN instead of a loop.
        * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
        (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.

From-SVN: r57245
2002-09-17 02:30:47 -07:00
Richard Henderson 34bdc2473c Fix typo.
From-SVN: r57244
2002-09-17 02:26:05 -07:00
Roger Sayle 07532fad02 cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
* cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
	NOTE_INSN_LOOP_CONT notes when deleting basic blocks.

From-SVN: r57243
2002-09-17 09:03:57 +00:00
Nathan Sidwell 6d9f7a6866 Add expected error
From-SVN: r57242
2002-09-17 08:36:04 +00:00
GCC Administrator 63fcfe8e64 Daily bump.
From-SVN: r57241
2002-09-17 07:17:45 +00:00
Zack Weinberg f989ed67ff Makefile.am (CFILES): Add cxxfilt.c.
binutils:
	* Makefile.am (CFILES): Add cxxfilt.c.
	(cxxfilt_SOURCES): Now just cxxfilt.c $(BULIBS).
	(cxxfilt_LDADD): Delete.
	Remove all references to underscore.c.
	Regen dependencies.
	* configure.in: Define TARGET_PREPENDS_UNDERSCORE in
	config.h from $UNDERSCORE, rather than AC_SUBSTing it.
	* binutils/cxxfilt.c: Moved here from gcc/cp, minor
	adjustments to fit into binutils framework.
	* configure, config.in, Makefile.in, doc/Makefile.in: Regenerate.

gcc/cp:
	* Make-lang.in: Remove all references to the demangler.
	* cxxfilt.c: Moved to binutils.

From-SVN: r57235
2002-09-17 07:09:50 +00:00
Michael Koch 26ad77f173 NetworkInterface.java: New file.
2002-09-17  Michael Koch  <konqueror@gmx.de>

	* java/net/NetworkInterface.java: New file.
	* java/net/natNetworkInterface.java: New file.
	* configure.in: Added check for net/if.h.
	* configure: Regenerated.
	* Makefile.am
	(ordinary_java_source_files): Added NetworkInterface.java.
	(nat_source_files): Added natNetworkInterface.cc.
	* Makefile.in: Regenerated.

From-SVN: r57234
2002-09-17 06:58:40 +00:00
Richard Henderson cb38fd88af expr.c (emit_block_move): Set memory block size as appropriate for the copy.
* expr.c (emit_block_move): Set memory block size as appropriate
        for the copy.

From-SVN: r57233
2002-09-16 23:56:47 -07:00
Richard Henderson bd055118bd re PR fortran/3924 (g77 generates code which is rejected by GAS if COFF debugging info is requested)
PR fortran/3924
        * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.

From-SVN: r57232
2002-09-16 23:05:53 -07:00
Benjamin Kosnik 8c7820a0de c_shadow: Remove.
2002-09-16  Benjamin Kosnik  <bkoz@redhat.com>

        * include/c_shadow: Remove.
        * include/bits/generic_shadow.h: Remove.
        * include/Makefile.am: Remove generic_shadow.h.
        * acinclude.m4: Remove c_shadow references.
        * aclocal.m4: Regenerate.
        * configure: Regenerate.
        * mkcshadow: Remove.
        * mkinclosure: Remove.

From-SVN: r57231
2002-09-17 05:50:44 +00:00
John David Anglin 8269c9b887 * gcc.c-torture/execute/strct-stdarg-1.x: Remove file.
From-SVN: r57229
2002-09-17 04:17:56 +00:00
Richard Henderson 8c317c5f94 emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE as well as OFFSET for BITPOS.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
        as well as OFFSET for BITPOS.

From-SVN: r57228
2002-09-16 21:15:12 -07:00
Jeff Garzik 3780101d62 config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
* config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
        * config/i386/i386.c (processor_alias_table): Add winchip-c6,
        winchip2 and c3.
        * doc/invoke.texi: Mention new aliases.

From-SVN: r57227
2002-09-16 20:35:34 -07:00
John David Anglin 9dff28ab53 calls.c (store_one_arg): Set default alignment for BLKmode arguments to BITS_PER_UNIT when...
* calls.c (store_one_arg): Set default alignment for BLKmode arguments
	to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
	downward.
	* function.c (pad_below):  Always compile.
	(locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
	alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
	Pad below when the argument is not in a register and the padding
	direction is downward.
	* pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
	(PAD_VARARGS_DOWN): Define.
	* pa.c (function_arg_padding): Revise padding directions to make them
	compatible with the 32 and 64-bit runtime architecture documentation.
	(hppa_va_arg):  Add code to handle variable and size zero arguments
	passed by reference on TARGET_64BIT.  Reformat.
	(function_arg): Use a PARALLEL for BLKmode and aggregates args on
	TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
	wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
	Add comments.
	* pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
	(RETURN_IN_MEMORY): Return size zero types in memory.
	(FUNCTION_VALUE): Return TFmode in general registers.
	(MUST_PASS_IN_STACK): Define.
	(FUNCTION_ARG_BOUNDARY): Simplify.
	(FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
	by reference.
	(FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.

From-SVN: r57226
2002-09-17 03:30:37 +00:00
Richard Henderson 94313f351a real.c (do_fix_trunc): New.
* real.c (do_fix_trunc): New.
        (real_arithmetic): Call it.
        * simplify-rtx.c (simplify_unary_operation): Handle FIX
        with a floating-point result mode.

From-SVN: r57223
2002-09-16 19:02:08 -07:00
Loren J. Rittle ad17a52a21 stl_rope.h (rope<>): Qualify dependent names with `typename'.
libstdc++/7922
	* include/ext/stl_rope.h (rope<>): Qualify dependent names
	with `typename'.

From-SVN: r57222
2002-09-17 01:56:06 +00:00
Richard Henderson 1472e41cb3 builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
gcc/
        * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
        (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
        * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
        (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
        * builtins.c (fold_builtin_nan): New.
        (fold_builtin): Call it.
        * real.c (real_nan): Parse a non-empty string.
        (round_for_format): Fix NaN significand truncation.
        * real.h (real_nan): Return bool.
        * doc/extend.texi: Document new builtins.

libstdc++/
        * include/std/std_limits.h (__glibcpp_f32_QNaN_bytes,
        __glibcpp_f32_has_QNaN, __glibcpp_f32_SNaN_bytes,
        __glibcpp_f32_has_SNaN, __glibcpp_f64_QNaN_bytes,
        __glibcpp_f64_has_QNaN, __glibcpp_f64_SNaN_bytes,
        __glibcpp_f64_has_SNaN, __glibcpp_f80_QNaN_bytes,
        __glibcpp_f80_has_QNaN, __glibcpp_f80_SNaN_bytes,
        __glibcpp_f80_has_SNaN, __glibcpp_f96_QNaN_bytes,
        __glibcpp_f96_has_QNaN, __glibcpp_f96_SNaN_bytes,
        __glibcpp_f96_has_SNaN, __glibcpp_f128_QNaN_bytes,
        __glibcpp_f128_has_QNaN, __glibcpp_f128_SNaN_bytes,
        __glibcpp_f128_has_SNaN, __glibcpp_float_QNaN_bytes,
        __glibcpp_float_has_QNaN, __glibcpp_float_SNaN_bytes,
        __glibcpp_float_has_SNaN, __glibcpp_double_QNaN_bytes,
        __glibcpp_double_has_QNaN, __glibcpp_double_SNaN_bytes,
        __glibcpp_double_has_SNaN, __glibcpp_long_double_QNaN_bytes,
        __glibcpp_long_double_has_QNaN, __glibcpp_long_double_SNaN_bytes,
        __glibcpp_long_double_has_SNaN): Remove.
        (__glibcpp_f128_is_iec559): True if IEEE.
        (__glibcpp_float_QNaN, __glibcpp_float_SNaN): Remove.
        (__glibcpp_double_QNaN, __glibcpp_double_SNaN): Remove.
        (__glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN): Remove.
        (std::numeric_limits<float>::has_quiet_NaN): Use __builtin_nanf.
        (std::numeric_limits<float>::has_signaling_NaN): Mirror has_quiet_NaN.
        (std::numeric_limits<float>::quiet_NaN): Use __builtin_nanf.
        (std::numeric_limits<float>::signaling_NaN): Use __builtin_nansf.
        (std::numeric_limits<double>): Similarly.
        (std::numeric_limits<long double>): Similarly.
        * src/limits.cc (__glibcpp_float_QNaN, __glibcpp_float_SNaN): Remove.
        (__glibcpp_double_QNaN, __glibcpp_double_SNaN): Remove.
        (__glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN): Remove.

        * testsuite/18_support/numeric_limits.cc (test_infinity): New.
        (test_denorm_min, test_qnan, test_is_iec559): New.

From-SVN: r57221
2002-09-16 18:28:50 -07:00
Jason Merrill f354b82835 winnt.c (ix86_handle_dll_attribute): Set DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
* config/i386/winnt.c (ix86_handle_dll_attribute): Set
	DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
	(i386_pe_mark_dllimport): Not here.

Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net>

From-SVN: r57215
2002-09-16 22:17:31 +00:00