1. 12 Sep, 2003 6 commits
    • re PR rtl-optimization/8967 (Making class data members `const' pessimizes code) · d2399d75
      
      	PR optimization/8967
      	* alias.c (write_dependence_p): Modify to take an additional constp
      	argument that controls whether the UNCHANGING_RTX_P flags are used.
      	(anti_dependence, output_dependence): Adjust write_dependence_p
      	callers to pass this additional argument, to return the same result.
      	(unchanging_anti_dependence): New variant of anti_dependence that
      	ignores the UNCHANGING_RTX_P property on memory references.
      	* rtl.h (unchaning_anti_dependence): Prototype here.
      	* flow.c (init_propagate_block): Place fake constant mem writes on
      	the mem_set_list so that dead writes to const variables are deleted.
      	(insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
      	(mark_used_regs): Likewise.
      
      From-SVN: r71332
      Roger Sayle committed
    • mcore-protos.h (mcore_r15_operand_p): Declare. · f0f4da32
      	* config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
      	(mcore_secondary_reload_class): Declare.
      	(mcore_output_inline_const_forced): Remove.
      	* config/mcore/mcore.md (movsi): Remove the code that forced
      	non-inlineable constants into a register if the target was r15
      	or the stack pointer.  Remove constant restrictions from the main
      	define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
      	of an r <- P alternative.  Remove fallback define_insn for reload.
      	(movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
      	define_insn.  Use mcore_output_move in the remaining define_insn.
      	Adjust condition and constraints in the way as for movsi.
      	(movdi): Always split unacceptable constants into two.  Use
      	simplify_gen_subreg instead of operand_subword{,_force}.
      	* config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
      	(mcore_output_move): Support HImode and QImode moves as well.
      	(mcore_m15_operand_p): New function.
      	(mcore_reload_class): Use it to detect cases where LRW_REGS are better.
      	(mcore_secondary_reload_class): New function.
      	* config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
      	terms of mcore_secondary_reload_class.
      
      From-SVN: r71330
      Richard Sandiford committed
    • URLStreamHandler.java (parseURL): If original file ends with "/", so must canonical result. · 030612a1
      	* java/net/URLStreamHandler.java (parseURL): If original file
      	ends with "/", so must canonical result.
      	* java/io/natFilePosix.cc (getCanonicalPath): Clean up snafus
      	with nul-termination and finding previous "/".
      
      From-SVN: r71327
      Tom Tromey committed
    • Daily bump. · e4bee82f
      From-SVN: r71325
      GCC Administrator committed
  2. 11 Sep, 2003 21 commits
  3. 10 Sep, 2003 13 commits
    • decl2.c (var_finalized_p): New. · c4d2313d
      
      	* decl2.c (var_finalized_p): New.
      	(maybe_emit_vtables, write_out_vars, finish_file): Use it.
      
      From-SVN: r71284
      Jan Hubicka committed
    • c-objc-common.c (c_cannot_inline_tree_fn): Warn on why function is not… · f08545a8
      c-objc-common.c (c_cannot_inline_tree_fn): Warn on why function is not inlinable; do not check the body.
      
      
      	* c-objc-common.c (c_cannot_inline_tree_fn): Warn
      	on why function is not inlinable; do not check
      	the body.
      	(inline_forbidden_p): Move to...
      	* tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
      	deal with alloca, longjmp.
      	(inline_forbidden_p): New static function.
      	(find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
      	find_builtin_longjmp_call): Kill.
      
      From-SVN: r71283
      Jan Hubicka committed
    • cgraph.h (struct cgraph_node): Rename lowered to analyzed. · 25c84396
              * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
              * cgraphunit.c: Update to match.
              (record_call_1): Rearrange.  Call lang hook for language nodes.
              (cgraph_analyze_function): Don't call lower_function.
              * langhooks.h (struct lang_hooks_for_callgraph): Replace
              lower_function with analyze_expr.
              * langhooks-def.h: Update to match.
              * langhooks.c (lhd_callgraph_analyze_expr): New.
      
              * decl2.c (cxx_callgraph_analyze_expr): New, from corpse of
              mark_member_pointers.
              (lower_function): Remove.
              * cp-tree.h: Update to match.
              * cp-lang.c (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): New.
              (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Remove.
      
      From-SVN: r71277
      Richard Henderson committed
    • acconfig.h (__NO_MATH_INLINES): Removed. · 707691d8
      2003-09-10  Michael Koch  <konqueror@gmx.de>
      
      	* acconfig.h (__NO_MATH_INLINES): Removed.
      	* configure.in: Removed check for g++ math inlining bug from 2000.
      	* configure.host: Removed -D__NO_MATH_INLINES in libgcj_cflags and
      	libgcj_cxxflags.
      	* configure: Regenerated.
      
      From-SVN: r71276
      Michael Koch committed
    • Arrays.java (equals(all variants)): Quit using NullPointerException catching to… · 9c9d2cce
      Arrays.java (equals(all variants)): Quit using NullPointerException catching to detect null valued parameters.
      
      2003-09-10  David Daney <ddaney@avtrex.com>
      
      	* java/util/Arrays.java (equals(all variants)): Quit using
      	NullPointerException catching to detect null valued parameters.
      
      From-SVN: r71275
      David Daney committed
    • DatagramSocket.java, [...]: Use gnu.java.net.Plain*SocketImpl instead of java.net.PlainSocketImpl. · 4a503716
      2003-09-10  Michael Koch  <konqueror@gmx.de>
      
      	* java/net/DatagramSocket.java,
      	java/net/MulticastSocket.java,
      	java/net/ServerSocket.java,
      	java/net/Socket.java:
      	Use gnu.java.net.Plain*SocketImpl instead of
      	java.net.PlainSocketImpl.
      	* java/net/PlainDatagramSocketImpl.java,
      	java/net/PlainSocketImpl.java,
      	java/net/SocketInputStream.java,
      	java/net/SocketOutputStream.java,
      	java/net/natPlainDatagramSocketImplNoNet.cc,
      	java/net/natPlainDatagramSocketImplPosix.cc,
      	java/net/natPlainDatagramSocketImplWin32.cc,
      	java/net/natPlainSocketImplNoNet.cc,
      	java/net/natPlainSocketImplPosix.cc,
      	java/net/natPlainSocketImplWin32.cc:
      	Removed.
      	* gnu/java/net/PlainDatagramSocketImpl.java,
      	gnu/java/net/PlainSocketImpl.java,
      	gnu/java/net/SocketInputStream.java,
      	gnu/java/net/SocketOutputStream.java,
      	gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
      	gnu/java/net/natPlainDatagramSocketImplPosix.cc,
      	gnu/java/net/natPlainDatagramSocketImplWin32.cc,
      	gnu/java/net/natPlainSocketImplNoNet.cc,
      	gnu/java/net/natPlainSocketImplPosix.cc,
      	gnu/java/net/natPlainSocketImplWin32.cc:
      	New files (moved from java/net).
      	* configure.in: Create links for gnu/java/net/natPlain*SocketImpl.cc
      	instead of java/net/natPlain*SocketImpl.cc.
      	* configure: Regenerated.
      	* Makefile.am: Moved files from java/net to gnu/java/net.
      	* Makefile.in: Regenerated.
      
      From-SVN: r71274
      Michael Koch committed
    • vec.cc (__cxa_vec_new2): If the allocator returns NULL, return NULL. · 520abf69
      2003-09-10  Jeffrey D. Oldham  <oldham@codesourcery.com>
      
      	* libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
      	NULL, return NULL.  This reflects a C++ ABI change 2003 Sep 05.
      	(__cxa_vec_new3): Likewise.
      
      From-SVN: r71273
      Jeffrey D. Oldham committed
    • fstream.tcc (basic_filebuf::seekoff): Use codecvt::length to handle… · 8c8dec01
      fstream.tcc (basic_filebuf::seekoff): Use codecvt::length to handle variable-width stateless encodings correctly.
      
      
      2003-09-10  Petur Runolfsson  <peturr02@ru.is>
      
      	* include/bits/fstream.tcc (basic_filebuf::seekoff):
      	Use codecvt::length to handle variable-width stateless encodings
      	correctly.
      	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
      	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
      
      From-SVN: r71271
      Petur Runolfsson committed
    • re PR target/11965 (invalid assembler code for a shift << 32 operation) · 1c8b4e29
      	PR target/11965
      	* config/sparc/sparc.c (sparc_v8plus_shift): Protect against
      	constants greater than 63.
      	* config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
      	against constants greater than 31.
      	(*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
      	constants greater than 63.
      
      From-SVN: r71266
      Eric Botcazou committed
    • basic_file_stdio.cc (_M_open_mode): Assign __p_mode rather than or'ing. · 80e46d77
      	* config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
      	rather than or'ing.
      
      From-SVN: r71265
      Alan Modra committed
    • cgraphunit.c (cgraph_finalize_function): Remove unused argument. · 39adabaf
              * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
              * cgraph.h (cgraph_finalize_function): Update.
              * c-decl.c (finish_function): Update.
      cp/
              * semantics.c (expand_or_defer_fn): Update call to
              cgraph_finalize_function.
      java/
              * parse.y (source_end_java_method): Update call to
              cgraph_finalize_function.
      
      From-SVN: r71263
      Richard Henderson committed
    • semantics.c (expand_or_defer_fn): Use cgraph_finalize_function always. · 288a242b
              * semantics.c (expand_or_defer_fn): Use cgraph_finalize_function
              always.
      
      From-SVN: r71262
      Richard Henderson committed
    • decl2.c (finish_file): Avoid out-of-bounds array reference during memmove. · e4d91027
              * decl2.c (finish_file): Avoid out-of-bounds array reference
              during memmove.
      
      From-SVN: r71261
      Richard Henderson committed