aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-01-26re PR c++/13663 (gcc segfaults on invalid use of member)Mark Mitchell4-0/+30
PR c++/13663 * semantics.c (finish_for_expr): Check for unresolved overloaded functions. PR c++/13363 * g++.dg/expr/for1.C: New test. From-SVN: r76659
2004-01-26Add changelog entry for the testcase which was forgotten by Fariborz Jahanian.Andrew Pinski1-0/+5
From-SVN: r76657
2004-01-26contrib.texi: Minor cleanup for Paolo Carlini's entry.Jeff Law2-2/+7
* doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add acute accents for Petur Runolfsson's entry. From-SVN: r76655
2004-01-26pdp11.c (TARGET_STRUCT_VALUE_RTX): New.Kazu Hirata3-21/+28
* config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New. (TARGET_RETURN_IN_MEMORY): Likewise. * config/pdp11/pdp11.h (STRUCT_VALUE): Remove. (RETURN_IN_MEMORY): Likewise. From-SVN: r76654
2004-01-26Test case for PR middle-end/13779.Fariborz Jahanian1-0/+34
From-SVN: r76652
2004-01-26rs6000.c, rs6000.md, function.c, expr.c checked in.Fariborz Jahanian1-0/+23
rs6000.c, rs6000.md, function.c, expr.c checked in. All related to -mcpu=G5 compilation mode. From-SVN: r76651
2004-01-26re PR middle-end/13779 ([3.4 only] powerpc64: incorrect initialization of ↵Fariborz Jahanian1-0/+3
'long long' with constant) PR middle-end/13779 split constant correctly into register components of PARALLEL insn. OKed by Roger Sayle. From-SVN: r76649
2004-01-26Do not assign long long argument to memory in prologue if loaded in register.Fariborz Jahanian1-1/+4
OKed by Richard Henderson. From-SVN: r76648
2004-01-26class.c (add_method): Just check processing_template_decl to determine ↵Mark Mitchell9-44/+104
whether or not we are within a... * class.c (add_method): Just check processing_template_decl to determine whether or not we are within a template. * decl2.c (maybe_retrofit_in_chrg): Likewise. * init.c (decl_constant_value): Check the type of the declaration, not TREE_READONLY. * name-lookup.c (maybe_push_to_top_level): Rename to ... (push_to_top_level): ... this. * name-lookup.h (maybe_push_to_top_level): Do not declare it. * pt.c (push_template_decl_real): Reorder condition for speed. (convert_template_argument): Use dependency-checking functions in place of uses_template_parms. (lookup_template_class): Avoid calling uses_template_parms more than once. (uses_template_parms): Reimplement, using dependency-checking functions. (instantiate_class_template): Use push_to_top_level, not maybe_push_to_top_level. (type_unification_real): Simplify. (type_dependent_expression_p): Handle OFFSET_REFs and TEMPLATE_DECLs. (any_dependent_template_arguments_p): Handle multiple levels of template argument. * semantics.c (expand_or_defer_fn): Do not check uses_template_parms for template instantiations. * typeck.c (comptypes): Avoid calling cp_type_quals. From-SVN: r76647
2004-01-26Split slow unaligned load/store into smaller loads and stores.Fariborz Jahanian1-0/+40
OKed by David Edelsohn. From-SVN: r76646
2004-01-26Use adjust_address_nv directly with appropriate mode.Fariborz Jahanian1-7/+8
OKed by David Edelsohn. From-SVN: r76645
2004-01-26xtensa-protos.h: Remove the prototype for xtensa_builtin_saveregs.Kazu Hirata4-41/+49
* config/xtensa/xtensa-protos.h: Remove the prototype for xtensa_builtin_saveregs. * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New. (TARGET_PROMOTE_FUNCTION_RETURN): Likewise. (TARGET_PROMOTE_PROTOTYPES): Likewise. (TARGET_STRUCT_VALUE_RTX): Likewise. (TARGET_RETURN_IN_MEMORY): Likewise. (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise. (xtensa_builtin_saveregs): Make it static. (xtensa_return_in_memory): New. * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove. (PROMOTE_FUNCTION_RETURN): Likewise. (PROMOTE_PROTOTYPES): Likewise. (STRUCT_VALUE): Likewise. (RETURN_IN_MEMORY): Likewise. (EXPAND_BUILTIN_SAVEREGS): Likewise. From-SVN: r76644
2004-01-26arm.c (TARGET_SETUP_INCOMING_VARARGS): New.Kazu Hirata3-23/+33
* config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New. (arm_setup_incoming_varargs): Likewise. * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove. From-SVN: r76643
2004-01-26cris.c (TARGET_SETUP_INCOMING_VARARGS): New.Kazu Hirata3-22/+31
* config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New. (cris_setup_incoming_varargs): Likewise. * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove. From-SVN: r76640
2004-01-2620040124-1.c: Moved test from here...Ian Lance Taylor2-3/+5
* gcc.dg/20040124-1.c: Moved test from here... * gcc.c-torture/compile/20040124-1.c: ...to here. From-SVN: r76639
2004-01-26ns32k.c (TARGET_STRUCT_VALUE_RTX): New.Kazu Hirata3-3/+21
* config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New. (ns32k_struct_value_rtx): Likewise. * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to NS32K_STRUCT_VALUE_REGNUM. From-SVN: r76638
2004-01-26arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.Kazu Hirata3-23/+40
* config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New. (TARGET_PROMOTE_PROTOTYPES): Likewise. (TARGET_STRUCT_VALUE_RTX): Likewise. (arm_struct_value_rtx): Likewise. * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove. (STRUCT_VALUE): Likewise. (STRUCT_VALUE_REGNUM): Likewise. (PROMOTE_PROTOTYPES): Likewise. From-SVN: r76636
2004-01-26ia64-protos.h: Remove the prototype for ia64_setup_incoming_varargs and ↵Kazu Hirata4-58/+81
ia64_return_in_memory. * config/ia64/ia64-protos.h: Remove the prototype for ia64_setup_incoming_varargs and ia64_return_in_memory. * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New. (TARGET_RETURN_IN_MEMORY): Likewise. (TARGET_SETUP_INCOMING_VARARGS): Likewise. (TARGET_STRICT_ARGUMENT_NAMING): Likewise. (ia64_setup_incoming_varargs): Adjust the arguments to meet the requirement of TARGET_SETUP_INCOMING_VARARGS. (ia64_return_in_memory): Make it static. Change the return type to bool from int. Add an argument. (ia64_struct_value_rtx): New. * config/ia64/ia64.h: Remove commented-out definitions of PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and PROMOTE_PROTOTYPES. (RETURN_IN_MEMORY): Remove. (STRUCT_VALUE_REGNUM): Likewise. (STRICT_ARGUMENT_NAMING): Likewise. From-SVN: r76635
2004-01-26[multiple changes]Arnaud Charlet10-783/+1382
2004-01-26 Ed Schonberg <schonberg@gnat.com> * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for one-dimensional array an slice assignments, when component type is controlled. * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional, component type is controlled, and control_actions are in effect, use TSS procedure rather than generating inline code. * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional arrays with controlled components. 2004-01-26 Vincent Celier <celier@gnat.com> * gnatcmd.adb (GNATCmd): Add specification of argument file on the command line for the non VMS case. * gnatlink.adb (Process_Binder_File): When building object file, if GNU linker is used, put all object paths between quotes, to prevent ld error when there are unusual characters (such as '!') in the paths. * Makefile.generic: When there are sources in Ada and the main is in C/C++, invoke gnatmake with -B, instead of -z. * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted from VMS_Conversion. (Process_Argument): New procedure, extracted from VMS_Conversion. Add specification of argument file on the command line. 2004-01-26 Bernard Banner <banner@gnat.com> * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64 2004-01-26 Ed Schonberg <schonberg@gnat.com> * snames.adb: Update copyright notice. Add info on slice assignment for controlled arrays. From-SVN: r76634
2004-01-26GtkFramePeer.java (menuBarHeight): Mark private.Kim Ho3-42/+39
2004-01-26 Kim Ho <kho@redhat.com> * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark private. (setMenuBar): Grab MenuBar height and change insets. (setBounds): Account for MenuBar height. (postInsetsChangedEvent): Ditto. (postSizeAllocateEvent): Remove. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (menubar_resize_cb): Remove (setMenuBarPeer): Remove callback. (getMenuBarHeight): Use size requisition instead of allocation. From-SVN: r76633
2004-01-26basic_string.h (replace(iterator, iterator, const basic_string&)): Remove ↵Paolo Carlini2-10/+15
_GLIBCXX_DEBUG_PEDASSERT. 2004-01-26 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.h (replace(iterator, iterator, const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT. (replace(iterator, iterator, const _CharT*)): Ditto. (replace(iterator, iterator, const _CharT*, size_type)): Add missing _GLIBCXX_DEBUG_PEDASSERT. From-SVN: r76630
2004-01-26re PR target/13666 (deviation from the psABI for small unions)Eric Botcazou2-16/+58
PR target/13666 * config/sparc/sparc.c (function_arg_union_value): New function. (function_arg): Use it to deal with unions. (function_value): Likewise. Define 'regbase' only for ARCH64. Replace a conditional statement by a simpler one. From-SVN: r76628
2004-01-26basic_string.tcc (replace(size_type, size_type, const _CharT*, size_type)): ↵Paolo Carlini4-3/+140
Implement optimized in-place algorithm for non-overlapping ranges. 2004-01-26 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.tcc (replace(size_type, size_type, const _CharT*, size_type)): Implement optimized in-place algorithm for non-overlapping ranges. * testsuite/21_strings/basic_string/replace/char/6.cc: New. * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New. * include/bits/basic_string.tcc (insert(size_type, const _CharT*, size_type)): Tweak slightly. From-SVN: r76625
2004-01-26mips.c (mips16_optimize_gp): Delete.Richard Sandiford2-223/+6
* config/mips/mips.c (mips16_optimize_gp): Delete. (mips_reorg): Don't call it. From-SVN: r76623
2004-01-26sparc-ret.c: Run only in 32-bit mode.Eric Botcazou2-5/+10
* gcc.dg/sparc-ret.c: Run only in 32-bit mode. Don't scan the assembly output if -m64 is passed. From-SVN: r76621
2004-01-26configure.ac: Add m4_pattern_allow(LIBOBJS).Ian Lance Taylor3-5/+21
* configure.ac: Add m4_pattern_allow(LIBOBJS). * configure: Regenerate. From-SVN: r76619
2004-01-26c4x.md (addqi3_noclobber): Move up pecking order.Michael Hayes2-113/+125
* config/c4x/c4x.md (addqi3_noclobber): Move up pecking order. (floatunsqihf2): Remove operand 6. (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other fix patterns. (ldi_conditional, ldf_conditional): Validate operands. From-SVN: r76618
2004-01-26c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.Michael Hayes2-3/+15
* config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove. (HAVE_GAS_HIDDEN): Undefine as interim measure. From-SVN: r76617
2004-01-26re PR c++/13833 (Conversion problem in template function)Mark Mitchell5-0/+47
PR c++/13833 * call.c (build_over_call): Do not convert arguments when processing a template. * pt.c (build_non_dependent_expr): Do not build a NON_DEPENDENT_EXPR for arithmetic constants. PR c++/13833 * g++.dg/template/cond3.C: New test. From-SVN: r76616
2004-01-26c4x.c (c4x_legitimate_address_p): Invalidate direct memory references if ↵Michael Hayes2-3/+10
TARGET_EXPOSE_LDP nonzero. * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct memory references if TARGET_EXPOSE_LDP nonzero. From-SVN: r76611
2004-01-26* config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.Michael Hayes2-1/+16
From-SVN: r76610
2004-01-26Fix last commit.Michael Hayes1-15/+0
From-SVN: r76608
2004-01-26c4x.c (c4x_valid_operands): More aggressively reject invalid operand ↵Michael Hayes2-34/+85
combinations. * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject invalid operand combinations. From-SVN: r76607
2004-01-26Daily bump.GCC Administrator2-2/+2
From-SVN: r76604
2004-01-26c4x.c (c4x_check_legit_addr): Rename to c4x_legitimate_address_p.Michael Hayes4-6/+15
* config/c4x/c4x.c (c4x_check_legit_addr): Rename to c4x_legitimate_address_p. Fix post_modify check. * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust. * config/c4x/c4x.h (c4x_check_legit_addr): Adjust. From-SVN: r76601
2004-01-26pa-protos.h: Remove the prototype for hppa_builtin_saveregs.Kazu Hirata4-29/+62
* config/pa/pa-protos.h: Remove the prototype for hppa_builtin_saveregs. Add a prototype for pa_return_in_memory. * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New. (TARGET_PROMOTE_PROTOTYPES): Likewise. (TARGET_STRUCT_VALUE_RTX): Likewise. (TARGET_RETURN_IN_MEMORY): Likewise. (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise. (pa_struct_value_rtx): Likewise. (pa_return_in_memory): Likewise. * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to PA_STRUCT_VALUE_REGNUM. (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory. (EXPAND_BUILTIN_SAVEREGS): Remove. (PROMOTE_PROTOTYPES): Likewise. (PROMOTE_FUNCTION_RETURN): Likewise. From-SVN: r76600
2004-01-26vax.c (TARGET_PROMOTE_PROTOTYPES): New.Kazu Hirata3-7/+26
* config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New. (TARGET_STRUCT_VALUE_RTX): Likewise. (vax_struct_value_rtx): Likewise. * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to VAX_STRUCT_VALUE_REGNUM. (PROMOTE_PROTOTYPES): Remove. From-SVN: r76599
2004-01-25* config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.Michael Hayes2-1/+11
From-SVN: r76598
2004-01-25mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2, and MIPS64 have HI/LO ↵Chris Demetriou2-3/+20
interlocks. 2003-04-25 Chris Demetriou <cgd@broadcom.com> * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2, and MIPS64 have HI/LO interlocks. Update comment. From-SVN: r76597
2004-01-25monetary_members.cc: Restore locale before rethrowing exception.Andreas Schwab2-1/+18
* config/locale/gnu/monetary_members.cc: Restore locale before rethrowing exception. From-SVN: r76595
2004-01-25re PR c++/13810 (ICE on invalid default templates)Giovanni Bajo2-0/+21
PR c++/13810 * g++.dg/template/ttp7.C: New test. From-SVN: r76594
2004-01-25re PR c++/13810 (ICE on invalid default templates)Giovanni Bajo3-11/+39
PR c++/13810 * parser.c (cp_parser_type_parameter): When cp_parser_id_expression returns a TYPE_DECL. no further lookup is required. * semantics.c (check_template_template_default_arg): A TYPE_DECL is invalid. Rework to give better diagnostics. From-SVN: r76593
2004-01-25basic_string.h (_M_replace_aux, [...]): Define inline here.Paolo Carlini3-33/+29
2004-01-25 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe): Define inline here. * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe): Move inline. * include/bits/basic_string.tcc: Very minor tweaks. From-SVN: r76592
2004-01-25stormy16-protos.h: Remove the prototype for xstormy16_setup_incoming_varargs.Kazu Hirata4-39/+45
* config/stormy16/stormy16-protos.h: Remove the prototype for xstormy16_setup_incoming_varargs. * config/stormy16/stormy16.c (xstormy16_setup_incoming_varargs): Remove. (xstormy16_return_in_memory): New. (TARGET_PROMOTE_FUNCTION_ARGS): Likewise. (TARGET_PROMOTE_FUNCTION_RETURN): Likewise. (TARGET_PROMOTE_PROTOTYPES): Likewise. (TARGET_STRUCT_VALUE_RTX): Likewise. (TARGET_RETURN_IN_MEMORY): Likewise. * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove. (PROMOTE_FUNCTION_RETURN): Likewise (PROMOTE_PROTOTYPES): Likewise (RETURN_IN_MEMORY): Likewise (STRUCT_VALUE): Likewise (SETUP_INCOMING_VARARGS): Likewise From-SVN: r76590
2004-01-25EXCLUDES: Update.Joseph Myers3-3584/+3527
* EXCLUDES: Update. * gcc.pot: Regenerate. From-SVN: r76588
2004-01-25mips.c (mips_offset_within_object_p): New function.Richard Sandiford2-11/+43
* config/mips/mips.c (mips_offset_within_object_p): New function. (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the ABI has 64-bit pointers and the object file only allows 32-bit symbols. From-SVN: r76586
2004-01-25sh.h (PROMOTE_FUNCTION_ARGS): Remove.Kazu Hirata2-7/+5
* config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove. (PROMOTE_FUNCTION_RETURN): Likewise. From-SVN: r76584
2004-01-25mn10300-protos.h: Remove the prototype for mn10300_builtin_saveregs.Kazu Hirata4-24/+39
* config/mn10300/mn10300-protos.h: Remove the prototype for mn10300_builtin_saveregs. * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New. (TARGET_STRUCT_VALUE_RTX): Likewise. (TARGET_RETURN_IN_MEMORY): Likewise. (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise. (mn10300_return_in_memory): Likewise. (mn10300_builtin_saveregs): Make it static. * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove. (RETURN_IN_MEMORY): Likewise. (STRUCT_VALUE): Likewise. (EXPAND_BUILTIN_SAVEREGS): Likewise. From-SVN: r76581
2004-01-25re PR bootstrap/13853 (Bootstrap fails when compiled with gcc 2.8.1 ↵Eric Botcazou2-1/+6
(gnat-3.14p)) PR bootstrap/13853 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0. From-SVN: r76579
2004-01-25TextArea.java: Fix indentation.Thomas Fitzsimmons2-554/+591
2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com> * java/awt/TextArea.java: Fix indentation. Flesh out javadocs. (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0) when peer is null. (setColumns): Remove FIXME -- peer will retrieve number of columns by calling getColumns. (setRows): Likewise for number of rows. (next_text_number): New field. (paramString): Fix param string. (generateName): New method. (getUniqueLong): New method. From-SVN: r76577