Commit Graph

30079 Commits

Author SHA1 Message Date
Richard Earnshaw
2c210617e0 * arm/linux-elf.h (text_section): Delete declaration.
From-SVN: r35706
2000-08-15 14:23:33 +00:00
Richard Earnshaw
e45b72c408 ARM support for unordered FP operations.
* arm-protos.h (arm_comparison_operator): Declare.
* arm.c (arm_comparison_operator): New function.
(arm_select_cc_mode): Add unordered comparison codes.
(get_arm_condition_code): Likewise.
(arm_final_prescan_insn): Can't handle unordered jumps that can't
be done in one insn.
* arm.h (PREDICATE_CODES): Add arm_comparison_operator.
* arm.md (all uses of comparison_operator): Replace with
arm_comparison_operator.
(bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
expands.
(arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
patterns.

From-SVN: r35705
2000-08-15 13:41:34 +00:00
Richard Earnshaw
05ed98a11f ARM support for unordered FP operations.
* arm-protos.h (arm_comparison_operator): Declare.
* arm.c (arm_comparison_operator): New function.
(arm_select_cc_mode): Add unordered comparison codes.
(get_arm_condition_code): Likewise.
(arm_final_prescan_insn): Can't handle unordered jumps that can't
be done in one insn.
* arm.h (PREDICATE_CODES): Add arm_comparison_operator.
* arm.md (all uses of comparison_operator): Replace with
arm_comparison_operator.
(bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
expands.
(arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
patterns.

[[Split portion of a mixed commit.]]

From-SVN: r35703.2
2000-08-15 13:32:11 +00:00
Alexandre Oliva
8b2100ba88 * configure.in (libstdcxx_flags): Use libstdc++-v3/src/INCLUDES.
From-SVN: r35702
2000-08-15 07:49:58 +00:00
Jeff Law
031387634f Daily bump.
From-SVN: r35701
2000-08-15 01:45:08 -06:00
Alexandre Oliva
2f1cb8c208 Makefile.am (INCLUDES): New target file, with all -I flags.
* src/Makefile.am (INCLUDES): New target file, with all -I flags.
* src/Makefile.in: Regenerate.

From-SVN: r35700
2000-08-15 07:42:36 +00:00
Ovidiu Predescu
ed78c86208 gthr-posix.h: Conditionally include <sched.h>; include <config.h> from libobjc/.
Tue Aug 15 00:36:36 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* gthr-posix.h: Conditionally include <sched.h>; include
	<config.h> from libobjc/.

From-SVN: r35699
2000-08-15 07:40:55 +00:00
Ovidiu Predescu
9d10fcf978 configure.in: Create a config.h file.
Tue Aug 15 00:38:56 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* configure.in: Create a config.h file. Check for <sched.h>.
	* configure: Regenerate.

	* config.h.in: Check for <sched.h>.

From-SVN: r35698
2000-08-15 07:39:20 +00:00
Ovidiu Predescu
f3fc0ba86b Check for <sched.h>.
From-SVN: r35697
2000-08-15 07:38:54 +00:00
Ovidiu Predescu
d972a4c286 Create a config.h file. Check for <sched.h>.
From-SVN: r35696
2000-08-15 07:38:04 +00:00
Ovidiu Predescu
5f974826dc Conditionally include <sched.h>; include <config.h> from libobjc/.
From-SVN: r35695
2000-08-15 07:36:33 +00:00
Benjamin Kosnik
d04703d6d7 C/C++ io merge/sync.
2000-08-14  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	C/C++ io merge/sync.
	* libio/fileops.c
	* libio/genops.c
	* libio/iofclose.c
	* libio/iofopen.c
	* libio/iofwide.c
	* libio/libio.h
	* libio/libioP.h
	* libio/stdio.c
	* libio/wfileops.c
	* libio/wgenops.c
	* config/c_io_libio.cc (__basic_file): Add hacky casts to
	((struct _IO_FILE_plus *) in ctors.
	(__basic_file<wchar_t>): Adjust _wide_data->_codecvt to just _codecvt.
	* libio/Makefile.am: Fix copyright. Remove cleanup.c.
	* libio/cleanup.c: Remove.
	* libio/filedoalloc.c (_IO_file_doallocate): Don't call
	_IO_cleanup_registration_needed, even if not libc.

	* testsuite/27_io/stringstream.cc (test02): Fix.

From-SVN: r35694
2000-08-15 07:33:00 +00:00
Benjamin Kosnik
9f34e6e805 Benjamin Kosnik <bkoz@gnu.org>
* *: Merge with mainline glibc sources.
	* filedoalloc.c (_IO_file_doallocate): Don't call
	_IO_cleanup_registration_needed, even if not libc.
	* iofwide.c (_IO_fwide): Correct placement of defines.
	* cleanup.c: Remove.

From-SVN: r35693
2000-08-15 07:30:19 +00:00
Zack Weinberg
eeb943b06c * configure.in (libstdcxx_flags): Remove -isystem $$s/libio/stdio.
From-SVN: r35692
2000-08-15 01:35:06 +00:00
Richard Henderson
4859dd3636 i386.c (legitimize_pic_address): Use Pmode for all CONSTs.
* config/i386/i386.c (legitimize_pic_address): Use Pmode
        for all CONSTs.

From-SVN: r35691
2000-08-14 18:01:37 -07:00
Benjamin Kosnik
f60ded13ef stringstream.cc (test02): Fix.
2000-08-14  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* testsuite/27_io/stringstream.cc (test02): Fix.

From-SVN: r35690
2000-08-14 21:14:19 +00:00
Richard Henderson
3f62235327 configure.in (ia64-*): Set float_format for i386 long double.
* configure.in (ia64-*): Set float_format for i386 long double.

	* real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
	as we would for i386 XFmode.
	(PUT_REAL): Likewise.
	(endian, ereal_atof, real_value_truncate): Likewise.
	(ereal_isneg, toe64, etens, make_nan): Likewise.
	* real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.

	* config/ia64/ia64-protos.h: Update.
	* config/ia64/ia64.c (general_tfmode_operand): New.
	(destination_tfmode_operand): New.
	(tfreg_or_fp01_operand): New.
	(ia64_split_timode): New.
	(spill_tfmode_operand): New.
	(ia64_expand_prologue): Use TFmode not XFmode.
	(ia64_expand_epilogue): Likewise.
	(ia64_function_arg): Likewise.
	(ia64_function_arg_advance): Likewise.
	(ia64_return_in_memory): Likewise.
	(ia64_function_value): Likewise.
	(ia64_print_operand): Likewise.
	(ia64_register_move_cost): Set GR<->FR to 5.
	(ia64_secondary_reload_class): Get GR for TImode memory op.
	* config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
	(ROUND_TYPE_ALIGN): Remove.
	(LONG_DOUBLE_TYPE_SIZE): Set to 128.
	(INTEL_EXTENDED_IEEE_FORMAT): Define.
	(HARD_REGNO_NREGS): Use TFmode, not XFmode.
	(HARD_REGNO_MODE_OK): Likewise.  Disallow TImode in FRs.
	(MODES_TIEABLE_P): Use TFmode, not XFmode.
	(CLASS_MAX_NREGS): Likewise.
	(ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
	(PREDICATE_CODES): Update.
	* config/ia64/ia64.md (movti): New.
	(movti_internal): Use a clobber for memory alternatives.
	(reload_inti, reload_outti): New.
	(movsfcc_astep): Predicate properly.
	(movdfcc_astep): Likewise.
	(movxf): Remove.
	(movtf): New.
	(extendsftf2, extenddftf2): New.
	(trunctfsf2, trunctfdf2): New.
	(floatditf2, fix_trunctfdi2): New.
	(floatunsditf2, fixuns_trunctfdi2): New.
	(addtf3, subtf3, multf3, abstf2): New.
	(negtf2, nabstf2, mintf3, maxtf3): New.
	(maddtf3, msubtf3, nmultf3, nmaddtf3): New.
	(cmptf): New.
	(fr_spill): Use TFmode, not XFmode.
	(fr_restore): Likewise.
	* config/ia64/lib1funcs.asm (__divtf3): New.
	* config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.

From-SVN: r35689
2000-08-14 14:01:24 -07:00
Brent Verner
b6767a49b4 debug_assert.h: new file
2000-08-14  Brent Verner <brent@rcfile.org>

	* testsuite/debug_assert.h: new file
	* testsuite/*/*.cc: s/test\s*&=([^;]+);/VERIFY($1);/g
	changed conditional #include <c?assert.?h?> to
	unconditional #include <debug_assert.h>
	* mkcheck.in: added $SRC_DIR/testsuite to include search path
	for testsuite compile command.

From-SVN: r35688
2000-08-14 20:56:06 +00:00
Kaveh R. Ghazi
e49a1d2e07 cse.c (fold_rtx): Avoid empty body in an if-statement.
* cse.c (fold_rtx): Avoid empty body in an if-statement.

	* doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
	`U' integer constant suffix.

	* dwarf2out.c (add_subscript_info): Avoid empty body in an
	else-statement.

	* sparc/sol2.h (__enable_execute_stack): Prototype.

From-SVN: r35687
2000-08-14 20:55:11 +00:00
David Edelsohn
78fbdbf748 collect2.c: Remove use of AIX import file.
* collect2.c: Remove use of AIX import file.
	* longlong.h: Test ARCH_PWR not ARCH_POWER.
	* rs6000.c (print_operand, case 'E'): Add else.

From-SVN: r35686
2000-08-14 16:46:16 -04:00
Richard Henderson
9a89adb8c7 ia64.md (movdi): Delay calling ia64_expand_load_address.
* config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
        (movdi_symbolic): New.

From-SVN: r35685
2000-08-14 13:28:11 -07:00
Jim Wilson
00e149c78f Support for IA-64 specific elf header flags.
* config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
	to GNU as.  For Intel as, pass -M const_gp and -M no_plabel.
	* config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
	to GNU as.

From-SVN: r35684
2000-08-14 13:18:17 -07:00
Richard Henderson
2ee5437b48 expr.c (emit_group_load): Don't force constants into registers.
* expr.c (emit_group_load): Don't force constants into registers.
        Special case source already in the correct mode.

From-SVN: r35683
2000-08-14 13:08:25 -07:00
Brent Verner
aa1b2f7d95 debug_assert.h: new file
2000-08-14  Brent Verner <brent@rcfile.org>

	* testsuite/debug_assert.h: new file
	* testsuite/*/*.cc: s/test\s*&=([^;]+);/VERIFY($1);/g
	changed conditional #include <c?assert.?h?> to
	unconditional #include <debug_assert.h>
	* mkcheck.in: added $SRC_DIR/testsuite to include search path
	for testsuite compile command.

From-SVN: r35682
2000-08-14 19:59:26 +00:00
Levente Farkas
5312a1d9d1 std_fstream.h: Remove duplicate typdefs for ofstream and wofstream...
2000-08-14  Levente Farkas  <lfarkas@mindmaker.hu>

	* bits/std_fstream.h: Remove duplicate typdefs for ofstream and
	wofstream, filebuf, wfilebuf, fstream, wfstream.
	* bits/std_streambuf.h: Same for streambuf, wstreambuf.
	* bits/std_sstream.h: Same for stringstream and wstringstream.
	Same for stringbuf, wstringbuf, istringstream, wistringstream,
	ostringstream, wostringstream.

	* testsuite/26_numerics/valarray.cc: Add test.

From-SVN: r35681
2000-08-14 19:46:44 +00:00
Zack Weinberg
57119aa9eb top level:
* configure: Make enable_threads and enable_shared defaults
	explicit.  Substitute enable_threads into generated Makefiles.
	* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
	* libtool.m4: Accept *-*-linux* not just *-*-linux-gnu*.
gcc:
	* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
	* fixinc/inclhack.def: Likewise.
	* fixinc/mkfixinc.sh: Likewise.
	* configure: Regenerate.
	* fixinc/fixincl.x: Regenerate.
	* install.texi: Document equivalence of linux and linux-gnu.
libio:
	* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
	Honor --disable-threads.
libstdc++:
	* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
	Honor --disable-threads.
libstdc++-v3:
	* configure: Regenerate after change to ../libtool.m4.
libobjc:
	* configure: Regenerate after change to ../libtool.m4.

From-SVN: r35680
2000-08-14 18:08:46 +00:00
J"orn Rennecke
d9f204241b cse.c (insert_regs): Also in REG case...
* cse.c (insert_regs): Also in REG case: When finding an invalid
	value, and we make a new quantity, make sure that it won't be
	mistaken by for a valid one by mention_regs.

From-SVN: r35679
2000-08-14 18:54:23 +01:00
Ralf Gütlein
c8fa6556c1 * h8300.md: Remove obsolete peepholes.
From-SVN: r35678
2000-08-14 09:43:07 -06:00
Kazu Hirata
2c54abce9c invoke.texi (H8/300 Options): Fix typos.
* invoke.texi (H8/300 Options): Fix typos.
	* config/h8300.c: Fix formatting.
	* config/h8300.h: Fix comment typos.
	(OVERRIDE_OPTIONS): Fix formatting.

From-SVN: r35677
2000-08-14 08:45:30 -06:00
Kazu Hirata
718fe40625 * cse.c: Fix formatting.
From-SVN: r35676
2000-08-14 08:34:52 -06:00
Kazu Hirata
ddc356e89a * cse.c: Fix formatting.
From-SVN: r35675
2000-08-14 08:31:23 -06:00
Andreas Schwab
b310e72532 * objc-features.texi (Top): Move @menu at end of node.
From-SVN: r35674
2000-08-14 08:06:53 -06:00
Nathan Sidwell
12af109097 * g++.old-deja/g++.other/refinit2.C: New test.
From-SVN: r35673
2000-08-14 10:18:57 +00:00
Nathan Sidwell
08aead780e cvt.c (warn_ref_binding): New static function, broken out of ...
* cvt.c (warn_ref_binding): New static function, broken out of ...
	(convert_to_reference): ... here. Use it.

From-SVN: r35672
2000-08-14 10:18:15 +00:00
Jeff Law
08498793c0 Daily bump.
From-SVN: r35671
2000-08-14 01:45:07 -06:00
Geoff Keating
0858c623d0 flow.c (attempt_auto_inc): Remove unused variable `bb'.
* flow.c (attempt_auto_inc): Remove unused variable `bb'.
(attempt_auto_inc): Suppress parentheses warning.
* function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
* loop.c (load_mems): Remove `u' suffix in two places.
* config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
hex constants.
* config/rs6000/rs6000.h: Likewise.
* config/rs6000/sol-c0.c: Prototype some functions.  Remove the
__eabi dummy routine.
* config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
variable `buf_ptr'.

From-SVN: r35670
2000-08-14 05:59:50 +00:00
Geoff Keating
51a017d8bc c-torture.exp (c-torture): Make compiler_conditional_xfail_data global.
* lib/c-torture.exp (c-torture): Make
compiler_conditional_xfail_data global.
* lib/f-torture.exp (f-torture): Add in torture_eval_before_compile,
compiler_conditional_xfail_data machinery.
(f-torture-execute): Likewise.
* g77.c-torture/compile/20000629-1.x: The test only fails on x86,
and only when unrolling loops.

From-SVN: r35669
2000-08-14 04:15:07 +00:00
Anthony Green
c0d63866c4 More thanks.
From-SVN: r35668
2000-08-14 03:02:50 +00:00
Geoff Keating
630193739f rs6000.c (rs6000_select_section): Rewrite to not put stuff in .sdata unnecessarily.
* config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
not put stuff in .sdata unnecessarily.
(rs6000_unique_section): New function.
* config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
* config/rs6000/sysv4.h (UNIQUE_SECTION): Define.

From-SVN: r35667
2000-08-13 21:49:36 +00:00
Geoff Keating
05273f087b In gcc/:
* c-typeck.c (build_array_ref): Don't complain about non-lvalue
	arrays in C99.  Don't try to look at DECL_REGISTER of a
	COMPONENT_REF.  Don't complain twice about the same error.

In gcc/testsuite/:
	* gcc.dg/c99-array-lval-1.c: The test on line 14 now passes.

From-SVN: r35666
2000-08-13 21:31:09 +00:00
Geoff Keating
acffa7c4f8 * Makefile.in (GCC_FOR_TARGET): Also add -B$$r/gcc/ here.
From-SVN: r35665
2000-08-13 20:44:50 +00:00
Toon Moene
a0e263a33c bugs.texi: Describe new ability to emit debug info for EQUIVALENCE members.
2000-08-13  Toon Moene  <toon@moene.indiv.nluug.nl>

	* bugs.texi: Describe new ability to emit debug info
	for EQUIVALENCE members.
	* news.texi: Ditto.

From-SVN: r35664
2000-08-13 18:38:53 +00:00
Geoff Keating
2c82e043a7 inclhack.def (aix_pthread): New fix.
* fixinc/inclhack.def (aix_pthread): New fix.
(aix_sysmachine): New fix.
* fixinc/fixincl.x: Regenerate.

From-SVN: r35663
2000-08-13 18:00:34 +00:00
Geoff Keating
8c118062e3 expr.c (expand_expr): Call convert_modes when turning a large multiply into a small one.
* expr.c (expand_expr): Call convert_modes when turning a large
multiply into a small one.

From-SVN: r35662
2000-08-13 17:01:54 +00:00
Anthony Green
458530ee83 check-init.c (check_init): Add case for BIT_FIELD_REF (required for -pg builds).
* check-init.c (check_init): Add case for BIT_FIELD_REF (required
	for -pg builds).

From-SVN: r35661
2000-08-13 16:48:54 +00:00
Jeff Law
f72426550c Daily bump.
From-SVN: r35660
2000-08-13 01:45:08 -06:00
Geoff Keating
2f5c7f4522 tree.h (DECL_OFFSET_ALIGN): Make the off_align field of the tree structure an exponent rather than an...
* tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
the tree structure an exponent rather than an explicit alignment
so it doesn't overflow.
(SET_DECL_OFFSET_ALIGN): New macro.
* stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
rather than DECL_OFFSET_ALIGN.
(place_field): Likewise.
* expmed.c (store_bit_field): Abort on align==0 to avoid
antisocial machine behaviour.

From-SVN: r35659
2000-08-12 22:45:05 +00:00
Alexandre Oliva
808d8c4171 config-ml.in (CC): Remove bogus duplicate quotation mark from previous delta.
* config-ml.in (CC): Remove bogus duplicate quotation mark from
previous delta.

From-SVN: r35658
2000-08-12 22:35:14 +00:00
Richard Henderson
055bcfeeda sibcall.c (uses_addressof): Accept both addressof and current_function_internal_arg_pointer inside a mem.
* sibcall.c (uses_addressof): Accept both addressof and
        current_function_internal_arg_pointer inside a mem.
        (optimize_sibling_and_tail_recursive_call): Fail tail recursion
        if current_function_uses_addressof.
        * stmt.c (expand_return): Kill tail recursion and HAVE_return
        optimizations.

From-SVN: r35657
2000-08-12 09:28:10 -07:00
Jeff Law
3ac597cb9a Daily bump.
From-SVN: r35656
2000-08-12 01:45:06 -06:00