Alexandre Oliva [Fri, 5 Jan 2001 22:06:29 +0000 (22:06 +0000)]
991228-1.c: Take word endianness into account.
* gcc.c-torture/execute/991228-1.c: Take word endianness into
account.
From-SVN: r38725
DJ Delorie [Fri, 5 Jan 2001 21:13:42 +0000 (16:13 -0500)]
function.c (reorder_blocks): Make sure the flags are all reset before using them to mark blocks...
* function.c (reorder_blocks): Make sure the flags are all reset
before using them to mark blocks, else a second invocation will
corrupt the block chain.
(reorder_blocks_0): New, resets the flags.
From-SVN: r38724
J"orn Rennecke [Fri, 5 Jan 2001 20:42:30 +0000 (20:42 +0000)]
cse.c (find_comparison_args): Stop if the argument is known to be constant.
* cse.c (find_comparison_args): Stop if the argument is known to
be constant.
From-SVN: r38723
Alexandre Oliva [Fri, 5 Jan 2001 20:30:40 +0000 (20:30 +0000)]
sh.md (movdf): When splitting load into pair of registers...
* config/sh/sh.md (movdf): When splitting load into pair of
registers, don't clobber the register used in the address too
early.
From-SVN: r38722
Jeffrey Oldham [Fri, 5 Jan 2001 20:25:09 +0000 (20:25 +0000)]
varasm.c (mark_constant_pool): Improve initial comments.
2001-01-05 Jeffrey Oldham <oldham@codesourcery.com>
* varasm.c (mark_constant_pool): Improve initial comments.
(mark_constants): Move marking of constants to mark_constant.
(mark_constant): New function to recursively mark all constants
referred to by a constant.
From-SVN: r38721
Catherine Moore [Fri, 5 Jan 2001 20:15:24 +0000 (20:15 +0000)]
(dbxout_parms): Handle invisible ref where decl is a REG
From-SVN: r38720
Phil Edwards [Fri, 5 Jan 2001 19:12:21 +0000 (19:12 +0000)]
lang-options.h: Bring comment in line with reality.
2001-01-05 Phil Edwards <pme@sources.redhat.com>
* cp/lang-options.h: Bring comment in line with reality.
* f/lang-options.h: Likewise.
* java/lang-options.h: Likewise.
* objc/lang-options.h: Likewise.
* ch/lang-options.h: Likewise.
* f/g77.texi: And update the manual.
From-SVN: r38719
Marek Michalkiewicz [Fri, 5 Jan 2001 19:08:46 +0000 (20:08 +0100)]
avr-protos.h (avr_peep2_scratch_safe): Prototype.
* config/avr/avr-protos.h (avr_peep2_scratch_safe): Prototype.
* config/avr/avr.c (avr_peep2_scratch_safe): New function.
* config/avr/avr.md (all peepholes that request a scratch register):
Call it, FAIL the peephole if not safe (in interrupt functions).
Co-Authored-By: Denis Chertykov <denisc@overta.ru>
From-SVN: r38718
Mark Mitchell [Fri, 5 Jan 2001 18:48:12 +0000 (18:48 +0000)]
* ggc-page.c (NUM_EXTRA_ORDERS): Hardwire to zero for now.
From-SVN: r38717
Joseph Myers [Fri, 5 Jan 2001 18:24:08 +0000 (18:24 +0000)]
builtins.def (BUILT_IN_CONJ, [...]): Define.
* builtins.def (BUILT_IN_CONJ, BUILT_IN_CREAL, BUILT_IN_CIMAG):
Define.
* builtins.c (expand_builtin): Abort on BUILT_IN_CONJ,
BUILT_IN_CREAL and BUILT_IN_CIMAG.
* c-common.c (c_common_nodes_and_builtins): Create builtin conjf,
conj, conjl, crealf, creal, creall, cimagf, cimag and cimagl.
(expand_tree_builtin): Handle BUILT_IN_CONJ, BUILT_IN_CREAL and
BUILT_IN_CIMAG.
* extend.texi: Document these builtins.
testsuite:
* gcc.c-torture/execute/builtin-complex-1.c: New test.
From-SVN: r38716
Daniel Berlin [Fri, 5 Jan 2001 17:22:30 +0000 (17:22 +0000)]
VECTOR_TYPE fixes for aliasing, and dwarf2 output.
From-SVN: r38715
Nathan Sidwell [Fri, 5 Jan 2001 16:35:36 +0000 (16:35 +0000)]
parse.y (template_datadef): Check for error_mark_node.
cp:
* parse.y (template_datadef): Check for error_mark_node.
testsuite:
* g++.old-deja/g++.pt/crash62.C: New test.
From-SVN: r38714
Bruce Korb [Fri, 5 Jan 2001 16:28:58 +0000 (16:28 +0000)]
fix exit and atexit calls for vax-*-bsd systems
From-SVN: r38713
Richard Earnshaw [Fri, 5 Jan 2001 16:15:59 +0000 (16:15 +0000)]
arm.md (ldmsi_postinc): Avoid use of match_dup between input and output operands.
* arm.md (ldmsi_postinc): Avoid use of match_dup between input and
output operands. Use arm_hard_register_operand for operand 4.
(stmsi_postinc): Similarly.
(ldmsi): Use arm_hard_register_operand for opernand 2.
(stmsi): Similarly.
* arm.c (arm_hard_register_operand): New function.
* arm-protos.h (arm_hard_register_operand): Prototype it.
* arm.h (HARD_REGNO_RENAME_OK): Define.
From-SVN: r38712
Jan Hubicka [Fri, 5 Jan 2001 15:34:39 +0000 (16:34 +0100)]
simplify-rtx.c (cfc_args): add "unordered" field.
* simplify-rtx.c (cfc_args): add "unordered" field.
(check_fold_consts): Set unordered field.
(simplify_relational_operation): Simplify the unordered
comparisons.
* reg-stack.c (swap_rtx_condition): Ensure that the transformation
is valid.
* emit-rtl.c (try_split): Fix code to mark labels.
* jump.c (mark_jump_label): Make global.
* rtl.h (mark_jump_label): Declare.
* predict.c (estimate_probability): Handle unordred comparisons.
From-SVN: r38711
Nathan Sidwell [Fri, 5 Jan 2001 11:41:27 +0000 (11:41 +0000)]
cp-tree.def (DEFAULT_ARG): Make `x' class.
cp:
* cp-tree.def (DEFAULT_ARG): Make `x' class.
From-SVN: r38710
Jeff Law [Fri, 5 Jan 2001 08:45:11 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r38709
Bryce McKinlay [Fri, 5 Jan 2001 08:23:51 +0000 (08:23 +0000)]
PipedInputStream: Rewrote to be simpler and more correct.
* java/io/PipedInputStream: Rewrote to be simpler and more correct.
* java/io/PipedOutputStream: Updated to match new PipedInputStream.
* java/io/PipedReader: New implementation based on new
PipedInputStream.
* java/io/PipedWriter: Updated to match new PipedOutputStream.
From-SVN: r38708
Neil Booth [Fri, 5 Jan 2001 07:50:24 +0000 (07:50 +0000)]
cpp.texi: Update for -MP.
* cpp.texi: Update for -MP. Clarify behaviour of -MT.
* cppinit.c (initialize_dependency_output): Update.
(cpp_finish): Output dummy targets for -MP.
(OPT_MP): New.
(cpp_handle_option): Handle -MP. Don't quote -MT options.
* cpplib.h (struct cpp_options): Add deps_phony_targets.
* gcc.c (cpp_options): Update to handle -MP.
* mkdeps.c (deps_add_target, deps_add_default_target): Update
to quote only the default target.
(deps_phony_targets): Insert a preceding newline. Rename from
deps_dummy_targets for consistency.
* mkdeps.h: Update
java:
* lang.c (lang_decode_option): Change -MA to -MP.
* jcf-depend.c (jcf_dependency_add_target, jcf_dependency_set_target):
Update to new prototype; do quote targets.
(jcf_dependency_write): Update.
From-SVN: r38707
Alexandre Oliva [Fri, 5 Jan 2001 07:38:47 +0000 (07:38 +0000)]
calls.c (emit_library_call_value_1): Support INIT_CUMULATIVE_LIBCALL_ARGS.
* calls.c (emit_library_call_value_1): Support
INIT_CUMULATIVE_LIBCALL_ARGS.
* tm.texi (INIT_CUMULATIVE_LIBCALL_ARGS): Document it.
From-SVN: r38706
Richard Henderson [Fri, 5 Jan 2001 05:58:23 +0000 (21:58 -0800)]
c-decl.c (finish_struct): Detect flexible array members used in an inappropriate context.
* c-decl.c (finish_struct): Detect flexible array members
used in an inappropriate context.
* c-typeck.c (really_start_incremental_init): Special case
constructor_max_index for zero length arrays.
(pop_init_level): Allow initialization of flexible array
members. Deprecate initialization of zero length arrays.
Don't issue missing initializer warning for flexible array
members or zero length arrays.
(process_init_element): Don't dereference null DECL_SIZE.
* varasm.c (array_size_for_constructor): Return a HOST_WIDE_INT.
Don't abort for empty constructors. Use size_binop
(output_constructor): Add commentary regarding zero length
array futures. Abort if we try to initialize an array of
unspecified length with a non-empty constructor in the middle
of a structure.
* extend.texi (Zero Length): Update and clarify documentation
on static initialization.
From-SVN: r38705
Richard Henderson [Fri, 5 Jan 2001 05:56:00 +0000 (21:56 -0800)]
20000926-1.c: Update expected warnings.
* gcc.dg/
20000926-1.c: Update expected warnings.
* gcc.dg/array-2.c: Likewise.
* gcc.dg/array-4.c: Also validate flexible array members.
* gcc.dg/c99-flex-array-1.c: New.
From-SVN: r38704
Michael Hayes [Fri, 5 Jan 2001 04:09:02 +0000 (04:09 +0000)]
c4x.c (c4x_expand_prologue): Don't compile an ISR with more than 32767 words of local storage.
* config/c4x/c4x.c (c4x_expand_prologue): Don't compile an ISR
with more than 32767 words of local storage.
From-SVN: r38703
Michael Hayes [Fri, 5 Jan 2001 03:58:12 +0000 (03:58 +0000)]
c4x.c (c4x_init_builtins): Remove builtin support for 'abs', 'labs', and 'fabs'.
* config/c4x/c4x.c (c4x_init_builtins): Remove builtin support
for 'abs', 'labs', and 'fabs'.
(c4x_expand_builtin): Likewise.
* config/c4x/c4x.h (enum c4x_builtins): Likewise.
From-SVN: r38702
Alexandre Oliva [Fri, 5 Jan 2001 03:46:12 +0000 (03:46 +0000)]
sh.md (prget, prset): New insn types.
* config/sh/sh.md (prget, prset): New insn types.
(return delay slot): Dont' allow prset.
(call, sfunc delay slot): Don't allow prget.
(movsi_i, movsi_ie, movsi_i_lowpart): Create separate alternatives
for prset and prget.
From-SVN: r38701
Michael Hayes [Fri, 5 Jan 2001 03:25:58 +0000 (03:25 +0000)]
loop.h (struct loop_reg): New.
* loop.h (struct loop_reg): New.
(struct loop_regs): Change to use array of `struct loop_reg'.
* loop.c: Replace assortment of varrays with single regs array.
(count_one_set): Delete may_not_move array argument
and use regs array instead. All caller's changed.
(count_loop_regs_set): Delete may_not_move and single_usage
arguments and use regs array instead. All caller's changed.
(find_single_use_in_loop): Replace usage array argument with pointer
to regs structure. All caller's changed.
(loop_optimize): Delete `moved_once' array.
From-SVN: r38700
Michael Hayes [Fri, 5 Jan 2001 02:51:18 +0000 (02:51 +0000)]
loop.c (prescan_loop): Set loop_info->has_nonconst_call.
* loop.c (prescan_loop): Set loop_info->has_nonconst_call.
Use it instead of loop_info->has_call for scanning loop mems.
(check_dbra_loop): Replace loop_info->has_call test with
loop_info->has_nonconst_call.
From-SVN: r38699
Matthew Hiller [Fri, 5 Jan 2001 01:58:04 +0000 (01:58 +0000)]
sh.h (EPILOGUE_USES): Recognize fpscr as epilogue-used for TARGET_SH3E.
* config/sh/sh.h (EPILOGUE_USES): Recognize fpscr as epilogue-used
for TARGET_SH3E.
From-SVN: r38698
Bryce McKinlay [Fri, 5 Jan 2001 00:31:45 +0000 (00:31 +0000)]
* java/lang/Thread.java: Update comment.
From-SVN: r38697
Joseph Myers [Fri, 5 Jan 2001 00:03:35 +0000 (00:03 +0000)]
fold-const.c (fold): When folding a CONJ_EXPR of a COMPLEX_CST...
* fold-const.c (fold): When folding a CONJ_EXPR of a COMPLEX_CST,
use TREE_REALPART and TREE_IMAGPART instead of TREE_OPERAND.
testsuite:
* gcc.c-torture/compile/
20001222-1.x: Remove.
From-SVN: r38696
Joseph Myers [Thu, 4 Jan 2001 23:53:54 +0000 (23:53 +0000)]
c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
* c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
(flag_short_double, flag_short_wchar): Define.
(c_common_nodes_and_builtins): Create many tree nodes shared
between C and C++ here instead of in cp/decl.c and ...
* c-decl.c (init_decl_processing): ... here.
(SIZE_TYPE, WCHAR_TYPE): Don't define.
(flag_short_double, flag_short_wchar): Don't define.
(record_builtin_type): New function.
(build_void_list_node): New function.
* c-common.h (flag_short_double, flag_short_wchar,
record_builtin_type, build_void_list_node): Declare.
cp:
* decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
(record_builtin_type): Make non-static.
(flag_short_double): Don't declare.
(init_decl_processing): Remove the creation of many tree nodes now
in c_common_nodes_and_builtins.
(build_void_list_node): New function.
* decl2.c (flag_short_double, flag_short_wchar): Don't define.
* cp-tree.h (flag_short_wchar): Don't declare.
From-SVN: r38695
J"orn Rennecke [Thu, 4 Jan 2001 23:28:00 +0000 (23:28 +0000)]
integrate.c (expand_inline_function): Don't put a virtual register into the reg map.
* integrate.c (expand_inline_function): Don't put a virtual
register into the reg map.
* function.c (fixup_var_refs_1): If force_operand didn't put
the address into the target, move it there.
From-SVN: r38694
Benjamin Kosnik [Thu, 4 Jan 2001 21:57:30 +0000 (21:57 +0000)]
std_cwctype.h: Include std_cwchar.h for wint_t.
2001-01-03 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cwctype.h: Include std_cwchar.h for wint_t.
* testsuite/17_intro/header_cwctype.cc (main): New file.
* src/Makefile.am (base_headers): Change.
* include/bits/std_string.h: And here.
* include/bits/string.tcc: Tweaks, move to...
* include/bits/basic_string.tcc: ...Here.
* src/string-inst.cc: Simplify, just instantiate the whole class,
not member-by-member.
From-SVN: r38693
Mark Mitchell [Thu, 4 Jan 2001 21:18:27 +0000 (21:18 +0000)]
Special-case tree_decl/tree_list allocations.
* ggc-page.c (OBJECT_PER_PAGE): Reimplement.
(OBJECT_SIZE): New macro.
(NUM_EXTRA_ORDER): Likewise.
(extra_order_size_table): New variable.
(NUM_ORDERS): New macro.
(objects_per_page_table): New variable.
(object_size_table): New variable.
(G.pages): Use NUM_ORDERS to bound the array.
(G.page_tails): Likewise.
(DIV_ROUND_UP): Remove.
(BITMAP_SIZE): Use CEIL, instead of DIV_ROUND_UP.
(alloc_page): Use OBJECT_SIZE.
(size_lookup): Don't make it const.
(ggc_alloc): Use OBJECT_SIZE.
(ggc_set_mark): Likewise.
(ggc_get_size): Likewise.
(init_ggc): Set up the object_size_table, objects_per_page_table,
and adjust size_lookup.
(ggc_recalculate_in_use_p): Use CEIL, not DIV_ROUND_UP.
(ggc_pop_context): Use NUM_ORDERS.
(clear_marks): Likewise.
(sweep_pages): Likewise.
(poison_pages): Likewise.
(ggc_print_statistics): Use OBJECT_SIZE.
From-SVN: r38692
Richard Kenner [Thu, 4 Jan 2001 20:58:20 +0000 (20:58 +0000)]
varasm.c (output_constructor): Use HOST_WIDE_INT for sizes.
* varasm.c (output_constructor): Use HOST_WIDE_INT for sizes.
Only call array_size_for_constructor if last field and array type
with no upper bound.
From-SVN: r38691
Philip Blundell [Thu, 4 Jan 2001 20:19:48 +0000 (20:19 +0000)]
arm.c (arm_gen_constant): Prefer to emit constants from bit 31 downwards, if this requires no more insns.
2001-01-04 Philip Blundell <philb@gnu.org>
* config/arm/arm.c (arm_gen_constant): Prefer to emit constants
from bit 31 downwards, if this requires no more insns.
(count_insns_for_constant): New helper function for above.
From-SVN: r38690
Alexandre Oliva [Thu, 4 Jan 2001 20:10:36 +0000 (20:10 +0000)]
* gencodes.c (output_predicate_decls): Remove empty initializer.
From-SVN: r38689
Mark Mitchell [Thu, 4 Jan 2001 19:28:56 +0000 (19:28 +0000)]
call.c (build_conv): Don't use build1 for USER_CONV.
* call.c (build_conv): Don't use build1 for USER_CONV.
* pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
From-SVN: r38688
Richard Kenner [Thu, 4 Jan 2001 19:02:01 +0000 (19:02 +0000)]
* gcc.c-torture/execute/built-in-setjmp.c: New.
From-SVN: r38687
Mark Mitchell [Thu, 4 Jan 2001 19:01:22 +0000 (19:01 +0000)]
tree.c (copy_node): Remove documentation about obstacks.
* tree.c (copy_node): Remove documentation about obstacks.
(buidl1): Check that nobody tries to build 2-argument nodes this
way.
* call.c (build_conv): Don't use build1 for USER_CONV.
* pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
From-SVN: r38686
Kaveh R. Ghazi [Thu, 4 Jan 2001 18:54:14 +0000 (18:54 +0000)]
sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and fp_high_losum_p.
* sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and
fp_high_losum_p.
From-SVN: r38685
Kaveh R. Ghazi [Thu, 4 Jan 2001 18:08:22 +0000 (18:08 +0000)]
gencodes.c (output_predicate_decls): Fill empty initializer braces.
* gencodes.c (output_predicate_decls): Fill empty initializer
braces.
From-SVN: r38684
Jakub Jelinek [Thu, 4 Jan 2001 17:26:12 +0000 (18:26 +0100)]
tradcpp.c (deps_file, [...]): New variables.
* tradcpp.c (deps_file, print_deps_missing_files): New variables.
(main): Handle -MG, -MD, -MMD. Bail out if -MG is given without -M
or -MM.
(do_include): Handle missing headers like cpp0.
* cppfiles.c (_cpp_execute_include): Don't prefix absolute header
paths with first include pathname. Don't strcat to uninitialized
string.
From-SVN: r38683
Bernd Schmidt [Thu, 4 Jan 2001 14:17:40 +0000 (14:17 +0000)]
Some tidyups for ia64 problems
From-SVN: r38682
Neil Booth [Thu, 4 Jan 2001 10:25:55 +0000 (10:25 +0000)]
cpp.texi: Update for -MT.
* cpp.texi: Update for -MT.
* cppinit.c (initialize_dependency_output): Add a default
target if none has been given already.
(no_tgt, OPT_MT): New.
(cpp_handle_option): Handle -MT. Update -M etc.
* cpplib.h (struct cpp_options): Remove deps_target.
* gcc.c (cpp_options): Handle -MT.
* mkdeps.c (struct deps): Move from mkdeps.h.
(deps_calc_target): Rename deps_add_default_target. Add a
default target if none has been specified already.
* mkdeps.h (struct deps): Move to mkdeps.c.
(deps_calc_target): Rename deps_add_default_target.
From-SVN: r38681
Jeff Law [Thu, 4 Jan 2001 08:45:11 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r38680
Benjamin Kosnik [Thu, 4 Jan 2001 04:21:42 +0000 (04:21 +0000)]
std_cwctype.h: Include std_cwchar.h for wint_t.
2001-01-03 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cwctype.h: Include std_cwchar.h for wint_t.
* testsuite/17_intro/header_cwctype.cc (main): New file.
* src/Makefile.am (base_headers): Change.
* include/bits/std_string.h: And here.
* include/bits/string.tcc: Tweaks, move to...
* include/bits/basic_string.tcc: ...Here.
* src/string-inst.cc: Simplify, just instantiate the whole class,
not member-by-member.
From-SVN: r38679
Richard Henderson [Thu, 4 Jan 2001 01:14:16 +0000 (17:14 -0800)]
c-decl.c (grokdeclarator): Give zero-length arrays size zero.
* c-decl.c (grokdeclarator): Give zero-length arrays size zero.
Remove dead code.
* c-typeck.c (push_init_level): Move checks for flexible array
members and zero length arrays ...
(pop_init_level): ... here. Silently discard empty initializations.
Remove dead code.
* varasm.c (output_constructor): Update for sizeof change to
zero-length arrays.
* extend.texi (Zero Length): Clarify semantics.
* gcc.dg/940510-1.c: Update expected error wording.
* gcc.dg/array-2.c, gcc.dg/array-3.c, gcc.dg/array-4.c: New.
From-SVN: r38678
Alexandre Oliva [Wed, 3 Jan 2001 23:47:05 +0000 (23:47 +0000)]
configure.in (tm.h): Include isns-codes.h last.
* configure.in (tm.h): Include isns-codes.h last.
* configure: Rebuilt.
From-SVN: r38677
Richard Henderson [Wed, 3 Jan 2001 22:52:42 +0000 (14:52 -0800)]
alpha.md (addvsi3, addvdi3): New.
* config/alpha/alpha.md (addvsi3, addvdi3): New.
(negvsi2, negvdi2, subvsi3, subvdi3, mulvsi3, mulvdi3): New.
From-SVN: r38676
Alexandre Oliva [Wed, 3 Jan 2001 22:45:56 +0000 (22:45 +0000)]
Update the second copyright notice. Point to it from the first.
From-SVN: r38675
Franz Sirl [Wed, 3 Jan 2001 22:26:05 +0000 (22:26 +0000)]
tradcpp.c (main): Make sure finclude() is called with a valid indepth value while handling -include.
2001-01-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* tradcpp.c (main): Make sure finclude() is called with a valid
indepth value while handling -include.
From-SVN: r38674
Alexandre Oliva [Wed, 3 Jan 2001 21:13:29 +0000 (21:13 +0000)]
gencodes.c (output_predicate_decls): New function.
* gencodes.c (output_predicate_decls): New function.
(main): Call it.
* machmode.h (GET_MODE_MASK): Arrange for it to be defined
even if it is not the first time machmode.h is #included.
* config/sh/sh.c (fpul_operand): Declare MODE argument.
* tm.texi (PREDICATE_CODES): Document predicate declarations.
* gcc.texi (Copyright): Added 2001.
From-SVN: r38673
Joseph Myers [Wed, 3 Jan 2001 20:56:22 +0000 (20:56 +0000)]
c-common.c (c_common_lang_init): New function.
* c-common.c (c_common_lang_init): New function. Warn if format
warning options which only have effects when used with -Wformat
are used without -Wformat.
* c-common.h (c_common_lang_init): Declare.
* c-lang.c (lang_init): Call c_common_lang_init.
* objc/objc-act.c (lang_init): Call c_common_lang_init.
cp:
* lex.c (lang_init): Call c_common_lang_init.
From-SVN: r38672
Joseph Myers [Wed, 3 Jan 2001 20:39:09 +0000 (20:39 +0000)]
configure.in: Check for the mktemp command.
* configure.in: Check for the mktemp command.
* configure: Regenerate.
* gccbug.in: Use a separate temporary file $TEMP0 for one use of
$TEMP. Create temporary files with mktemp, if available at
configure time; otherwise use set -C. Remove temporary files
before exit.
From-SVN: r38671
Tom Tromey [Wed, 3 Jan 2001 20:34:44 +0000 (20:34 +0000)]
ScrollPane.java (setBlockIncrement): Throw error.
* java/awt/ScrollPane.java (setBlockIncrement): Throw error.
(getViewportSize): Insets include scrollbar size.
(doLayout): Finished.
(getScrollPosition): Wrote.
* java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
From-SVN: r38670
Joseph Myers [Wed, 3 Jan 2001 20:18:18 +0000 (20:18 +0000)]
* gcc_update: Add cpp.1 to the list of generated files.
From-SVN: r38669
Joseph Myers [Wed, 3 Jan 2001 20:15:01 +0000 (20:15 +0000)]
texi2pod.pl: Handle @option and @env.
contrib:
* texi2pod.pl: Handle @option and @env.
gcc:
* configure.in: Require at least texinfo 4.0. Check for whether
Pod::Man is sufficiently recent to regenerate GCC manpages.
* configure: Regenerate.
* Makefile.in (TEXI2POD): Call perl explicitly rather than relying
on #!.
(GENERATED_MANPAGES): Define.
(generated-manpages): New target. Depend on cpp.1 as well as
gcov.1.
(install-man): Depend on $(GENERATED_MANPAGES) (defined by
configure to generated-manpages or empty) rather than on the
manpages directly. Remove execute permission from installed
gcov.1 as well as cpp.1.
* cpp.1, gcov.1: Regenerate.
From-SVN: r38668
Jeffrey Oldham [Wed, 3 Jan 2001 18:22:23 +0000 (18:22 +0000)]
target-supports.exp (check_alias_available): Modified to indicate aliases not supported if only weak aliases are supported.
2001-01-03 Jeffrey Oldham <oldham@codesourcery.com>
* lib/target-supports.exp (check_alias_available): Modified to
indicate aliases not supported if only weak aliases are supported.
From-SVN: r38667
Mike Stump [Wed, 3 Jan 2001 18:13:43 +0000 (18:13 +0000)]
* snapshot: Update to account for java libraries.
From-SVN: r38666
Kaveh Ghazi [Wed, 3 Jan 2001 16:54:46 +0000 (16:54 +0000)]
update copyrights
From-SVN: r38665
Kaveh R. Ghazi [Wed, 3 Jan 2001 16:48:15 +0000 (16:48 +0000)]
builtins.c (expand_builtin_strncmp): Use host_integerp and tree_low_cst.
* builtins.c (expand_builtin_strncmp): Use host_integerp and
tree_low_cst. Allow using cmpstrsi in more cases.
testsuite:
* gcc.c-torture/execute/string-opt-8.c: Add more testcases.
Turn on cmpstrsi checks for __pj__ and __i370__.
From-SVN: r38664
Benjamin Kosnik [Wed, 3 Jan 2001 15:53:28 +0000 (15:53 +0000)]
acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
2001-01-02 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/bits/c++config (__GLIBCPP__): Bump version number.
* ChangeLog: Start new log for year 2001
* ChangeLog-2000: New file.
* docs/html/configopts.html: Make sure default values are current,
From-SVN: r38663
Richard Kenner [Wed, 3 Jan 2001 15:50:06 +0000 (15:50 +0000)]
sparc.h (RETURN_IN_MEMORY): Return 0 for variable sized types.
* config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for variable
sized types.
From-SVN: r38662
Nathan Sidwell [Wed, 3 Jan 2001 15:01:16 +0000 (15:01 +0000)]
search.c (lookup_fnfields_here): Remove.
cp:
* search.c (lookup_fnfields_here): Remove.
(look_for_overrides_r): Use lookup_fnfields_1.
Ignore functions from using declarations.
testsuite:
* g++.old-deja/g++.other/virtual11.C: New test.
From-SVN: r38661
Bernd Schmidt [Wed, 3 Jan 2001 15:00:31 +0000 (15:00 +0000)]
Improve alias analysis for ia64
From-SVN: r38660
Nathan Sidwell [Wed, 3 Jan 2001 14:39:10 +0000 (14:39 +0000)]
Implement exceptions specifiers for implicit member functions.
cp:
Implement exceptions specifiers for implicit member functions.
* cp-tree.h (merge_exceptions_specifiers): Declare new function.
* method.c (synthesize_exception_spec): New function.
(locate_dtor, locate_ctor, locate_copy): New functions.
(implicitly_declare_fn): Generate the exception spec too.
* search.c (check_final_overrider): Check artificial functions
too.
* typeck2.c (merge_exception_specifiers): New function.
testsuite:
* g++.old-deja/g++.eh/spec6.C: Remove remaining XFAIL.
From-SVN: r38659
Bernd Schmidt [Wed, 3 Jan 2001 14:29:01 +0000 (14:29 +0000)]
Fix silliness in last change
From-SVN: r38658
Alexandre Oliva [Wed, 3 Jan 2001 14:23:39 +0000 (14:23 +0000)]
build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
* build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
* Makefile.in (HOST_CFLAGS): Mention build-make.
From-SVN: r38657
Bernd Schmidt [Wed, 3 Jan 2001 14:08:30 +0000 (14:08 +0000)]
Add extra arg to cse_rtx_varies_p
From-SVN: r38656
Richard Kenner [Wed, 3 Jan 2001 13:55:47 +0000 (13:55 +0000)]
sparc.md (nonlocal_goto): Emit goto_handler_and_restore as JUMP_INSN.
* config/sparc/sparc.md (nonlocal_goto): Emit goto_handler_and_restore
as JUMP_INSN.
From-SVN: r38655
Jason Merrill [Wed, 3 Jan 2001 12:56:48 +0000 (07:56 -0500)]
update
From-SVN: r38654
Bernd Schmidt [Wed, 3 Jan 2001 12:26:52 +0000 (12:26 +0000)]
Don't use MEM_ALIAS_SET on a REG
From-SVN: r38653
Ovidiu Predescu [Wed, 3 Jan 2001 08:50:46 +0000 (08:50 +0000)]
sendmsg.c: Added __objc_msg_forward...
Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
* sendmsg.c: Added __objc_msg_forward, a hook that allows external
libraries to provide a function that returns the real forwarding
function. This can alleviate problems __builtin_apply() and
friends have on various platforms. (Solution suggested by Helge
Hess.)
* objc/objc-api.h: Define __objc_msg_forward.
* sendmsg.c: Define gen_rtx_REG.
From-SVN: r38652
Ovidiu Predescu [Wed, 3 Jan 2001 08:49:34 +0000 (08:49 +0000)]
Added __objc_msg_forward...
Added __objc_msg_forward, a hook that allows external libraries to
provide a function that returns the real forwarding function. This can
alleviate problems __builtin_apply() and friends have on various
platforms. (Solution suggested by Helge Hess.)
From-SVN: r38651
Ovidiu Predescu [Wed, 3 Jan 2001 08:49:02 +0000 (08:49 +0000)]
Added __objc_msg_forward...
Added __objc_msg_forward, a hook that allows external libraries to
provide a function that returns the real forwarding function. This can
alleviate problems __builtin_apply() and friends have on various
platforms. (Solution suggested by Helge Hess.)
Define gen_rtx_REG.
From-SVN: r38650
Jeff Law [Wed, 3 Jan 2001 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r38649
Alexandre Oliva [Wed, 3 Jan 2001 06:47:28 +0000 (06:47 +0000)]
combine.c (simplify_shift_const): Even if we're sign-extracting...
* combine.c (simplify_shift_const): Even if we're sign-extracting,
don't discard an ASHIFTRT if we're shifting in a wider mode.
From-SVN: r38648
John David Anglin [Wed, 3 Jan 2001 05:42:23 +0000 (05:42 +0000)]
toplev.c (rest_of_compilation): Don't print basic block information when CFG isn't up to date.
* toplev.c (rest_of_compilation): Don't print basic block information
when CFG isn't up to date.
From-SVN: r38647
Kaveh R. Ghazi [Wed, 3 Jan 2001 04:39:40 +0000 (04:39 +0000)]
* gcc.c-torture/compile/
20010102-1.c: New test.
From-SVN: r38646
Jeff Law [Wed, 3 Jan 2001 04:04:56 +0000 (21:04 -0700)]
Update copyright.
From-SVN: r38645
Mark Elbrecht [Wed, 3 Jan 2001 04:00:53 +0000 (04:00 +0000)]
djgpp.h (DWARF2_DEBUGGING_INFO): Define.
* config/i386/djgpp.h (DWARF2_DEBUGGING_INFO): Define.
(UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_ASM_OP): Define.
(UNALIGNED_SHORT_ASM_OP): Define.
(CPP_PREDEFINES): Remove defines for GO32 and DJGPP.
From-SVN: r38644
Jason Merrill [Wed, 3 Jan 2001 03:28:51 +0000 (22:28 -0500)]
init.c (build_default_init): New fn.
* init.c (build_default_init): New fn.
(perform_member_init): Split out from here.
(build_new_1): Use it. Simplify initialization logic.
(build_vec_init): Take an array, rather than a pointer and maxindex.
Speed up simple initializations. Don't clean up if we're assigning.
* cp-tree.h: Adjust.
* decl2.c (do_static_initialization): Remove TREE_VEC case.
* parse.y (new_initializer): Return void_zero_node for ().
* typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
* typeck2.c (digest_init): Only complain about user-written
CONSTRUCTORs.
From-SVN: r38643
Mike Stump [Wed, 3 Jan 2001 01:11:18 +0000 (01:11 +0000)]
* decl2.c: (max_tinst_depth): Increase to 50.
From-SVN: r38642
Mark Mitchell [Wed, 3 Jan 2001 00:24:04 +0000 (00:24 +0000)]
class.c (invalidate_class_lookup_cache): Zero the previous_class_values.
* class.c (invalidate_class_lookup_cache): Zero the
previous_class_values.
* cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
TREE_INT_CST_HIGH.
(CLASSTYPE_TEMPLATE_LEVEL): Likewise.
* decl.c (free_bindings): New variable.
(push_binding): Don't create a new binding if we have one on the
free list.
(pop_binding): Put old bindings on the free list.
(init_decl_processing): Use size_int, not build_int_2.
Register free_bindings as a GC root.
(cp_make_fname_decl): Use size_int, not build_int_2.
(push_inline_template_parms_recursive): Likewise.
(end_template_parm_list): Likewise.
(for_each_tempalte_parm): Do not use walk_tree_without_duplicates.
(tsubst_template_parms): Use size_int, not build_int_2.
(tsubst): Likewise.
* rtti.c (get_vmi_pseudo_type_info): Likewise.
From-SVN: r38641
Mark Mitchell [Wed, 3 Jan 2001 00:13:33 +0000 (00:13 +0000)]
* fold-const.c (fold_convert): Fix typo.
From-SVN: r38640
Tom Tromey [Wed, 3 Jan 2001 00:07:13 +0000 (00:07 +0000)]
ScrollPane.java: Wrote.
* java/awt/ScrollPane.java: Wrote.
* java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
method.
* java/awt/Panel.java (Panel()): Fixed.
* java/awt/Component.java (isShowing): Return false if no peer
exists, and true if component is visible and no parent exists.
(getLocationOnScreen): Wrote.
(getPreferredSize): Removed FIXME comment.
(getMinimumSize): Likewise.
(getAlignmentX, getAlignmentY): Wrote.
(list): Wrote.
(requestFocus): Wrote.
(transferFocus): Wrote.
(findNextFocusComponent): New method.
(hasFocus()): Wrote.
(checkImage): Wrote.
(enableEvents): Call setEventMask on the peer.
* java/awt/Container.java (list): Use super.list() to print self.
(findNextFocusComponent): New method.
(setLayout): Call invalidate.
(findComponentAt): Wrote.
From-SVN: r38639
Richard Henderson [Tue, 2 Jan 2001 23:49:45 +0000 (15:49 -0800)]
c-common.h (ASM_INPUT_P): New.
* c-common.h (ASM_INPUT_P): New.
* c-parse.in (asm): Set it when needed.
* c-semantics.c (genrtl_asm_stmt): Test it instead of the
existance of an operand.
* cp/parse.y (asm): Set ASM_INPUT_P.
From-SVN: r38638
Jason Merrill [Tue, 2 Jan 2001 20:14:57 +0000 (15:14 -0500)]
* typeck.c (build_binary_op): Fix pmf comparison logic.
From-SVN: r38637
Jason Merrill [Tue, 2 Jan 2001 19:48:02 +0000 (14:48 -0500)]
tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE for v3 ABI.
* tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
for v3 ABI.
* typeck.c (cp_truthvalue_conversion): New fn.
* cvt.c (ocp_convert): Use it.
* cp-tree.h: Lose c-common.c decls.
* typeck.c (build_unary_op): Restore old &a.f diagnostic code.
* cvt.c (convert_to_void): Use type_unknown_p.
From-SVN: r38636
Jason Merrill [Tue, 2 Jan 2001 19:37:39 +0000 (14:37 -0500)]
tweak formatting
From-SVN: r38635
Jan Hubicka [Tue, 2 Jan 2001 19:29:12 +0000 (20:29 +0100)]
dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY.
* dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY.
(dwarf2out_frame_debug_expr): Likewise.
(mem_loc_descriptor): Handle PRE and POST_MODIFY.
From-SVN: r38634
Jan Hubicka [Tue, 2 Jan 2001 19:24:27 +0000 (20:24 +0100)]
i386.c (ix86_split_to_parts): Return number of part required; handle TFmodes.
* i386.c (ix86_split_to_parts): Return number of part required;
handle TFmodes.
(print_operand, ix86_expand_branch, ix86_expand_fp_movcc): Handle
TFmodes.
(ix86_split_long_move): Use number of part returned
by ix86_split_to_parts
* i386.h (MASK_128BIT_LONG_DOUBLE, TARGET_128BIT_LONG_DOUBLE):
New macros.
(TARGET_SWITCHES): Add 128bit-long-double and 96bit-long-double
(LONG_DOUBLE_TYPE_SIZE): Change from constant.
(MAX_LONG_DOUBLE_TYPE_SIZE): New macro.
(INTEL_EXTENDED_IEEE_FORMAT): Likewise.
(ALIGN_MODE_128): Add TFmode.
(IS_STACK_MODE): Likewise.
(HARD_REGNO_NREGS): TFmode needs 3 registers.
(HARD_REGNO_OK): Support TFmodes.
(ASM_OUTPUT_LONG_DOUBLE): Handle TFmodes.
* i386.md (scheduler definitions): Use memory operand to determine
fst/fld instructions; use mode attribute to determine real mode of
the instruction.
(*tf): New patterns, expanders and splitters; based on XFmode patterns.
* invoke.texi (128bit-long-double, 96bit-long-double): Document.
From-SVN: r38633
Mark Mitchell [Tue, 2 Jan 2001 18:19:28 +0000 (18:19 +0000)]
Update copyright
From-SVN: r38632
Mark Mitchell [Tue, 2 Jan 2001 18:15:18 +0000 (18:15 +0000)]
* tree.def (TRUTH_NOT_EXPR): Improve documentation.
From-SVN: r38631
Richard Kenner [Tue, 2 Jan 2001 16:46:26 +0000 (11:46 -0500)]
Fix last change
From-SVN: r38630
Richard Kenner [Tue, 2 Jan 2001 16:40:35 +0000 (11:40 -0500)]
expr.c (store_constructor_field): Update ALIGN before calling store_constructor.
* expr.c (store_constructor_field): Update ALIGN before calling
store_constructor.
From-SVN: r38629
Chandra Chavva [Tue, 2 Jan 2001 16:37:39 +0000 (11:37 -0500)]
Initial version.
From-SVN: r38628
Jeffrey Oldham [Tue, 2 Jan 2001 16:09:56 +0000 (16:09 +0000)]
mips.c (function_arg): Don't pass NULL_TREE to host_integerp.
2001-01-02 Jeffrey Oldham <oldham@codesourcery.com>
* config/mips/mips.c (function_arg): Don't pass NULL_TREE to
host_integerp.
From-SVN: r38627
Jeffrey Oldham [Tue, 2 Jan 2001 16:03:50 +0000 (16:03 +0000)]
tm.texi (FUNCTION_ARG): Document that @var{type} can be an incomplete type.
2001-01-02 Jeffrey Oldham <oldham@codesourcery.com>
* tm.texi (FUNCTION_ARG): Document that @var{type} can be an
incomplete type.
From-SVN: r38626