Commit Graph

54155 Commits

Author SHA1 Message Date
Richard Earnshaw f9af39d0c7 combine.c (distribute_notes): When re-distributing the notes from an insn we are about to delete...
* combine.c (distribute_notes): When re-distributing the notes from
an insn we are about to delete, ensure we can't end up with a cyclic
list of notes.

From-SVN: r73547
2003-11-13 14:05:55 +00:00
Mohan Embar 650dc9b332 * gnu/java/nio/natSelectorImplPosix.cc
(helper_put_filedescriptors): Change to static linkage.
	(helper_get_filedescriptors): Likewise.

From-SVN: r73545
2003-11-13 10:09:40 +00:00
Eric Botcazou d76bc29c91 re PR rtl-optimization/12926 (Wrong value after assignment in initialize list using bit-fields)
PR optimization/12926
	* expr.c (expand_assignment) [COMPONENT_REF]: Don't put
	the UNCHANGING_RTX_P flag on memory references to read-only
	components that are not addressable.

From-SVN: r73542
2003-11-13 09:48:36 +00:00
Kazu Hirata 239ca41f81 lib1funcs.asm (divmodsi4): Clear S0P in DenHighNonZero.
* config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
	DenHighNonZero.

From-SVN: r73538
2003-11-13 04:26:00 +00:00
Jan Hubicka fccc4eb240 re PR rtl-optimization/12275 ([unit-at-a-time] ICE in htab_clear_slot)
PR opt/12275
	* c-decl.c (finish_decl): Use change_decl_assembler_name.
	* c-pragma.c (handle_pragma_redefine_extname): Likewise.
	* varasm.c (make_decl_rtl): Likewise.
	* cgraph.c (change_decl_assembler_name): New function.
	* tree.h (set_decl_assembler_name): Kill dead declaration.
	(change_decl_assembler_name): Declare.

	* decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
	* decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.

From-SVN: r73532
2003-11-13 02:07:57 +00:00
Jason Merrill 1b2b8ee7a9 re PR rtl-optimization/12547 ([tree-ssa] simple java code with -fcheck-references causes gimplification failed)
PR optimization/12547
        * lang.c (java_tree_inlining_walk_subtrees): Just walk
        BLOCK_EXPR_BODY directly.

From-SVN: r73530
2003-11-12 20:25:24 -05:00
Jonathan Wakely a198480e86 configury.html: XHTML tweak.
2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>

	* docs/html/17_intro/configury.html: XHTML tweak.

From-SVN: r73529
2003-11-13 01:21:28 +00:00
Jonathan Wakely 684edd67f6 debug_mode.html: XHTML fixes.
2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>

	* docs/html/debug_mode.html: XHTML fixes.

From-SVN: r73526
2003-11-13 00:49:58 +00:00
Benjamin Kosnik 89341602bb debug_mode.html: Update.
2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/debug_mode.html: Update.
	* docs/html/17_intro/TODO: Update.

From-SVN: r73525
2003-11-13 00:25:23 +00:00
GCC Administrator f1045f1b27 Daily bump.
From-SVN: r73523
2003-11-13 00:16:08 +00:00
Mark Mitchell 662eceda1d tree.c (build_target_expr_with_type): Treate VA_ARG_EXPR like CONSTRUCTOR.
* tree.c (build_target_expr_with_type): Treate VA_ARG_EXPR like
	CONSTRUCTOR.

From-SVN: r73521
2003-11-12 23:48:25 +00:00
Kazu Hirata 0c7c472e88 lib1funcs.asm (___mulsi3): Don't save/restore an unused register.
* config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
	an unused register.

From-SVN: r73520
2003-11-12 23:39:48 +00:00
Richard Sandiford c4740d5df9 re PR bootstrap/12752 (irix bootstrap failure - genmultilib)
PR bootstrap/12752
	* config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
	(MULTILIB_OSDIRNAMES): Reorder accordingly.

From-SVN: r73518
2003-11-12 23:03:56 +00:00
Janis Johnson d1d0c603c4 rs6000-protos.h (rs6000_initial_elimination_offset): Add.
2003-11-12  Janis Johnson  <janis187@us.ibm.com>

	* rs6000-protos.h (rs6000_initial_elimination_offset): Add.
	(rs6000_stack_info): Remove.  (debug_stack_info): Remove.
	(rs6000_emit_eh_reg_restore): Add
	* rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
	of vars_size and total_size to HOST_WIDE_INT.
	(emit_frame_save): Change parameter size to HOST_WIDE_INT.
	(rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
	(debug_stack_info): Make static; change output format of HOST_WIDE_INT
	values.
	(rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
	(rs6000_initial_elimination_offset): New, with code formerly in
	INITIAL_ELIMINATION_OFFSET.
	* rs6000.h (rs6000_stack_t): Remove.
	(INITIAL_ELIMINATION_OFFSET): Replace code with call to function
	rs6000_initial_elimination_offset.
	* rs6000.md (UNSPECV_EH_RR split): Replace code with call to
	rs6000_emit_eh_reg_restore.

From-SVN: r73517
2003-11-12 22:52:09 +00:00
Mark Mitchell 8f120836ef * g++.dg/parse/crash10.C: Remove bogus error marker.
From-SVN: r73516
2003-11-12 22:31:22 +00:00
Mark Mitchell ad16ae7f12 decl.c (cp_make_fname_decl): When creating a top-level __FUNCTION__-like symbol, do register it with pushdecl.
* decl.c (cp_make_fname_decl): When creating a top-level
	__FUNCTION__-like symbol, do register it with pushdecl.

From-SVN: r73515
2003-11-12 22:20:34 +00:00
Tom Fitzsimmons 2860518a07 GtkComponentPeer.java (prepareImage): Remove null check.
2003-11-12  Tom Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Remove
	null check.
	* gnu/java/awt/peer/gtk/GtkToolkit.java (prepareImage): Likewise.
	* java/awt/Component.java (prepareImage): Likewise.

From-SVN: r73513
2003-11-12 22:03:49 +00:00
Rainer Orth 49add53f4e adadecode.c: Use <> form of include for ctype.h.
* adadecode.c: Use <> form of include for ctype.h.
	* sysdep.c [IN_RTS]: Use <> form of include for time.h.

From-SVN: r73512
2003-11-12 21:30:24 +00:00
Rainer Orth 94bae1cc27 re PR target/6552 (make gnatlib_and_tools fails compiling a-chahan.adb on IRIX 6.2)
* 5gsystem.ads (Functions_Return_By_DSP): Set to False.
	Works around PR middle-end/6552.

From-SVN: r73511
2003-11-12 21:24:19 +00:00
Rainer Orth 405f36dd35 run_acats (host_gnatmake): Use type in a /bin/sh script.
* ada/acats/run_acats (host_gnatmake): Use type in a /bin/sh script.
	(host_gcc): Likewise.
	(ROOT): Honor $PWDCMD.
	(BASE): Likewise.
	* ada/acats/run_all.sh (dir): Honor $PWDCMD.

From-SVN: r73510
2003-11-12 21:21:55 +00:00
Mark Mitchell 0e59b3fb64 decl.c (finish_case_label): Do not check that we are within a switch statement here.
* decl.c (finish_case_label): Do not check that we are within a
	switch statement here.
	* parser.c (struct cp_parser): Add in_iteration_statement_p and
	in_switch_statement_p.
	(cp_parser_new): Initialize them.
	(cp_parser_labeled_statement): Check validity of case labels
	here.
	(cp_parser_selection_statement): Set in_switch_statement_p.
	(cp_parser_iteration_statement): Set in_iteration_statement_p.
	(cp_parser_jump_statement): Check validity of break/continue
	statements here.

From-SVN: r73508
2003-11-12 19:57:56 +00:00
Mike Stump d5123baefb c-typeck.c (c_convert_parm_for_inlining): Add argnum...
* c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
	is the argumnt we are processing so that warnings and errors
	will have that information.
	* c-tree.h (c_convert_parm_for_inlining): Add argnum.
	* lang-hooks-def.h
	(lhd_tree_inlining_convert_parm_for_inlining): Likewse.
	* langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
	* langhooks.h (convert_parm_for_inlining): Likewise.
	* tree-inline.c (initialize_inlined_parameters): Compute and
	pass argnum down.

From-SVN: r73507
2003-11-12 19:53:17 +00:00
Andreas Tobler ea81d2a3e1 re PR libffi/11147 (fficonfig.h is abi-specific)
2003-11-12  Andreas Tobler  <a.tobler@schweiz.ch>

	* configure.in, include/Makefile.am: PR libgcj/11147, install
	the ffitarget.h header file in a gcc versioned and target
	dependent place.
	* configure: Regenerated.
	* Makefile.in, include/Makefile.in: Likewise.
	* testsuite/Makefile.in: Likewise.

From-SVN: r73504
2003-11-12 19:18:30 +01:00
Mark Mitchell b1a19c7cea re PR c++/12735 (duplicate error messages for redeclaration errors)
PR c++/12735
	* cp-tree.h (duplicate_decls): Return a tree.
	* decl.c (duplicate_decls): Clarify documentation.  Return
	error_mark_node to indicate a failed redeclaration.
	* friend.c (do_friend): Handle that case.
	* name-lookup.c (pushdecl): Likewise.

From-SVN: r73503
2003-11-12 18:15:02 +00:00
Alexey Starovoytov 3197c4fd19 re PR rtl-optimization/12953 (tree inline bug and fix)
2003-11-12  Alexey Starovoytov  <alexey.starovoytov@sun.com>
	    Roger Sayle  <roger@eyesopen.com>

	PR optimization/12953
	* tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
	before switch by FUNCTION_CODE.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>

From-SVN: r73502
2003-11-12 18:12:57 +00:00
Tom Fitzsimmons 94f773991e gnu_java_awt_peer_gtk_GtkLabelPeer.c (setAlignment): Rename to nativeSetAlignment.
2003-11-12  Tom Fitzsimmons  <fitzsim@redhat.com>

	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (setAlignment):
	Rename to nativeSetAlignment.

From-SVN: r73500
2003-11-12 17:38:22 +00:00
Andrew Haley 0adaa7e4a5 re PR java/11045 (int cast bug)
2003-11-12  Andrew Haley  <aph@redhat.com>

        PR java/11045
        * parse.y (fold_constant_for_init): Check that we really do have a
        constant.

From-SVN: r73497
2003-11-12 17:00:53 +00:00
Richard Earnshaw c9389e79d4 arm.md (storehi): Avoid use of explicit subreg.
* arm.md (storehi): Avoid use of explicit subreg.
(storehi_bigend, storeinthi, movhi_bigend): Likewise.

From-SVN: r73496
2003-11-12 16:15:07 +00:00
Catherine Moore 7e28e1a3da xfail frv-*-*.
From-SVN: r73495
2003-11-12 11:02:48 -05:00
Andrew Haley 7304c6cfe9 re PR java/11533 (Inlining drops static initialization of inner class)
2003-11-12  Andrew Haley  <aph@redhat.com>

        PR java/11533
        * lang.c (merge_init_test_initialization): Clear DECL_INITIAL for
        init_test_decls being inlined.

        PR java/12890:
        * parse.y (do_resolve_class): Check return value from
        breakdown_qualified().

From-SVN: r73494
2003-11-12 15:24:42 +00:00
J"orn Rennecke 88f08cca28 * config/sh/sh.md (prefetch): New pattern.
From-SVN: r73492
2003-11-12 14:05:42 +00:00
Andreas Jaeger 8f28a5d250 intdoc.in (Signal Intrinsic (subroutine)): Fix texinfo warning using @code.
2003-11-12  Andreas Jaeger  <aj@suse.de>

	* intdoc.in (Signal Intrinsic (subroutine)): Fix texinfo warning
	using @code.
	* intdoc.texi: Regenerated.

From-SVN: r73491
2003-11-12 12:21:34 +01:00
Andreas Jaeger 7671789c9c c99-const-expr-2.c (foo): Avoid extra warning on 64-bit systems.
* gcc.dg/c99-const-expr-2.c (foo): Avoid extra warning on 64-bit
	systems.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r73490
2003-11-12 12:19:10 +01:00
Andreas Jaeger f95bd8e287 intdoc.texi (Signal Intrinsic (subroutine)): Fix texinfo warning using @code.
* intdoc.texi (Signal Intrinsic (subroutine)): Fix texinfo warning
	using @code.

From-SVN: r73489
2003-11-12 10:58:53 +01:00
Arnaud Charlet 463f452cf2 Resync.
From-SVN: r73488
2003-11-12 09:33:46 +01:00
Eric Christopher bbbbbbe7c6 reload1.c (reload): Verify that addresses for reg_equiv_* are valid for the architecture.
2003-11-11  Eric Christopher  <echristo@redhat.com>

        * reload1.c (reload): Verify that addresses for
        reg_equiv_* are valid for the architecture.

From-SVN: r73487
2003-11-12 07:24:25 +00:00
Benjamin Kosnik f9d52373f8 c++config: Move using directive...
2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/c++config: Move using directive...
	* include/debug/formatter.h: ...here.

From-SVN: r73486
2003-11-12 07:12:20 +00:00
Andreas Jaeger 0cf356dfa6 c90-const-expr-2.c (foo): Avoid extra warning on 64-bit systems.
2003-11-12  Andreas Jaeger  <aj@suse.de>
	    Jakub Jelinek  <jakub@redhat.com>
	    Andrew Pinski  <pinskia@physics.uc.edu>
	    Richard Henderson  <rth@redhat.com>

	* gcc.dg/c90-const-expr-2.c (foo): Avoid extra warning on 64-bit
	systems.

	* gcc.dg/20030926-1.c: Make it work on x86_64 systems.
	* gcc.dg/i386-pentium4-not-mull.c: Likewise.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r73485
2003-11-12 07:44:46 +01:00
Danny Smith 2fe6fc5268 jni.cc (JNI_CreateJavaVM): Remove JNIEXPORT.
* jni.cc (JNI_CreateJavaVM): Remove JNIEXPORT.
	(JNI_GetCreatedJavaVMs): Likewise.
	(JNI_GetDefaultJavaVMInitArgs): Likewise.
	* include/jni.h (JNIIMPEXP): Remove definition
	and replace with...
	(__GCJ_JNIIMPEXP__): New macro, applicable only to libgcj
	symbols,
	(__GCJ_DLL__): New macro, controlling __GCJ_JNIIMPEXP__.

From-SVN: r73484
2003-11-12 05:56:44 +00:00
Carlo Wood 22e5c8fa3c re PR libstdc++/12947 (Demangler bug)
PR libstdc++/12947
* bits/demangle.h
(_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
(_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
(session<Allocator>::next_peek() const): Added.
(decode_non_negative_decimal_integer(string_type&)):
Renamed from decode_decimal_integer(string_type&).
(session<Allocator>::decode_nested_name):
Decode <template_param> as well.
(session<Allocator>::add_substitution):
Handle <template-param> for <nested-name>'s.
(enum xary_nt): Added.
(struct entry_st): Added member `xary_nt type' instead of `bool unary'.
(symbol_name_table_c): Updated for `entry_st::type' and additional
operators (unary `operator+' and `sizeof(type)').
(offset_table_c): Updated for new operators (causing a new hash map).
(decode_operator_name): Match the updated hash map.
(session<Allocator>::decode_expression):
Support for `sizeof ([typename] type)' (st),
dependent names (sr) and casting operator (cv).  Handle
`entry_st::type'.  Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
(session<Allocator>::decode_type_with_postfix):
Support `extern "C"' function types (FY).
* testsuite/demangle/regression/cw-16.cc: Added tests for the
added functionality.
* testsuite/demangle/regression/3111-2.cc: sizeof now has a space
appended.

From-SVN: r73480
2003-11-12 02:18:37 +00:00
Eric Christopher 729bf8ab4a function.c (purge_addressof_1): Add libcall check.
2003-11-11  Eric Christopher  <echristo@redhat.com>

	* function.c (purge_addressof_1): Add libcall check.
	Remove test for cached replacements on fallback case.
	Simplify mode comparisons. Add libcall test for
	paradoxical subregs.

From-SVN: r73479
2003-11-12 02:10:12 +00:00
Kazu Hirata f24f583105 * config/h8300/t-h8300: Fix an obsolete comment.
From-SVN: r73478
2003-11-12 02:03:58 +00:00
Paolo Carlini dfad48c6e8 re PR libstdc++/12875 (Weird behaviour in basic_filebuf::setbuf())
2003-11-11  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/12875
	* include/bits/fstream.tcc (setbuf): Don't do anything
	after open(), in particular don't discard data.
	(_M_allocate_internal_buffer): Tweak to not allocate memory
	in case the buffer is provided by the user via setbuf.
	* include/ext/stdio_filebuf.h: Tweak comment.
	* testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
	* testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
	setbuf does nothing after open().
	* testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.

From-SVN: r73477
2003-11-12 01:14:34 +00:00
Thomas Fitzsimmons a5966c9ef9 Makefile.am: Add GdkPixbufDecoder.java and gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
2003-11-11  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* Makefile.am: Add GdkPixbufDecoder.java and
	gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
	* Makefile.in: Regenerate.
	* gnu/java/awt/image/ImageDecoder.java (ImageDecoder(byte[],int,int)):
	New constructor.
	(startProduction): Create ByteArrayInputStream when url and filename are
	null.
	(produce): Declare stream parameter as InputStream.
	* gnu/java/awt/image/XBMDecoder.java (produce): Declare stream parameter
	as InputStream.
	* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
	(GdkPixbufDecoder(byte[],int,int)): New constructor.
	(produce): Declare stream parameter as InputStream.
	* gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Throw NPE
	if image is null.  Set image's observer before running PrepareImage
	thread.  Pass image to startProduction.
	* gnu/java/awt/peer/gtk/GtkImage.java: Add null checks before calls to
	source's member functions.
	(observer): New field.
	(setObserver): New method.
	(setDimensions, setPixels, imageComplete): Call observer's imageUpdate.
	* gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage, getImage): Return
	new GtkImage.
	(prepareImage): Implement.
	* java/awt/Component.java: Add static fields incrementalDraw and
	redrawRate.
	(imageUpdate): Implement.
	(createImage): Call Toolkit's createImage if peer is null.
	(prepareImage): Throw NPE if image is null.
	* java/awt/MediaTracker.java: Fix return value.

From-SVN: r73476
2003-11-12 00:37:34 +00:00
GCC Administrator c754c6f131 Daily bump.
From-SVN: r73474
2003-11-12 00:16:07 +00:00
Richard Henderson fd9af78164 New tests.
From-SVN: r73469
2003-11-11 14:33:06 -08:00
Jason Merrill 86098eb892 cp-tree.h (DECL_NAMESPACE_ASSOCIATIONS): New macro.
* cp-tree.h (DECL_NAMESPACE_ASSOCIATIONS): New macro.
        * name-lookup.c (parse_using_directive): New fn.
        (is_associated_namespace): New fn.
        (arg_assoc_namespace): Also check associated namespaces.
        * name-lookup.h: Declare new fns.
        * pt.c (maybe_process_partial_specialization): Allow
        specialization in associated namespace.
        * parser.c (cp_parser_using_directive): Accept attributes.  Use
        parse_using_directive.

From-SVN: r73468
2003-11-11 17:27:32 -05:00
Andreas Jaeger 292d9f2bcd * gcc.c-torture/execute/20020227-1.x: Test passes also on x86_64.
From-SVN: r73467
2003-11-11 22:54:04 +01:00
Andreas Jaeger 3e65fcc09d * gcc.c-torture/execute/20020720-1.x: Test passes also on x86_64.
From-SVN: r73466
2003-11-11 22:48:05 +01:00
James E Wilson 0b69c29f22 Undo accidental GET_MODE_BITSIZE damage.
(store_bit_field, extract_bit_field): Revert last two
changes.

From-SVN: r73463
2003-11-11 12:54:38 -08:00