1. 16 May, 2007 13 commits
  2. 15 May, 2007 6 commits
  3. 14 May, 2007 21 commits
    • c-typeck.c (build_binary_op): Return early for error. · 3bf6bfcc
      gcc/
      	* c-typeck.c (build_binary_op): Return early for error.
      gcc/testsuite/
      	* gcc.dg/dfp/usual-arith-conv-bad.c: New test.
      
      From-SVN: r124732
      Janis Johnson committed
    • expr.c (cpp_classify_number): Warn about dfp constant for -pedantic. · 5a6bb57e
      libcpp/
              * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic.
      gcc/testsuite/
              * gcc.dg/fltconst-pedantic-dfp.c: New test.
      
      From-SVN: r124731
      Janis Johnson committed
    • re PR c/31924 (gcc accepts invalid suffixes for decimal float constants) · 30e04921
      libcpp/
              PR c/31924
              * expr.c (interpret_float_suffix): Check for invalid suffix.
      gcc/testsuite/
              PR c/31924
              * gcc.dg/fltconst-1.c: New test.
      
      From-SVN: r124730
      Janis Johnson committed
    • func-mixed.c: Replace invalid constant suffixes. · d077694a
      	* gcc.dg/dfp/func-mixed.c: Replace invalid constant suffixes.
      	* gcc.dg/dfp/operator-assignment.c: Ditto.
      
      From-SVN: r124729
      Janis Johnson committed
    • tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate struct nb_iter_bound. · 9e2f83a5
      	* tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
      	struct nb_iter_bound.
      	(free_numbers_of_iterations_estimates_loop): Use ggc_free.
      	* gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
      	* cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
      	* tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
      	(struct scev_info_str, scalar_evolution_info): Add GTY markers.
      	(new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
      	(del_scev_info): Use ggc_free.
      	(scev_initialize): Allocate scalar_evolution_info in gc memory.
      	* loop-init.c: Include ggc.h.
      	(loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
      	(loop_optimizer_finalize): Use ggc_free.
      	* tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
      	pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
      	pass_iv_optimize): Add TODO_ggc_collect.
      	* function.h (struct function): Remove skip marker from x_current_loops.
      	* cfgloop.c: Include ggc.h.
      	(flow_loops_free, flow_loop_free): Free the loop descriptions in gc
      	memory.
      	(establish_preds): Vector superloops is gc allocated.
      	(alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
      	loop->exits list.
      	(flow_loops_find): Vector larray is gc allocated.
      	(loop_exit_free): Use ggc_free.
      	(rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
      	that head of exits list is now not a part of struct loop.
      	(record_loop_exits): Allocate exits table in gc memory.
      	(get_loop_exit_edges, verify_loop_structure, single_exit): Reflect that
      	head of exits list is now not a part of struct loop.
      	* cfgloop.h (struct lpt_decision, struct nb_iter_bound,
      	struct loop_exit): Add GTY marker.
      	(struct loop): Add GTY marker.  Make superloops vector gc allocated.
      	Add skip marker to aux field.  Make head of exits list a separate
      	object.
      	(struct loops): Add GTY marker.  Make larray vector gc allocated.
      	Add param marker to exits table.
      	(get_loops): Type changed.
      	* Makefile.in (tree-scalar-evolution.o): Add gt-tree-scalar-evolution.h
      	dependency.
      	(cfgloop.o, loop-init.o): Add ggc.h dependency.
      	(GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
      	* basic-block.h (struct basic_block_def): Remove skip marker from
      	loop_father field.
      
      From-SVN: r124727
      Zdenek Dvorak committed
    • re PR c++/29928 (typeid of unknown bound array) · 9c49a5e4
      /cp
      2007-05-14  Paolo Carlini  <pcarlini@suse.de>
      
      	PR c++/29928
      	* rtti.c (get_tinfo_decl_dynamic, get_typeid): Try to complete the
      	type only if is a class type (5.2.8/4).
      
      /testsuite
      2007-05-14  Paolo Carlini  <pcarlini@suse.de>
      
      	PR c++/29928
      	* g++.dg/rtti/typeid5.C: New.
      
      From-SVN: r124724
      Paolo Carlini committed
    • builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead of 0 in the call to expand_expr(). · 49452c07
              * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
              of 0 in the call to expand_expr().
              (expand_builtin_mathfn_3): Ditto.
              (expand_builtin_interclass_mathfn): Ditto.
              (expand_builtin_cexpi): Ditto.
              (expand_builtin_int_roundingfn): Ditto.
              (expand_builtin_int_roundingfn_2): Ditto.
              (expand_builtin_pow): Ditto.
              (expand_builtin_powi): Ditto.
              (expand_builtin_bswap): Ditto.
              (expand_builtin_unop): Ditto.
              (expand_builtin_fabs): Ditto.
              (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
              the call to expand_expr().
              (expand_builtin_sync_operation): Ditto.
              (expand_builtin_compare_and_swap): Ditto.
              (expand_builtin_lock_test_and_set): Ditto.
              * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
              instead of 0 in the call to expand_expr().
              (expand_builtin_extract_return_addr): Ditto.
              (expand_builtin_eh_return): Ditto.
              (expand_eh_return): Ditto.
              * explow.c (expr_size): Ditto.
              * expr.c (optimize_bitfield_assignment_op): Ditto.
              (expand_assignement): Ditto.
              (store_expr): Ditto.
              (store_field): Ditto.
              (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
              the call to expand_expr().
              (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
              in the call to expand_expr().
              [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
              BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
              [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
              of expand_expr().
              * optabs.c (expand_vec_shift_expr): Ditto.
              (expand_vec_cond_expr): Ditto.
              (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
              call to expand_expr().
              * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
              in the call to expand_expr().
      
      From-SVN: r124722
      Uros Bizjak committed
    • re PR fortran/30723 (Freeing memory doesn't need to call a library function) · 1529b8d9
             PR fortran/30723
      
      	* trans.h (gfor_fndecl_internal_malloc, gfor_fndecl_internal_malloc64,
      	gfor_fndecl_internal_free): Remove prototypes.
      	(gfor_fndecl_os_error, gfc_call_free, gfc_call_malloc): Add prototypes.
      	* trans.c (gfc_call_malloc, gfc_call_free): New functions.
      	* f95-lang.c (gfc_init_builtin_functions): Add __builtin_free
      	and __builtin_malloc builtins.
      	* trans-decl.c (gfor_fndecl_internal_malloc,
      	gfor_fndecl_internal_malloc64, gfor_fndecl_internal_free): Remove.
      	(gfor_fndecl_os_error): Add.
      	(gfc_build_builtin_function_decls): Don't create internal_malloc,
      	internal_malloc64 and internal_free library function declaration.
      	Create os_error library call function declaration.
      	* trans-array.c (gfc_trans_allocate_array_storage,
      	gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
      	gfc_conv_array_parameter, gfc_duplicate_allocatable): Use
      	gfc_call_malloc and gfc_call_free instead of building calls to
      	internal_malloc and internal_free.
      	* trans-expr.c (gfc_conv_string_tmp): Likewise.
      	* trans-stmt.c (gfc_do_allocate, gfc_trans_assign_need_temp,
      	gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
      	gfc_trans_where_2: Likewise.
      	* trans-intrinsic.c (gfc_conv_intrinsic_ctime,
      	gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
      	gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_trim): Likewise.
      
      	* runtime/memory.c (internal_malloc, internal_malloc64,
      	internal_free): Remove.
      	* runtime/error.c (os_error): Export function.
      	* intrinsics/move_alloc.c: Include stdlib.h.
      	(move_alloc): Call free instead of internal_free.
      	(move_alloc_c): Wrap long lines.
      	* libgfortran.h (os_error): Export prototype.
      	(internal_free): Remove prototype.
      	* gfortran.map (GFORTRAN_1.0): Remove _gfortran_internal_free,
      	_gfortran_internal_malloc and _gfortran_internal_malloc64.
      	Add _gfortran_os_error.
      
      From-SVN: r124721
      Francois-Xavier Coudert committed
    • re PR fortran/31725 ([4.1 only] substring bound evaluated multiple times: wrong… · 1af5627c
      re PR fortran/31725 ([4.1 only] substring bound evaluated multiple times: wrong code for string(function():) = 'X')
      
      	PR fortran/31725
      
      	* trans-expr.c (gfc_conv_substring): Evaluate substring bounds
      	only once.
      
      	* gfortran.dg/substr_4.f: New test.
      
      From-SVN: r124720
      François-Xavier Coudert committed
    • genautomata.c (gen_regexp_el): Allocate correct size for regexp. · 9c40feeb
      2007-05-14  Dave Korn  <dave.korn@artimi.com>
      
      	* genautomata.c (gen_regexp_el):  Allocate correct size for regexp.
      
      From-SVN: r124718
      Dave Korn committed
    • testsuite_io.h: Only include <ios>. · 2fdff2be
      2007-05-14  Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/util/testsuite_io.h: Only include <ios>.
      
      From-SVN: r124717
      Paolo Carlini committed
    • allocator.h: Do not include cpp_type_traits.h. · 56f78eec
      2007-05-14  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/allocator.h: Do not include cpp_type_traits.h.
      
      From-SVN: r124716
      Paolo Carlini committed
    • c-common.c (warnings_for_convert_and_check): Use unsigned_type_for instead of… · ca5ba2a3
      c-common.c (warnings_for_convert_and_check): Use unsigned_type_for instead of c_common_unsigned_type.
      
      gcc/
             * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
             instead of c_common_unsigned_type.
             (c_common_unsigned_type): Remove.
             (shorten_compare): Use c_common_signed_or_unsigned_type instead of
             c_common_unsigned_type.
             (c_common_nodes_and_builtins): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * c-common.h (c_common_unsigned_type): Remove.
             * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * c-format.c (check_format_types): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * convert.c (convert_to_integer): Use unsigned_type_for instead of
             lang_hooks.types.unsigned_type.
             * expmed.c (make_tree): Use unsigned_type_for instead of
             lang_hooks.types.unsigned_type.
             * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
             lang_hooks.types.unsigned_type.
             (build_range_check): Likewise.
             (fold_unary): Likewise.
             (fold_binary): Likewise.
             (fold_ternary): Likewise.
             * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
             * tree.c (get_unsigned_type): New.
             (unsigned_type_for): Use get_unsigned_type instead of
             lang_hooks.types.unsigned_type
      
      gcc/ada
             * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
      
      gcc/cp
             * cp-objcp-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * decl.c (grokdeclarator): Use unsigned_type_for instead of
             c_common_unsigned_type.
      
      gcc/fortran
             * f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Use unsigned_type_for
             instead of gfc_unsigned_type.
             * trans-stmt.c (gfc_trans_do): Use unsigned_type_for instead of
             gfc_unsigned_type.
             * trans-types.c (gfc_unsigned_type): Remove.
             * trans-types.h (gfc_unsigned_type): Remove.
      
      gcc/java
             * expr.c (build_java_binop): Use unsigned_type_for instead of
             java_unsigned_type.
             * java-tree.h (java_unsigned_type): Remove.
             * lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * typeck.c (java_unsigned_type): Remove.
      
      gcc/treelang
             * treetree.c (tree_lang_unsigned_type): Remove.
             (LANG_HOOKS_UNSIGNED_TYPE): Remove.
      
      From-SVN: r124715
      Rafael Avila de Espindola committed
    • m68k-protos.h: Rename m68k_interrupt_function_p to m68k_get_function_kind. · a4242737
      gcc/
      	* config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
      	to m68k_get_function_kind.  Update its prototype.
      	* config/m68k/m68k.c (m68k_attribute_table): Add an entry for
      	interrupt_thread.
      	(m68k_interrupt_function_p): Return enum m68k_function_type
      	instead of bool.  Rename to m68k_get_function_kind.
      	(m68k_handle_fndecl_attribute): Reject interrupt_thread if the
      	target is not fido.
      	(m68k_compute_frame_layout): Don't mark any register for save
      	if an interrupt_thread attribute is specified.
      	(m68k_hard_regno_rename_ok): Update a use of
      	m68k_interrupt_function_p.
      	* config/m68k/m68k.h (EPILOGUE_USES): Update a use of
      	m68k_interrupt_function_p.
      	(m68k_function_type): New.
      	* config/m68k/m68k.md (*return): Output a 'sleep' instruction
      	for a function with an interrupt_thread attribute.
      	* doc/extend.texi: Document the interrupt_thread attribute.
      
      gcc/testsuite/
      	* gcc.target/m68k/interrupt_thread-1.c,
      	gcc.target/m68k/interrupt_thread-2.c,
      	gcc.target/m68k/interrupt_thread-3.c: New.
      	* gcc.target/m68k/m68k.exp: Accept fido.
      
      From-SVN: r124713
      Kazu Hirata committed
    • Updated Roberto Costa's address. · ab6bd693
      From-SVN: r124711
      Roberto Costa committed
    • postypes.h (class fpos<>): Remove redundant forward declaration. · 1398d722
      2007-05-14  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/postypes.h (class fpos<>): Remove redundant forward
      	declaration.
      
      From-SVN: r124710
      Paolo Carlini committed
    • postypes.h (class fpos<>): Remove redundant forward declaration. · ee60de36
      2007-05-14  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/postypes.h (class fpos<>): Remove redundant forward
      	declaration.
      
      From-SVN: r124709
      Paolo Carlini committed
    • * MAINTAINERS (Write After Approval): Add myself. · 388cdf07
      From-SVN: r124708
      Thomas Neumann committed
    • * gennews (files): Reference GCC 4.2 web pages. · 6d707d08
      From-SVN: r124664
      Mark Mitchell committed
    • Daily bump. · 8ec86f64
      From-SVN: r124661
      GCC Administrator committed
    • alloc_comp_basics_1.f90: Fix dg directive. · 90d80eac
      2007-05-13  Dominique d'Humières  <dominiq@lps.ens.fr>
      
      	* alloc_comp_basics_1.f90: Fix dg directive.
      	* altreturn_3.f90: Likewise.
      	* assumed_dummy_1.f90: Likewise.
      	* default_numeric_type_1.f90: Likewise.
      	* inquire_iolength.f90: Likewise.
      	* module_naming_1.f90: Likewise.
      	* oldstyle_2.f90: Likewise.
      	* operator_2.f90: Likewise.
      	* parameter_array_element_1.f90: Likewise.
      	* used_types_11.f90: Likewise.
      	* zero_array_components_1.f90: Likewise.
      	* fmt_zero_precision.f90: Fix dg-output directives.
      	* parameter_array_dummy.f90: Likewise.
      	* real_const_3.f90: Likewise.
      
      From-SVN: r124658
      Dominique d'Humieres committed