Commit Graph

32717 Commits

Author SHA1 Message Date
Kaveh R. Ghazi
30472f46e9 gencodes.c (output_predicate_decls): Fill empty initializer braces.
* gencodes.c (output_predicate_decls): Fill empty initializer
	braces.

From-SVN: r38684
2001-01-04 18:08:22 +00:00
Jakub Jelinek
c3843cea61 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
2001-01-04 18:26:12 +01:00
Bernd Schmidt
f4d578da66 Some tidyups for ia64 problems
From-SVN: r38682
2001-01-04 14:17:40 +00:00
Neil Booth
03b9ab4261 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
2001-01-04 10:25:55 +00:00
Jeff Law
13ac31acc7 Daily bump.
From-SVN: r38680
2001-01-04 01:45:11 -07:00
Benjamin Kosnik
e61c3e8cde 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
2001-01-04 04:21:42 +00:00
Richard Henderson
584ef5fea5 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
2001-01-03 17:14:16 -08:00
Alexandre Oliva
04d430b8d0 configure.in (tm.h): Include isns-codes.h last.
* configure.in (tm.h): Include isns-codes.h last.
* configure: Rebuilt.

From-SVN: r38677
2001-01-03 23:47:05 +00:00
Richard Henderson
e55a9a6ea2 alpha.md (addvsi3, addvdi3): New.
* config/alpha/alpha.md (addvsi3, addvdi3): New.
        (negvsi2, negvdi2, subvsi3, subvdi3, mulvsi3, mulvdi3): New.

From-SVN: r38676
2001-01-03 14:52:42 -08:00
Alexandre Oliva
b54becdc4b Update the second copyright notice. Point to it from the first.
From-SVN: r38675
2001-01-03 22:45:56 +00:00
Franz Sirl
fa5db8286c 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
2001-01-03 22:26:05 +00:00
Alexandre Oliva
975d393ab8 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
2001-01-03 21:13:29 +00:00
Joseph Myers
03dc032560 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
2001-01-03 20:56:22 +00:00
Joseph Myers
955be6336a 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
2001-01-03 20:39:09 +00:00
Tom Tromey
234fb86cae 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
2001-01-03 20:34:44 +00:00
Joseph Myers
6bfa3dac74 * gcc_update: Add cpp.1 to the list of generated files.
From-SVN: r38669
2001-01-03 20:18:18 +00:00
Joseph Myers
fd939e46c9 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
2001-01-03 20:15:01 +00:00
Jeffrey Oldham
9ef6d39a0f 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
2001-01-03 18:22:23 +00:00
Mike Stump
79424a4fdb * snapshot: Update to account for java libraries.
From-SVN: r38666
2001-01-03 18:13:43 +00:00
Kaveh Ghazi
ee597267a0 update copyrights
From-SVN: r38665
2001-01-03 16:54:46 +00:00
Kaveh R. Ghazi
819c1488ed 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
2001-01-03 16:48:15 +00:00
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