1. 19 Jun, 2007 5 commits
    • re PR middle-end/31950 (ICE in tree-ssa-alias-warnings.c) · 7ffc27a6
      2007-06-19  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/31950
      	* tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
      
      From-SVN: r125846
      Richard Guenther committed
    • re PR tree-optimization/32353 (Miscompilation with RESULT_DECL) · fda2b8e3
      	PR tree-optimization/32353
      	* tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
      
      	* g++.dg/opt/nrv13.C: New test.
      
      From-SVN: r125841
      Jakub Jelinek committed
    • Daily bump. · dbdfc53e
      From-SVN: r125837
      GCC Administrator committed
    • Breakpoint.java: Make abstract. · 02b1e78c
              * gnu/gcj/jvmti/Breakpoint.java: Make abstract.
              (method): Change from private to protected.
              (location): Likewise.
              (Breakpoint): Change argument list to take only integer type.
              Add default constructor.
              (initialize_native): Renamed to ...
              (_save_insn): ... this to make function more explicit.
              (execute): New method.
              * gnu/gcj/jvmti/Breakpoint.h: Regenerate.
              * gnu/gcj/jvmti/natBreakpoint.cc (initialize_native): Rename to...
              (_save_insn): ... this.
              (install): Save the original instruction.
              * gnu/gcj/jvmti/NormalBreakpoint.java: New file.
              * gnu/gcj/jvmti/NormalBreakpoint.h: New file.
              * gnu/gcj/jvmti/natNormalBreakpoint.cc: New file.
              * gnu/gcj/jvmti/BreakpointManager.java (newBreakpoint):
              Instantiate a NormalBreakpoint instead of Breakpoint.
              * interpret-run.cc (insn_breakpoint): Remove breakpoint actions
              and call Breakpoint.execute to do them.
              * classpath/lib/gnu/gcj/jvmti/Breakpoint.class: Regenerate.
              * classpath/lib/gnu/gcj/jvmti/BreakpointManager.class: Likewise.
              * classpath/lib/gnu/gcj/jvmti/NormalBreakpoint.class: New file.
              * sources.am: Regenerate.
              * Makefile.am (nat_source_files): Add natNormalBreakpoint.cc.
              * Makefile.in: Regenerated.
      
      From-SVN: r125834
      Keith Seitz committed
  2. 18 Jun, 2007 19 commits
  3. 17 Jun, 2007 12 commits
  4. 16 Jun, 2007 4 commits
    • * Fix mis-merge from PTR-PLUS branch. · 381d35b2
      From-SVN: r125759
      Uros Bizjak committed
    • targhooks.c (default_builtin_reciprocal): New default target hook. · cc2137be
              * targhooks.c (default_builtin_reciprocal): New default target hook.
              * targhooks.h (default_builtin_reciprocal): Add prototype.
              * hooks.c (hook_tree_tree_bool_null): Remove hook.
              * hooks.h (hook_tree_tree_bool_null): Remove prototype.
              * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
              default_builtin_reciprocal.
      
      From-SVN: r125758
      Uros Bizjak committed
    • cppfiles.c (open_file): Prevent the call for stat from overwriting errno. · 71995ede
              * cppfiles.c (open_file): Prevent the call
              for stat from overwriting errno.
      
      From-SVN: r125757
      Vladimir Prus committed
    • re PR middle-end/31723 (Use reciprocal and reciprocal square root with -ffast-math) · 6b889d89
          PR middle-end/31723
          * hooks.c (hook_tree_tree_bool_null): New hook.
          * hooks.h (hook_tree_tree_bool_null): Add prototype.
          * tree-pass.h (pass_convert_to_rsqrt): Declare.
          * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
          * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
          and convert it to reciprocal a*rfunc(b).
          (execute_convert_to_rsqrt): New function.
          (gate_convert_to_rsqrt): New function.
          (pass_convert_to_rsqrt): New pass definition.
          * target.h (struct gcc_target): Add builtin_reciprocal.
          * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
          (TARGET_INITIALIZER): Initialize builtin_reciprocal with
          TARGET_BUILTIN_RECIPROCAL.
          * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
      
          * config/i386/i386.h (TARGET_RECIP): New define.
          * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
          for TARGET_SSE_MATH and TARGET_RECIP when
          flag_unsafe_math_optimizations is set and not optimizing for size.
          (*rcpsf2_sse): New insn pattern.
          (*rsqrtsf2_sse): Ditto.
          (rsqrtsf2): New expander.  Expand by calling ix86_emit_swsqrtsf
          for TARGET_SSE_MATH and TARGET_RECIP when
          flag_unsafe_math_optimizations is set and not optimizing for size.
          (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
          for TARGET_SSE_MATH and TARGET_RECIP when
          flag_unsafe_math_optimizations is set and not optimizing for size.
          * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
          for TARGET_SSE_MATH and TARGET_RECIP when
          flag_unsafe_math_optimizations is set and not optimizing for size.
          (*sse_rsqrtv4sf2): Do not export.
          (sqrtv4sf2): Ditto.
          (sse_rsqrtv4sf2): New expander.  Expand by calling ix86_emit_swsqrtsf
          for TARGET_SSE_MATH and TARGET_RECIP when
          flag_unsafe_math_optimizations is set and not optimizing for size.
          (sqrtv4sf2): Ditto.
          * config/i386/i386.opt (mrecip): New option.
          * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
          (ix86_emit_swsqrtsf): Ditto.
          * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
          (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
          builtin definition.
          (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
          ix86_expand_unop1_builtin.
          (ix86_emit_swdivsf): New function.
          (ix86_emit_swsqrtsf): Ditto.
          (ix86_builtin_reciprocal): New function.
          (TARGET_BUILTIN_RECIPROCAL): Use it.
          (ix86_vectorize_builtin_conversion): Rename from
          ix86_builtin_conversion.
          (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
          * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
          "i386 and x86_64 Options" section.
          (Intel 386 and AMD x86_64 Options): Document -mrecip.
      
      testsuite/ChangeLog:
      
          PR middle-end/31723
          * gcc.target/i386/recip-divf.c: New test.
          * gcc.target/i386/recip-sqrtf.c: Ditto.
          * gcc.target/i386/recip-vec-divf.c: Ditto.
          * gcc.target/i386/recip-vec-sqrtf.c: Ditto.
          * gcc.target/i386/sse-recip.c: Ditto.
      
      From-SVN: r125756
      Uros Bizjak committed