1. 14 Feb, 2007 7 commits
  2. 13 Feb, 2007 20 commits
    • common.opt: Add Wstrict-overflow and Wstrict-overflow=. · 6ac01510
      ./:	* common.opt: Add Wstrict-overflow and Wstrict-overflow=.
      	* flags.h (warn_strict_overflow): Declare.
      	(enum warn_strict_overflow_code): Define.
      	(issue_strict_overflow_warning): New static inline function.
      	* opts.c (warn_strict_overflow): New variable.
      	(common_handle_option): Handle OPT_Wstrict_overflow and
      	OPT_Wstrict_overflow_.
      	* c-opts.c (c_common_handle_option): Set warn_strict_overflow for
      	OPT_Wall.
      	* fold-const.c: Include intl.h.
      	(fold_deferring_overflow_warnings): New static variable.
      	(fold_deferred_overflow_warning): New static variable.
      	(fold_deferred_overflow_code): New static variable.
      	(fold_defer_overflow_warnings): New function.
      	(fold_undefer_overflow_warnings): New function.
      	(fold_undefer_and_ignore_overflow_warnings): New function.
      	(fold_deferring_overflow_warnings_p): New function.
      	(fold_overflow_warning): New static function.
      	(make_range): Add strict_overflow_p parameter.  Change all
      	callers.
      	(extract_muldiv, extract_muldiv_1): Likewise.
      	(fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
      	tree_expr_nonnegative_p.
      	(fold_negate_expr): Call fold_overflow_warning.
      	(fold_range_test): Likewise.
      	(fold_comparison): Likewise.
      	(fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
      	instead of tree_expr_nonnegative_p.
      	(tree_expr_nonnegative_warnv_p): Rename from
      	tree_expr_nonnegative_p, add strict_overflow_p parameter.
      	(tree_expr_nonnegative_p): New function.
      	(tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
      	strict_overflow_p parameter.
      	(tree_expr_nonzero_p): New function.
      	* passes.c (verify_interpass_invariants): New static function.
      	(execute_one_pass): Call it.
      	* tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
      	warnings.
      	(number_of_iterations_exit, loop_niter_by_eval): Likewise.
      	(estimate_numbers_of_iterations): Likewise.
      	(scev_probably_wraps_p): Likewise.
      	* tree-ssa-ccp.c: Include "toplev.h".
      	(evaluate_stmt): Defer fold overflow warnings until we know we are
      	going to optimize.
      	(struct fold_stmt_r_data): Add stmt field.
      	(fold_stmt_r): Defer fold overflow warnings until we know we
      	optimized.
      	(fold_stmt): Initialize stmt field of fold_stmt_r_data.
      	(fold_stmt_inplace): Likewise.
      	* tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
      	(cleanup_control_expr_graph): Defer fold overflow warnings until
      	we know we are going to optimize.
      	* tree-cfg.c (fold_cond_expr_cond): Likewise.
      	* tree-ssa-threadedge.c (simplify_control_stmt_condition):
      	Likewise.
      	* tree-vrp.c (vrp_expr_computes_nonnegative): Call
      	tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
      	* tree-ssa-loop-manip.c (create_iv): Likewise.
      	* c-typeck.c (build_conditional_expr): Likewise.
      	(build_binary_op): Likewise.
      	* tree-vrp.c (vrp_expr_computes_nonzero): Call
      	tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
      	(extract_range_from_unary_expr): Likewise.
      	* simplify-rtx.c (simplify_const_relational_operation): Warn when
      	assuming that signed overflow does not occur.
      	* c-common.c (pointer_int_sum): Ignore fold overflow warnings.
      	* tree.h (tree_expr_nonnegative_warnv_p): Declare.
      	(fold_defer_overflow_warnings): Declare.
      	(fold_undefer_overflow_warnings): Declare.
      	(fold_undefer_and_ignore_overflow_warnings): Declare.
      	(fold_deferring_overflow_warnings_p): Declare.
      	(tree_expr_nonzero_warnv_p): Declare.
      	* doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
      	of warning options.
      	(Warning Options): Document -Wstrict-overflow.
      	* Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
      	(tree-ssa-ccp.o): Likewise.
      	(tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
      	(fold-const.o): Depend on intl.h.
      testsuite/:
      	* gcc.dg/Wstrict-overflow-1.c: New test.
      	* gcc.dg/Wstrict-overflow-2.c: New test.
      	* gcc.dg/Wstrict-overflow-3.c: New test.
      	* gcc.dg/Wstrict-overflow-4.c: New test.
      	* gcc.dg/Wstrict-overflow-5.c: New test.
      	* gcc.dg/Wstrict-overflow-6.c: New test.
      	* gcc.dg/Wstrict-overflow-7.c: New test.
      	* gcc.dg/Wstrict-overflow-8.c: New test.
      	* gcc.dg/Wstrict-overflow-9.c: New test.
      	* gcc.dg/Wstrict-overflow-10.c: New test.
      
      From-SVN: r121895
      Ian Lance Taylor committed
    • re PR middle-end/30751 (internal compiler error: in extract_insn, at recog.c:2108) · 30d18db4
      	PR middle-end/30751
      	* lower-subreg.c (resolve_simple_move): Decompose subregs in
      	addresses.
      
      From-SVN: r121894
      Ian Lance Taylor committed
    • configure.ac (target_libraries): Move libgcc before libiberty. · 291f172e
      	* configure.ac (target_libraries): Move libgcc before libiberty.
      	* configure: Regenerated.
      
      From-SVN: r121893
      Daniel Jacobowitz committed
    • builtin-bswap-2.c: New test case. · 2ebdbdfb
      
      	* gcc.target/ia64/builtin-bswap-2.c: New test case.
      
      From-SVN: r121892
      Roger Sayle committed
    • * gnu/classpath/jdwp/natVMVirtualMachine.cc · a13c5b70
              (jdwpBreakpointCB): New function.
              (jdwpVMInitCB): Define and enable the breakpoint
              callback.
      
      From-SVN: r121889
      Keith Seitz committed
    • 2007-02-13 Andrew Haley <aph@redhat.com> · b3a00d65
      	* testsuite/libjava.lang/Divide_2.out
      	* testsuite/libjava.lang/Divide_2.java: New test.
      
      From-SVN: r121887
      Andrew Haley committed
    • alpha.c (alpha_stdarg_optimize_hook): Strip handled_component_p before looking… · 138ae41e
      alpha.c (alpha_stdarg_optimize_hook): Strip handled_component_p before looking for the indirect_ref.
      
              * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
              handled_component_p before looking for the indirect_ref.
      
      From-SVN: r121886
      Richard Henderson committed
    • pr29302-1.c: Moved from... · ea20d970
              * gcc.c-torture/execute/ieee/pr29302-1.c: Moved from...
              * gcc.c-torture/execute/pr29302-1.c: ... here.
      
      From-SVN: r121885
      Richard Henderson committed
    • i386.md (bswapsi_1): Rename from bswapsi2, remove flags clobber. · 2e6834d3
              * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
              remove flags clobber.
              (bswapsi2): New expander, emit code for !TARGET_BSWAP.
              (bswaphi_lowpart): New.
              (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
              remove TARGET_BSWAP test.  Delete expander of the same name.
      
              * optabs.c (widen_bswap, expand_doubleword_bswap): New.
              (expand_unop): Use them.
      
      From-SVN: r121884
      Richard Henderson committed
    • * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1, · a23132e1
      	*cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
      	*movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
      	*ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
      	*ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
      	*ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
      	*ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
      	assembler dialect choice from asm templates.
      
      From-SVN: r121883
      Uros Bizjak committed
    • re PR bootstrap/30753 (checking for correct version of gmp.h... no) · c3a86da9
      	PR bootstrap/30753
      	* configure.ac: Remove obsolete build / host tests.  Use AC_PROG_CC
      	unconditionally.  Use AC_PROG_CXX.  Use ACX_TOOL_DIRS to find $prefix.
      	* configure: Regenerated.
      
      Co-Authored-By: Paolo Bonzini <bonzini@gnu.org>
      
      From-SVN: r121882
      Daniel Jacobowitz committed
    • locale_facets.tcc (num_get<>::do_get): Avoid warning about ambiguous else. · 9e0b7527
      2007-02-13  Dirk Mueller  <dmueller@suse.de>
      
             * include/bits/locale_facets.tcc (num_get<>::do_get): Avoid
             warning about ambiguous else.
      
      From-SVN: r121881
      Dirk Mueller committed
    • ffi.c (ffi_prep_args, [...]): Add long double handling. · 7a23933b
      2007-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
      	ffi_closure_helper_SYSV): Add long double handling.
      
      From-SVN: r121879
      Andreas Krebbel committed
    • jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast from jthread to Thread *; it is no longer needed. · 9606c9dd
              * jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
              from jthread to Thread *; it is no longer needed.
              (_Jv_JVMTI_GetFrameCount): Likewise.
              Fix small formatting typo.
      
      From-SVN: r121878
      Keith Seitz committed
    • i386.md (fixuns_trunc<SSEMODEF>si_1): New insn. · 174c12c7
              * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
              (fixuns_trunc<SSEMODEF>si2): Use it.
              * config/i386/sse.md (vec_setv4sf_0): Export.
              * config/i386/i386.c (ix86_build_const_vector): Export.
              (ix86_split_convert_uns_si_sse): Rename from
              ix86_expand_convert_uns_si_sse and rewrite as a splitter.
              * config/i386/i386-protos.h: Update.
      
      From-SVN: r121877
      Richard Henderson committed
    • re PR c/29521 (Confusing warning for return with expression in function returning void) · 2397c575
      2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR c/29521
      	* c-typeck.c (c_finish_return): Improve warning message.
      
      testsuite/
      	* gcc.dg/c90-return-1.c: Update output.
      	* gcc.dg/c99-return-1.c: Likewise.
      
      From-SVN: r121876
      Manuel López-Ibáñez committed
    • re PR libstdc++/21172 (potential integer overflow error in STL heap functions) · bad333ff
      2007-02-12  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/21172
      	* include/bits/stl_heap.h (__adjust_heap(_RandomAccessIterator,
      	_Distance, _Distance, _Tp), __adjust_heap(_RandomAccessIterator,
      	_Distance, _Distance, _Tp, _Compare)): Avoid potential integer
      	overflow.
      
      	* include/bits/stl_heap.h (__is_heap(_RandomAccessIterator,
      	_RandomAccessIterator), __is_heap(_RandomAccessIterator,
      	_RandomAccessIterator, _StrictWeakOrdering): Mark inline.
      	(make_heap(_RandomAccessIterator, _RandomAccessIterator,
      	_Compare)): Do not mark inline.
      
      	* include/bits/stl_heap.h (push_heap(_RandomAccessIterator,
      	_RandomAccessIterator), sort_heap(_RandomAccessIterator,
      	_RandomAccessIterator)): Uncomment __glibcxx_requires_heap.
      
      From-SVN: r121875
      Paolo Carlini committed
    • Daily bump. · 51d4712e
      From-SVN: r121873
      GCC Administrator committed
    • alias.c (find_symbolic_term): Delete unused function. · 14a32e14
      2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	* alias.c (find_symbolic_term): Delete unused function.
      
      From-SVN: r121869
      Manuel López-Ibáñez committed
  3. 12 Feb, 2007 13 commits
    • friend.c (do_friend): Annotate warning about friend declarations in templates with... · 20af23d3
      2007-02-13  Dirk Mueller  <dmueller@suse.de>
      
             * friend.c (do_friend): Annotate warning about friend
             declarations in templates with OPT_Wnon_template_friend.
             Convert informal message from warning() to inform().
      
      From-SVN: r121867
      Dirk Mueller committed
    • Collections.java (UnmodifiableMap.toArray): Imported changes from Classpath. · 40b86e5f
      libjava/classpath
      	* java/util/Collections.java (UnmodifiableMap.toArray): Imported
      	changes from Classpath.
      libjava
      	* sources.am, Makefile.in: Rebuilt.
      	* java/lang/Socket.java: Removed override.
      	* java/lang/DatagramSocket.java: Removed override.
      	* gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
      	field.
      	(getLocalAddress): New method.
      	* gnu/java/net/PlainDatagramSocketImpl.java
      	(PlainDatagramSocketImpl): Throws IOException.
      	* gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
      	'sizeof'.
      	(read): Likewise.
      
      From-SVN: r121866
      Tom Tromey committed
    • [multiple changes] · e8c30b5f
      2007-02-13  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30554
      	* module.c (read_module): Set pointer_info to referenced if the
      	symbol has no namespace.
      
      2007-02-12  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30554
      	* gfortran.dg/used_dummy_types_7.f90: New test.
      
      From-SVN: r121865
      Paul Thomas committed
    • re PR c++/14622 (type mismatch in explicit template instantiation not detected) · 8ea6dfae
      PR c++/14622
      * pt.c (do_decl_instantiation): Detect type mismatches in explicit
      instantiations for variables.
      
      Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
      
      From-SVN: r121864
      Simon Martin committed
    • i386.md (paritydi2, paritysi2): New expanders. · 0f7b6776
              * config/i386/i386.md (paritydi2, paritysi2): New expanders.
              (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
              (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
      
      testsuite/ChangeLog:
      
              * gcc.target/i386/parity-1.c: New test.
              * gcc.target/i386/parity-2.c: New test.
      
      From-SVN: r121863
      Uros Bizjak committed
    • tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL. · 6170a998
      	* tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
      	* cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
      	the function, temporarily point the debug interface to the null one.
      
      From-SVN: r121861
      Eric Botcazou committed
    • Remove executable bits. · b9a8f075
      From-SVN: r121860
      Richard Henderson committed
    • dwarf2out.c (round_up_to_align): New static function. · d996473d
      	* dwarf2out.c (round_up_to_align): New static function.
      	(field_byte_offset): Use it to round the offset.
      
      From-SVN: r121859
      Eric Botcazou committed
    • * sv.po: Update. · ffcce7bc
      From-SVN: r121857
      Joseph Myers committed
    • alpha.md (bswapsi2, bswapdi2): New. · fffef1dc
              * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
              (inswl_const): Export.
      
      From-SVN: r121853
      Richard Henderson committed
    • calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the result mode of… · 7ab0aca2
      calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the result mode of the libcall, convert back to outmode.
      
              * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
              result mode of the libcall, convert back to outmode.
      
      From-SVN: r121852
      Richard Henderson committed
    • i386.md (*bswapdi2_rex): Renamed from bswapdi2. · d8d25bae
      
      	* config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
      	(bswapdi2): New define_expand to implement 32-bit implementation.
      
      	* gcc.target/i386/builtin-bswap-3.c: New test case.
      
      From-SVN: r121851
      Roger Sayle committed
    • invoke.texi (Overall Options): Document --help=. · c662432e
      * doc/invoke.texi (Overall Options): Document --help=.                                                        
      * gcc.c (target_help_flag): Rename to print_subprocess_flag.                                                  
        (cc1_options): Pass --help= on to cc1.                                                                      
        (display_help): Add description of --help=.                                                                 
        (process_command): Add code to handle --help=.  Allow translated                                            
        --help and --target-help switches to be passed on to compiler sub-process.                                                                                               
        (main): Remove unused if statement.                                                                         
      * opts.c (columns): Remove.                                                                                   
        (LEFT_COLUMN): Define.                                                                                      
        (wrap_help): Add columns argument.                                                                          
        (print_filtered_help): Change parameters to be an include bitmask,                                          
        an exclude bitmask, an any bitmask and the column width.  Move the                                          
        code to display the params list here.  Add code to display the                                              
        status of options rather than their descriptions if the quiet flag                                          
        is not active.                                                                                              
        (print_specific_help): Change parameters to be an include bitmask,                                          
        an exclude bitmask and an any bitmask.  Move code to look up the                                            
        column width here.  Decide upon the title for an options listing.                                           
        (common_handle_options): Add code to handle --help=.  Adapt code                                            
        for --help and --target-help to use the revised form of the                                                 
        print_specific_help function.                                                                               
        (print_help): Delete.                                                                                       
        (print_param_help): Delete.                                                                                 
        (print_switch): Delete.                                                                                     
      * opts.h (cl_lang_count): Add prototype.                                                                      
       (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS, CL_MAX_OPTION_CLASS): New defines.            
      * optc-gen.awk: Add construction of cl_lang_count.                                                            
      * c.opt: Add Warning attribute to warning options and Optimization attribute to optimization options.         
      * common.opt: Likewise.                                                                                       
        Add --help=.                                                                                                
        Add -fhelp and -ftarget-help as aliases for the transformed --help and --target-help options.               
      * opt-functions.awk: Add code to handle Warning and Optimization attributes.
      
      From-SVN: r121849
      Nick Clifton committed