1. 05 Dec, 2005 2 commits
    • paolo's avatar
      2005-12-04 Paolo Carlini <pcarlini@suse.de> · 82320712
      paolo authored
      	* include/ext/vstring.h (__versa_string<>::operator+, all
      	versions): Move out of line...
      	* include/ext/vstring.tcc (__versa_string<>::operator+): ...
      	here; consistently use reserve for the benefit of sso_string_base;
      	prefer push_back to single-char append when appropriate.
      
      	* include/ext/vstring.h (__versa_string<>::push_back): Don't
      	call _M_reserve, _M_mutate instead.
      	(reserve): Just forward to _M_reserve.
      	* include/ext/vstring.tcc (__versa_string<>::_M_reserve): Remove.
      	* include/ext/rc_string_base.h (__rc_string_base<>::_M_reserve): Also
      	do the initial checks (first on length, in case __res == capacity).
      	* include/ext/sso_string_base.h (__sso_string_base<>::_M_reserve:
      	Likewise; don't call _M_set_length unnecessarily.
      
      2005-12-04  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/ext/vstring.h (__versa_string<>::_M_append): New.
      	(append(const __versa_string&), append(const __versa_string&,
      	size_type, size_type), append(const _CharT*, size_type),
      	append(const _CharT*)): Use it.
      	(append(size_type, _CharT)): Delegate to _M_replace_aux.
      	(assign(const __versa_string&, size_type, size_type),
      	assign(const _CharT*), replace(size_type, size_type,
      	const _CharT*, size_type)): Forward to _M_replace.
      	* include/ext/vstring.tcc (__versa_string<>::_M_append):
      	Define, core append functionality.
      	(_M_replace): Simplify, move __s == 0 case to _M_replace_aux.
      	(_M_replace_aux): Reorganize, don't call _M_replace.
      
      2005-12-04  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/ext/vstring.tcc (__versa_string<>::_M_replace):
      	Perform _M_check_length at the beginning and remove it from ...
      	(replace, _M_replace_dispatch, _M_replace_aux, assign): ... here.
      	(assign): Now move inline.
      	(resize): Don't call _M_check_length redundantly, append does.
      
      2005-12-04  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/ext/sso_string_base.h (__sso_string_base<>::_M_get_allocator):
      	Add non const version.
      	* include/ext/rc_string_base.h (__rc_string_base<>::_M_get_allocator):
      	Likewise.
      	
      	* include/ext/sso_string_base.h (__sso_string_base<>::_M_erase): Add.
      	* include/ext/rc_string_base.h (__rc_string_base<>::_M_erase): Likewise.
      	(_M_leak_hard): Use it.
      	* include/ext/vstring.h (__versa_string<>::clear, erase, all
      	versions): Use it.
      	* include/ext/vstring.tcc (__versa_string<>::resize): Likewise.
      
      	* include/ext/vstring.h (__versa_string<>::_M_replace_safe):
      	Remove.
      	* include/ext/vstring.h (__versa_string<>::_M_replace): New, does
      	the in-place work or delegates to _M_mutate in case of reallocation.
      	* include/ext/vstring.tcc (__versa_string<>::_M_replace_safe):
      	Remove.
      	* include/ext/vstring.tcc (__versa_string<>::_M_replace): Define.
      	(assign, replace, _M_replace_dispatch, _M_replace_aux): Use it.
      	* include/ext/sso_string_base.h (__sso_string_base<>::_M_mutate):
      	Change to manage only reallocations.
      	* include/ext/rc_string_base.h (__rc_string_base<>::_M_mutate):
      	Likewise.
      
      	* include/ext/vstring.h (__versa_string<>::insert(size_type,
      	const __versa_string&), insert(size_type, const __versa_string&,
      	size_type, size_type), insert(size_type, const _CharT*, size_type),
      	insert(size_type, const _CharT*)): Delegate to replace.
      
      	* include/ext/vstring.h (__versa_string<>::reserve): Move out of
      	line.
      	* include/ext/vstring.tcc (__versa_string<>::reserve): Do the
      	checks and call _M_reserve.
      	* include/ext/vstring.h (__versa_string<>::append): Call _M_reserve
      	instead of reserve.
      	* include/ext/vstring.tcc (__versa_string<>::append, all versions):
      	Likewise.
      	* include/ext/sso_string_base.h (__sso_string_base<>::_M_reserve):
      	Adjust.
      	* include/ext/rc_string_base.h (__rc_string_base<>::_M_reserve):
      	Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108034 138bc75d-0d04-0410-961f-82ee72b054a4
      82320712
    • gccadmin's avatar
      Daily bump. · 65a1f41e
      gccadmin authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108031 138bc75d-0d04-0410-961f-82ee72b054a4
      65a1f41e
  2. 04 Dec, 2005 7 commits
    • bje's avatar
      * Makefile.in (clean): Remove stray reference to libcpp.a. · 84d7eab9
      bje authored
      	* decimal128.h, decContext.c, decRound.c, decimal32.c,
      	decNumber.c, decContext.h, decimal64.c, decimal32.h, decNumber.h,
      	decimal64.h, decUtility.c, decLibrary.c, configure.ac,
      	decNumberLocal.h, decUtility.h, decDPD.h, decimal128.c: Update FSF
      	office address.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108024 138bc75d-0d04-0410-961f-82ee72b054a4
      84d7eab9
    • jsm28's avatar
      * c-typeck.c (null_pointer_constant_p): New function. · 79f925ed
      jsm28 authored
      	(build_conditional_expr, build_c_cast, convert_for_assignment,
      	build_binary_op): Use it.
      
      testsuite:
      	* gcc.dg/c90-const-expr-5.c, gcc.dg/c99-const-expr-5.c: New tests.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108022 138bc75d-0d04-0410-961f-82ee72b054a4
      79f925ed
    • jsm28's avatar
      * c-common.c (binary_op_error): Do not allow NOP_EXPR. · c44afe23
      jsm28 authored
      	(c_common_truthvalue_conversion): Handle NOP_EXPR the same as
      	CONVERT_EXPR.
      	(check_function_arguments_recurse): Allow both NOP_EXPR and
      	CONVERT_EXPR but check conversions preserve precision.
      	* c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
      	but check conversions preserve precision.
      	(build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
      	default case.
      
      testsuite:
      	* gcc.dg/format/cast-1.c: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108020 138bc75d-0d04-0410-961f-82ee72b054a4
      c44afe23
    • sayle's avatar
      · 47df1c96
      sayle authored
      	PR c/7776
      	* doc/invoke.texi: Document new -Wstring-literal-comparison option.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108019 138bc75d-0d04-0410-961f-82ee72b054a4
      47df1c96
    • sayle's avatar
      · 19f0596c
      sayle authored
      	PR c/7776
      	* common.opt (Wstring-literal-comparison): New command line option.
      	* c-opts.c (c_common_handle_option): Set it with -Wall.
      	* c-typeck.c (parser_build_binary_op): Issue warning if either
      	operand of a comparison operator is a string literal, except for
      	testing equality or inequality against NULL.
      
      	* doc/invoke.texi: Document new -Wstring-literal-comparison option.
      
      	* gcc.dg/Wstring-literal-comparison-1.c: New test case.
      	* gcc.dg/Wstring-literal-comparison-2.c: Likewise.
      	* gcc.dg/Wstring-literal-comparison-3.c: Likewise.
      	* gcc.dg/Wstring-literal-comparison-4.c: Likewise.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108018 138bc75d-0d04-0410-961f-82ee72b054a4
      19f0596c
    • fxcoudert's avatar
      * io/format.c: Removing unused code. · 4a72b876
      fxcoudert authored
      	* intrinsics/random.c: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108014 138bc75d-0d04-0410-961f-82ee72b054a4
      4a72b876
    • gccadmin's avatar
      Daily bump. · 83ee778d
      gccadmin authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108007 138bc75d-0d04-0410-961f-82ee72b054a4
      83ee778d
  3. 03 Dec, 2005 13 commits
  4. 02 Dec, 2005 18 commits
    • jakub's avatar
      PR target/25199 · 00aa5a52
      jakub authored
      	* config/i386/i386.md (movqi_1): Only force imovx for alternative
      	5 if operand 1 is not aligned.  Undo previous constraint change.
      	* config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
      testsuite/
      	* gcc.target/i386/movq-2.c: New test.
      	* gcc.target/i386/movq.c: Remove target i?86, instead add
      	dg-require-effective-target ilp32.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107955 138bc75d-0d04-0410-961f-82ee72b054a4
      00aa5a52
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · 667144a0
      rguenth authored
              * trans.h (build1_v): Use build1, not build to build the
              void typed tree.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107917 138bc75d-0d04-0410-961f-82ee72b054a4
      667144a0
    • jb's avatar
      Add forgotten ChangeLog entry: · 4b5a641c
      jb authored
      2005-11-27  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	* m4/ifunction.m4: Add const restrict to function arguments.
      	* m4/iforeach.m4: Likewise.
      	* m4/eoshift1.m4: Likewise.
      	* m4/eoshift3.m4: Likewise.
      	* m4/dotprod.m4: Likewise.
      	* m4/dotprodc.m4: Likewise.
      	* m4/dotprodl.m4: Likewise.
      	* m4/shape.m4: Likewise.
      	* m4/cshift1.m4: Likewise.
      	* m4/reshape.m4: Likewise.
      	* m4/transpose.m4: Likewise.
      	* generated/eoshift*: Regenerated
      	* generated/dotprod*: Likewise.
      	* generated/shape*: Likewise.
      	* generated/cshift1*: Likewise.
      	* generated/reshape*: Likewise.
      	* generated/transpose*: Likewise.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107912 138bc75d-0d04-0410-961f-82ee72b054a4
      4b5a641c
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · c1f8b332
      rguenth authored
              * tree.h (build): Remove prototype.
              (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
              * tree.c (build): Remove.
              (build0_stat): Update comment.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107909 138bc75d-0d04-0410-961f-82ee72b054a4
      c1f8b332
    • kargl's avatar
      Fix accidental deletion of committer's name. · 1b455b6c
      kargl authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107908 138bc75d-0d04-0410-961f-82ee72b054a4
      1b455b6c
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · 40b19772
      rguenth authored
      	* tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
      	* tree-complex.c (update_complex_assignment, expand_complex_div_wide):
      	Likewise.
      	* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
      	maybe_fold_offset_to_component_ref): Likewise.
      	* tree-ssa-dom.c (thread_across_edge,
      	simplify_rhs_and_lookup_avail_expr,
      	find_equivalent_equality_comparison, record_equivalences_from_stmt):
      	Likewise.
      	* gimple-low.c (lower_function_body, lower_return_expr): Likewise.
      	* tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
      	lower_try_finally_switch): Likewise.
      	* tree-if-conv.c (add_to_dst_predicate_list,
      	replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
      	* gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
      	voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
      	gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
      	gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
      	shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
      	gimplify_init_ctor_eval, gimplify_init_constructor,
      	gimplify_variable_sized_compare, gimplify_boolean_expr,
      	gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
      	gimplify_expr, gimplify_body, gimplify_function_tree,
      	force_gimple_operand): Likewise.
      	* tree-ssa-pre.c (create_expression_by_pieces): Likewise.
      	* tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
      	mx_register_decls): Likewise.
      	* tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
      	get_frame_field, finalize_nesting_tree_1): Likewise.
      	* tree-inline.c (setup_one_parameter): Likewise.
      	* tree-vect-transform.c (vectorizable_condition): Likewise.
      	* tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
      	Likewise.
      	* tree-profile.c (tree_gen_edge_profiler): Likewise.
      	* tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
      	* c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
      	* tree-chrec.h (build_polynomial_chrec): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107907 138bc75d-0d04-0410-961f-82ee72b054a4
      40b19772
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · ed03eadb
      rguenth authored
      	* config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
      	alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
      	* config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
      	* config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
      	* config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
      	* config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
      	* config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
      	Likewise.
      	* config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
      	sh_adjust_unroll_max): Likewise.
      	* config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
      	* config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
      	* config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
      	Likewise.
      	* config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
      	Likewise.
      	* config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
      	Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107906 138bc75d-0d04-0410-961f-82ee72b054a4
      ed03eadb
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · c76187f7
      rguenth authored
      	* trans.c (gnat_gimplify_expr): Use buildN instead of build.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107905 138bc75d-0d04-0410-961f-82ee72b054a4
      c76187f7
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · 4d996ee8
      rguenth authored
      	* java-gimplify.c (java_gimplify_labeled_block_expr): Use
      	buildN instead of build.
      	* class.c (finish_class): Likewise.
      	* expr.c (java_create_object): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107904 138bc75d-0d04-0410-961f-82ee72b054a4
      4d996ee8
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · 79e6e76b
      rguenth authored
      	* semantics.c (simplify_aggr_init_expr): Use buildN instead
      	of build.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107903 138bc75d-0d04-0410-961f-82ee72b054a4
      79e6e76b
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · a3a36c39
      rguenth authored
      	* objc-act.c (objc_build_exc_ptr, next_sjlj_build_enter_and_setjmp
      	next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
      	next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
      	build_objc_method_call, objc_rewrite_function_call): Use buildN
      	instead of build.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107902 138bc75d-0d04-0410-961f-82ee72b054a4
      a3a36c39
    • fxcoudert's avatar
      PR libfortran/25116 · afb7916b
      fxcoudert authored
      	* io/transfer.c (data_transfer_init): Don't set the default for
      	namelist I/O on preconnected files to UNFORMATTED.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107900 138bc75d-0d04-0410-961f-82ee72b054a4
      afb7916b
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · 5a12b939
      rguenth authored
      	* tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
      	simplify_cond_using_ranges): Use buildN instead of build.
      	* tree-tailcall.c (adjust_accumulator_values,
      	adjust_return_value): Likewise.
      	* tree-sra.c (generate_one_element_ref, generate_copy_inout,
      	generate_element_copy, generate_element_zero,
      	generate_one_element_init): Likewise.
      	* tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
      	* lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
      	lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
      	perfect_nestify): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107894 138bc75d-0d04-0410-961f-82ee72b054a4
      5a12b939
    • danglin's avatar
      * pa.c (pa_secondary_reload): Revise initialization of variable regno. · cca0fae1
      danglin authored
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107890 138bc75d-0d04-0410-961f-82ee72b054a4
      cca0fae1
    • reichelt's avatar
      PR c++/24103 · ca9ef96a
      reichelt authored
      	* g++.dg/other/default1.C: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107889 138bc75d-0d04-0410-961f-82ee72b054a4
      ca9ef96a
    • gdr's avatar
      * ggc.h (GGC_RESIZEVEC): New. · 7ea410eb
      gdr authored
      cp/
              * parser.c (cp_lexer_new_main): Usr GGC_RESIZEVEC instead of 
              ggc_realloc.
              (cp_parser_template_argument_list): Use XRESIZEVEC instead of xrealloc.
              * class.c (pushclass): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107887 138bc75d-0d04-0410-961f-82ee72b054a4
      7ea410eb
    • reichelt's avatar
      * gcc.c (execute): Improve readability. · d4523b3e
      reichelt authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107886 138bc75d-0d04-0410-961f-82ee72b054a4
      d4523b3e
    • rguenth's avatar
      2005-12-02 Richard Guenther <rguenther@suse.de> · 44ac61ba
      rguenth authored
      	* tree-cfg.c (mark_used_vars): New function.
      	(dump_function_to_file): Dump only used VAR_DECLs.
      
      	* gcc.dg/tree-ssa/20031106-6.c: Remove XFAIL.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107885 138bc75d-0d04-0410-961f-82ee72b054a4
      44ac61ba