Commit Graph

53074 Commits

Author SHA1 Message Date
Andrew Haley 1319e88eb1 jcf-write.c (generate_bytecode_insns): Add MIN_EXPR and MAX_EXPR.
2003-09-16  Andrew Haley  <aph@redhat.com>

        * jcf-write.c (generate_bytecode_insns): Add MIN_EXPR and MAX_EXPR.

From-SVN: r71514
2003-09-18 10:09:17 +00:00
Gabriel Dos Reis 53de520433 c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
* c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
        * c-pretty-print.c: Fix formatting.
        (pp_c_integer_constant): Append type annotation to literals.  Tidy.
        (pp_c_type_specifier): Tidy.
        (pp_c_compound_literal): New function.
        (pp_c_initializer): Simplify..
        (pp_c_initializer_list): Likewise.
        (pp_c_brace_enclosed_initializer_list): New function.
        (pp_c_postfix_expression): Simplify.

cp/
        * error.c (dump_type): Simplify.  Use pp_type_specifier_seq for
        "C" types.
        * cxx-pretty-print.c (pp_cxx_type_specifier_seq): Fix thinko.

From-SVN: r71511
2003-09-18 08:25:12 +00:00
Ingo Proetel 1ea8e73b80 TimeZone.java: Initialize lazily.
2003-09-18  Ingo Proetel  <proetel@aicas.com>

	* java/util/TimeZone.java: Initialize lazily.
	* java/util/Locale.java (readManifest): Fix check for country.
	* java/util/GregorianCalendar.java: Make use of ResourceBundle better
	traceable
	* java/util/Calendar.java: Make use of ResourceBundle better
	traceable.

From-SVN: r71509
2003-09-18 06:34:00 +00:00
Jeroen Frijters fc08ad2815 2003-09-18 Jeroen Frijters <jeroen@frijters.net>
* java/sql/Timestamp.java
	(valueOf): Fixed confusion of java.sql.Date and java.util.Date

From-SVN: r71508
2003-09-18 06:11:41 +00:00
David P Grove f5e2e1adf0 LineNumberReader (read): Don't reset pos & limit when markPos is 0.
2003-09-18  David P Grove  <groved@us.ibm.com>

	* java/io/LineNumberReader (read): Don't reset pos & limit when
	markPos is 0.

From-SVN: r71507
2003-09-18 06:07:09 +00:00
Michael Koch 1216e03b30 [multiple changes]
2003-09-18  Dalibor Topic  <robilad@kaffe.org>

	* gnu/java/rmi/rmic/Compile_gcj.java (COMPILER_ARGS): New private
	constant.
	(computeArguments): use computeTypicalArguments.

	* gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Add Compile_kjc.java,
	Compile_jikes.java and RMICException.java.
	* gnu/java/rmi/rmic/Compile_kjc.java: New file.
	* gnu/java/rmi/rmic/Compile_jikes.java: Likewise.
	* gnu/java/rmi/rmic/RMICException.java: Likewise.

	* gnu/java/rmi/rmic/Compiler.java (getDestination): New method.

	* gnu/java/rmi/rmic/CompilerProcess.java: Import java.io.InputStream.
	(computeTypicalArguments): New method.
	(compile): Print compiler output to System.out. Collect compiler
	error output and use it in exception message.

	* gnu/java/rmi/rmic/RMIC.java: Import java.util.Set.
	(destination): Initialize to null.
	(run): Replace file separator with '.' when processing class.
	(processClass): Replace '.' with file separator when compiling
	classes.
	(findClass): Use SystemClassLoader to load class.
	(generateStub): Use full class name for generated stub, that puts
	it in right path.  Replace '.' with file separator when generating
	stub file name. Write just the stub class name without package
	information as class name, and constructor name. Write only
	interface names for interfaces extending java.rmi.Remote as
	implemented.
	(generateSkel): Use full class name for generated skel, that puts
	it in right path.  Replace '.' with file separator when generating
	stub file name. Write just the stub class name without package
	information as class name.

2003-09-18  Michael Koch  <konqueror@gmx.de>

	* Makefile.am (rmi_java_source_files):
	Added gnu/java/rmi/rmic/Compile_kjc.java,
	gnu/java/rmi/rmic/Compile_jikes.java and
	gnu/java/rmi/rmic/RMICException.java
	* Makefile.in: Regenerated.

From-SVN: r71506
2003-09-18 05:51:50 +00:00
Alexandre Oliva feb297fe3b mn10300.md (andsi3, [...]): Make them set_zn.
* config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.

From-SVN: r71499
2003-09-18 02:46:00 +00:00
Richard Henderson 5d4854c85e tree-optimize.c (tree_rest_of_compilation): Save and restore input_location.
* tree-optimize.c (tree_rest_of_compilation): Save and restore
        input_location.

        * semantics.c (expand_body): Don't save/restore input_location.

From-SVN: r71498
2003-09-17 18:59:27 -07:00
Daniel Jacobowitz ce7e7ceb67 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
From-SVN: r71497
2003-09-18 00:52:26 +00:00
GCC Administrator 3b51279d9e Daily bump.
From-SVN: r71493
2003-09-18 00:16:06 +00:00
Mark Mitchell 15dd86befa re PR c++/11991 (ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter)
PR c++/11991
	* g++.dg/rtti/typeid3.C: New test.

From-SVN: r71489
2003-09-17 23:50:04 +00:00
Richard Henderson 7d8405cf15 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
From-SVN: r71485
2003-09-17 16:45:59 -07:00
Rainer Orth dc5f3d7ca9 configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
* configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
	* configure: Regenerate.

From-SVN: r71484
2003-09-17 23:43:24 +00:00
Mark Mitchell 8458320833 re PR c++/12266 (incorrect instantiation of unneeded template during overload resolution)
PR c++/12266
	* cp-tree.h (tsubst_flags_t): Add tf_conv.
	* class.c (standard_conversion): Pass tf_conv to
	instantiate_type.
	(resolve_address_of_overloaded_function): Do not call mark_used
	when just checking conversions.

	PR c++/12266
	* g++.dg/overload/template1.C: New test.

From-SVN: r71483
2003-09-17 23:42:55 +00:00
Mark Mitchell 47aa0df475 re PR debug/12066 (g++ generates stabs for "char *" that gdb cannot read)
PR debug/12066
	* dbxout.c (dbxout_init): Use a langhook to find builtin types.
	* langhooks-def.h (lhd_return_null_tree_v): New function.
	(LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
	(LANG_HOOKS_DECLS): Add it to the intializer.
	* langhooks.c (lhd_return_null_tree_v): New function.
	* langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.


	PR debug/12066
	* cp-lang.c (LANG_HOOKS_BUILTIN_TYPE_DECLS): Define.
	* cp-tree.h (cxx_builtin_type_decls): Declare.
	* decl.c (builtin_type_decls): New variables.
	(cxx_builtin_type_decls): New function.
	(record_builtin_type): Add to builtin_type_decls.

From-SVN: r71478
2003-09-17 20:52:41 +00:00
Benjamin Kosnik 43892f8cea re PR libstdc++/12239 (Compile Failure)
2003-09-17  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/12239
	* configure.host (abi_baseline_pair): Error out on solaris2
	configurations without a minor version number.

From-SVN: r71476
2003-09-17 20:28:07 +00:00
Graydon Hoare 1fe2d5fb09 GdkGraphics2D.java, [...]: New files.
2003-09-17  Graydon Hoare  <graydon@redhat.com>

	* gnu/java/awt/peer/gtk/GdkGraphics2D.java,
	gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
	New files.

From-SVN: r71475
2003-09-17 20:03:02 +00:00
Daniel Jacobowitz eeae7b417a configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): Fix quoting.
./	* configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): Fix
	quoting.
	* configure: Regenerated.
gcc/
	* configure.in: Quote gcc_config_arguments for configargs.h.
	* configure: Regenerated.
	* gccbug.in: Don't shell-expand gcc_config_arguments.

From-SVN: r71474
2003-09-17 20:01:06 +00:00
Richard Henderson 99edd65d5e * semantics.c (expand_or_defer_fn): Inc/dec function_depth.
From-SVN: r71473
2003-09-17 12:26:23 -07:00
Graydon Hoare 3b2d7c47c4 [multiple changes]
2003-09-16  Graydon Hoare  <graydon@redhat.com>

	* java/awt/BufferedImage.java (setData): Support non-component
	sample models.
	(getData): Same.

2003-09-10  Graydon Hoare  <graydon@redhat.com>

	* java/awt/geom/AffineTransform.java(transform): Fix airthmetic bugs.
	* java/awt/geom/Arc2D.java: Approximate arc segments with cubics.

From-SVN: r71472
2003-09-17 19:06:55 +00:00
Rainer Orth eb26c76c64 libffi-dg.exp (libffi_target_compile): Search in srcdir for ffi_mips.h.
* testsuite/lib/libffi-dg.exp (libffi_target_compile): Search in
	srcdir for ffi_mips.h.

From-SVN: r71469
2003-09-17 17:59:15 +00:00
Gabriel Dos Reis 44f8f96af4 re PR c++/11357 ([DR 425] no conversion of build-in binary operator argument attempted)
PR c++/11357
        * c-pretty-print.c (pp_c_floating_constant): Append
        type-annotation to floating constants.

From-SVN: r71468
2003-09-17 17:56:42 +00:00
Rainer Orth a192710ed4 re PR target/10190 ([IRIX] building gcc 3.2.2 on irix 5.3 fails)
* config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
	Define _ABIO32.
	Use it for _MIPS_SIM.
	* config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.

	* config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
	Moved ...
	* config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
	updating comment.
	Fixes PR target/10190.

From-SVN: r71465
2003-09-17 17:40:05 +00:00
Ranjit Mathew bdc225df14 re PR java/9577 (Linker error for legal Java/CNI code if method parameters are reversed)
2003-09-17  Ranjit Mathew  <rmathew@hotmail.com>

	Fixes PR java/9577
	* mangle.c (find_compression_record_match): Skip
	over a "6JArray" (the array template mangled string)
	IDENTIFIER_NODE.
	(mangle_array_type): Correct minor typo.
	(atms): Move definition to the beginning.

From-SVN: r71461
2003-09-17 15:26:59 +00:00
Ranjit Mathew 25a017631e re PR java/9577 (Linker error for legal Java/CNI code if method parameters are reversed)
2003-09-17  Ranjit Mathew  <rmathew@hotmail.com>

	PR java/9577
	* libjava.cni/PR9577.java: New file.
	* libjava.cni/natPR9577.cc: New file.
	* libjava.cni/PR9577.out: New file.

From-SVN: r71460
2003-09-17 15:25:07 +00:00
Mohan Embar a28400bb6c configure.in: Standardized help text case of --enable-hash-synchronization New configure...
* configure.in: Standardized help text case of
	--enable-hash-synchronization
	New configure switch --enable-libgcj-multifile and corresponding
	automake conditional ONESTEP.
	* configure: Rebuilt.
	* Makefile.am: Use automake conditional ONESTEP to determine
	whether classfiles should be compiled individually or all
	at once.
	* Makefile.in: Rebuilt.

From-SVN: r71459
2003-09-17 14:59:28 +00:00
Daniel Jacobowitz 43bc5d6b3d sysv4.h (LIB_LINUX_SPEC): Make -pthread apply to shared libraries.
* config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
	to shared libraries.

From-SVN: r71458
2003-09-17 14:04:52 +00:00
Eric Botcazou 0b75beaaaf re PR rtl-optimization/11646 (ICE in commit_one_edge_insertion with -fnon-call-exceptions -fgcse -O)
PR optimization/11646
	* cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
	EDGE_ABNORMAL flag for EH edges.
	* toplev.c (rest_of_handle_cse): Delete unreachable blocks
	if dead edges were purged.

From-SVN: r71455
2003-09-17 07:11:01 +00:00
Bryce McKinlay 936346797b re PR java/12254 (Regression in java networking code)
* class.c (add_miranda_methods): Ensure super-interfaces are laid
        out. Fix for PR java/12254.

From-SVN: r71454
2003-09-17 06:00:46 +01:00
Thomas Fitzsimmons cc16baeb1b GtkEmbeddedWindowPeer.java (construct): Remove method declaration.
2003-09-16  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java (construct):
	Remove method declaration.
	(create()): Call native create.
	(create(int)): New method.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
	(create): Add window_id parameter.  Call gtk_plug_new with
	window_id parameter.
	(construct): Remove method implementation.

From-SVN: r71453
2003-09-17 04:39:34 +00:00
Mohan Embar 2db99d0587 Makefile.am: (MOSTLYCLEANFILES) Removed libtool objects.
* Makefile.am: (MOSTLYCLEANFILES) Removed libtool objects.
	(mostlyclean-local): New target patterned after clean-local
	which recursively deletes all libtool objects using 'libtool rm'.
	(clean-local): Slightly modified comment to alleviate monotony.
	(distclean-local): New target patterned after clean-local
	which recursively deletes all .d files.
	* Makefile.in: Rebuilt.

From-SVN: r71451
2003-09-17 02:44:43 +00:00
Bernardo Innocenti e2ffd79638 m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
* config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
	* config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
	* config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
	* config/m68k/m68k-none.h (CPP_SPEC): Likewise.

From-SVN: r71450
2003-09-17 02:41:46 +02:00
GCC Administrator 2339fbfdca Daily bump.
From-SVN: r71448
2003-09-17 00:16:08 +00:00
Ian Lance Taylor 1dd61cb4d0 cfgcleanup.c (label_is_jump_target_p): Correct use of table returned by tablejump_p.
* cfgcleanup.c (label_is_jump_target_p): Correct use of table
	returned by tablejump_p.

From-SVN: r71443
2003-09-16 21:14:41 +00:00
Joel Brobecker 1e290ba1e6 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
From-SVN: r71442
2003-09-16 18:32:36 +00:00
Joel Brobecker a080d12ba1 MAINTAINERS (Write After Approval): Add myself to write after approval list.
* MAINTAINERS (Write After Approval): Add myself to write after
       approval list.

From-SVN: r71441
2003-09-16 18:22:42 +00:00
Roger Sayle 0c6d17eca1 re PR bootstrap/12269 (Mainline failed to bootstrap on Linux/ia64)
PR bootstrap/12269
	* simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
	argument to be VOIDmode, taking the mode of the comparison from
	the operands.  Only call simplify_relational_operation if we
	know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
	if comparison has a floating point result.  Ensure that the
	result is always of the specified mode.
	(simplify_replace_rtx): Simplify call to simplify_gen_relational.
	(simplify_unary_operation): Ensure the correct mode and cmp_mode
	are always passed to simplify_gen_relational.  Simplify NOT of
	comparison operator in any mode, not just BImode.
	(simplify_ternary_operation): Correct tests on the return value
	of simplify_relational_operation to use const_true_rtx, not
	const1_rtx.  Abort if it ever returns a non-constant result.

	* cfgloopanal.c (count_strange_loop_iterations): Use the function
	simplify_relational_operation, not simplify_gen_relational, if
	we're only interested in constant comparisons and will ignore
	non-constant results.

From-SVN: r71439
2003-09-16 17:16:25 +00:00
Roger Sayle 37af03cba8 fold-const.c (tree_swap_operands_p): New function to determine the prefered ordering of operands.
* fold-const.c (tree_swap_operands_p): New function to determine
	the prefered ordering of operands.
	(fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
	operands to commutative, comparison or ternary operators.  Replace
	uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
	transformation of A ? B : C into !A ? C : B.

From-SVN: r71438
2003-09-16 17:08:50 +00:00
Kriang Lerdsuwanakij ae8803a8e1 re PR c++/7939 (ICE on function template specialization)
PR c++/7939
	* typeck.c (comptypes): Don't ICE when its first argument is
	error_mark_node.
	(compparms): Reverse the arguments of same_type_p.

	* g++.dg/template/crash11.C: New test.

From-SVN: r71432
2003-09-16 15:27:51 +00:00
Dorit Naishlos 6cd2fc59b0 MAINTAINERS (Write After Approval): Add myself
From-SVN: r71427
2003-09-16 14:17:13 +00:00
Dorit Naishlos 49ed4fd4e1 MAINTAINERS (Write After Approval): Add myself.
From-SVN: r71426
2003-09-16 14:14:21 +00:00
Jakub Jelinek 42df219332 linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
* config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
	* config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
	* config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
	* config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
	* config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
	* config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
	* config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
	* config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.

From-SVN: r71425
2003-09-16 10:04:34 +02:00
Jason Merrill 72954a4f44 c-common.c (handle_warn_unused_result_attribute): New function.
* c-common.c (handle_warn_unused_result_attribute): New function.
	(c_common_attribute_table): Add warn_unused_result.
	(c_expand_expr): Issue warning when result of inlined function
	with warn_unused_result attribute is ignored.
	* calls.c (expand_call): Issue warning when result of function
	with warn_unused_result attribute is ignored.
	* c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
	* expr.c (expr_wfl_stack): Define.
	(expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
	pass const0_rtx as target.  Chain locations into expr_wfl_stack.
	* tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
	bit if inlined function has warn_unused_result attribute.
	* input.h (expr_wfl_stack): Declare.
	* doc/extend.texi: Document warn_unused_result attribute.

	* gcc.dg/attr-warn-unused-result.c: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r71424
2003-09-16 09:58:27 +02:00
Andrew Cagney c9fbef12be Index: include/ChangeLog
2003-09-15  Andrew Cagney  <cagney@redhat.com>

	* floatformat.h (floatformat_to_double): Make input buffer constant.
	(floatformat_from_double, floatformat_is_valid): Ditto.

Index: libiberty/ChangeLog
2003-09-15  Andrew Cagney  <cagney@redhat.com>

	* floatformat.c (get_field): Make "data" constant.
	(floatformat_is_valid, floatformat_to_double): Make "from"
	constant, fix casts.
	(floatformat_from_double): Make "from" constant.

From-SVN: r71422
2003-09-16 01:51:07 +00:00
R. Kelley Cook 602a82f3cf Cleaned up Jan's ChangeLog entries
From-SVN: r71421
2003-09-16 01:06:47 +00:00
GCC Administrator 02dcfdcc6d Daily bump.
From-SVN: r71418
2003-09-16 00:16:06 +00:00
Alexandre Oliva 5a8a65b1c9 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
From-SVN: r71416
2003-09-16 00:13:28 +00:00
Bob Wilson cadafd1ffd xtensa.c (xtensa_multibss_section_type_flags): Add ATTRIBUTE_UNUSED.
* config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
	ATTRIBUTE_UNUSED.
	(call_insn_operand): For PIC, don't allow a direct call to a
	function in a different section than the current one.

From-SVN: r71415
2003-09-15 23:19:21 +00:00
Volker Reichelt fb0317c6ea invoke.texi (Warning Options): Add missing hyphen before "Wimport".
2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>

        * doc/invoke.texi (Warning Options): Add missing hyphen before
        "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
        Move "-Wold-style-definition" to the C-only section.
        Fix the ordering of the warning options.

From-SVN: r71414
2003-09-15 23:17:13 +00:00
Zdenek Dvorak d088acea7d gcse.c (remove_reachable_equiv_notes): New.
* gcse.c (remove_reachable_equiv_notes): New.
	(replace_store_insn): Call it.  Update antic list.
	(store_killed_in_insn): Take REG_EQUAL notes into account.
	(build_store_vectors, delete_store): Add parameter to
	replace_store_insn call.

Co-Authored-By: Jeff Law <law@redhat.com>

From-SVN: r71412
2003-09-15 17:07:29 -06:00