1. 08 Mar, 2007 16 commits
    • tree-vrp.c: Include "intl.h". · 0c948c27
      ./:	* tree-vrp.c: Include "intl.h".
      	(usable_range_p): New static function.
      	(compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
      	overflowed values, juts set *strict_overflow_p.
      	(compare_values): Only return -2 if one of the operands is not a
      	constant.
      	(compare_ranges): Call usable_range_p.
      	(compare_range_with_value): Likewise.
      	(vrp_evaluate_conditional_warnv): Rename from
      	vrp_evaluate_conditional.  Make static.  Change all callers.
      	(vrp_evaluate_conditional): New function.
      	(simplify_div_or_mod_using_ranges): Issue warning about reliance
      	on signed overflow.
      	(simplify_abs_using_ranges): Likewise.
      	(simplify_stmt_for_jump_threading): Add within_stmt parameter.
      	* tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
      	within_stmt parameter.
      	* tree-ssa-propagate.c (fold_predicate_in): Update call to
      	vrp_evaluate_conditional.
      	* tree-ssa-threadedge.c
      	(record_temporary_equivalences_from_stmts_at_dest): Change
      	simplify parameter to take a second tree parameter.
      	(simplify_control_stmt_condition): Likewise.
      	(thread_across_edge): Likewise.
      	* tree-flow.h (vrp_evaluate_conditional): Update declaration.
      	(thread_across_edge): Likewise.
      	* gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
      testsuite/:
      	* gcc.dg/no-strict-overflow-5.c: New test.
      	* gcc.dg/no-strict-overflow-6.c: New test.
      	* gcc.dg/Wstrict-overflow-11.c: New test.
      	* gcc.dg/Wstrict-overflow-12.c: New test.
      	* gcc.dg/Wstrict-overflow-13.c: New test.
      	* gcc.dg/Wstrict-overflow-14.c: New test.
      	* gcc.dg/Wstrict-overflow-15.c: New test.
      
      From-SVN: r122706
      Ian Lance Taylor committed
    • i386.h (TARGET_SAHF): New define. · 3c2d980c
              * config/i386/i386.h (TARGET_SAHF): New define.
              * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
              Also enable for m_K8, m_AMDFAM10 and m_CORE2.
              (x86_sahf): New global variable.
              (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
              pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
              nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
              in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
              for 64-bit.
              (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
              (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
              when expanding fcomi/sahf based tests.
              (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
              expanding sahf based alternative. Emit sahf based sequence when
              optimizing for code size.
              * config/i386/i386.md (x86_sahf_1): Do not disable for
              TARGET_64BIT, enable for TARGET_SAHF.
      
      From-SVN: r122705
      Uros Bizjak committed
    • strcmp-1.x: New file. · 0c705abc
      gcc/testsuite/
      	* gcc.c-torture/execute/strcmp-1.x: New file.  XFAIL execution
      	for VxWorks kernel mode.
      	* gcc.c-torture/execute/strncmp-1.x: Likewise.
      
      From-SVN: r122703
      Richard Sandiford committed
    • hugeval.x: XFAIL for VxWorks kernel mode. · 9d002493
      gcc/testsuite/
      	* gcc.c-torture/execute/ieee/hugeval.x: XFAIL for VxWorks kernel
      	mode.
      
      From-SVN: r122702
      Richard Sandiford committed
    • memmove-lib.c: Include lib/bzero.c and lib/bfill.c on VxWorks targets. · e3045e7a
      gcc/testsuite/
      	* gcc.c-torture/execute/builtins/memmove-lib.c: Include lib/bzero.c
      	and lib/bfill.c on VxWorks targets.
      	* gcc.c-torture/execute/builtins/memmove-2-lib.c: Likewise.
      	* gcc.c-torture/execute/builtins/strchr-lib.c: Include lib/bzero.c,
      	lib/bfill.c and lib/memmove.c on VxWorks targets.
      	* gcc.c-torture/execute/builtins/strrchr-lib.c: Likewise.
      	* gcc.c-torture/execute/builtins/memops-asm-lib.c: Include lib/bfill.c
      	on VxWorks targets.
      	* gcc.c-torture/execute/builtins/lib/bzero.c: New file.
      	* gcc.c-torture/execute/builtins/lib/bfill.c: Likewise.
      
      From-SVN: r122701
      Richard Sandiford committed
    • re PR xml/30983 (DocumentBuilder.parse throws exception) · 8c67ec7a
      2007-03-08  Gary Benson  <gbenson@redhat.com>
      
      	PR classpath/30983:
      	* gnu/xml/dom/ls/DomLSParser.java (getInputSource):
      	Do not use the entity resolver to resolve the top-level document.
      
      From-SVN: r122700
      Gary Benson committed
    • [multiple changes] · 56bedf42
      2007-07-08  Tobias Burnus  <burnus@net-b.de>
      
             * module.c (gfc_match_use): Support renaming of operators
             in USE statements.
             * gfortran.texi (Fortran 2003 Status): Document support of
             renaming of operators.
      
      2007-03-08  Tobias Burnus  <burnus@net-b.de>
      
             * gfortran.dg/use_5.f90: New test.
             * gfortran.dg/use_6.f90: Ditto.
             * gfortran.dg/use_7.f90: Ditto.
      
      From-SVN: r122699
      Tobias Burnus committed
    • re PR fortran/30973 ([4.1, 4.2 only] undetected name conflict: variables may be named like modules) · ac497e6a
      2007-03-08  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/30973
      	* module.c (read_module): Always import module name as symbol.
      	(gfc_match_use): Disallow module name in the only clause of
      	a use statement.
      
      2007-03-08  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/30973
      	* gfortran.dg/use_4.f90: New test.
      	* gfortran.dg/used_dummy_types_7.f90: Correct ambiguous symbol.
      
      From-SVN: r122696
      Tobias Burnus committed
    • * sr.po: New. · 9eaa9996
      From-SVN: r122693
      Joseph Myers committed
    • ffi.c (flush_icache): Fix left-over from previous patch. · 8b9cf39e
      * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
      patch.
      (ffi_prep_closure_loc): Remove unneeded casts.  Add needed ones.
      
      From-SVN: r122692
      Alexandre Oliva committed
    • tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove · 068c623d
      spurious whitespace from error message.
      
      From-SVN: r122690
      Martin Michlmayr committed
    • re PR fortran/31011 ([4.2 and 4.1 only] Incorrect error: parameter array sections) · e1e24dc1
      2007-03-08 Paul Thomas <pault@gcc.gnu.org>
      
      	PR fortran/31011
      	* expr.c (find_array_section): Correct arithmetic for section
      	size.
      
      2007-03-08 Paul Thomas <pault@gcc.gnu.org>
      
      	PR fortran/31011
      	* gfortran.dg/parameter_array_section_2.f90: New test.
      
      From-SVN: r122689
      Paul Thomas committed
    • re PR c++/30852 (Trouble with __builtin_offsetof and volatile) · 1916c916
      	PR c++/30852
      	* c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
      
      	* semantics.c (finish_offsetof): Handle COMPOUND_EXPR.
      
      	* g++.dg/ext/offsetof1.C: Add cases with volatile.
      
      From-SVN: r122686
      Volker Reichelt committed
    • re PR c++/30534 (ICE with invalid template argument) · cc891727
      	PR c++/30534
      	* pt.c (any_template_arguments_need_structural_equality_p):
      	Robustify.
      
      	* g++.dg/template/arg5.C: New test.
      
      From-SVN: r122685
      Volker Reichelt committed
    • c-decl.c (grokdeclarator): Disable warnings for anonymous bitfields. · ab53bae2
      gcc/ChangeLog:
      * c-decl.c (grokdeclarator): Disable warnings for anonymous
      bitfields.
      * tree-sra.c (instantiate_element): Propagate disabled warnings
      from the element itself to the created variable.
      gcc/cp/ChangeLog:
      * decl.c (grokdeclarator): Disable warnings for anonymous
      bitfields.
      
      From-SVN: r122684
      Alexandre Oliva committed
    • Daily bump. · cd265edd
      From-SVN: r122680
      GCC Administrator committed
  2. 07 Mar, 2007 23 commits
    • configure: Rebuilt. · ded63764
      	* configure: Rebuilt.
      	* configure.ac: Clear vm-tools-packages.
      
      From-SVN: r122677
      Tom Tromey committed
    • * iresolve.c (gfc_resolve_ishftc): Correct s_kind value. · a24ff43f
      From-SVN: r122674
      Brooks Moses committed
    • Fix date format. · 581f006c
      From-SVN: r122670
      Eric Botcazou committed
    • re PR target/30848 (ICE with invalid constraint in asm statement) · 7476f086
              PR target/30848
              * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
              silently fix up the stack in the case of a missing register.
      
      From-SVN: r122669
      Richard Henderson committed
    • Win32Process.java: Added nested class EOFInputStream. · 16119150
      	* java/lang/Win32Process.java: Added nested class EOFInputStream.
      	* java/lang/natWin32Process.cc (ChildProcessPipe): Added DUMMY
      	enum and implementation.
      	(startProcess): Use redirect flag.
      	* classpath/lib/java/lang/Win32Process.class: Regenerated.
      	* classpath/lib/java/lang/Win32Process$EOFInputStream.class: New.
      	* gcj/javaprims.h: Regenerated.
      	* java/lang/Win32Process$EOFInputStream.h: New.
      
      From-SVN: r122668
      Mohan Embar committed
    • * gcc.pot: Regenerate. · 3f3e5a9a
      From-SVN: r122667
      Joseph Myers committed
    • * cpplib.pot: Regenerate. · 1a777b2d
      From-SVN: r122666
      Joseph Myers committed
    • libgcj_bc.c (JvRunMainName): Declare. · ea6e795a
      2007-03-07  Andrew Haley  <aph@redhat.com>
      
      	* libgcj_bc.c (JvRunMainName): Declare.
      
      From-SVN: r122663
      Andrew Haley committed
    • org.w3c.dom.DOMImplementationSourceList: New file. · 749827a6
      2007-03-07  Gary Benson  <gbenson@redhat.com>
      
      	* resource/META-INF/services/org.w3c.dom.DOMImplementationSourceList:
      	New file.
      
      2007-03-07  Gary Benson  <gbenson@redhat.com>
      
      	* sources.am, Makefile.in: Rebuilt.
      
      From-SVN: r122661
      Gary Benson committed
    • * gcj/javaprims.h: Regenerated. · 18012650
      From-SVN: r122660
      Mohan Embar committed
    • configure: Regenerate. · 172e41aa
      	* configure: Regenerate.
      
      config/:
      	* acx.m4 (GCC_TARGET_TOOL): Expand backquotes outside
      	AC_MSG_RESULT.
      
      From-SVN: r122659
      Andreas Schwab committed
    • libunwind.S: Add .arch/.object_arch for armv4 builds. · a566d050
      gcc:
      2007-03-07  Paul Brook  <paul@codesourcery.com>
      
      	* config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
      
      gcc:
      2007-03-07  Joseph Myers  <joseph@codesourcery.com>
      
      	* config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
      	New.
      	(phase1_vrs): Use them.
      	(DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
      	(__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
      	__gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
      	(restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
      	__gnu_Unwind_Restore_WMMXC if required.
      	(_Unwind_VRS_Pop): Implement iWMMXt support.
      	* config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
      	gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
      	gnu_Unwind_Save_WMMXC): Define.
      
      gcc/testsuite:
      2007-03-07  Joseph Myers  <joseph@codesourcery.com>
      
      	* g++.dg/eh/arm-iwmmxt-unwind.C: New test.
      
      From-SVN: r122658
      Joseph Myers committed
    • vxworks.h (vxworks_override_options): Declare. · ef672755
      gcc/
      	* config/vxworks.h (vxworks_override_options): Declare.
      	(VXWORKS_OVERRIDE_OPTIONS): Use it.
      	* config/vxworks.c: Include target.h and toplev.h.
      	(vxworks_override_options): New function.
      	* config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
      
      From-SVN: r122657
      Richard Sandiford committed
    • var-expand1.c: Add newline at end of file. · 7afb5f3b
      2007-03-07  Paolo Bonzini  <bonzini@gnu.org>
      
      	* gcc.dg/var-expand1.c: Add newline at end of file.
      
      From-SVN: r122656
      Paolo Bonzini committed
    • s390.c (override_options): Don't emit an error when -mstack-size is used without… · 690e7b63
      s390.c (override_options): Don't emit an error when -mstack-size is used without providing -mstack-guard.
      
      2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* config/s390/s390.c (override_options): Don't emit an error when
      	-mstack-size is used without providing -mstack-guard.
      	(s390_emit_prologue): Choose stack_guard value automatically if not
      	provided via command line.
      	* doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
      
      From-SVN: r122655
      Andreas Krebbel committed
    • i386.c (output_set_got): Add a GOT initialization sequence for VxWorks PIC. · 170bdaba
      gcc/
      	* config/i386/i386.c (output_set_got): Add a GOT initialization
      	sequence for VxWorks PIC.
      	(legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
      	around labels as well as symbols.  Use gotoff_operand instead
      	of local_symbolic_operand.
      	(legitimize_pic_address): Use gotoff_operand instead of
      	local_symbolic_operand.  Use @GOT accesses for labels as
      	well as symbols.
      	(ix86_output_addr_diff_elt): Use PC-relative rather than
      	GP-relative offsets for VxWorks PIC.
      	(ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
      	no_new_pseudos.  Check whether the returned register is op0.
      	* config/i386/i386.md (tablejump): Use PC-relative rather than
      	GP-relative offsets for VxWorks PIC.
      	* config/i386/predicates.md (gotoff_operand): New predicate.
      
      From-SVN: r122654
      Richard Sandiford committed
    • vxworks.h (VXWORKS_GOTT_BASE, [...]): Undefine before defining. · 26b5109f
      gcc/
      	* config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
      	before defining.
      	* config/vxworks-dummy.h: New file.
      	* config/i386/i386.h: Include it.
      
      From-SVN: r122653
      Richard Sandiford committed
    • ffi.h.in (ffi_closure_alloc, [...]): New. · 18fa3240
      libffi/ChangeLog:
      * include/ffi.h.in (ffi_closure_alloc, ffi_closure_free): New.
      (ffi_prep_closure_loc): New.
      (ffi_prep_raw_closure_loc): New.
      (ffi_prep_java_raw_closure_loc): New.
      * src/closures.c: New file.
      * src/dlmalloc.c [FFI_MMAP_EXEC_WRIT] (struct malloc_segment):
      Replace sflags with exec_offset.
      [FFI_MMAP_EXEC_WRIT] (mmap_exec_offset, add_segment_exec_offset,
      sub_segment_exec_offset): New macros.
      (get_segment_flags, set_segment_flags, check_segment_merge): New
      macros.
      (is_mmapped_segment, is_extern_segment): Use get_segment_flags.
      (add_segment, sys_alloc, create_mspace, create_mspace_with_base,
      destroy_mspace): Use new macros.
      (sys_alloc): Silence warning.
      * Makefile.am (libffi_la_SOURCES): Add src/closures.c.
      * Makefile.in: Rebuilt.
      * src/prep_cif [FFI_CLOSURES] (ffi_prep_closure): Implement in
      terms of ffi_prep_closure_loc.
      * src/raw_api.c (ffi_prep_raw_closure_loc): Renamed and adjusted
      from...
      (ffi_prep_raw_closure): ... this.  Re-implement in terms of the
      renamed version.
      * src/java_raw_api (ffi_prep_java_raw_closure_loc): Renamed and
      adjusted from...
      (ffi_prep_java_raw_closure): ... this.  Re-implement in terms of
      the renamed version.
      * src/alpha/ffi.c (ffi_prep_closure_loc): Renamed from
      (ffi_prep_closure): ... this.
      * src/pa/ffi.c: Likewise.
      * src/cris/ffi.c: Likewise.  Adjust.
      * src/frv/ffi.c: Likewise.
      * src/ia64/ffi.c: Likewise.
      * src/mips/ffi.c: Likewise.
      * src/powerpc/ffi_darwin.c: Likewise.
      * src/s390/ffi.c: Likewise.
      * src/sh/ffi.c: Likewise.
      * src/sh64/ffi.c: Likewise.
      * src/sparc/ffi.c: Likewise.
      * src/x86/ffi64.c: Likewise.
      * src/x86/ffi.c: Likewise.
      (FFI_INIT_TRAMPOLINE): Adjust.
      (ffi_prep_raw_closure_loc): Renamed and adjusted from...
      (ffi_prep_raw_closure): ... this.
      * src/powerpc/ffi.c (ffi_prep_closure_loc): Renamed from
      (ffi_prep_closure): ... this.
      (flush_icache): Adjust.
      boehm-gc/ChangeLog:
      * include/gc.h (GC_REGISTER_FINALIZER_UNREACHABLE): New.
      (GC_register_finalizer_unreachable): Declare.
      (GC_debug_register_finalizer_unreachable): Declare.
      * finalize.c (GC_unreachable_finalize_mark_proc): New.
      (GC_register_finalizer_unreachable): New.
      (GC_finalize): Handle it.
      * dbg_mlc.c (GC_debug_register_finalizer_unreachable): New.
      (GC_debug_register_finalizer_no_order): Fix whitespace.
      libjava/ChangeLog:
      * include/jvm.h (_Jv_ClosureListFinalizer): New.
      (_Jv_Linker::create_error_method): Adjust.
      * boehm.cc (_Jv_ClosureListFinalizer): New.
      * nogc.cc (_Jv_ClosureListFinalizer): New.
      * java/lang/Class.h (class _Jv_ClosureList): New.
      (class java::lang::Class): Declare it as friend.
      * java/lang/natClass.cc (_Jv_ClosureList::releaseClosures): New.
      (_Jv_ClosureList::registerClousure): New.
      * include/execution.h (_Jv_ExecutionEngine): Add get_closure_list.
      (_Jv_CompiledEngine::do_get_closure_list): New.
      (_Jv_CompiledEngine::_Jv_CompiledEngine): Use it.
      (_Jv_IndirectCompiledClass): Add closures.
      (_Jv_IndirectCompiledEngine::get_aux_info): New.
      (_Jv_IndirectCompiledEngine::do_allocate_field_initializers): Use
      it.
      (_Jv_IndirectCompiledEngine::do_get_closure_list): New.
      (_Jv_IndirectCompiledEngine::_Jv_IndirectCompiledEngine): Use it.
      (_Jv_InterpreterEngine::do_get_closure_list): Declare.
      (_Jv_InterpreterEngine::_Jv_InterpreterEngine): Use it.
      * interpret.cc (FFI_PREP_RAW_CLOSURE): Use _loc variants.
      (node_closure): Add closure list.
      (_Jv_InterpMethod::ncode): Add jclass argument.  Use
      ffi_closure_alloc and the separate code pointer.  Register the
      closure for finalization.
      (_Jv_JNIMethod::ncode): Likewise.
      (_Jv_InterpreterEngine::do_create_ncode): Pass klass to ncode.
      (_Jv_InterpreterEngine::do_get_closure_list): New.
      * include/java-interp.h (_Jv_InterpMethod::ncode): Adjust.
      (_Jv_InterpClass): Add closures field.
      (_Jv_JNIMethod::ncode): Adjust.
      * defineclass.cc (_Jv_ClassReader::handleCodeAttribute): Adjust.
      (_Jv_ClassReader::handleMethodsEnd): Likewise.
      * link.cc (struct method_closure): Add closure list.
      (_Jv_Linker::create_error_method): Add jclass argument.  Use
      ffi_closure_alloc and the separate code pointer.  Register the
      closure for finalization.
      (_Jv_Linker::link_symbol_table): Remove outdated comment about
      sharing of otable and atable.  Adjust.
      * java/lang/reflect/natVMProxy.cc (ncode_closure): Add closure
      list.
      (ncode): Add jclass argument.  Use ffi_closure_alloc and the
      separate code pointer.  Register the closure for finalization.
      (java::lang::reflect::VMProxy::generateProxyClass): Adjust.
      * testsuite/libjava.jar/TestClosureGC.java: New.
      * testsuite/libjava.jar/TestClosureGC.out: New.
      * testsuite/libjava.jar/TestClosureGC.xfail: New.
      * testsuite/libjava.jar/TestClosureGC.jar: New.
      
      From-SVN: r122652
      Alexandre Oliva committed
    • dlmalloc.c: New file, imported version 2.8.3 of Doug Lea's malloc. · dd778331
      * src/dlmalloc.c: New file, imported version 2.8.3 of Doug
      Lea's malloc.
      
      From-SVN: r122651
      Alexandre Oliva committed
    • dwarf2out.c (is_inlined_entry_point): New · dfad806e
      * dwarf2out.c (is_inlined_entry_point): New
      (add_high_low_attributes): Emit DW_AT_entry_pc along with
      DW_AT_ranges if the first subblock is the entry point.
      
      From-SVN: r122650
      Alexandre Oliva committed
    • install.texi (mips-*-*): Change recommended binutils version. · 3eb3cf05
      	* doc/install.texi (mips-*-*): Change recommended binutils
      	version.
      
      From-SVN: r122648
      David Daney committed
    • * g++.old-deja/g++.jason/template31.C: Include cstdlib. · bf4e79cf
      From-SVN: r122647
      Hans-Peter Nilsson committed
    • Daily bump. · f00de4b1
      From-SVN: r122644
      GCC Administrator committed
  3. 06 Mar, 2007 1 commit