aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-01-09configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.Steve Ellcey3-2/+7
* configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*. * configure: Regenerate From-SVN: r75597
2004-01-09re PR c/11234 (-pedantic accepts function pointer <-> void*)Joseph Myers10-17/+152
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-09expr.h (expand_expr): Make it a macro, not a function.Mark Mitchell19-42/+116
* 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-09libjava.exp (bytecompile_file): Log compile command.Andrew Haley2-1/+6
2004-01-09 Andrew Haley <aph@redhat.com> * lib/libjava.exp (bytecompile_file): Log compile command. From-SVN: r75593
2004-01-092004-01-09 Michael Koch <konqueror@gmx.de>Michael Koch2-19/+5
* gnu/java/lang/ArrayHelper.java (equalsArray): Removed. From-SVN: r75592
2004-01-09natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field ↵Andrew Haley2-0/+6
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-09re PR java/12755 (Binary Compatibility: Resolving static methods and classes ↵Andrew Haley10-215/+412
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(call26_operand): Allow in PIC mode.Kazuhiro Inaoka2-1/+2
From-SVN: r75589
2004-01-09Define __m32r__Kazuhiro Inaoka2-1/+6
From-SVN: r75588
2004-01-09re PR target/13380 (An unrecognized insn.)Kazu Hirata2-0/+30
PR target/13380. * gcc.c-torture/compile/20040109-1.c: New. From-SVN: r75587
2004-01-09re PR target/13380 (An unrecognized insn.)Kazu Hirata2-96/+103
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-09m32r.c (m32r_expand_block_move): Call gen_movestrsi_internal with two more ↵Kazu Hirata3-25/+72
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-09final.c (FIRST_INSN_ADDRESS): Remove.Kazu Hirata8-40/+16
* 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-09dwarf2out.c (gen_enumeration_type_die): Return the DIE that we just created.J. Brobecker2-10/+39
* 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-09DocumentName.java, [...]: New files.Michael Koch15-0/+1195
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-09AbstractAction.java, [...]: Reworked imports.Michael Koch26-122/+194
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-09allocator.cc: Demangle typeid(obj).name().Paolo Carlini3-2/+14
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-092004-01-09 Michael Koch <konqueror@gmx.de>Michael Koch7-13/+32
* 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-08re PR rtl-optimization/12441 (Can't spill register bug)Richard Henderson2-29/+16
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-09Makefile.in: Rename configure.in to configure.acKelley Cook4-373/+419
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-09i386.md: Typos in MMX/SSE immediate shifts.Stuart Hastings6-33/+578
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
2004-01-09* gcc.dg/array-quals-1.c: Accept .data.rel.ro.Alan Modra2-1/+5
From-SVN: r75565
2004-01-09Daily bump.GCC Administrator2-2/+2
From-SVN: r75562
2004-01-08* cgraphunit.c (cgraph_decide_inlining): Fix typo.Jan Hubicka2-1/+5
From-SVN: r75560
2004-01-08rs6000.md (cmptf_internal1): Correct branch offset.Geoffrey Keating2-50/+108
* 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
2004-01-08rs6000.c (legitimate_lo_sum_address_p): lo_sum addresses are legitimate on ↵Geoffrey Keating2-27/+28
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
2004-01-08GtkFileDialogPeer.java (nativeSetFile): New name for the former setFile ↵Fernando Nasser4-13/+386
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
2004-01-08* obvious changelog typo fixFrank Ch. Eigler1-1/+1
From-SVN: r75553
2004-01-08(ASM_OUTPUT_ALIGNED_BSS): Actually emit variables in the appropriate bss ↵Kazuhiro Inaoka2-13/+18
section. From-SVN: r75552
2004-01-08run_acats: Treat 'gnatchop' the same way as 'gnatmake'.Eric Botcazou3-4/+30
* 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
2004-01-09linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure target_flags has ↵Alan Modra4-7/+28
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
2004-01-08ffitest.h (allocate_mmap): Cast MAP_FAILED to void *.Rainer Orth2-1/+6
* testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED to void *. From-SVN: r75548
2004-01-08re PR c++/12573 (ICE (segfault) with Boost.Python)Giovanni Bajo2-0/+19
PR c++/12573 * g++.dg/template/dependent-expr4.C: New test. From-SVN: r75547
2004-01-08re PR c++/12573 (ICE (segfault) with Boost.Python)Giovanni Bajo2-0/+10
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
2004-01-08JLayeredPane.java: Revert changes to standard boilerplate, reworked imports.Michael Koch2-40/+44
2004-01-08 Michael Koch <konqueror@gmx.de> * javax/swing/JLayeredPane.java: Revert changes to standard boilerplate, reworked imports. From-SVN: r75543
2004-01-08simplify-rtx.c (simplify_immed_subreg): Fix construction of floating-point ↵Richard Sandiford2-1/+6
constants. * simplify-rtx.c (simplify_immed_subreg): Fix construction of floating-point constants. From-SVN: r75540
2004-01-08dwarf2out.c (subrange_type_die): Add context_die parameter.Joel Brobecker2-5/+14
* 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
2004-01-08dwarf2.h, [...]: Add multiple-include guard.Zack Weinberg9-5/+38
* 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
2004-01-08* gcc.dg/altivec-11.c: New test.Hartmut Penner2-0/+49
From-SVN: r75535
2004-01-08rs6000.c (easy_vector_constant): Accept all vector constant loadable by vsplt*.Hartmut Penner2-8/+47
* gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept all vector constant loadable by vsplt*. (output_vec_const_move): Likewise. From-SVN: r75534
2004-01-08re PR libgcj/13439 (gij VerifyError; works with JDK 1.4)Tom Tromey2-26/+121
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
2004-01-08MakeDefaultMimeTypes.java: Use \n, not backslash-newline.Tom Tromey2-19/+8
* scripts/MakeDefaultMimeTypes.java: Use \n, not backslash-newline. From-SVN: r75532
2004-01-08Container.java (LightweightDispatcher): Implement.Graydon Hoare2-27/+128
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
2004-01-08* g++.dg/abi/vbase10.C: Use -mstructure-size-boundary=8 on ARM.Mark Mitchell2-7/+10
From-SVN: r75529
2004-01-08gcc_update (files_and_dependencies): Remove non-existant files.Kelley Cook2-11/+4
2004-01-07 Kelley Cook <kcook@gcc.gnu.org> * gcc_update (files_and_dependencies): Remove non-existant files. From-SVN: r75528
2004-01-08Daily bump.GCC Administrator2-2/+2
From-SVN: r75525
2004-01-07re PR c/6024 (GCC fails to diagnose mismatch of enum types in ↵Joseph Myers8-9/+62
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
2004-01-07crossconfig.m4: Add LFS, io bits to linux cross config.Benjamin Kosnik6-12246/+4460
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
2004-01-07* approved by rthDave Jones3-2/+7
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
2004-01-072004-01-07 David Jee <djee@redhat.com>David Jee2-2/+13
* 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