platform/upstream/gcc.git
20 years agonatClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field before lookin...
Andrew Haley [Fri, 9 Jan 2004 17:10:43 +0000 (17:10 +0000)]
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

20 years agore PR java/12755 (Binary Compatibility: Resolving static methods and classes is not...
Andrew Haley [Fri, 9 Jan 2004 17:08:44 +0000 (17:08 +0000)]
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

20 years ago(call26_operand): Allow in PIC mode.
Kazuhiro Inaoka [Fri, 9 Jan 2004 17:04:47 +0000 (17:04 +0000)]
(call26_operand): Allow in PIC mode.

From-SVN: r75589

20 years agoDefine __m32r__
Kazuhiro Inaoka [Fri, 9 Jan 2004 17:03:54 +0000 (17:03 +0000)]
Define __m32r__

From-SVN: r75588

20 years agore PR target/13380 (An unrecognized insn.)
Kazu Hirata [Fri, 9 Jan 2004 15:49:29 +0000 (15:49 +0000)]
re PR target/13380 (An unrecognized insn.)

PR target/13380.
* gcc.c-torture/compile/20040109-1.c: New.

From-SVN: r75587

20 years agore PR target/13380 (An unrecognized insn.)
Kazu Hirata [Fri, 9 Jan 2004 15:47:03 +0000 (15:47 +0000)]
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

20 years agom32r.c (m32r_expand_block_move): Call gen_movestrsi_internal with two more arguments.
Kazu Hirata [Fri, 9 Jan 2004 15:42:07 +0000 (15:42 +0000)]
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

20 years agofinal.c (FIRST_INSN_ADDRESS): Remove.
Kazu Hirata [Fri, 9 Jan 2004 15:33:47 +0000 (15:33 +0000)]
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

20 years agodwarf2out.c (gen_enumeration_type_die): Return the DIE that we just created.
J. Brobecker [Fri, 9 Jan 2004 14:08:21 +0000 (14:08 +0000)]
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

20 years agoDocumentName.java, [...]: New files.
Michael Koch [Fri, 9 Jan 2004 11:26:42 +0000 (11:26 +0000)]
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

20 years agoAbstractAction.java, [...]: Reworked imports.
Michael Koch [Fri, 9 Jan 2004 10:18:47 +0000 (10:18 +0000)]
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

20 years agoallocator.cc: Demangle typeid(obj).name().
Paolo Carlini [Fri, 9 Jan 2004 10:09:31 +0000 (10:09 +0000)]
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

20 years ago2004-01-09 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 9 Jan 2004 08:58:59 +0000 (08:58 +0000)]
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

20 years agore PR rtl-optimization/12441 (Can't spill register bug)
Richard Henderson [Fri, 9 Jan 2004 02:31:40 +0000 (18:31 -0800)]
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

20 years agoMakefile.in: Rename configure.in to configure.ac
Kelley Cook [Fri, 9 Jan 2004 01:18:35 +0000 (01:18 +0000)]
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

20 years agoi386.md: Typos in MMX/SSE immediate shifts.
Stuart Hastings [Fri, 9 Jan 2004 01:01:50 +0000 (01:01 +0000)]
i386.md: Typos in MMX/SSE immediate shifts.

2004-01-08  Stuart Hastings  <stuart@apple.com>

* config/i386/i386.md: Typos in MMX/SSE immediate shifts.
* testsuite/gcc.dg/20020523-2.c (bail_if_no_sse): Moved cpu-ID code...
testsuite/gcc.dg/i386-cpuid.h (i386_cpuid): ...to here, to share with...
* testsuite/gcc.dg/i386-sse-6.c: ...this new testcase.

From-SVN: r75566

20 years ago* gcc.dg/array-quals-1.c: Accept .data.rel.ro.
Alan Modra [Fri, 9 Jan 2004 00:28:29 +0000 (00:28 +0000)]
* gcc.dg/array-quals-1.c: Accept .data.rel.ro.

From-SVN: r75565

20 years agoDaily bump.
GCC Administrator [Fri, 9 Jan 2004 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r75562

20 years ago* cgraphunit.c (cgraph_decide_inlining): Fix typo.
Jan Hubicka [Thu, 8 Jan 2004 22:57:49 +0000 (23:57 +0100)]
* cgraphunit.c (cgraph_decide_inlining):  Fix typo.

From-SVN: r75560

20 years agors6000.md (cmptf_internal1): Correct branch offset.
Geoffrey Keating [Thu, 8 Jan 2004 22:50:54 +0000 (22:50 +0000)]
rs6000.md (cmptf_internal1): Correct branch offset.

* config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
(UNSPEC_FIX_TRUNC_TF): New constant.
(movtf_internal): Make splitter active only when insn is active.
(extenddftf2): Rewrite to properly load zero into low part.
(extenddftf2_internal): New.
(extendsftf2): Rewrite.
(truncdftf2): Correct length.
(floatditf2): Delete.
(fix_trunc_helper): New.
(fix_trunctfdi2): Use fix_trunc_helper.
(fix_trunctfsi2): Likewise.fix_trunc
(fix_trunctfsi2_internal): New.

From-SVN: r75559

20 years agors6000.c (legitimate_lo_sum_address_p): lo_sum addresses are legitimate on Darwin...
Geoffrey Keating [Thu, 8 Jan 2004 21:51:56 +0000 (21:51 +0000)]
rs6000.c (legitimate_lo_sum_address_p): lo_sum addresses are legitimate on Darwin even when flag_pic.

* config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
addresses are legitimate on Darwin even when flag_pic.
(rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
non-offsettable addresses for loads of TFmode constants.

From-SVN: r75558

20 years agoGtkFileDialogPeer.java (nativeSetFile): New name for the former setFile native method.
Fernando Nasser [Thu, 8 Jan 2004 21:12:25 +0000 (21:12 +0000)]
GtkFileDialogPeer.java (nativeSetFile): New name for the former setFile native method.

        * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
        New name for the former setFile native method.
        (setFile): New method.
        (setDirectory): Implemented.
        (connectSignals): New native method.
        (setFilenameFilter): Improve comment.
        (getGraphics): Comment.
        (gtkHideFileDialog): New method.
        (gtkDisposeFileDialog): New method.
        (gtkSetFilename): New method.
        * java/awt/Dialog.java (show): Block on modal dialogs, but only
        for FileDialog for now.
        (hide): New method.
        (dispose): New method.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
        (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
        deprecated creation functions.  Make dialog modal.  Add it to the
        window group.
        (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
        function.
        (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
        Rename to...
        (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
        name.
        (window_closed): New function.
        (ok_clicked): New function.
        (cancel_clicked): New function.

From-SVN: r75557

20 years ago* obvious changelog typo fix
Frank Ch. Eigler [Thu, 8 Jan 2004 16:42:25 +0000 (16:42 +0000)]
* obvious changelog typo fix

From-SVN: r75553

20 years ago(ASM_OUTPUT_ALIGNED_BSS): Actually emit variables in the appropriate bss section.
Kazuhiro Inaoka [Thu, 8 Jan 2004 16:19:00 +0000 (16:19 +0000)]
(ASM_OUTPUT_ALIGNED_BSS): Actually emit variables in the appropriate bss section.

From-SVN: r75552

20 years agorun_acats: Treat 'gnatchop' the same way as 'gnatmake'.
Eric Botcazou [Thu, 8 Jan 2004 15:19:36 +0000 (16:19 +0100)]
run_acats: Treat 'gnatchop' the same way as 'gnatmake'.

* ada/acats/run_acats: Treat 'gnatchop' the same way
as 'gnatmake'.  Export GCC_DRIVER.
* ada/acats/run_all.sh: Add target_gnatchop.  Use
'host_gnatchop' and 'target_gnatchop' instead of 'gnatshop'.

From-SVN: r75551

20 years agolinux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure target_flags has MASK_POWERPC64...
Alan Modra [Thu, 8 Jan 2004 15:13:23 +0000 (15:13 +0000)]
linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure target_flags has MASK_POWERPC64 when -m64.

* config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
target_flags has MASK_POWERPC64 when -m64.
* config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
to 620, 630, power3, power4 and rs64a entries.
* config/rs6000/rs6000.h (MASK_64BIT): Expand comment.

From-SVN: r75550

20 years agoffitest.h (allocate_mmap): Cast MAP_FAILED to void *.
Rainer Orth [Thu, 8 Jan 2004 12:15:17 +0000 (12:15 +0000)]
ffitest.h (allocate_mmap): Cast MAP_FAILED to void *.

* testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
to void *.

From-SVN: r75548

20 years agore PR c++/12573 (ICE (segfault) with Boost.Python)
Giovanni Bajo [Thu, 8 Jan 2004 11:57:53 +0000 (11:57 +0000)]
re PR c++/12573 (ICE (segfault) with Boost.Python)

PR c++/12573
* g++.dg/template/dependent-expr4.C: New test.

From-SVN: r75547

20 years agore PR c++/12573 (ICE (segfault) with Boost.Python)
Giovanni Bajo [Thu, 8 Jan 2004 11:52:41 +0000 (11:52 +0000)]
re PR c++/12573 (ICE (segfault) with Boost.Python)

PR c++/12573
* pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by
looking into them recursively. They can be there because of the
new __offsetof__ extension.

From-SVN: r75546

20 years agoJLayeredPane.java: Revert changes to standard boilerplate, reworked imports.
Michael Koch [Thu, 8 Jan 2004 09:46:52 +0000 (09:46 +0000)]
JLayeredPane.java: Revert changes to standard boilerplate, reworked imports.

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

* javax/swing/JLayeredPane.java: Revert changes to standard
boilerplate, reworked imports.

From-SVN: r75543

20 years agosimplify-rtx.c (simplify_immed_subreg): Fix construction of floating-point constants.
Richard Sandiford [Thu, 8 Jan 2004 08:21:15 +0000 (08:21 +0000)]
simplify-rtx.c (simplify_immed_subreg): Fix construction of floating-point constants.

* simplify-rtx.c (simplify_immed_subreg): Fix construction of
floating-point constants.

From-SVN: r75540

20 years agodwarf2out.c (subrange_type_die): Add context_die parameter.
Joel Brobecker [Thu, 8 Jan 2004 07:54:13 +0000 (07:54 +0000)]
dwarf2out.c (subrange_type_die): Add context_die parameter.

        * dwarf2out.c (subrange_type_die): Add context_die parameter.
        Create the subrange_type DIE using the given context DIE.
        (modified_type_die): Update call to subrange_type_die.

From-SVN: r75537

20 years agodwarf2.h, [...]: Add multiple-include guard.
Zack Weinberg [Thu, 8 Jan 2004 07:50:46 +0000 (07:50 +0000)]
dwarf2.h, [...]: Add multiple-include guard.

* dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
Add multiple-include guard.
cp:
* parser.c (cp_parser_save_member_function_body): Mark the
definition static.
treelang:
* parse.y (yyerror): Mark the definition static.

From-SVN: r75536

20 years ago* gcc.dg/altivec-11.c: New test.
Hartmut Penner [Thu, 8 Jan 2004 07:27:09 +0000 (07:27 +0000)]
* gcc.dg/altivec-11.c: New test.

From-SVN: r75535

20 years agors6000.c (easy_vector_constant): Accept all vector constant loadable by vsplt*.
Hartmut Penner [Thu, 8 Jan 2004 07:25:56 +0000 (07:25 +0000)]
rs6000.c (easy_vector_constant): Accept all vector constant loadable by vsplt*.

      * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
      all vector constant loadable by vsplt*.
      (output_vec_const_move): Likewise.

From-SVN: r75534

20 years agore PR libgcj/13439 (gij VerifyError; works with JDK 1.4)
Tom Tromey [Thu, 8 Jan 2004 05:27:39 +0000 (05:27 +0000)]
re PR libgcj/13439 (gij VerifyError; works with JDK 1.4)

PR libgcj/13439:
* verify.cc (state::merge): Copy changed locals out of subroutine
in NO_STACK case.
(state::FLAG_CHANGED): New const.
(state::FLAG_UNUSED): Likewise.
(state::local_changed): Removed.  Updated all users.
(state::flags): New field.
(state::merge): Added jsr_semantics argument, more logic.
(push_jump_merge): Added jsr_semantics argument.
(handle_jsr_insn): Set jsr_semantics on push_jump_merge when
merging through the jsr instruction.

From-SVN: r75533

20 years agoMakeDefaultMimeTypes.java: Use \n, not backslash-newline.
Tom Tromey [Thu, 8 Jan 2004 05:20:31 +0000 (05:20 +0000)]
MakeDefaultMimeTypes.java: Use \n, not backslash-newline.

* scripts/MakeDefaultMimeTypes.java: Use \n, not
backslash-newline.

From-SVN: r75532

20 years agoContainer.java (LightweightDispatcher): Implement.
Graydon Hoare [Thu, 8 Jan 2004 03:52:52 +0000 (03:52 +0000)]
Container.java (LightweightDispatcher): Implement.

2004-01-07  Graydon Hoare  <graydon@redhat.com>

* java/awt/Container.java (LightweightDispatcher): Implement.
(visitChild): Reuse graphics object.
(dispatchEventImpl): Optionally dispatch to lightweight.
(addNotifyContainerChildren): Build LightweightDispatcher.

From-SVN: r75531

20 years ago* g++.dg/abi/vbase10.C: Use -mstructure-size-boundary=8 on ARM.
Mark Mitchell [Thu, 8 Jan 2004 03:32:11 +0000 (03:32 +0000)]
* g++.dg/abi/vbase10.C: Use -mstructure-size-boundary=8 on ARM.

From-SVN: r75529

20 years agogcc_update (files_and_dependencies): Remove non-existant files.
Kelley Cook [Thu, 8 Jan 2004 00:55:02 +0000 (00:55 +0000)]
gcc_update (files_and_dependencies): Remove non-existant files.

2004-01-07  Kelley Cook  <kcook@gcc.gnu.org>

* gcc_update (files_and_dependencies): Remove non-existant files.

From-SVN: r75528

20 years agoDaily bump.
GCC Administrator [Thu, 8 Jan 2004 00:16:10 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r75525

20 years agore PR c/6024 (GCC fails to diagnose mismatch of enum types in prototype/function)
Joseph Myers [Wed, 7 Jan 2004 22:24:44 +0000 (22:24 +0000)]
re PR c/6024 (GCC fails to diagnose mismatch of enum types in prototype/function)

PR c/6024
* c-typeck.c (comptypes): Only treat enumerated types in the same
translation unit as compatible with each other when they are the
same type.
* doc/extend.texi: Update.

f:
* com.h (ffecom_gfrt_basictype): Correct return type.

testsuite:
* gcc.dg/enum-compat-1.c: New test.
* gcc.c-torture/execute/builtin-types-compatible-p.c: Update.

From-SVN: r75521

20 years agocrossconfig.m4: Add LFS, io bits to linux cross config.
Benjamin Kosnik [Wed, 7 Jan 2004 22:17:01 +0000 (22:17 +0000)]
crossconfig.m4: Add LFS, io bits to linux cross config.

2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>

* crossconfig.m4: Add LFS, io bits to linux cross config.
* acconfig.h: Remove obsolete bits, reorder.
* config.h.in: Regenerate.
* aclocal.m4: Same.
* configure: Same.

From-SVN: r75520

20 years ago* approved by rth
Dave Jones [Wed, 7 Jan 2004 21:47:35 +0000 (21:47 +0000)]
* approved by rth

2004-01-07  Dave Jones <davej@redhat.com>

* malloc.c (GC_generic_malloc): Correct initialization typo.
* mallocx.c (GC_generic_malloca_ignore_off_page): Ditto.

From-SVN: r75518

20 years ago2004-01-07 David Jee <djee@redhat.com>
David Jee [Wed, 7 Jan 2004 21:20:01 +0000 (21:20 +0000)]
2004-01-07  David Jee  <djee@redhat.com>

    * java/awt/Container.java
    (update): Clear only the clipped region, instead of clearing the
    entire Container.
    (visitChildren): Visit children in descending order.

From-SVN: r75517

20 years ago* link.c [sgi] (shared_libgnat_default): Change to STATIC.
Rainer Orth [Wed, 7 Jan 2004 20:58:20 +0000 (20:58 +0000)]
* link.c [sgi] (shared_libgnat_default): Change to STATIC.

From-SVN: r75516

20 years ago[multiple changes]
Benjamin Kosnik [Wed, 7 Jan 2004 20:55:06 +0000 (20:55 +0000)]
[multiple changes]

2004-01-07  Gawain Bolton  <gp.bolton@computer.org>

* include/bits/stl_list.h:
* include/bits/list.tc:
* src/list.cc:
        Performance enhancements for destructor, push_front(),
        push_back(), pop_front(), pop_back(), sort()
        Eliminated static_casts where possible.
        Moved code out of header files into new src/list.cc
        implementation file for library where possible.
        Remove inheritance from iterator class and create separate
        classes for non-constant and constant iterators.
* include/bits/stl_tree.h (_Rb_tree class):
* src/tree.cc:
        Only erase contents in destructor.
        Eliminate unnecessary initialization in assignment operator.
        Optimize for the nominal case by not checking whether
        container is empty in clear().
        Re-order test in _M_insert() to improve performance.
        Move initialization of new node's left & right pointers to
        src/tree.cc to where new node's colour is initialized
        and to reduce the amount of inline code.
        Use  _M_leftmost() and _M_end() to improve readability where
        appropriate.
        Create separate classes for non-constant and constant
        iterators to clarify code, avoid extra template parameters and
        casting away constness.

2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>

* src/Makefile.am (sources): Add list.cc, tree.cc.
* src/stl_tree.cc: Move to...
* src/tree.cc: ...here.
* src/list.cc: Add.
* config/linker-map.gnu: Tweaks.
* testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
* testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.

* bits/stl_vector.h: Column wrap comments.

From-SVN: r75515

20 years agore PR c/12165 (Typedef'ed variables ignore typedef's const qualifier)
Joseph Myers [Wed, 7 Jan 2004 19:40:03 +0000 (19:40 +0000)]
re PR c/12165 (Typedef'ed variables ignore typedef's const qualifier)

PR c/12165
* c-decl.c (grokdeclarator): Take type qualifiers of typedefed
array type from the array element type.

testsuite:
* gcc.dg/array-quals-1.c, gcc.dg/c90-idem-qual-3.c,
gcc.dg/c99-idem-qual-3.c: New tests.

From-SVN: r75514

20 years agore PR libgcj/13011 (gij -jar simple.jar generates: Exception during runtime initiali...
Andreas Tobler [Wed, 7 Jan 2004 18:54:00 +0000 (19:54 +0100)]
re PR libgcj/13011 (gij -jar simple.jar  generates: Exception during runtime initialization)

2004-01-07  Andreas Tobler  <a.tobler@schweiz.ch>

PR libgcj/13011:
* libjava.jar/simple.jar: Add a working MANIFEST.MF.

From-SVN: r75513

20 years agoArray.java: Merged documentation with classpath.
Michael Koch [Wed, 7 Jan 2004 18:46:18 +0000 (18:46 +0000)]
Array.java: Merged documentation with classpath.

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

* java/lang/reflect/Array.java: Merged documentation with classpath.

From-SVN: r75512

20 years agojartool.c (make_manifest): Fix off-by-one bug when creating an empty MANIFEST.MF.
Andreas Tobler [Wed, 7 Jan 2004 18:46:04 +0000 (19:46 +0100)]
jartool.c (make_manifest): Fix off-by-one bug when creating an empty MANIFEST.MF.

2004-01-07  Andreas Tobler  <a.tobler@schweiz.ch>

        * jartool.c (make_manifest): Fix off-by-one bug when creating
        an empty MANIFEST.MF.

From-SVN: r75511

20 years ago2004-01-07 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 7 Jan 2004 18:40:08 +0000 (18:40 +0000)]
2004-01-07  Michael Koch  <konqueror@gmx.de>

* java/text/CollationElementIterator.java
(textIndex): Renamed from index.
* java/text/CollationKey.java
(collator): New member.
(CollationKey): New argument for parent collator.
(equals): Check for same collator, source string and key array.
* java/text/RuleBasedCollator.java:
Reformated.
(RuleBasedCollator): Don't re-initialize frenchAccents with default
value.
(getCollationElementIterator): Rewritten.
(getCollationKey): Added new argument to CollationKey constructor.

From-SVN: r75510

20 years ago(re-open) PR libstdc++/12658
Loren J. Rittle [Wed, 7 Jan 2004 17:40:45 +0000 (17:40 +0000)]
(re-open) PR libstdc++/12658

(re-open) PR libstdc++/12658
* src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
(locale::global): Likewise.

From-SVN: r75509

20 years ago9318-in.cc: Remove redundant #include.
Paolo Carlini [Wed, 7 Jan 2004 17:13:51 +0000 (17:13 +0000)]
9318-in.cc: Remove redundant #include.

2004-01-07  Paolo Carlini  <pcarlini@suse.de>

* testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
Remove redundant #include.
* testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
* testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
re-enable normal testing.
* testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
#include.
* testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
More properly, #include <locale>.
* testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
Remove redundant #include.
* testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
redundant DejaGnu directive.
* testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
redundant #include.

From-SVN: r75508

20 years ago2004-01-07 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 7 Jan 2004 16:51:49 +0000 (16:51 +0000)]
2004-01-07  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/DatagramChannelImpl.java
(blocking): Removed.
(DatagramChannelImpl): Call configureBlocking().
(implConfigureBlocking): Dont initialize blocking.
* gnu/java/nio/ServerSocketChannelImpl.java
(blocking): Removed.
(ServerSocketChannelImpl): Call configureBlocking().
(implConfigureBlocking): Dont initialize blocking.
* gnu/java/nio/SocketChannelImpl.java
(blocking): Removed.
(SocketChannelImpl): Call configureBlocking().
(implConfigureBlocking): Dont initialize blocking.
(connect): Use isBlocking().
* java/nio/channels/spi/AbstractSelectableChannel.java
(configureBlocking): Use blockingLock() instead of LOCK.
Set blocking after successfully called implConfigureBlocking().
(register): Use blockingLock() instead of LOCK.

From-SVN: r75507

20 years agoServerSocket.java (isBound): Fixed documentation.
Michael Koch [Wed, 7 Jan 2004 16:37:45 +0000 (16:37 +0000)]
ServerSocket.java (isBound): Fixed documentation.

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

* java/net/ServerSocket.java (isBound): Fixed documentation.

From-SVN: r75506

20 years agoDefaultBoundedRangeModel.java: Documented API.
Sascha Brawer [Wed, 7 Jan 2004 14:42:04 +0000 (15:42 +0100)]
DefaultBoundedRangeModel.java: Documented API.

2004-01-07  Sascha Brawer  <brawer@dandelis.ch>

* javax/swing/DefaultBoundedRangeModel.java: Documented API.
(changeEvent): Create event object on demand.
(DefaultBoundedRangeModel, toString, setValue, setExtent,
setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
fireStateChanged): Re-written.
* javax/swing/event/EventListenerList.java: Reformatted, document
typical usage.
(toString): Implemented.
(getListeners): Re-written.
(remove): Re-written.
(add): Re-written.
(NO_LISTENERS): New singleton field.
(listenerList): Declare as transient; document.
(serialVersionUID): Document.
(getListenerCount(Class)): More efficient implementation,
also accepts null argument.  Improve Javadoc.
(getListenerCount()): Remove unnecessary cast; docfix.
* javax/swing/undo/UndoableEditSupport.java:
Re-format, document.
(UndoableEditSupport): Set realSource field. Improve documentation.
(_postEdit): Iterate over cloned listener vector.
(toString): Don't emit realSource.
(beginUpdate, endUpdate): Support nested updates.
(postEdit): Use compound edit if present.

From-SVN: r75505

20 years ago* gcc.dg/winline-7.c: Don't cast void * to int.
Alan Modra [Wed, 7 Jan 2004 12:40:42 +0000 (12:40 +0000)]
* gcc.dg/winline-7.c: Don't cast void * to int.

From-SVN: r75503

20 years agocheck_performance: Use -pthread.
Benjamin Kosnik [Wed, 7 Jan 2004 05:59:19 +0000 (05:59 +0000)]
check_performance: Use -pthread.

2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
            Stefan Olsson  <stefan@snon.net>

* scripts/check_performance: Use -pthread.
* testsuite/performance/allocator.cc: Tweaks, add list.
* testsuite/performance/allocator_thread.cc: New.

Co-Authored-By: Stefan Olsson <stefan@snon.net>
From-SVN: r75499

20 years agolocale_facets.h: Document public classes and functions.
Jerry Quinn [Wed, 7 Jan 2004 05:22:37 +0000 (05:22 +0000)]
locale_facets.h: Document public classes and functions.

2003-01-06  Jerry Quinn  <jlquinn@optonline.net>

* include/bits/locale_facets.h: Document public classes and
functions.
* include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
Add comment.

From-SVN: r75498

20 years agors6000.c (rs6000_dbx_register_number): New function.
Alan Modra [Wed, 7 Jan 2004 01:21:28 +0000 (01:21 +0000)]
rs6000.c (rs6000_dbx_register_number): New function.

* config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
* config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
* config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
(DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
* config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.

From-SVN: r75497

20 years agomips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
Eric Christopher [Wed, 7 Jan 2004 00:52:32 +0000 (00:52 +0000)]
mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.

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

* config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
(DWARF2_DEBUGGING_INFO): Define.
(PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
* config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
* config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
for irix as.
(SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
* config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
* config/mips/iris5gas.h: Ditto.
(DBX_DEBUGGING_INFO): Remove.
(DWARF2_DEBUGGING_INFO): Ditto.
(MIPS_DEBUGGING_INFO): Ditto.
(PREFERRED_DEBUGGING_TYPE): Ditto.
* config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
(PREFERRED_DEBUGGING_TYPE): Ditto.
(SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
* config/mips/elf64.h: Ditto.

From-SVN: r75496

20 years agoDaily bump.
GCC Administrator [Wed, 7 Jan 2004 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r75493

20 years agoContainer.java (swapComponents): Add forgotten function, required for JLayeredPane...
Graydon Hoare [Wed, 7 Jan 2004 00:11:51 +0000 (00:11 +0000)]
Container.java (swapComponents): Add forgotten function, required for JLayeredPane change.

2004-01-06  Graydon Hoare  <graydon@redhat.com>

* java/awt/Container.java (swapComponents): Add forgotten
function, required for JLayeredPane change.

From-SVN: r75491

20 years agot-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
Geoffrey Keating [Tue, 6 Jan 2004 23:49:39 +0000 (23:49 +0000)]
t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.

* config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
(TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
* config/rs6000/darwin-ldouble.c: New.

From-SVN: r75490

20 years agoemit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for constants.
Geoffrey Keating [Tue, 6 Jan 2004 22:51:00 +0000 (22:51 +0000)]
emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for constants.

* emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
for constants.
(constant_subword): Delete.
* rtl.h (constant_subword): Delete prototype.
(immed_double_const): Is not in varasm.c.
* simplify-rtx.c (simplify_immed_subreg): New.
(simplify_subreg): Use simplify_immed_subreg.

From-SVN: r75487

20 years agomakefile.in (stageprofile_flags_to_pass): use -fprofile-generate.
Jan Hubicka [Tue, 6 Jan 2004 22:49:44 +0000 (23:49 +0100)]
makefile.in (stageprofile_flags_to_pass): use -fprofile-generate.

* makefile.in (stageprofile_flags_to_pass): use -fprofile-generate.
(stagefeedback_flags_to_pass): use -fprofile-use.

From-SVN: r75486

20 years agors6000.md (floatsitf2): Use expand_float rather than trying to generate RTL directly.
Geoffrey Keating [Tue, 6 Jan 2004 21:03:06 +0000 (21:03 +0000)]
rs6000.md (floatsitf2): Use expand_float rather than trying to generate RTL directly.

* config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
than trying to generate RTL directly.
(fix_trunctfsi2): Use expand_fix rather than trying to generate
RTL directly.

From-SVN: r75485

20 years agoCollationElementIterator.java: Reformated.
Michael Koch [Tue, 6 Jan 2004 20:19:31 +0000 (20:19 +0000)]
CollationElementIterator.java: Reformated.

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

* java/text/CollationElementIterator.java: Reformated.
(CollationElementIterator): Changed order of arguments.
* java/text/RuleBasedCollator.java
(RuleBasedCollator): Merged class documentation.
(CollationElement): Added documentation.
(compare): Reformated, renamed arguments.
(equals): Likewise.
(getCollationElementIterator): Likewise.
(getCollationKey): Likewise.

From-SVN: r75484

20 years ago* dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
Geoffrey Keating [Tue, 6 Jan 2004 20:06:12 +0000 (20:06 +0000)]
* dwarf2out.c (add_const_value_attribute): Remove incorrect comment.

From-SVN: r75483

20 years agoxcoff.h (EXTRA_SECTION_FUNCTIONS): Split each function into a separate macro.
David Edelsohn [Tue, 6 Jan 2004 19:49:26 +0000 (19:49 +0000)]
xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each function into a separate macro.

* config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
function into a separate macro.
(read_only_data_section): Add void argument.
(private_data_section): Same.
(read_only_private_data_section): Same.
(toc_section): Same.

From-SVN: r75482

20 years ago* invoke.texi: Remove typo in last change.
Jan Hubicka [Tue, 6 Jan 2004 18:26:12 +0000 (19:26 +0100)]
* invoke.texi:  Remove typo in last change.

From-SVN: r75479

20 years agoJLayeredPane.java: Fix semantics, add javadocs.
Graydon Hoare [Tue, 6 Jan 2004 18:02:23 +0000 (18:02 +0000)]
JLayeredPane.java: Fix semantics, add javadocs.

2004-01-06  Graydon Hoare  <graydon@redhat.com>

* javax/swing/JLayeredPane.java: Fix semantics, add javadocs.

From-SVN: r75478

20 years agomissing changelog entry
Graydon Hoare [Tue, 6 Jan 2004 17:54:08 +0000 (17:54 +0000)]
missing changelog entry

From-SVN: r75477

20 years agore PR target/10301 (Side effects of architecture specific flags are not documented.)
Jan Hubicka [Tue, 6 Jan 2004 17:31:10 +0000 (18:31 +0100)]
re PR target/10301 (Side effects of architecture specific flags are not documented.)

PR target/10301
* config.gcc: Accept opteron and athlon-64 as variants
of k8.
* i386.c (override_options): Likewise.
* invoke.texi (i386 -mtune): Expand documentation.

From-SVN: r75476

20 years agoalias.c: Fix comment typos.
Kazu Hirata [Tue, 6 Jan 2004 16:51:21 +0000 (16:51 +0000)]
alias.c: Fix comment typos.

* alias.c: Fix comment typos.
* builtins.c: Likewise.
* cfg.c: Likewise.
* df.c: Likewise.
* dominance.c: Likewise.
* dwarf2out.c: Likewise.
* emit-rtl.c: Likewise.
* expr.c: Likewise.
* final.c: Likewise.
* fold-const.c: Likewise.
* gcse.c: Likewise.
* genattrtab.c: Likewise.
* genrecog.c: Likewise.
* gensupport.c: Likewise.
* ggc-zone.c: Likewise.
* integrate.c: Likewise.
* local-alloc.c: Likewise.
* loop.c: Likewise.
* recog.c: Likewise.
* regmove.c: Likewise.
* reg-stack.c: Likewise.
* reorg.c: Likewise.
* rtlanal.c: Likewise.
* rtl.h: Likewise.
* sched-ebb.c: Likewise.
* simplify-rtx.c: Likewise.
* toplev.c: Likewise.
* varasm.c: Likewise.

From-SVN: r75475

20 years agoinstall.texi: Fix typos.
Kazu Hirata [Tue, 6 Jan 2004 16:21:17 +0000 (16:21 +0000)]
install.texi: Fix typos.

* doc/install.texi: Fix typos.
* doc/invoke.texi: Likewise.
* doc/md.texi: Likewise.

From-SVN: r75474

20 years agoConnection.java: Reformated copyright.
Michael Koch [Tue, 6 Jan 2004 15:00:11 +0000 (15:00 +0000)]
Connection.java: Reformated copyright.

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

* gnu/java/net/protocol/file/Connection.java:
Reformated copyright.
(hdrHash): Removed.
(hdrVec): Removed.
(gotHeaders): Removed.
(getHeaderField): Removed.
(getHeaderField): Removed.
(getHeaderFieldKey): Removed.
(getKey): Removed.
(getField): Removed.
(getHeaders): Removed.

From-SVN: r75473

20 years agoDateTimeAtCompleted.java, [...]: New files.
Michael Koch [Tue, 6 Jan 2004 13:48:52 +0000 (13:48 +0000)]
DateTimeAtCompleted.java, [...]: New files.

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

* javax/print/attribute/standard/DateTimeAtCompleted.java,
javax/print/attribute/standard/DateTimeAtCreation.java,
javax/print/attribute/standard/DateTimeAtProcessing.java,
javax/print/attribute/standard/JobImpressionsCompleted.java,
javax/print/attribute/standard/JobKOctets.java,
javax/print/attribute/standard/JobKOctetsProcessed.java,
javax/print/attribute/standard/JobMediaSheetsCompleted.java,
javax/print/attribute/standard/JobPrioritySupported.java: New files.
* Makefile.am (javax_source_files): Added new files.
* Makefile.in: Regenerated.

From-SVN: r75471

20 years ago1.cc: Remove redundant #includes.
Paolo Carlini [Tue, 6 Jan 2004 12:20:42 +0000 (12:20 +0000)]
1.cc: Remove redundant #includes.

2004-01-06  Paolo Carlini  <pcarlini@suse.de>

* testsuite/27_io/basic_istream/extractors_other/char/1.cc:
Remove redundant #includes.
* testsuite/27_io/basic_istream/extractors_other/char/2.cc:
Likewise.
* testsuite/27_io/basic_istream/extractors_other/char/3.cc:
Likewise.
* testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
* testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
* testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
* testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
Likewise.
* testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
Likewise.
* testsuite/27_io/basic_istream/readsome/char/8258.cc:
Likewise.
* testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
Likewise.
* testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
Likewise.
* testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
* testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
* testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.

From-SVN: r75469

20 years agoFix defintion of TRAMPOLINE_SIZE
Kazuhiro Inaoka [Tue, 6 Jan 2004 11:00:28 +0000 (11:00 +0000)]
Fix defintion of TRAMPOLINE_SIZE

From-SVN: r75468

20 years agoi386-sse-5.c: New test
Jan Hubicka [Tue, 6 Jan 2004 10:49:58 +0000 (11:49 +0100)]
i386-sse-5.c: New test

* gcc.dg/i386-sse-5.c: New test
* g++.dg/eh/simd-1.c: Add -w argument for i386.

* i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
(function_arg_advance):  Do not pass aggregates in SSE; deal handling
of MMX_REGPARM.
(function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
add MMX_REGPARM.
* i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
(SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
(MMX_REGPARM_MAX): Similarly for -mmmx.

From-SVN: r75467

20 years ago2004-01-06 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 6 Jan 2004 08:54:20 +0000 (08:54 +0000)]
2004-01-06  Michael Koch  <konqueror@gmx.de>

* java/net/URLConnection.java
(contentHandler): Removed.
(locale): Removed.
(getHeaderFields): Return an empty map instead of null.
(getContent): Connect if needed, renamed "cType" to "type" and
"contentHandler" to "ch" and made it a local variable.
(getPermission): Don't use package in class name.
(setDefaultRequestProperty): Fixed typo in documentation.
(initializeDateFormats): Made locale a local variable.

From-SVN: r75466

20 years ago2004-01-06 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 6 Jan 2004 08:34:58 +0000 (08:34 +0000)]
2004-01-06  Michael Koch  <konqueror@gmx.de>

* java/lang/Package.java
(getPackage): Get the current class loader directly.
* java/lang/SecurityManager.java
(currentLoadedClass): Dont iterate over class contexts.
(classLoaderDepth): Don't check class loaders if everything is allowed.

From-SVN: r75465

20 years agolinux.h: Fix comment formatting.
Kazu Hirata [Tue, 6 Jan 2004 04:21:52 +0000 (04:21 +0000)]
linux.h: Fix comment formatting.

* config/sh/linux.h: Fix comment formatting.
* config/sh/netbsd-elf.h: Likewise.
* config/sh/sh.c: Likewise.
* config/sh/sh.h: Likewise.
* config/sh/vxworks.h: Likewise.

From-SVN: r75462

20 years agogcc_update (files_generated): Revert 2003-12-18 change.
Kelley Cook [Tue, 6 Jan 2004 02:39:27 +0000 (02:39 +0000)]
gcc_update (files_generated): Revert 2003-12-18 change.

contrib/
2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
* gcc_update (files_generated): Revert 2003-12-18 change.

gcc/ada/
2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>

* Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
Update comment and copyright date.
* stamp-xgnatug: Delete.

From-SVN: r75461

20 years agore PR c++/13057 (regparm attribute not applied to destructor)
Mark Mitchell [Tue, 6 Jan 2004 02:26:13 +0000 (02:26 +0000)]
re PR c++/13057 (regparm attribute not applied to destructor)

PR c++/13057
* class.c (build_clone): Copy type attributes from the original
function to the clone.

From-SVN: r75460

20 years agore PR c++/12815 (Code compiled with optimization behaves unexpectedly)
Mark Mitchell [Tue, 6 Jan 2004 00:52:36 +0000 (00:52 +0000)]
re PR c++/12815 (Code compiled with optimization behaves unexpectedly)

PR c++/12815
* class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
references as constant.

From-SVN: r75458

20 years agore PR c++/12815 (Code compiled with optimization behaves unexpectedly)
Mark Mitchell [Tue, 6 Jan 2004 00:52:10 +0000 (00:52 +0000)]
re PR c++/12815 (Code compiled with optimization behaves unexpectedly)

PR c++/12816
* class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
references as constant.

PR c++/12815
* g++.dg/rtti/typeid4.C: New test.

From-SVN: r75457

20 years agoDaily bump.
GCC Administrator [Tue, 6 Jan 2004 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r75453

20 years agosystem.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
Kazu Hirata [Mon, 5 Jan 2004 22:08:26 +0000 (22:08 +0000)]
system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.

* system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
* toplev.c (output_file_directive): Don't use
ASM_OUTPUT_MAIN_SOURCE_FILENAME.

From-SVN: r75448

20 years ago2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
Thomas Fitzsimmons [Mon, 5 Jan 2004 21:41:21 +0000 (21:41 +0000)]
2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>

* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(pre_event_handler): Set all insets to 0 when a Configure event
is received for a GtkPlug.
* gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
Make handle long, not int.
(EmbeddedWindow()): New constructor.
(EmbeddedWindow(int)): Rename window_id to handle.  Make handle
long, not int.
(setHandle): New method.
(getHandle): Return long, not int.
* gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
declaration.
* gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
(create(long)): Take long parameter, not int.  Cast gtk_plug_new
argument to GdkNativeWindow.
(construct): New method.
(embed): New method.

From-SVN: r75447

20 years ago2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
Thomas Fitzsimmons [Mon, 5 Jan 2004 21:35:33 +0000 (21:35 +0000)]
2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
(create(int, int)): New method.
(create): Call new create method.
(gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
methods.
(childResized): Remove native implementation.  Implement in
Java.
(getHScrollbarHeight, getVScrollbarWidth): Call
gtk_widget_size_request to get scrollbar dimensions.
* java/awt/ScrollPane.java (getViewportSize): Reimplement.  Only
call getVScrollbarWidth and getHScrollbarHeight when vertical
and horizontal scrollbars respectively are needed.
(doLayout): Enlarge child if it is smaller than the viewport.

From-SVN: r75446

20 years ago* gcc.dg/compat/sdata-section.h: Declare 'abort'.
Eric Botcazou [Mon, 5 Jan 2004 21:29:39 +0000 (22:29 +0100)]
* gcc.dg/compat/sdata-section.h: Declare 'abort'.

From-SVN: r75445

20 years agoDialog.java (constructor): Accept null title as per spec.
Fernando Nasser [Mon, 5 Jan 2004 21:23:12 +0000 (21:23 +0000)]
Dialog.java (constructor): Accept null title as per spec.

        * java/awt/Dialog.java (constructor): Accept null title as per spec.
        * java/awt/FileDialog.java (constructor): Throw exception on invalid
        argument as per spec.

From-SVN: r75444

20 years agoChoice.java (add): Leave posting of ItemEvents to peer.
Fernando Nasser [Mon, 5 Jan 2004 21:18:06 +0000 (21:18 +0000)]
Choice.java (add): Leave posting of ItemEvents to peer.

2004-01-05  Fernando Nasser  <fnasser@redhat.com>

        * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
        (insert): Ditto.
        (remove): Ditto.  Also, Check for valid argument.
        (removeAll): Use peer interface method.
        * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
        native add function.
        (nativeRemove): New name for native remove function.
        (getHistory): New native function.
        (constructor): Generate ItemEvent.
        (add): Ditto, if selection is changed.
        (remove): Ditto, ditto.
        (removeAll): Add implementation.
        (handleEvent): Remove.  Dead code.
        (choicePostItemEvent): Add comment.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
        (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
        (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
        (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name.  Add
        comments and fix condition to change selection.
        (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
        (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name.  Add
        remove all capability.
        (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
        (item_activate): Add cast to remove compiler warning.

From-SVN: r75443

20 years ago2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
Thomas Fitzsimmons [Mon, 5 Jan 2004 21:13:46 +0000 (21:13 +0000)]
2004-01-05  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(getPreferredSize): Call preferredSize.
(preferredSize): Call gtkWidgetGetPreferredDimensions.
(getMinimumSize): Call minimumSize.
(minimumSize): Call gtkWidgetGetPreferredDimensions.
(gtkWidgetGetDimensions): Return the peer widget's current size
request.
(gtkWidgetGetPreferredDimensions): Return the peer widget's
natural size request.

From-SVN: r75442

20 years agore PR c++/12132 (spurious "int ._0" (or "int $_0) in error message)
Mark Mitchell [Mon, 5 Jan 2004 21:07:22 +0000 (21:07 +0000)]
re PR c++/12132 (spurious "int ._0" (or "int $_0) in error message)

PR c++/12132
* parser.c (cp_parser_explicit_instantiation): Improve error
recovery.
(cp_parser_require): Improve indication of the error location.

PR c++/12132
* g++.dg/template/error11.C: New test.

From-SVN: r75441

20 years agore PR c++/13451 (Wrong error message with qualified names for member declarations)
Mark Mitchell [Mon, 5 Jan 2004 19:54:35 +0000 (19:54 +0000)]
re PR c++/13451 (Wrong error message with qualified names for member declarations)

PR c++/13451
* parser.c (cp_parser_class_head): Reorder logic to check for
invalid qualification.

PR c++/13451
* g++.dg/template/class2.C: New test.

From-SVN: r75440

20 years agoggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
Daniel Berlin [Mon, 5 Jan 2004 19:23:50 +0000 (19:23 +0000)]
ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS

2004-01-05  Daniel Berlin  <dberlin@dberlin.org>

* ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
(USING_MMAP): We don't support non-mmap.
(struct alloc_chunk): Steal 1 bit from typecode, use it to mark
large objects.
(struct page_entry): Remove bytes_free.
(struct page_table_chain): Remove.
(struct globals): Remove page_table member.
(loookup_page_table_entry): Function deleted.
(set_page_table_entry): Ditto.
(ggc_allocated_p): No longer need page table lookups.
(ggc_marked_p): Ditto.
(alloc_small_page): Don't care about bytes_free anymore.
(alloc_large_page): Round up size.
(ggc_alloc_zone_1): Mark large objects as such, and calculate
their size the new way.
Remove page table lookups and setting.
(ggc_get_size): Calculate large object size the new way.
(sweep_pages): Redo to account for fact that we no longer have
bytes_free.
(ggc_collect): No longer need to reincrement bytes_free.
(ggc_pch_alloc_object): Handle new large objects properly.
(ggc_pch_read): Put PCH stuff into it's own uncollected zone.

From-SVN: r75438