1. 17 Jul, 2003 20 commits
  2. 16 Jul, 2003 20 commits
    • mainpage.html: Move building/writing instructions... · 1ef4a5d4
      2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
      
      	* docs/doxygen/mainpage.html:  Move building/writing instructions...
      	* docs/doxygen/guide.html:  ...to here.  New file.
      
      From-SVN: r69485
      Phil Edwards committed
    • prologue / epilogue / warning patches: · fada1961
      2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
      	    Con Bradley <con.bradley@superh.com>
      
      	* sh-protos.h (sh_get_pr_initial_val): Declare.
      	* sh.c (regno_reg_class): Make its elements type enum reg_class.
      	(output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
      	and live_regs_mask arguments.  Changed all callers.
      	(save_schedule_s): New structure.
      	(save_schedule): New typedef.
      	(scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
      	(calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
      	In interrupts handlers, also save registers that are usually
      	partially saved, and make sure there is at least one general purpose
      	register saved if a target register needs saving.
      	Add casts in comparisons to avoid warnings.
      	(sh_media_register_for_return): return -1 for interrupt handlers.
      	(MAX_SAVED_REGS, MAX_TEMPS): New defines.
      	(sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
      	registers used are available.
      	Set RTX_FRAME_RELATED_P where appropriate.
      	Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
      	(sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
      	(initial_elimination_offset): Likewise.
      	* sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
      	(LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
      	(FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
      	(XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
      	(HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
      	and for target registers.
      	(RETURN_IN_MEMORY): Add parentheses to avoid warnings.
      	(regno_reg_class): Make its elements type enum reg_class.
      	(CONSTRAINT_LEN): Don't use isdigit.
      	(FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
      	(FUNCTION_ARG): Add parentheses to avoid warnings.
      	(RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
      	(RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
      	(SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
      	(EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
      	* sh.md (xordi3+1): Remove unused variable regno.
      	(return_media): Check that tr0 is available before using it.
      
      Co-Authored-By: Con Bradley <con.bradley@superh.com>
      
      From-SVN: r69480
      J"orn Rennecke committed
    • c.opt: Document more options. · bae92bf3
      	* c.opt: Document more options.
      cp:
      	* lang-options.h: Remove.
      
      From-SVN: r69477
      Neil Booth committed
    • combine.c (subst): Also handle (subreg (const_double ...)) case if created by a substitution... · cc8c96fd
      
      	* combine.c (subst): Also handle (subreg (const_double ...)) case
      	if created by a substitution, by using the original inner mode.
      
      From-SVN: r69476
      Roger Sayle committed
    • simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons to MODE_FLOAT constants if... · d41ba56f
      
      	* simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
      	to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
      	(simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
      
      From-SVN: r69475
      Roger Sayle committed
    • install.texi (--without-headers): New. · 264d65c1
      2003-07-16  Andrew Pinski <pinskia@physics.uc.edu>
      
      	* doc/install.texi (--without-headers): New.
      
      From-SVN: r69474
      Andrew Pinski committed
    • Partial Fix PR/10129 · 1622229c
      2003-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
      
              Partial Fix PR/10129
              * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
              (machopic_output_function_base_name): New; print the true pic label.
              (machopic_classify_ident): Pic Base is always a defined data.
              * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
              * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
      
      From-SVN: r69472
      Andrew Pinski committed
    • gcse.c (gcse_constant_p): COMPARE of the same registers is a constant if... · db2f435b
      2003-05-02	Andrew Pinski <pinskia@physics.uc.edu>
      
      	* gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
      	if they are not floating point registers.
      
      From-SVN: r69471
      Andrew Pinski committed
    • re PR c/10962 (lookup_field is a linear search on a linked list (can be slow if large struct)) · d07605f5
      2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
      ChangeLog:
              PR c/10962
              * ggc.h: Add header guards.
              * c-decl.c (finish_struct): Sort fields if
              number greater than 15 and there are no
              anonymous structs/unions.
              * c-common.h: Include ggc.h.
              (sorted_fields_type): New struct.
              (field_decl_cmp): New prototype.
              (resort_sorted_fields): New prototype.
              (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
              * c-tree.h: (lang_type): Use pointer to sorted_fields_type
              as s, removing other fields.
              * c-typeck.c (lookup_field): Use s in lang_type.
              These were mostly moved from cp/class.c:
              * c-common.c (field_decl_cmp): New static function.
              (field_decl_cmp): New function.
              (resort_sorted_fields): New function.
      cp/ChangeLog:
              * class.c (field_decl_cmp): Remove.
              (resort_field_decl_cmp): Remove.
              (resort_sorted_fields): Remove.
              (add_fields_to_vec): Rename to ...
              (add_fields_to_record_type): this.
              (finish_struct_1): Change to be using
              sorted_fields_type's fields.
              * cp-tree.h (lang_decl): In lang_decl_u3
              change sorted_fields to be a pointer to
              sorted_fields_type.
              (resort_sorted_fields): Remove prototype.
              * search.c (lookup_field_1): Change to be using
              sorted_fields_type's fields.
      
      From-SVN: r69470
      Andrew Pinski committed
    • re PR target/11008 (improper multiply optimization for pentium4) · 48addf69
      2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR target/11008
              * gcc.dg/i386-pentium4-not-mull.c: New.
      
      From-SVN: r69469
      Andrew Pinski committed
    • darwin.c (machopic_select_section): Use decl_readonly_section to do most of the work. · 3d7964d5
      	* config/darwin.c (machopic_select_section): Use decl_readonly_section
      	to do most of the work.
      
      From-SVN: r69468
      Geoffrey Keating committed
    • MAINTAINERS: Move self from Bug database only accounts to write-after-approval. · e6a8c803
      2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
      
              * MAINTAINERS: Move self from Bug database only accounts
              to write-after-approval.
      
      From-SVN: r69467
      Andrew Pinski committed
    • mmix-protos.h: Convert prototypes to ISO C90. · 4e58524e
      	* config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
      	* config/mmix/mmix.c: Convert functions to ISO C90.
        	(mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
      	formatting.
      	(mmix_get_hard_reg_initial_val): Tweak section head comment.
      
      From-SVN: r69466
      Hans-Peter Nilsson committed
    • howto.html: Update URL for SGI STL docs. · dced0d12
      2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
      
      	* docs/html/ext/howto.html: Update URL for SGI STL docs.
      	* docs/html/faq/index.html: Same.
      	* docs/html/faq/index.txt: Regenerate.
      
      From-SVN: r69463
      Jonathan Wakely committed
    • c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK. · 1e0343dd
      gcc:
      	* c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
      gcc/testsuite:
      	* gcc.dg/asm-names.c (ymain): Make it weak.
      
      From-SVN: r69459
      J"orn Rennecke committed
    • re PR libstdc++/11528 (money_get does not get "$.00") · e50344b9
      2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
      
      	PR libstdc++/11528
      	* include/bits/locale_facets.tcc (money_get::do_get):
      	Strip only _leading_ zeros.
      	* testsuite/22_locale/money_get/get/char/11528.cc: Add.
      	* testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
      
      From-SVN: r69458
      Paolo Carlini committed
    • re PR c++/5421 (friends+templates: ICE: expected identifier_node, have… · 866eb556
      re PR c++/5421 (friends+templates: ICE: expected identifier_node, have template_id_expr in grokfndecl, at cp/decl.c:8835)
      
      	PR c++/5421
      	* decl.c (grokdeclarator): Handle TEMPLATE_ID_EXPR if friend
      	is a member of other class.
      	* friend.c (do_friend): Don't build TEMPLATE_DECL if friend
      	is a specialization of function template.
      
      	* g++.dg/template/friend21.C: New test.
      
      From-SVN: r69457
      Kriang Lerdsuwanakij committed
    • hash_map (class hash_multimap): Remove extra semicolons from __glibcxx_class_requires3 entries. · 94b7906a
      	* include/ext/hash_map (class hash_multimap): Remove extra
      	semicolons from __glibcxx_class_requires3 entries.
      	* include/ext/hash_set (class hash_set): Ditto.
      	(class hash_multiset): Ditto.
      
      From-SVN: r69451
      Gerald Pfeifer committed
    • unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define. · fc4767bb
      	* unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
      	(uw_update_context_1): Use it.
      	* config/rs6000/rs6000.c (insn_after_throw): Remove.
      	(rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
      	in parent frame if _Unwind_* called directly instead of through
      	.plt.
      	(rs6000_emit_eh_toc_restore): Remove.
      	(rs6000_emit_prologue): Update stack pointer before doing any saving
      	if current_function_calls_eh_return.  Generate unwind info for $r2.
      	(rs6000_emit_epilogue): Restore stack pointer after doing all
      	restoring if current_function_calls_eh_return.  Restore $r2.
      	* config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
      	* config/rs6000/rs6000.md (eh_return): Remove call to
      	rs6000_emit_eh_toc_restore.
      	* config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
      	* config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
      
      	* gcc.dg/cleanup-8.c: New test.
      	* gcc.dg/cleanup-9.c: New test.
      
      From-SVN: r69450
      Jakub Jelinek committed