Commit Graph

58955 Commits

Author SHA1 Message Date
GCC Administrator 85e933d8ed Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82592.2
2004-06-03 00:16:16 +00:00
GCC Administrator 87fd6c1cc3 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82590.2
2004-06-03 00:16:13 +00:00
Jan Hubicka ce068299f5 tree-cfg.c (tree_find_edge_insert_loc): Allow inserting before return_stmt.
* tree-cfg.c (tree_find_edge_insert_loc):  Allow inserting before
	return_stmt.

From-SVN: r82586
2004-06-02 21:13:55 +00:00
Matt Austern 415c974c0b When a class template is explicitly instantiated, its member should be too.
* cp-tree.h (instantiate_decl): new boolean parameter,
	undefined_ok. Current behavior is equivalent to its being 0.
	* decl2.c (mark_used): Add new argument when calling instantiate_decl
	* pt.c (mark_decl_instantiated): Unconditionally make
	instantiations explicit unconditionally
	(do_decl_instantiation): Don't call SET_DECL_EXPLICIT_INSTANTIATION,
	since mark_decl_instantiated now does it.
	(instantiate_class_member): New.  Instantiate a member of an
	explicitly instantiated class template.
	(do_type_instantiation): Explicitly instantiate members of an
	explicitly instantiated class template.
	(instantiate_decl): if undefined_ok is nonzero, and if we're
	trying to explicitly instantiated a template with no definition,
	change it to an implicit instantiation.
	(instantiate_pending_templates): Add new argument to instantiate_decl.
	* tree.c (cp_cannot_inline_tree_fn): Likewise.

From-SVN: r82585
2004-06-02 21:12:54 +00:00
Gabriel Dos Reis b53dcf3e5c * include/std/std_complex.h (log): Tidy.
From-SVN: r82584
2004-06-02 21:04:07 +00:00
Jason Merrill b25a893390 Makefile.in (TAGS): Don't mess with c-parse.[ch].
* Makefile.in (TAGS): Don't mess with c-parse.[ch].
        Do include c-parse.in.

From-SVN: r82582
2004-06-02 16:44:48 -04:00
Andrew Pinski b9696fd41d cp-tree.h: Fix typo.
2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        * cp-tree.h: Fix typo.

From-SVN: r82580
2004-06-02 13:24:30 -07:00
Olga Rodimina 26f4ba86cf JCheckBoxMenuItem.java: Removed CVS tags.
* javax/swing/JCheckBoxMenuItem.java:
	Removed CVS tags.
	* javax/swing/JMenu.java: Likewise.
	* javax/swing/JMenuBar.java: Likewise.
	* javax/swing/JMenuItem.java: Likewise.
	* javax/swing/JPopupMenu.java: Likewise.
	* javax/swing/JRadioButtonMenuItem.java: Likewise.
	* javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
	* javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
	* javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
	* javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
	* javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
	* javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.

From-SVN: r82579
2004-06-02 20:13:06 +00:00
Ziemowit Laski 12ba3f8f9a objc.exp (objc_target_compile): When running tests on Darwin (Mac OS X)...
[gcc/testsuite/ChangeLog]
2004-06-02  Ziemowit Laski  <zlaski@apple.com>

        * lib/objc.exp (objc_target_compile): When running tests on
        Darwin (Mac OS X), inform the linker about '-framework
        'Foundation'.

From-SVN: r82578
2004-06-02 19:48:49 +00:00
Eric Christopher 3aeb3655cf c-typeck.c (common_type): Don't lose type qualifiers when creating new variants.
2004-06-02  Eric Christopher  <echristo@redhat.com>

        * c-typeck.c (common_type): Don't lose type qualifiers
        when creating new variants.

2004-06-02  Eric Christopher  <echristo@redhat.com>

        * gcc.c-torture/compile/20040602-1.c: New.

From-SVN: r82577
2004-06-02 19:46:13 +00:00
Andrew Pinski 03a4c96907 Add function name to the changelog.
From-SVN: r82576
2004-06-02 12:36:07 -07:00
Andrew Pinski d2d87e6d9e cp-tree.h: Include cgraph.h
2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        * cp-tree.h: Include cgraph.h
        (DECL_NEEDED_P): Use cgraph_*node on the decl instead of
        TREE_SYMBOL_REFERENCED on the DECL_ASSEMBLER_NAME of the decl.

From-SVN: r82575
2004-06-02 12:20:03 -07:00
Andrew Pinski 89422e4749 ssa-sra-1.C: Fix comment.
2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++.dg/tree-ssa/ssa-sra-1.C: Fix comment.
        * g++.dg/tree-ssa/ssa-sra-2.C: Likewise.

From-SVN: r82574
2004-06-02 12:10:27 -07:00
Andrew Pinski 3facc4b615 re PR tree-optimization/14736 ([tree-ssa] code quality regression)
2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-optimization/14736
        * g++.dg/tree-ssa/ssa-cast-1.C: New Test.

        PR tree-optimization/14042
        * g++.dg/tree-ssa/ssa-sra-1.C: New Test.

        PR tree-optimization/14729
        * g++.dg/tree-ssa/ssa-sra-2.C: New Test.

2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-optimization/14042
        PR tree-optimization/14729
        PR tree-optimization/14736
        * tree-ssa.c: Check the type which the pointer points to
        instead of the pointer types.

From-SVN: r82573
2004-06-02 11:56:54 -07:00
Kazu Hirata 91fa0e3de6 re PR tree-optimization/15738 ([tree-ssa] Convert strrchr(s, c) to strchr(s, c) if c is known to be 0)
PR tree-optimization/15738.
	* builtins.c (fold_builtin_strchr): Transform
	strrchr (s, '\0') to strchr (s, '\0').

From-SVN: r82572
2004-06-02 18:41:40 +00:00
Steven Bosscher dff008b446 i386.c (ix86_adjust_cost): Don't increase the cost for load+operation for PROCESSOR_PENTIUMPRO...
* i386.c (ix86_adjust_cost): Don't increase the cost for
	load+operation for PROCESSOR_PENTIUMPRO, it is already
	modelled in the DFA description

From-SVN: r82571
2004-06-02 17:34:35 +00:00
Tobias Schlüter 2fa548415a re PR fortran/15557 (Not Implemented: Substring reference in DATA statement)
fortran/
PR fortran/15557
* data.c (assign_substring_data_value): New function.
(gfc_assign_data_value): Call the new function if we're dealing
with a substring LHS.

testsuite/
PR fortran/15557
* gfortran.fortran-torture/execute/data_3.f90: New testcase.

From-SVN: r82570
2004-06-02 13:38:24 +02:00
Jerry Quinn 785287145e Makefile.in (EXPR_H): Add insn-config.h...
2004-06-01  Jerry Quinn  <jlquinn@optonline.net>

	* Makefile.in (EXPR_H): Add insn-config.h, function.h,
	$(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
	(ALIAS_H, EMIT_RTL_H): New.
	(cselib.o): Replace EXPR_H with EMIT_RTL_H.
	(cfgcleanup.o): Add EMIT_RTL_H.
	(alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
	* alias.c: Replace expr.h with emit-rtl.h and alias.h.
	* attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
	* cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
	* expr.h: Add include guard.  Include function.h, rtl.h, flags.h,
	tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
	(get_varargs_alias_set, get_frame_alias_set, record_base_value,
	record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
	(set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
	set_mem_size): Move to emit-rtl.h.
	* emit-rtl.h: New.
	* alias.h: New.

From-SVN: r82568
2004-06-02 02:09:45 +00:00
GCC Administrator 1e2a2bdc35 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82566.2
2004-06-02 00:16:15 +00:00
GCC Administrator ff2adb9d23 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r82564.2
2004-06-02 00:16:11 +00:00
Jason Merrill a90f9bb112 re PR c++/15142 (Internal compiler error when passing a string where a char* is expecteted in a throw statement)
PR c++/15142
        * call.c (call_builtin_trap): Remove type parm.
        (convert_arg_to_ellipsis): Change a non-POD argument to integer type.
        (build_x_va_arg): Dereference a null pointer for a non-POD argument.

From-SVN: r82556
2004-06-01 16:28:38 -04:00
Eric Botcazou 95c73b23dc function.c (walk_fixup_memory_subreg): New parameter 'var'.
* function.c (walk_fixup_memory_subreg): New parameter 'var'.
	Call fixup_memory_subreg only if the MEM is equal to 'var'.
	Adjust recursive calls to self.
	(fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.

From-SVN: r82555
2004-06-01 19:08:01 +00:00
Jason Merrill c1d34f9050 re PR c++/13092 (Accepts invalid pointer-to-member conversion)
PR c++/13092
        * init.c (build_offset_ref): Build SCOPE_REF with non-null
        TREE_TYPE for non-dependent names.
        * pt.c (type_dependent_expression_p): Handle SCOPE_REF with
        unknown_type_node as its TREE_TYPE.
        * cxx-pretty_print.c (pp_cxx_unqualified_id): Handle BASELINK.
        * error.c (dump_decl) <SCOPE_REF case>: Use pp_expression.
        (dump_expr) <SCOPE_REF case>: Likewise.

From-SVN: r82553
2004-06-01 11:54:33 -04:00
Jason Merrill 3ff2f9d1d1 revert accidental checkin
From-SVN: r82552
2004-06-01 11:53:07 -04:00
Kriang Lerdsuwanakij 43daf8ffa8 re PR c++/13092 (Accepts invalid pointer-to-member conversion)
PR c++/13092
        * init.c (build_offset_ref): Build SCOPE_REF with non-null
        TREE_TYPE for non-dependent names.
        * pt.c (type_dependent_expression_p): Handle SCOPE_REF with
        unknown_type_node as its TREE_TYPE.
        * cxx-pretty_print.c (pp_cxx_unqualified_id): Handle BASELINK.
        * error.c (dump_decl) <SCOPE_REF case>: Use pp_expression.
        (dump_expr) <SCOPE_REF case>: Likewise.

From-SVN: r82551
2004-06-01 11:51:56 -04:00
Richard Henderson 7a3ea2011b c-parse.in (OFFSETOF, [...]): New.
* c-parse.in (OFFSETOF, offsetof_member_designator): New.
        (primary): Handle offsetof.  Add error productions for faux functions.
        Move component_ref objc checking to build_component_ref.
        (reswords): Add offsetof.
        (rid_to_yy): Add offsetof.
        * c-tree.h (build_offsetof): Declare.
        * c-common.h (objc_is_public): Declare.
        * c-typeck.c (build_component_ref): Check objc_is_public.
        (build_offsetof): New.
        * stub-objc.c (objc_is_public): New.
        * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
        from is_public.
        * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
        * doc/extend.texi (Offsetof): Move from C++ section to C section
        and rewrite for __builtin_offsetof.
cp/
        * lex.c (reswords): Rename "__offsetof" to "__builtin_offsetof".
        * parser.c (struct cp_parser): Remove in_offsetof.
        (cp_parser_new): Don't set it.
        (cp_parser_unary_expression): Don't check it.
        (cp_parser_postfix_open_square_expression): Split out from ...
        (cp_parser_postfix_expression): ... here.
        (cp_parser_postfix_dot_deref_expression): Likewise.
        (cp_parser_builtin_offsetof): New.
        (cp_parser_primary_expression): Use it.
testsuite/
        * g++.dg/template/dependent-expr4.C: Use __builtin_offsetof.

From-SVN: r82549
2004-06-01 08:12:23 -07:00
Bernardo Innocenti c4ec6988bc Also credit Peter Jakubek for last patch.
From-SVN: r82548
2004-06-01 16:37:14 +02:00
Peter Barada 5050d266ea m68k.c (m68k_output_mi_thunk): For ColdFire, use %d0 as a scratch to perform an add to memory.
* config/m68k/m68k.c(m68k_output_mi_thunk):  For ColdFire, use %d0 as
	a scratch to perform an add to memory.

From-SVN: r82547
2004-06-01 15:22:04 +02:00
Bernardo Innocenti 225d221a9d re PR target/14018 (m68k backend: -malign-loops/-malign-jumps broken)
PR target/14018
	* config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
	m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
	m68k_align_funcs): Remove.
	(override_options): Remove code to handle -malign-* options.
	* config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
	(FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
	(m68k_align_loops_string, m68k_align_jumps_string,
	m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
	m68k_align_funcs): Remove definitions.

From-SVN: r82546
2004-06-01 14:56:49 +02:00
Michael Koch c05e85e236 [multiple changes]
2004-06-01  Tom Tromey  <tromey@redhat.com>

	* java/io/ObjectStreamField.java: Cleaned up imports.

2004-06-01  Michael Koch  <konqueror@gmx.de>

	* java/io/ObjectStreamField.java: Style and javadoc cleanup.

2004-06-01  Mark Wielaard  <mark@klomp.org>

	* java/io/Writer.java (Writer(Object)): Fixed API doc.

From-SVN: r82545
2004-06-01 12:47:02 +00:00
Tobias Schlüter ea0ece0949 re PR fortran/15477 (gfortran should not have own version number)
PR fortran/15477
* gfortran.h (GFC_VERSION): Remove.
* gfortran.texi (version-gfortran): Remove, replace by version-GCC
where used.

From-SVN: r82544
2004-06-01 14:12:58 +02:00
Michael Koch 6ef44cfd0b 2004-06-01 Michael Koch <konqueror@gmx.de>
* java/security/Security.java
	(insertProviderAt): Use equals() instead of ==.
	(removeProvicer): Likewise.
	(getProvider): Likewise.
	* java/security/Signature.java
	(sign): Don't set state to UNINITIALIZED.
	(verify): Likewise.

From-SVN: r82543
2004-06-01 11:57:10 +00:00
Paul Eggert 1460af9501 re PR target/15626 (GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32")
PR target/15626
	* doc/install.texi (sparc-sun-solaris2*): Document messages issued
	by the Sun linker in conjunction with the Sun assembler.
	(sparc-sun-solaris2.7): Update revision info for Sun patch 106950.

From-SVN: r82541
2004-06-01 11:28:50 +00:00
Giovanni Bajo 07166901ad re PR c++/14932 (cannot use offsetof to get offsets of array elements in g++ 3.4.0 prerelease)
PR c++/14932
	* parser.c (cp_parser_postfix_expression): Allow subscript
	operator in offsetof.

	PR c++/14932
	* g++.dg/parse/offsetof4.C: New test.

From-SVN: r82538
2004-06-01 10:22:11 +00:00
Paolo Bonzini 1ec4e9c30b Makefile.tpl: Fix typo.
2004-06-01  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.tpl: Fix typo.
	* Makefile.in: Regenerate.

From-SVN: r82536
2004-06-01 08:11:33 +00:00
Paolo Bonzini c2f7605f1d configure.in: Remove new- prefix from toplevel bootstrap targets.
2004-06-01  Paolo Bonzini <bonzini@gnu.org>

	* configure.in: Remove new- prefix from toplevel
	bootstrap targets.
	* configure: Regenerate.

From-SVN: r82535
2004-06-01 07:54:44 +00:00
Paolo Bonzini f516a7dacf Makefile.tpl (all.normal): Rename to all.
2004-06-01  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.tpl (all.normal): Rename to all.
	(all): Replace with a rule to pick the default
	target from configure.
	(all-gcc, configure-gcc): Use conditionals to
	do nothing when toplevel bootstrap is going on.
	(GCC directory bootstrap) [gcc-bootstrap]: Disable.
	(Toplevel bootstrap) [gcc-no-bootstrap]: Disable.
	* configure.in: Support --enable-bootstrap.

	* Makefile.def: Remove new- prefix from toplevel
	bootstrap targets.
	* Makefile.tpl: Likewise.

	* Makefile.def: Add bootstrap_stage 4.  Add bootstrap2
	target.

	* Makefile.tpl (Toplevel bootstrap): Pass $(BASE_FLAGS_TO_PASS)
	$(RECURSE_FLAGS) to recursive invocation of make.

	* Makefile.in: Regenerate.
	* configure: Regenerate.

From-SVN: r82534
2004-06-01 07:43:25 +00:00
Jeff Law 0b068ee90d stmt.c (expand_decl): Be more selective about calling mark_reg_pointer.
* stmt.c (expand_decl): Be more selective about calling
        mark_reg_pointer.

From-SVN: r82533
2004-06-01 01:42:35 -06:00
Nicola Pero 61c627ed2c re PR objc/7993 (private variables cannot be shadowed in subclasses)
2004-06-01  Nicola Pero  <nicola@brainstorm.co.uk>

 	Fix PR objc/7993:
	* objc-act.c (is_private): Do not emit the 'instance variable %s
	is declared private' error.
	(is_public): Emit the error after calling is_private.
	(lookup_objc_ivar): If the instance variable is private, return 0
	- the instance variable is invisible here.
testsuite:
	* objc.dg/private-1.m, objc-dg/private-2.m: New testcases.

From-SVN: r82532
2004-06-01 07:40:02 +00:00
Eric Botcazou d314442396 invoke.texi (-static-libgcc): Explicitly mention non-GNU linkers.
* doc/invoke.texi (-static-libgcc): Explicitly mention
	non-GNU linkers.

From-SVN: r82529
2004-06-01 07:13:51 +00:00
Andreas Jaeger 76f824a4a0 config.h.in: Regenerated.
* config.h.in: Regenerated.
	* testsuite/Makefile.in: Regenerated.

From-SVN: r82528
2004-06-01 07:43:27 +02:00
Andreas Jaeger 42fcd7bb7a configure.in: Handle multilibs, support --enable-version-specific-runtime-libs.
* configure.in: Handle multilibs, support
	--enable-version-specific-runtime-libs.
	* Makefile.am (lib_LTLIBRARIES): Rename to ...
        (toolexeclib_LTLIBRARIES): this for multilib support.
	* Makefile.in: Regenerated.
	* configure: Regenerated.
	* aclocal.m4: Regenerated.

	* testsuite/lib/libmudflap.exp (libmudflap-init): Handle
	multilibs, using multilib directory instead of hardcoded path.
	Set LD_RUN_PATH.

From-SVN: r82527
2004-06-01 07:21:07 +02:00
GCC Administrator 017f7506b5 Daily bump.
From-SVN: r82525
2004-06-01 00:16:14 +00:00
Mark Wielaard 1900c4c6bf GtkComponentPeer.java (requestFocus): Implement by calling gtkRequestFocus.
2004-06-01  Mark Wielaard  <mark@klomp.org>

	* gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
	Implement by calling gtkRequestFocus.
	(gtkRequestFocus): New native method.
	* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
	Renamed to ...
	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
	New function name.
	(filter_expose_event_handler):
	Mark static.
	* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
	(menu_pos): Mark static.

From-SVN: r82517
2004-05-31 23:03:01 +00:00
Mark Mitchell e17b3578a3 re PR c++/15701 (ICE with friends and template template parameter)
PR c++/15701
	* friend.c (add_friend): Do not try to perform access checks for
	functions from dependent classes.

	PR c++/15701
	* g++.dg/template/friend29.C: New test.

From-SVN: r82516
2004-05-31 22:48:30 +00:00
Bernardo Innocenti 5847e53ee7 re PR target/12968 (doc m68k -mshort)
PR target/12968
	* doc/invoke.texi: Document stack alignment side-effect of -mshort.

From-SVN: r82511
2004-06-01 00:27:39 +02:00
Michael Koch 57807c3178 CollationElementIterator.java, [...]: New versions from GNU classpath.
2004-06-01  Michael Koch  <konqueror@gmx.de>

	* java/text/CollationElementIterator.java,
	java/text/CollationKey.java,
	java/text/RuleBasedCollator.java: New versions from GNU classpath.
	* testsuite/libjava.mauve/xfails: Removed all
	java.text.CollationElementIterator tests.

From-SVN: r82510
2004-05-31 22:16:31 +00:00
Michael Koch f7dbd56c9a InflaterInputStream.java: Merged more with Classpath version.
2004-06-01  Michael Koch  <konqueror@gmx.de>

	* java/util/zip/InflaterInputStream.java: Merged more with Classpath
	version.
	* java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
	Java 1.5 keyword usage.

From-SVN: r82509
2004-05-31 22:14:37 +00:00
Joseph Myers ec3e68358f re PR c/15749 (--pedantic-errors behaves differently from --pedantic with C-compiler on Linux)
PR c/15749
	* c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
	misuses of structures with flexible array members if
	in_system_header.

testsuite:
	* gcc.dg/pr15749-1.c, gcc.dg/pr15749-1.h: New test.

From-SVN: r82506
2004-05-31 23:06:33 +01:00
Eric Botcazou a4a90b847a re PR target/15693 (ICE - unrecognizable insn)
PR target/15693
	* config/sparc/sparc.c (compare_operand): New predicate.
	* config/sparc/sparc.h (PREDICATE_CODES): Add it.
	* config/sparc/sparc.md (cmpsi expander): Use it.  If the first
	operand is a ZERO_EXTRACT and the second operand is not zero,
	force the former to a register.
	(cmpdi expander): Likewise.

From-SVN: r82500
2004-05-31 21:34:26 +00:00