Commit Graph

55515 Commits

Author SHA1 Message Date
Jan Hubicka c8fdcfae25 Fix pasto.
From-SVN: r75650
2004-01-10 20:54:03 +00:00
Jan Hubicka cf7cb67e97 * expr.c (expand_expr_real): More curefully expand union casts.
From-SVN: r75649
2004-01-10 20:50:53 +00:00
Paolo Carlini a8d6534992 lwg-active.html, [...]: Import Revision 28.
2004-01-10  Paolo Carlini  <pcarlini@suse.de>

	* docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
	Import Revision 28.

From-SVN: r75648
2004-01-10 20:09:26 +00:00
Kazu Hirata 0574200c81 m32r.md (flush_icache): Use 1 for unspec_volatile.
* config/m32r/m32r.md (flush_icache): Use 1 for
	unspec_volatile.

From-SVN: r75647
2004-01-10 19:12:54 +00:00
Richard Sandiford 2560344b31 * MAINTAINERS: Add myself as a MIPS maintainer.
From-SVN: r75645
2004-01-10 18:47:04 +00:00
David Edelsohn a2a0019fe4 re PR debug/12860 (stabs register number out of range)
2004-01-10  David Edelsohn  <edelsohn@gnu.org>
            James E Wilson  <wilson@specifixinc.com>

        PR debug/12860
        * dbxout.c (dbxout_symbol): Remove initialization of
        current_sym_code, current_sym_value, and current_sym_addr.
        (dbxout_symbol_location): Same.
        (dbxout_prepare_symbol): Zero current_sym_code,
        current_sym_value, and current_sym_addr.

From-SVN: r75644
2004-01-10 13:34:59 -05:00
Richard Sandiford bb3f5384ba tree.c (get_unwidened): Reorder conditions so that the null pointer check is done first.
* tree.c (get_unwidened): Reorder conditions so that the null pointer
	check is done first.

From-SVN: r75639
2004-01-10 12:02:34 +00:00
Eric Botcazou 7f03f9a39e * gcc.dg/pragma-re-1.c: Use right pointer type.
From-SVN: r75638
2004-01-10 11:25:49 +00:00
Eric Botcazou 21e430b871 * g++.dg/eh/simd-1.c: Ajust line number for dg-error line.
From-SVN: r75637
2004-01-10 11:02:53 +00:00
Paolo Carlini b656faa883 re PR libstdc++/13630 (Wrong type for locale::category)
2004-01-10  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/13630
	* include/bits/locale_classes.h (class locale): Fix category typedef.
	* testsuite/22_locale/locale/13630.cc: Add.

From-SVN: r75635
2004-01-10 10:15:35 +00:00
Eric Christopher fbfb16e2ae toplev.c (rest_of_handle_cfg): Add reg_scan pass if we're running mark_constant_function.
2004-01-09  Eric Christopher  <echristo@redhat.com>

	* toplev.c (rest_of_handle_cfg): Add reg_scan pass
	if we're running mark_constant_function.

From-SVN: r75634
2004-01-10 06:54:02 +00:00
Jeff Bailey cc23f3c700 re PR target/12561 (gcc/config/t-gnu needs updating to work with --with-sysroot)
2004-01-09  Jeff Bailey  <jbailey@nisa.net>

        PR target/12561
        * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.

From-SVN: r75632
2004-01-09 22:40:24 -08:00
Geoffrey Keating 1a7a2c0f0d * gcc.dg/rs6000-ldouble-1.c: New.
From-SVN: r75631
2004-01-10 05:52:56 +00:00
Andrew Ruder b39f186824 re PR libobjc/11904 (Problem in sarray_free() function.)
2004-01-09  Andrew Ruder  <aeruder@ksu.edu>

        PR libobjc/11904
        * sarray.c (sarray_free): Free array->is_copy_of latter.

From-SVN: r75630
2004-01-09 21:47:42 -08:00
Geoffrey Keating f01519dd00 darwin-ldouble.c: Add big comment explaining exactly what is expected as a 'long double'.
* config/rs6000/darwin-ldouble.c: Add big comment explaining
	exactly what is expected as a 'long double'.
	(_xlqadd): When a value to be returned is representable as a
	'double', just return it directly, do not construct it using a union.
	Also, correct final fixup.
	(_xlqmul): Likewise.
	(_xlqdiv): Likewise.
	* real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.

From-SVN: r75629
2004-01-10 05:47:14 +00:00
Andrew Pinski 975421be9e re PR debug/11231 (undefined array size inside struct cause segfault with -g)
2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>

        PR debug/11231
        * dbxout.c (dbxout_type_fields): Return if any item is error_mark_node or the
        type is error_mark_node.

From-SVN: r75628
2004-01-09 21:32:45 -08:00
Geoffrey Keating 7e4bd541a5 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
From-SVN: r75627
2004-01-10 05:11:19 +00:00
Richard Henderson 47069ecbe6 * recog.c (constrain_operands): Validate mem operands.
From-SVN: r75624
2004-01-09 19:14:07 -08:00
Kelley Cook c31d56ed06 configure.in: Rename file to ...
2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.in:  Rename file to ...
	* configure.ac:  ... this.
	* Makefile.in: Update a comment for above change.
	* README: Likewise.
	* config.in: Regenerate.

From-SVN: r75623
2004-01-10 02:17:41 +00:00
Kelley Cook a4b0b8f1b5 gcc_update (files_and_dependencies): Update fastjar/configure.in to fastjar/configure.ac
2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>

	* gcc_update (files_and_dependencies): Update fastjar/configure.in
	to fastjar/configure.ac

From-SVN: r75622
2004-01-10 02:12:41 +00:00
Kelley Cook ce7dcf78d8 configure.in: Rename file to ...
2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.in: Rename file to ...
	* configure.ac: ... this.  Add in AC_PREREQ(2.57)
	* config.h.in: Regenerate.
	* aclocal.m4: Regenerate.
	* Makefile.in: Regenerate.

From-SVN: r75621
2004-01-10 02:09:08 +00:00
Nathanael Nerode c90501d0fd re PR bootstrap/7817 (Link to gcc man page in g++ man page incorrect)
PR bootstrap/7817
	* Make-lang.in: Copy gcc.1 to g++.1 rather than using .so.

From-SVN: r75620
2004-01-10 01:30:39 +00:00
Giovanni Bajo 731bd3ae02 DR 337 PR c++/9256
DR 337
	PR c++/9256
	* g++.dg/other/abstract1.C: New test.

From-SVN: r75619
2004-01-10 01:22:06 +00:00
Giovanni Bajo cfb91b67b8 DR 337 PR c++/9256
DR 337
	PR c++/9256
	* pt.c (tsubst): Substitution must fail if we are attempting to
	create an array with element type that is an abstract class type.
	* decl.c (cp_finish_decl): Strip pointers and array types recursively
	before calling abstract_virtuals_error.

From-SVN: r75618
2004-01-10 01:18:08 +00:00
Giovanni Bajo f88e471576 locale_facets.h: Make a name really dependent.
* include/bits/locale_facets.h: Make a name really dependent. This
	will be needed when Core Issue 224 is implemented.

From-SVN: r75617
2004-01-10 01:10:23 +00:00
GCC Administrator 05f9d7c5fa Daily bump.
From-SVN: r75614
2004-01-10 00:16:08 +00:00
James E Wilson 9813058e84 gcc.c (init_spec): Remove -lunwind from shared case.
2004-01-09   James E Wilson  <wilson@specifixinc.com>

	* gcc.c (init_spec): Remove -lunwind from shared case.
	* conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.

From-SVN: r75611
2004-01-09 23:14:29 +00:00
Graydon Hoare 27c99ffebc JLayeredPane.java: Rewrite to accomodate djee@redhat.com's recent inverse ordering of Container...
2004-01-08  Graydon Hoare  <graydon@redhat.com>

	* javax/swing/JLayeredPane.java: Rewrite to accomodate
	djee@redhat.com's recent inverse ordering of Container elements.

From-SVN: r75608
2004-01-09 22:52:18 +00:00
Alexandre Oliva c404ab029d name-lookup.c (qualified_lookup_using_namespace): Consider strong using directives even if we've already found a binding.
* name-lookup.c (qualified_lookup_using_namespace): Consider
strong using directives even if we've already found a binding.

From-SVN: r75599
2004-01-09 21:30:31 +00:00
Alexandre Oliva bafb62a279 * g++.dg/lookup/strong-using-1.C: New.
From-SVN: r75598
2004-01-09 21:29:13 +00:00
Steve Ellcey b0fd7d2743 configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
* configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
	* configure: Regenerate

From-SVN: r75597
2004-01-09 21:20:53 +00:00
Joseph Myers 3897f229d5 re PR c/11234 (-pedantic accepts function pointer <-> void*)
PR c/11234
	* c-typeck.c (build_c_cast): If pedantic, warn for conversions
	between function and object pointers.
	(digest_init): When comparing a pointer to function type to the
	target type, only apply TREE_TYPE once to the pointer to function
	type.
	* except.c (for_each_eh_label_1): Treat data as a pointer to a
	function pointer rather than casting it to a function pointer.
	(for_each_eh_label): Update caller.
	* recog.h (struct insn_data): Use a struct or union for output.
	* genoutput.c (output_insn_data): Update.
	* final.c (get_insn_template): Update.

testsuite:
	* gcc.dg/func-ptr-conv-1.c: New test.
	* gcc.dg/weak/weak-6.c, gcc.dg/weak/weak-7.c: Update.

From-SVN: r75595
2004-01-09 20:03:58 +00:00
Mark Mitchell 0fab64a344 expr.h (expand_expr): Make it a macro, not a function.
* expr.h (expand_expr): Make it a macro, not a function.
	(expand_expr_real): New function.
	* expr.c (store_expr): Adjust logic for deciding whether or not to
	copy the value returned by expand_expr.
	(expand_expr): Rename to ...
	(expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
	calls to language hooks.
	* c-common.h (c_expand_expr): Adjust prototype.
	* c-common.c (c_expand_expr): Add alt_rtl parameter.
	* langhooks-def.h (lhd_expand_expr): Change prototype.
	* langhooks.c (lhd_expand_expr): Add all_rtl parameter.
	* langhooks.h (lang_hooks): Change type of expand_expr.
	* stmt.c (stmt_status): Add x_last_expr_alt_rtl.
	(last_expr_alt_rtl): Likewise.
	(expand_expr_stmt_value): Set last_expr_alt_rtl.
	(clear_last_expr): Clear it.
	(expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
	(expand_end_bindings): Save and restor last_expr_alt_rtl.
	* tree.def (RTL_EXPR): Give it an additional operand.
	* tree.h (RTL_EXPR_ALT_RTL): New macro.

	* misc.c (gnat_expand_expr): Add alt_rtl parameter.

	* cp-tree.h (cxx_expand_expr): Change prototype.
	* expr.c (cxx_expand_expr): Add alt_rtl parameter.

	* java-tree.h (java_expand_expr): Change prototype.
	* expr.c (java_expand_expr): Add alt_rtl parameter.

From-SVN: r75594
2004-01-09 19:55:13 +00:00
Andrew Haley 2fca049fe8 libjava.exp (bytecompile_file): Log compile command.
2004-01-09  Andrew Haley  <aph@redhat.com>

	* lib/libjava.exp (bytecompile_file): Log compile command.

From-SVN: r75593
2004-01-09 17:27:37 +00:00
Michael Koch e6f8299852 2004-01-09 Michael Koch <konqueror@gmx.de>
* gnu/java/lang/ArrayHelper.java
	(equalsArray): Removed.

From-SVN: r75592
2004-01-09 17:18:29 +00:00
Andrew Haley d55d97f163 natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field before looking at its class.
2004-01-09  Andrew Haley  <aph@redhat.com>

	* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
	a Utf8Const field before looking at its class.

From-SVN: r75591
2004-01-09 17:10:43 +00:00
Andrew Haley 85194ee94a re PR java/12755 (Binary Compatibility: Resolving static methods and classes is not thread safe)
2004-01-09  Andrew Haley  <aph@redhat.com>

	PR java/12755:
	* parse.y (java_fix_constructors):  Set output_class.
	(java_reorder_fields): Likewise.
	(java_layout_classes): Likewise.
	(java_expand_classes): Generate indirect dispatch tables.
	(java_expand_classes): Set output_class.
	(java_finish_classes): Likewise.
	* lang.c (java_init): Turn on always_initialize_class_p if we're
	using indirect dis[atch.
	(java_decl_ok_for_sibcall): Use output_class, not current_class.
	(java_get_callee_fndecl): Use class local atable.
	* jcf-parse.c
	(always_initialize_class_p): Decl moved to java-tree.h.
	(HANDLE_CLASS_INFO): Set output_class.
	(read_class): Likewise.
	(parse_class_file): Call gen_indirect_dispatch_tables.
	(parse_zip_file_entries): Set output_class.
	(java_parse_file): Set output_class.  Don't emit symbol tables.
	* java-tree.h (output_class): New.
	Remove global declarations for otable, atable, and ctable.
	(always_initialize_class_p): moved here from decl.c.
	(DECL_OWNER): New.
	(TYPE_ATABLE_METHODS, TYPE_ATABLE_SYMS_DECL, TYPE_ATABLE_DECL,
	TYPE_OTABLE_METHODS, TYPE_OTABLE_SYMS_DECL, TYPE_OTABLE_DECL,
	TYPE_CTABLE_DECL, TYPE_CATCH_CLASSES): New.
	(struct lang_type): Add otable_methods, otable_decl,
	otable_syms_decl, atable_methods, atable_decl, atable_syms_decl,
	ctable_decl, catch_classes, type_to_runtime_map.
	* expr.c (build_field_ref): Make otable, atable, and ctable class
	local rather than global.
	(build_known_method_ref): Likewise.
	(build_invokeinterface): Likewise.
	(java_expand_expr): Pass runtime type (rather than actual type) to
	expand_start_catch.
	* except.c (prepare_eh_table_type): Create TYPE_TO_RUNTIME_MAP for
	this class.  Look up each class in that map to delete duplicates.
	(expand_end_java_handler): Pass runtime type (rather than actual
	type) to expand_start_catch.
	* decl.c: (always_initialize_class_p): Decl moved to java-tree.h.
	(do_nothing): New.
	(java_init_decl_processing): Rearrange things.  Remove global
	declarations of otable, atable, and ctable.
	(java_init_decl_processing): Make lang_eh_runtime_type do_nothing.
	(java_expand_body): Set output_class.
	* constants.c (build_constant_data_ref): Use output_class, not
	current_class.
	(alloc_name_constant): Likewise.
	* class.c (gen_indirect_dispatch_tables): New.
	(build_class_ref): Generate hard reference to superclass, even if
	using indirect dispatch.
	(build_static_field_ref): Use class local atable.
	(make_class_data): Generate hard reference to superclass, even if
	using indirect dispatch.
	Generate symbolic references to interfaces when using indirect
	dispatch.
	(make_class_data): Emit otable, atable, and ctable.
	Make otable, atable, and ctable class local rather than global.
	(emit_catch_table): Make otable, atable, and ctable class local
	rather than global.

From-SVN: r75590
2004-01-09 17:08:44 +00:00
Kazuhiro Inaoka 900a35c82b (call26_operand): Allow in PIC mode.
From-SVN: r75589
2004-01-09 17:04:47 +00:00
Kazuhiro Inaoka df68f43bb2 Define __m32r__
From-SVN: r75588
2004-01-09 17:03:54 +00:00
Kazu Hirata a9f99e78e4 re PR target/13380 (An unrecognized insn.)
PR target/13380.
	* gcc.c-torture/compile/20040109-1.c: New.

From-SVN: r75587
2004-01-09 15:49:29 +00:00
Kazu Hirata 58ebda9c2a re PR target/13380 (An unrecognized insn.)
PR target/13380.
	* config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
	or (ne:SI (reg:CC 17) (const_int 0)).
	Be specific about modes wherever possible.

From-SVN: r75586
2004-01-09 15:47:03 +00:00
Kazu Hirata 81ad38a60d m32r.c (m32r_expand_block_move): Call gen_movestrsi_internal with two more arguments.
* config/m32r/m32r.c (m32r_expand_block_move): Call
	gen_movestrsi_internal with two more arguments.
	(m32r_output_block_move): Adjust operand numbers.
	Properly update the source and destination pointers.
	* config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
	'r+'.  Change the set detinations to match_operand.

From-SVN: r75585
2004-01-09 15:42:07 +00:00
Kazu Hirata b816f339f4 final.c (FIRST_INSN_ADDRESS): Remove.
* final.c (FIRST_INSN_ADDRESS): Remove.
	(shorten_branches): Don't use FIRST_INSN_ADDRESS.
	* system.h (FIRST_INSN_ADDRESS): Poison.
	* config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
	* config/m32r/m32r-protos.h: Remove the prototype for
	m32r_first_insn_address.
	* config/m32r/m32r.c (m32r_first_insn_address): Remove.
	* config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
	* doc/md.texi (FIRST_INSN_ADDRESS): Likewise.

From-SVN: r75584
2004-01-09 15:33:47 +00:00
J. Brobecker de99511b75 dwarf2out.c (gen_enumeration_type_die): Return the DIE that we just created.
* dwarf2out.c (gen_enumeration_type_die): Return the DIE that
        we just created.
        (is_ada_subrange_type): DIEs for enumeration subtypes should be
        emitted as subrange types too.
        (subrange_type_die): Add handling of enumeration subtypes.

From-SVN: r75582
2004-01-09 14:08:21 +00:00
Michael Koch 41b19a2d9a DocumentName.java, [...]: New files.
2004-01-09  Michael Koch  <konqueror@gmx.de>

	* javax/print/attribute/standard/DocumentName.java,
	javax/print/attribute/standard/JobHoldUntil.java,
	javax/print/attribute/standard/JobMessageFromOperator.java,
	javax/print/attribute/standard/JobName.java,
	javax/print/attribute/standard/JobOriginatingUserName.java,
	javax/print/attribute/standard/OutputDeviceAssigned.java,
	javax/print/attribute/standard/PrinterInfo.java,
	javax/print/attribute/standard/PrinterLocation.java,
	javax/print/attribute/standard/PrinterMakeAndModel.java,
	javax/print/attribute/standard/PrinterMessageFromOperator.java,
	javax/print/attribute/standard/PrinterName.java,
	javax/print/attribute/standard/RequestingUserName.java: New files.
	* Makefile.am (javax_source_files): Added new files.
	* Makefile.in: Regenerated.

From-SVN: r75573
2004-01-09 11:26:42 +00:00
Michael Koch af0088587f AbstractAction.java, [...]: Reworked imports.
2004-01-09  Michael Koch  <konqueror@gmx.de>

	* javax/swing/AbstractAction.java,
	javax/swing/AbstractSet.java,
	javax/swing/Action.java,
	javax/swing/ActionMap.java,
	javax/swing/BoundedRangeModel.java,
	javax/swing/ButtonModel.java,
	javax/swing/CellEditor.java,
	javax/swing/CellRendererPane.java,
	javax/swing/ComboBoxEditor.java,
	javax/swing/DebugGraphics.java,
	javax/swing/DefaultCellEditor.java,
	javax/swing/DefaultCellRenderer.java,
	javax/swing/DefaultComboBoxModel.java,
	javax/swing/DefaultDesktopManager.java,
	javax/swing/DefaultFocusManager.java,
	javax/swing/DefaultListCellRenderer.java,
	javax/swing/Icon.java,
	javax/swing/JButton.java,
	javax/swing/JCheckBoxMenuItem.java,
	javax/swing/JDesktopPane.java,
	javax/swing/JEditorPane.java,
	javax/swing/JMenu.java,
	javax/swing/JPanel.java,
	javax/swing/JPasswordField.java,
	javax/swing/JPopupMenu.java,
	javax/swing/JProgressBar.java: Reworked imports.

From-SVN: r75572
2004-01-09 10:18:47 +00:00
Paolo Carlini 64cb2c4aed allocator.cc: Demangle typeid(obj).name().
2004-01-09  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/performance/allocator.cc: Demangle typeid(obj).name().
	* testsuite/performance/allocator_thread.cc: Likewise.

From-SVN: r75571
2004-01-09 10:09:31 +00:00
Michael Koch bbe4ef8921 2004-01-09 Michael Koch <konqueror@gmx.de>
* java/awt/geom/PathIterator.java
	(WIND_EVEN_ODD): Removed redundant modifiers.
	(WIND_NON_ZERO): Likewise.
	(SEG_MOVETO): Likewise.
	(SEG_LINETO): Likewise.
	(SEG_QUADTO): Likewise.
	(SEG_CUBICTO): Likewise.
	(SEG_CLOSE): Likewise.
	* java/awt/image/SinglePixelPackedSampleModel.java:
	Removed redundant semicolon.
	* java/io/ObjectInputStream.java
	(inputGetObjectStreamClasses): Removed unused variable "ret_val".
	* java/util/logging/Filter.java
	(isLoggable): Removed redundant modifier.
	* java/util/logging/LogManager.java:
	Removed redundant semicolon.
	* java/util/logging/XMLFormatter.java
	(format): Removed unused variable "key".

From-SVN: r75570
2004-01-09 08:58:59 +00:00
Richard Henderson 90e4e4c58d re PR rtl-optimization/12441 (Can't spill register bug)
PR opt/12441
        Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
        * i386.c (aligned_operand): Be prepared for SUBREGed registers.
        (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
        (ix86_address_cost): Be prepared for SUBREGed registers.
        (legitimate_address_p): Accept SUBREGed registers.

From-SVN: r75568
2004-01-08 18:31:40 -08:00
Kelley Cook a6a5e4c91b Makefile.in: Rename configure.in to configure.ac
2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.in: Rename configure.in to configure.ac
	* doc/sourcebuild.texi: Likewise.
	* configure: Regenerate.
	* config.in: Regenerate.

From-SVN: r75567
2004-01-09 01:18:35 +00:00