1. 24 Oct, 2003 8 commits
    • arm.c (arm_rtx_costs_1, [...]): Adjust costs for comparing a constant with small… · c769a35d
      arm.c (arm_rtx_costs_1, [...]): Adjust costs for comparing a constant with small negative numbers and add...
      
      * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
      comparing a constant with small negative numbers and add costing
      for constants in conjunction with AND.
      (note_invalid_constants): Tidy previous change.
      (thumb_cmp_operand): Tidy.
      (thumb_cmpneg_operand): New function.
      * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
      for size.
      (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
      (PREDICATE_CODES): Add thumb_cmpneg_operand.
      * arm.md (cbranchsi4): Convert to define_expand.  Handle comparison
      with a negative constant.
      (cbranchsi4_insn): Matcher for cbranchsi4.
      (cbranchsi4_scratch): Similar, but a scratch is available for
      handling negative constants.
      (movsi_cbranchsi4): New pattern.
      (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
      and use the TST instruction.
      (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
      (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
      cannot see high regs or memory alternatives.
      (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
      
      From-SVN: r72885
      Richard Earnshaw committed
    • 2003-10-24 Paolo Carlini <pcarlini@suse.de> · c21dbe85
      	* include/bits/locale_facets.tcc
      	(time_get<>::_M_extract_via_format): Deal with case 'C' too,
      	equivalent to 'y'.
      
      From-SVN: r72884
      Paolo Carlini committed
    • arm.c (note_invalid_constants): Try to extract the constant pool value using… · 244b1afb
      arm.c (note_invalid_constants): Try to extract the constant pool value using avoid_constant_pool_reference...
      
      * arm.c (note_invalid_constants): Try to extract the constant
      pool value using avoid_constant_pool_reference; only use
      get_pool_constant if that returns the original reference.
      
      From-SVN: r72883
      Richard Earnshaw committed
    • PR c++/12698, c++/12699, c++/12700, c++/12566 · bb885938
      cp:
      	PR c++/12698, c++/12699, c++/12700, c++/12566
      	* cp-tree.h (THUNK_ALIAS_P, THUNK_ALIAS): New.
      	(debug_class, debug_thunks): New.
      	* class.c (dump_class_hierarchy_1): New break out from ...
      	(dump_class_hierarchy): ... here.
      	(dump_thunk, debug_thunks, debug_class): New.
      	(update_vtable_entry_for_fn): Add ssizetype casts. Correct
      	continued search for primary binfo via virtual.
      	(build_vtbl_initializer): Follow covariant thunk alias.
      	* method.c (make_thunk): Clear DECL_THUNKS of the thunk.
      	(finish_thunk): Look for an alias of the covariant thunk and point
      	to it.
      	(use_thunk): We should never use an alias.
      	* semantics.c (emit_associated_thunks): Do not emit aliases.
      
      	PR c++/12566
      	* cp-tree.h (cp_fname_init): Add TYPE pointer param.
      	* decl.c (cp_fname_init): Add TYPE pointer param. Set it. Don't
      	create an ad-hoc ERROR_MARK.
      	(cp_make_fname_decl): Adjust.
      	* pt.c (tsubst_expr): Adjust.
      testsuite:
      	PR c++/12698, c++/12699, c++/12700, c++/12566
      	* g++.dg/inherit/covariant9.C: New test.
      	* g++.dg/inherit/covariant10.C: New test.
      	* g++.dg/inherit/covariant11.C: New test.
      
      From-SVN: r72882
      Nathan Sidwell committed
    • re PR c++/12624 ([unit-at-a-time] ICE in notice_global_symbol) · 0f334035
      	PR c++/12624
      	* varasm.c (notice_global_symbol): Disqualify global registers.
      
      From-SVN: r72880
      Jan Hubicka committed
    • adadecode.h, [...]: Convert to ISO C90 declarations and definitions. · b4e2d709
      	* adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
      	stringt.h: Convert to ISO C90 declarations and definitions.
      
      From-SVN: r72877
      Nathanael Nerode committed
    • re PR middle-end/11414 (Segementation fault compiling csets.adb) · 1b24cd79
      
      	PR middle-end/11414
      	* loop.c (load_mems): Use redirect_jump to forward jumps from
      	the original loop end label to the new "loop sink" block's label.
      
      From-SVN: r72876
      Roger Sayle committed
    • Daily bump. · 9ab791c0
      From-SVN: r72874
      GCC Administrator committed
  2. 23 Oct, 2003 22 commits
  3. 22 Oct, 2003 10 commits
    • call.c: Fix comment formatting. · 04c06002
      	* call.c: Fix comment formatting.
      	* class.c: Likewise.
      	* cxx-pretty-print.c: Likewise.
      	* init.c: Likewise.
      	* parser.c: Likewise.
      	* pt.c: Likewise.
      	* semantics.c: Likewise.
      	* tree.c: Likewise.
      	* typeck.c: Likewise.
      	* typeck2.c: Likewise.
      
      From-SVN: r72828
      Kazu Hirata committed
    • h8300.c (h8300_output_function_epilogue): Remove. · 3cfa3702
      	* config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
      	(h8300_saveall_function_p): New.
      	(h8300_insert_attributes): Insert the saveall attribute if
      	#pragma saveall is specified.
      	(h8300_attribute_table): Add saveall.
      	(TARGET_ASM_FUNCTION_EPILOGUE): Remove.
      	* doc/extend.texi: Mention the saveall attribute.
      
      From-SVN: r72827
      Kazu Hirata committed
    • obstack.h: Merge the following change from gnulib... · dc70e81d
      include:
      	* obstack.h: Merge the following change from gnulib:
      	2003-10-21  Paul Eggert  <eggert@twinsun.com>
      	* obstack.h (obstack_1grow_fast): Properly parenthesize arg.
      	(obstack_ptr_grow_fast, obstack_int_grow_fast):
      	Don't use lvalue casts, as GCC plans to remove support for them
      	in GCC 3.5.  Reported by Joseph S. Myers.  This bug
      	was also present in the non-GCC version, indicating that this
      	code had always been buggy and had never been widely used.
      	(obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
      	Use the fast variant of each macro, rather than copying the
      	definiens of the fast variant; that way, we'll be more likely to
      	catch future bugs in the fast variants.
      
      gcc:
      	* c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
      	deprecation of casts as lvalues.
      	* fixinc/inclhack.def (obstack_lvalue_cast): New fix.
      	* fixinc/fixincl.x: Regenerate.
      	* fixinc/tests/base/obstack.h: New test.
      
      gcc/testsuite:
      	* gcc.dg/cast-lvalue-1.c: New test.
      
      From-SVN: r72826
      Joseph Myers committed
    • locale_facets.tcc (__int_to_char): Remove the const int parameter. · 3c21d6e0
      2003-10-22  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (__int_to_char): Remove
      	the const int parameter.
      	(_M_insert_int): Update caller.
      	* src/locale-inst.cc (__int_to_char): Update instantiations.
      
      From-SVN: r72825
      Paolo Carlini committed
    • sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW. · 25412599
      	* sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
      
      	* ctrl_c.c (__gnat_int_handler): Remove declaration.
      
      	* decl.c (creat_concat_name):  Const-ify prefix.
      
      	* adaint.c: Include ctype.h if __MINGW32__.
      	(__gnat_readlink): Mark arguments as possibly unused.
      	(__gnat_symlink): Likewise.
      	(__gnat_is_symbolic_link): Likewise.
      	(__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
      	declaration
      	(__gnat_file_time_name): Don't declare struct stat statbuf when
      	not needed.
      	(__gnat_is_absolute_path): Add parenthesis around condition of
      	'if' statement to avoid warning.
      	(__gnat_plist_init): Specify void as parameter.
      	(plist_enter): Likewise.
      	(plist_leave): Likewise.
      	(remove_handle): Make static. Initialize prev.
      
      From-SVN: r72824
      Danny Smith committed
    • re PR target/12676 (m68k.c: LP64 bug) · 218d5a87
      	PR target/12676
      	* config/m68k/m68k.c (output_addsi3): Fix range check to work on
      	LP64 platforms.
      
      From-SVN: r72823
      Andreas Schwab committed
    • dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check presence of DW_AT_inline. · ae0f3477
      
      	* dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check presence of DW_AT_inline.
      	(gen_subprogram_die): Likewise; do not abort instead of emitting DW_AT_not_inline
      
      From-SVN: r72821
      Jan Hubicka committed
    • re PR libgcj/12416 (java.lang.Class.getFields returns duplicate entries.) · eab09cdf
      	PR libgcj/12416:
      	* java/lang/Class.h: Updated.
      	* java/lang/natClass.cc (_getFields): Removed.
      	(getFields): Likewise.
      	(getDeclaredFields): Added `public_only' parameter.
      	* java/lang/Class.java (getFields): Now implemented in java; from
      	Classpath.
      	(getDeclaredFields): Likewise.
      	(getDeclaredFields(boolean)): Declare.
      	(_getFields): Removed.
      	(internalGetFields): New method, from Classpath.
      
      From-SVN: r72818
      Tom Tromey committed
    • re PR libgcj/12416 (java.lang.Class.getFields returns duplicate entries.) · ab3ec830
      	PR libgcj/12416:
      	* libjava.lang/PR12416.out: New file.
      	* libjava.lang/PR12416.java: New file.
      
      From-SVN: r72817
      Tom Tromey committed
    • cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when global info is not ready. · 190f08bd
      
      
      	* cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
      	global info is not ready.
      
      From-SVN: r72816
      Jan Hubicka committed