Commit Graph

30012 Commits

Author SHA1 Message Date
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
Jason Merrill
babdef3603 tweak comment
From-SVN: r35655
2000-08-11 22:09:28 -04:00
Kriang Lerdsuwanakij
fa1f3ebcf4 parse.y (template_arg): Add rule for template qualified with global scope.
* parse.y (template_arg): Add rule for template qualified with
        global scope.

From-SVN: r35654
2000-08-11 22:09:02 -04:00
Theodore Papadopoulo
9845b52bfb decl2.c (add_function): Reorganize.
* decl2.c (add_function): Reorganize.
        (arg_assoc): Do not consider function template decls.

From-SVN: r35653
2000-08-11 21:30:06 -04:00
Daniel Berlin
3388651ce0 cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to if (AUTO_DEMANGLING || GNU_DEMANGLING)
* cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
        if (AUTO_DEMANGLING || GNU_DEMANGLING)

From-SVN: r35652
2000-08-11 20:55:05 -04:00
Jason Merrill
1fc8c51cd4 configure.in (CC_FOR_TARGET, [...]): Add -B$$r/gcc/ here.
* configure.in (CC_FOR_TARGET, CHILL_FOR_TARGET,
        CXX_FOR_TARGET): Add -B$$r/gcc/ here.
        (FLAGS_FOR_TARGET): Not here.
        (CHILL_FOR_TARGET, CXX_FOR_TARGET): Don't check the list of languages.

From-SVN: r35651
2000-08-11 20:48:46 -04:00
Jason Merrill
e69c807271 decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're looking inside.
* decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
        looking inside.

From-SVN: r35650
2000-08-11 20:02:49 -04:00
Richard Henderson
058557c4d1 ia64.md (addsi3): Remove expander.
* config/ia64/ia64.md (addsi3): Remove expander.
        (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
        (*addsi3_shladd): New.

From-SVN: r35649
2000-08-11 16:48:26 -07:00
Richard Henderson
870f9ec0bc ia64.c (do_spill): Pass cfa offset to move expander.
* config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
        (do_restore): Likewise.
        (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
        (ia64_expand_prologue, ia64_expand_epilogue): Use them.
        (rtx_needs_barrier): Track actual bit manipulation for
        ar.unat moves, gr_spill, and gr_restore.
        (emit_insn_group_barriers): Special case gr_spill/gr_restore.
        (process_set): Don't handle varargs spills.
        * config/ia64/ia64.md (gr_spill): Accept cfa offset.  Emit
        .mem.offset here instead of in process_set.
        (gr_restore): Likewise.

From-SVN: r35648
2000-08-11 16:10:10 -07:00
Jason Merrill
dc329d2938 straits.h (is_del): Boolify with !!.
* std/straits.h (is_del): Boolify with !!.

        * std/bastring.cc (compare to charT*): Add rlen==n check.
        * std/bastring.h (Rep::grab): Add x86 atomic version.

From-SVN: r35647
2000-08-11 18:41:38 -04:00
Richard Henderson
dcf6e6746d * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
From-SVN: r35646
2000-08-11 15:25:22 -07:00
Geoff Keating
85804ec662 configure.in (CHILL_FOR_TARGET, [...]): Use slightly more portable shell script to convert blanks to commas in $LANGUAGES.
* configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Use slightly more
portable shell script to convert blanks to commas in $LANGUAGES.

From-SVN: r35645
2000-08-11 22:02:04 +00:00
Alexandre Petit-Bianco
34d4df0620 class.c (maybe_layout_super_class): Fixed indentation.
2000-08-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * class.c (maybe_layout_super_class): Fixed indentation.
        * java-tree.h (CLASS_METHOD_CHECKED_P): New macro.
        (java_check_methods): New function declaration.
        * jcf-parse.c (get_constant): Let `char_len' go up to 3. Use `str'
        instead of `str_ptr'.
        * jcf-write.c (generate_bytecode_insns): Emit number the of args
        of a `invokeinterface' at the right time.
        * parse.h (WFL_STRIP_BRACKET): New macro.
        (SET_TYPE_FOR_RESOLUTION): Use it.
        * parse.y (build_unresolved_array_type): Reuse `type_or_wfl.'
        (check_class_interface_creation): Don't check for cross package
        innerclass name clashes.
        (method_header): Behave properly if MDECL is `error_mark_node.'
        (method_declarator): Return `error_mark_node' if bogus current
        class.
        (resolve_class): Apply WFL_STRIP_BRACKET on `cl' if necessary.
        (resolve_and_layout): New local `decl_type', set and used. Call
        java_check_methods.
        (java_check_methods): New method.
        (java_layout_classes): Use it.
        (resolve_qualified_expression_name): No EH check necessary in
        access$<n>.
        (java_complete_lhs): Use VAR_DECL's DECL_INITIAL when evaluating
        `case' statement.
        (patch_assignment): Set DECL_INITIAL on integral final local.

(http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00516.html)

From-SVN: r35644
2000-08-11 15:01:37 -07:00
Manfred Hollstein
82fbe83592 * objc-features.texi: Move @node Top before @menu.
From-SVN: r35643
2000-08-11 15:25:29 -06:00
Mark Elbrecht
d9673c7951 gcc.texi (The Configuration File): Document COLLECT2_HOST_INITIALIZATION...
* gcc.texi (The Configuration File): Document
        COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
        UPDATE_PATH_HOST_CANONICALIZATION.

From-SVN: r35642
2000-08-11 15:23:00 -06:00
Kaveh R. Ghazi
402d11e13f c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for unprototyped function pointer casts on...
* c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
	unprototyped function pointer casts on integer constants.

From-SVN: r35638
2000-08-11 16:25:02 +00:00
G. Helffrich
a8e2bb7666 com.c (ffecom_transform_equiv_): Make EQUIVALENCEs addressable so that debug info can be attached to their storage.
2000-08-11  G. Helffrich  <george@gly.bris.ac.uk>
            Toon Moene  <toon@moene.indiv.nluug.nl>

	* com.c (ffecom_transform_equiv_): Make EQUIVALENCEs addressable
	so that debug info can be attached to their storage.
	Unconditionally list the storage set aside for them.

Co-Authored-By: Toon Moene <toon@moene.indiv.nluug.nl>

From-SVN: r35637
2000-08-11 16:11:08 +00:00
Laurynas Biveinis
87cf27fece * fixproto: Recognize DOS paths with drive letters as absolute paths.
From-SVN: r35636
2000-08-11 09:20:10 -06:00