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
Richard Kenner [Tue, 2 Jan 2001 15:58:16 +0000 (10:58 -0500)]
* c-decl.c (start_function): Don't warn on third parameter to main.
From-SVN: r38625
Laurynas Biveinis [Tue, 2 Jan 2001 15:55:07 +0000 (15:55 +0000)]
ltcf-c.sh: clear ac_cv_prog_cc_pic for DJGPP.
* ltcf-c.sh: clear ac_cv_prog_cc_pic for DJGPP. Do not add
'-DPIC' to ac_cv_prog_cc_pic for DJGPP.
* ltcf-cxx.sh: likewise.
* ltcf-gcj.sh: likewise.
* ltconfig.sh: fix typo.
From-SVN: r38624
Kaveh R. Ghazi [Tue, 2 Jan 2001 15:51:11 +0000 (15:51 +0000)]
* tsystem.h: Define HAVE_DECL_GETOPT.
From-SVN: r38623
Laurynas Biveinis [Tue, 2 Jan 2001 15:46:33 +0000 (15:46 +0000)]
* config/mh-djgpp: do not set CFLAGS.
From-SVN: r38622
Laurynas Biveinis [Tue, 2 Jan 2001 15:44:40 +0000 (15:44 +0000)]
* configure: handle DOS-style absolute paths.
From-SVN: r38621
Laurynas Biveinis [Tue, 2 Jan 2001 15:36:25 +0000 (15:36 +0000)]
* configure.in: remove supported directories from $noconfigdirs for DJGPP.
From-SVN: r38620
Jason Merrill [Tue, 2 Jan 2001 15:20:30 +0000 (10:20 -0500)]
typeck.c (strip_all_pointer_quals): Also strip quals from pointer-to-member types.
* typeck.c (strip_all_pointer_quals): Also strip quals from
pointer-to-member types.
* Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
parse.y as C.
* call.c (build_new_method_call): Do evaluate the object parameter
when accessing a static member.
* typeck.c (build_component_ref): Likewise.
From-SVN: r38619
Philip Blundell [Tue, 2 Jan 2001 13:38:41 +0000 (13:38 +0000)]
Fix illegal asm
From-SVN: r38618
Richard Kenner [Tue, 2 Jan 2001 09:56:43 +0000 (04:56 -0500)]
Update comment
From-SVN: r38617
Jeff Law [Tue, 2 Jan 2001 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r38616
Richard Henderson [Tue, 2 Jan 2001 08:07:17 +0000 (00:07 -0800)]
* alpha.md (*ze_and_ne): Duplicate insn condition to split.
From-SVN: r38615
Benjamin Kosnik [Tue, 2 Jan 2001 07:38:47 +0000 (07:38 +0000)]
std_cwchar.h: Same.
2001-01-01 Benjamin Kosnik <bkoz@fillmore.redhat.com>
* include/c_std/bits/std_cwchar.h: Same.
* testsuite/17_intro/header_cwchar.cc: Same.
* include/c_std/bits/std_ctime.h: Same.
* testsuite/17_intro/header_ctime.cc: Same.
* include/c_std/bits/std_cstdlib.h: Same.
Clean up undefs, make consistent with cwchar and cmath, etc.
* testsuite/17_intro/header_cstdlib.cc: Same.
* include/c_std/bits/std_cstdio.h: Same here.
* testsuite/17_intro/header_cstring.cc: Same.
* include/c_std/bits/std_cstring.h: Include std_cstddef.h for size_t.
* testsuite/17_intro/header_cstring.cc: New file. Check for
size_t in namespace std.
* include/c_std/bits/std_cwchar.h: Explicit checks for mbstate_t.
* acconfig.h (HAVE_MBSTATE_T): Add.
* config.h.in: Regenerate.
* acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Always test for
mbstate_t.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/17_intro/headers_c++.cc: New file.
* testsuite/17_intro/headers_c.cc: Small changes.
From-SVN: r38614
Andreas Jaeger [Tue, 2 Jan 2001 07:02:50 +0000 (08:02 +0100)]
decl.c (cp_missing_noreturn_ok_p): New.
* decl.c (cp_missing_noreturn_ok_p): New.
(init_decl_processing): Set lang_missing_noreturn_ok_p.
From-SVN: r38613
Andreas Jaeger [Tue, 2 Jan 2001 07:00:49 +0000 (08:00 +0100)]
c-decl.c (c_decode_option): Remove support of -Wmissing-noreturn.
* c-decl.c (c_decode_option): Remove support of
-Wmissing-noreturn.
* toplev.c (documented_lang_options): Remove -Wmissing-noreturn.
(W_options): Add -Wmissing-noreturn here.
* flow.c: Define lang_missing_noreturn_ok_p.
(check_function_return_warnings): Use it.
* c-common.h: Declare lang_missing_noreturn_ok_p.
* c-lang.c (c_missing_noreturn_ok_p): New function.
(lang_init): Set lang_missing_noreturn_ok_p.
* invoke.texi (Warning Options): Document this.
From-SVN: r38612
Andreas Jaeger [Tue, 2 Jan 2001 06:55:11 +0000 (07:55 +0100)]
New tests for noreturn.
From-SVN: r38611
Phil Edwards [Tue, 2 Jan 2001 02:56:01 +0000 (02:56 +0000)]
extend.texi (C++ Extensions): New node for C++ attributes; describe init_priority and com_interface.
2000-12-27 Phil Edwards <pme@sources.redhat.com>
* extend.texi (C++ Extensions): New node for C++ attributes;
describe init_priority and com_interface.
* invoke.texi: Remove -finit-priority as it now has zero effect.
* install.texi: Fix xref syntax.
* md.texi: Likewise.
From-SVN: r38610
Richard Kenner [Tue, 2 Jan 2001 02:53:47 +0000 (02:53 +0000)]
config.gcc (sparc64-wrs-vxworks*): New case.
* config.gcc (sparc64-wrs-vxworks*): New case.
* config/sparc/vxsparc64.h, config/sparc/t-vxsparc64: New files.
From-SVN: r38609
Richard Kenner [Tue, 2 Jan 2001 02:45:03 +0000 (02:45 +0000)]
sparc.c (sparc_override_options): Do support different pointer and architecture size.
* config/sparc/sparc.c (sparc_override_options): Do support different
pointer and architecture size.
* config/sparc/sparc.h (MIN_UNITS_PER_WORD): Always 4.
(POINTERS_EXTEND_UNSIGNED): Define.
(Pmode): Test TARGET_ARCH64, not TARGET_PTR64.
(FUNCTION_MODE): Define to be Pmode.
* config/sparc/sparc.md (64-bit call patterns): FUNCTION_MODE now DI.
From-SVN: r38608
Richard Kenner [Tue, 2 Jan 2001 02:31:22 +0000 (02:31 +0000)]
function.c (expand_function_end): Properly handle DECL_RESULT and copy when ptr_mode != Pmode.
* function.c (expand_function_end): Properly handle DECL_RESULT
and copy when ptr_mode != Pmode.
* expmed.c (make_tree): Convert X from Pmode to ptr_mode, if needed.
From-SVN: r38607
Kaveh Ghazi [Tue, 2 Jan 2001 02:04:52 +0000 (02:04 +0000)]
update copyrights
From-SVN: r38606