Commit Graph

32646 Commits

Author SHA1 Message Date
Benjamin Kosnik
36e40658db 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
2001-01-03 15:53:28 +00:00
Richard Kenner
f07d22aa6f 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
2001-01-03 10:50:06 -05:00
Nathan Sidwell
3c505507d3 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
2001-01-03 15:01:16 +00:00
Bernd Schmidt
713f41f9b3 Improve alias analysis for ia64
From-SVN: r38660
2001-01-03 15:00:31 +00:00
Nathan Sidwell
03378143ac 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
2001-01-03 14:39:10 +00:00
Bernd Schmidt
fc5769d98c Fix silliness in last change
From-SVN: r38658
2001-01-03 14:29:01 +00:00
Alexandre Oliva
7ccb4206d1 build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
* build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
* Makefile.in (HOST_CFLAGS): Mention build-make.

From-SVN: r38657
2001-01-03 14:23:39 +00:00
Bernd Schmidt
2be28ee21b Add extra arg to cse_rtx_varies_p
From-SVN: r38656
2001-01-03 14:08:30 +00:00
Richard Kenner
a338321ef9 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
2001-01-03 08:55:47 -05:00
Jason Merrill
560b62511c update
From-SVN: r38654
2001-01-03 07:56:48 -05:00
Bernd Schmidt
432fd7347e Don't use MEM_ALIAS_SET on a REG
From-SVN: r38653
2001-01-03 12:26:52 +00:00
Ovidiu Predescu
1104c18d2f 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
2001-01-03 08:50:46 +00:00
Ovidiu Predescu
406515b276 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
2001-01-03 08:49:34 +00:00
Ovidiu Predescu
68b61df962 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
2001-01-03 08:49:02 +00:00
Jeff Law
8cb4a04adc Daily bump.
From-SVN: r38649
2001-01-03 01:45:07 -07:00
Alexandre Oliva
8f8d8d6e32 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
2001-01-03 06:47:28 +00:00
John David Anglin
232a132fd6 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
2001-01-02 22:42:23 -07:00
Kaveh R. Ghazi
086715fa04 * gcc.c-torture/compile/20010102-1.c: New test.
From-SVN: r38646
2001-01-03 04:39:40 +00:00
Jeff Law
ec0b0e0e13 Update copyright.
From-SVN: r38645
2001-01-02 21:04:56 -07:00
Mark Elbrecht
19723541bb 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
2001-01-02 21:00:53 -07:00
Jason Merrill
f30efcb78a 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
2001-01-02 22:28:51 -05:00
Mike Stump
a412bf75d9 * decl2.c: (max_tinst_depth): Increase to 50.
From-SVN: r38642
2001-01-03 01:11:18 +00:00
Mark Mitchell
4890c2f43c 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
2001-01-03 00:24:04 +00:00
Mark Mitchell
55560b9da4 * fold-const.c (fold_convert): Fix typo.
From-SVN: r38640
2001-01-03 00:13:33 +00:00
Tom Tromey
f5826791be 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
2001-01-03 00:07:13 +00:00
Richard Henderson
4f78b9a896 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
2001-01-02 15:49:45 -08:00
Jason Merrill
f941340f5a * typeck.c (build_binary_op): Fix pmf comparison logic.
From-SVN: r38637
2001-01-02 15:14:57 -05:00
Jason Merrill
96d6c6107a 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
2001-01-02 14:48:02 -05:00
Jason Merrill
381ddaa6e1 tweak formatting
From-SVN: r38635
2001-01-02 14:37:39 -05:00
Jan Hubicka
e2134eead7 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
2001-01-02 19:29:12 +00:00
Jan Hubicka
2b589241d8 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
2001-01-02 19:24:27 +00:00
Mark Mitchell
9e1458e7d7 Update copyright
From-SVN: r38632
2001-01-02 18:19:28 +00:00
Mark Mitchell
330aa9a385 * tree.def (TRUTH_NOT_EXPR): Improve documentation.
From-SVN: r38631
2001-01-02 18:15:18 +00:00
Richard Kenner
eeebb82437 Fix last change
From-SVN: r38630
2001-01-02 11:46:26 -05:00
Richard Kenner
e0339ef7a3 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
2001-01-02 11:40:35 -05:00
Chandra Chavva
bd86a96456 Initial version.
From-SVN: r38628
2001-01-02 11:37:39 -05:00
Jeffrey Oldham
d07bec9503 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
2001-01-02 16:09:56 +00:00
Jeffrey Oldham
3719d27ba3 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
2001-01-02 16:03:50 +00:00
Richard Kenner
6d1c15cc4c * c-decl.c (start_function): Don't warn on third parameter to main.
From-SVN: r38625
2001-01-02 10:58:16 -05:00
Laurynas Biveinis
976b230df9 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
2001-01-02 10:55:07 -05:00
Kaveh R. Ghazi
16b975401a * tsystem.h: Define HAVE_DECL_GETOPT.
From-SVN: r38623
2001-01-02 15:51:11 +00:00
Laurynas Biveinis
b12ebe848b * config/mh-djgpp: do not set CFLAGS.
From-SVN: r38622
2001-01-02 10:46:33 -05:00
Laurynas Biveinis
071091103c * configure: handle DOS-style absolute paths.
From-SVN: r38621
2001-01-02 10:44:40 -05:00
Laurynas Biveinis
1da5b8fc55 * configure.in: remove supported directories from $noconfigdirs for DJGPP.
From-SVN: r38620
2001-01-02 10:36:25 -05:00
Jason Merrill
3c8c2a0ae2 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
2001-01-02 10:20:30 -05:00
Philip Blundell
8515dc8152 Fix illegal asm
From-SVN: r38618
2001-01-02 13:38:41 +00:00
Richard Kenner
7def3512f0 Update comment
From-SVN: r38617
2001-01-02 04:56:43 -05:00
Jeff Law
4fe1a9eecc Daily bump.
From-SVN: r38616
2001-01-02 01:45:07 -07:00
Richard Henderson
6f85e02b0b * alpha.md (*ze_and_ne): Duplicate insn condition to split.
From-SVN: r38615
2001-01-02 00:07:17 -08:00
Benjamin Kosnik
7b33122850 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
2001-01-02 07:38:47 +00:00