1. 18 Jul, 2003 8 commits
    • Makefile.in, [...]: Remove handling of lang-options.h and options_.h. · b2e608ca
      	* Makefile.in, configure, configure.in: Remove handling of
      	lang-options.h and options_.h.
      	* toplev.c (struct lang_opt, documented_lang_options): Remove.
      	(display_help): Don't use documented_lang_options.
      ada:
      	* lang-options.h: Remove.
      	* lang.opt: Add help text.
      java:
      	* lang-options.h: Remove.
      	* lang.opt: Add help text.
      
      From-SVN: r69544
      Neil Booth committed
    • c-decl.c (pushdecl_function_level): Make static, return nothing. · 9cd51ef6
      	* c-decl.c (pushdecl_function_level): Make static, return nothing.
      	(kept_level_p): Fold into poplevel.
      	(undeclared_variable): Moved here from c-typeck.c.  Export.
      	* c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
      	(undeclared_variable): Prototype here.  Don't prototype
      	kept_level_p nor pushdecl_function_level.
      	* c-parse.in: Change first argument to poplevel from
      	"kept_level_p()" to "KEEP_MAYBE".
      	* c-typeck.c (undeclared_variable): Moved to c-decl.c.
      
      From-SVN: r69540
      Zack Weinberg committed
    • simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap commutative… · cf6bcbd0
      simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap commutative operands instead of modifying the...
      
      
      	* simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
      	commutative operands instead of modifying the RTL in-place.
      
      From-SVN: r69539
      Roger Sayle committed
    • re PR rtl-optimization/11557 (constant folding) · 2b187c63
      	PR optimization/11557
      	* calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
      	unless we know which function is being called.
      
      	PR optimization/11557
      	* gcc.dg/20030717-1.c: New test.
      
      From-SVN: r69538
      Mark Mitchell committed
    • linker-map.gnu: Add __moneypunct_cache, __timepunct_cache. · fea4065d
      
      2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
      	* config/locale/generic/messages_members.h: Tweaks.
      	* config/locale/generic/monetary_members.cc
      	(moneypunct::_M_initialize_moneypunct): Use cache.
      	(moneypunct::~moneypunct): Delete cache.
      	* config/locale/generic/time_members.cc:
      	(__timepunct::_M_initialize_timepunct): Use cache.
      	* config/locale/generic/time_members.h:
      	(__timepunct::~__timepunct): Delete cache.
      	(__timepunct::__timepunct): Set cache.
      	* config/locale/gnu/messages_members.h: Tweaks.
      	* config/locale/gnu/monetary_members.cc:
      	(moneypunct::_M_initialize_moneypunct): Use cache.
      	(moneypunct::~moneypunct): Delete cache.
      	* config/locale/gnu/time_members.cc:
      	(__timepunct::_M_initialize_timepunct): Use cache.
      	* config/locale/gnu/time_members.h:
      	(__timepunct::~__timepunct): Delete cache.
      	(__timepunct::__timepunct): Set cache.
      	* include/bits/locale_facets.h (__timepunct_cache): New.
      	(__moneypunct_cache): New.
      	* include/bits/locale_facets.tcc: Tweak.
      	* src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
      	* src/locale-inst.cc: Instantiate caches.
      	* src/globals.cc: Add "C" caches.
      	* src/localename.cc: Use external "C" caches.
      
      From-SVN: r69535
      Benjamin Kosnik committed
    • cse.c (fold_rtx): Use swap_commutative_operands_p to determine whether to… · c715abdd
      cse.c (fold_rtx): Use swap_commutative_operands_p to determine whether to reorder the operands of...
      
      
      	* cse.c (fold_rtx): Use swap_commutative_operands_p to determine
      	whether to reorder the operands of a commutative binary operator.
      
      From-SVN: r69534
      Roger Sayle committed
    • fold-const.c (const_binop): Avoid performing the FP operation at compile-time... · 3e4093b6
      
      	* fold-const.c (const_binop): Avoid performing the FP operation at
      	compile-time, if either operand is NaN and we honor signaling NaNs,
      	or if we're dividing by zero and either flag_trapping_math is set
      	or the desired mode doesn't support infinities.
      	(fold_initializer): New function to fold an expression ignoring any
      	potential run-time exceptions or traps.
      	* tree.h (fold_initializer): Prototype here.
      	* c-typeck.c (build_binary_op): Move to the end of the file so
      	that intializer_stack is in scope.  If constructing an initializer,
      	i.e. when initializer_stack is not NULL, use fold_initializer to
      	fold expressions.
      	* simplify-rtx.c (simplify_binary_operation): Likewise, avoid
      	performing FP operations at compile-time, if they would raise an
      	exception at run-time.
      
      From-SVN: r69533
      Roger Sayle committed
    • Daily bump. · 35c77862
      From-SVN: r69531
      GCC Administrator committed
  2. 17 Jul, 2003 24 commits
  3. 16 Jul, 2003 8 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