1. 09 Apr, 2009 8 commits
    • [multiple changes] · 3c25856a
      2009-04-09  Pascal Obry  <obry@adacore.com>
      
      	* a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
      	a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
      	a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
      	reformatting.
      
      2009-04-09  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
      	missing overriding indicator if the new declaration is not seen as
      	primitive.
      
      From-SVN: r145804
      Arnaud Charlet committed
    • [multiple changes] · 76c597a1
      2009-04-09  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
      	overflows in computation of bounds.
      
      2009-04-09  Pascal Obry  <obry@adacore.com>
      
      	* a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
      	typos in comment.
      
      From-SVN: r145803
      Arnaud Charlet committed
    • [multiple changes] · 95b89f1b
      2009-04-09  Robert Dewar  <dewar@adacore.com>
      
      	* sem_attr.adb (Check_Stream_Attribute): Check violation of
      	restriction No_Streams
      
      	* gnat_rm.texi: Clarify No_Streams restriction
      
      	* g-socket.adb: Minor reformatting.
      
      2009-04-09  Thomas Quinot  <quinot@adacore.com>
      
      	* g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
      
      2009-04-09  Geert Bosch  <bosch@adacore.com>
      
      	* exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
      	(Set_Result): Likewise.
      	(Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
      	conversion, as required by RM 4.6(31).
      
      From-SVN: r145801
      Arnaud Charlet committed
    • c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC &ARRAY addresses by… · 22a65a54
      c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC &ARRAY addresses by adjusting their types and...
      
      2009-04-09  Richard Guenther  <rguenther@suse.de>
      
      	* c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
      	&ARRAY addresses by adjusting their types and prepending
      	a conversion.
      	* tree-cfg.c (verify_gimple_assign_single): Verify that
      	addresses are correct.
      
      	* gcc.dg/vect/vect-54.c: Make constant input data file-scope
      	to prevent constant propagation.
      	* gcc.dg/vect/vect-56.c: Likewise.
      	* gcc.dg/vect/vect-58.c: Likewise.
      	* gcc.dg/vect/vect-60.c: Likewise.
      	* gcc.dg/vect/no-vfa-vect-57.c: Likewise.
      	* gcc.dg/vect/no-vfa-vect-61.c: Likewise.
      	* gcc.dg/tree-prof/stringop-2.c: Adjust expected outcome.
      
      From-SVN: r145800
      Richard Guenther committed
    • tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant indices into an… · f76968e6
      tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant indices into an array reference if possible.
      
      2009-04-09  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
      	indices into an array reference if possible.
      	* tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
      	Fold POINTER_PLUS_EXPR statements with invariant address.
      
      	* gcc.dg/tree-ssa/ssa-ccp-25.c: New testcase.
      	* gcc.dg/tree-ssa/ssa-ccp-26.c: Likewise.
      
      From-SVN: r145799
      Richard Guenther committed
    • re PR target/39634 (powerpc64 libgcc contains useless softfp functions) · c90c5fb5
      	PR target/39634
      	* config.gcc (powerpc64-*-linux*): Always build biarch.
      
      From-SVN: r145795
      Alan Modra committed
    • re PR c/39613 (gcc 20090331 produces an error at mce64.c in kernel 2.6.29) · 17cede2e
      	PR c/39613
      	* c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
      	it and pedwarn if this results in an INTEGER_CST.
      
      testsuite:
      	* gcc.dg/case-const-1.c, gcc.dg/case-const-2.c,
      	gcc.dg/case-const-3.c: New tests.
      
      From-SVN: r145793
      Joseph Myers committed
    • Daily bump. · 74a6dc82
      From-SVN: r145791
      GCC Administrator committed
  2. 08 Apr, 2009 32 commits
    • hashtable.h (erase): Correctly handle erasing a reference to an entry in the hash table. · 9767a048
      	* include/backward/hashtable.h (erase): Correctly handle erasing a
      	reference to an entry in the hash table.
      	* testsuite/backward/hash_map/25896.cc: New.
      	* testsuite/backward/hash_set/25896.cc: New.
      
      From-SVN: r145788
      Ian Lance Taylor committed
    • baseline_symbols.txt: Regenerate. · 0b83c44b
      	* config/abi/post/mips64-linux-gnu/baseline_symbols.txt:
      	Regenerate.
      	* config/abi/post/mips64-linux-gnu/64/baseline_symbols.txt: New
      	file.
      
      From-SVN: r145779
      Adam Nemet committed
    • c99-stdint-1.c: Fix cut-and-paste mistakes in test. · d34ac4dd
      	* gcc.dg/c99-stdint-1.c: Fix cut-and-paste mistakes in test.
      	* gcc.dg/c99-stdint-7.c, gcc.dg/c99-stdint-8.c: New tests.
      
      From-SVN: r145778
      Joseph Myers committed
    • * zh_CN.po: Update. · bc02c2b1
      From-SVN: r145776
      Joseph Myers committed
    • configure.ac: Bump minimum GMP/MPFR versions to 4.2 and 2.3.1. · a3337ea2
      	* configure.ac: Bump minimum GMP/MPFR versions to 4.2 and 2.3.1.
      	* configure: Regenerate.
      	
      gcc:
      	* doc/install.texi: Update minimum GMP version.  Remove obsolete
      	text in MPFR section.
      
      From-SVN: r145774
      Kaveh R. Ghazi committed
    • re PR middle-end/39573 (Linking fails on AMD with -march=native and -fopenmp,… · 4f0ae266
      re PR middle-end/39573 (Linking fails on AMD with -march=native and -fopenmp, works with generic x86_64)
      
      	PR middle-end/39573
      	* omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
      	variables.
      
      	* libgomp.c++/pr39573.C: New test.
      
      From-SVN: r145772
      Jakub Jelinek committed
    • trans-types.c (gfc_init_types): Ensure gfc_integer_types doesn't contain TYPE_STRING_FLAG types. · dead0bae
      	* trans-types.c (gfc_init_types): Ensure gfc_integer_types doesn't
      	contain TYPE_STRING_FLAG types.
      
      From-SVN: r145771
      Jakub Jelinek committed
    • dwarf2out.c (class_scope_p): New static inline. · ce9ba79b
      	* dwarf2out.c (class_scope_p): New static inline.
      	(class_or_namespace_scope_p): Use it.
      	(gen_variable_die): Use DW_TAG_member tag for static data member
      	declarations instead of DW_TAG_variable.
      
      	* g++.dg/debug/dwarf2/static-data-member1.C: New test.
      
      From-SVN: r145770
      Jakub Jelinek committed
    • tree-ssa-sccvn.c (valueize_refs): Do not continue to valueize random data. · d27f0ddc
      2009-04-08  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-sccvn.c (valueize_refs): Do not continue to
      	valueize random data.
      
      From-SVN: r145768
      Richard Guenther committed
    • re PR fortran/39670 (dollar sign in entities is not recognized when it is first symbol) · cba2a54e
      2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR fortran/39670
      	* invoke.texi (fdollar-ok): Fix typo.
      
      From-SVN: r145767
      Janne Blomqvist committed
    • [multiple changes] · 3d5952be
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
      	suppressed.
      	
      	* exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
      	resolution steps.
      
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
      	No_Local_Allocators restriction preventing local instantiation.
      
      2009-04-08  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_eval.adb: Minor comment fix
      
      2009-04-08  Thomas Quinot  <quinot@adacore.com>
      
      	* g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
      	New limited controlled type used to automate the initialization and
      	finalization of the sockets implementation.
      	(GNAT.Sockets.Initialize, Finalize): Make these no-ops
      
      2009-04-08  Vincent Celier  <celier@adacore.com>
      
      	* prj-attr.adb: New read-only project-level attribute Project_Dir
      
      	* prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
      	read-only attribute of the same name.
      	(Process_Declarative_Items): Call Add_Attributes with Project_Dir
      	(Recursive_Process): Ditto
      
      	* snames.adb: Add new standard name Project_Dir
      
      	* snames.ads: Add new standard name Project_Dir
      
      From-SVN: r145766
      Arnaud Charlet committed
    • re PR fortran/39670 (dollar sign in entities is not recognized when it is first symbol) · f4a55802
      2009-04-08  Daniel Franke  <franke.daniel@gmail.com>
      
             PR fortran/39670
             * invoke.texi (fdollar-ok): Clarify limitations.
      
      From-SVN: r145764
      Daniel Franke committed
    • open.c (already_open): Test for POSIX close return value. · 2ac7316d
      2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
      
              * io/open.c (already_open): Test for POSIX close return value.
              * io/unit.c (close_unit_1): Likewise.
              * io/unix.c (raw_close): Return 0 for success for preconnected units.
      
      From-SVN: r145761
      Janne Blomqvist committed
    • config.gcc (aix tm_file): Add aix-stdint.h. · 557cc596
              * config.gcc (aix tm_file):  Add aix-stdint.h.
              (aix tm clause use_gcc_stdint):  Set to wrap.
              * config/rs6000/aix-stdint.h:  New file.
      
      From-SVN: r145760
      David Edelsohn committed
    • string.c (compare0): Use gfc_charlen_type. · f9bfed22
      2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
      
              * runtime/string.c (compare0): Use gfc_charlen_type.
              * runtime/error.c (gfc_itoa): Move to io/write.c
              (xtoa): Rename to gfc_xtoa.
              * runtime/backtrace.c (show_backtrace): Call gfc_xtoa.
              * intrinsics/cshift0.c (cshift0): Use index_type for shift arg.
              * intrinsics/date_and_time.c (date_and_time): Use index_type.
              (itime_i4): Likewise.
              (itime_i8): Likewise.
              (idate_i4): Likewise.
              (idate_i8): Likewise.
              (gmtime_i4): Likewise.
              (gmtime_i8): Likewise.
              (ltime_i4): Likewise.
              (ltime_i8): Likewise.
              * libgfortran.h (gfc_itoa): Remove prototype.
              (xtoa): Rename prototype to gfc_xtoa.
              * io/list_read.c (nml_read_obj): Use size_t for string length.
              * io/transfer.c (read_block_direct): Change nbytes arg from
              pointer to value.
              (unformatted_read): Minor cleanup, call read_block_directly properly.
              (skip_record): Use ssize_t.
              (next_record_w_unf): Avoid stell() call by calling sseek with SEEK_CUR.
              (iolength_transfer): Make sure to multiply before cast.
              * io/intrinsics.c (fgetc): Remove unnecessary variable.
              * io/format.c (format_hash): Use gfc_charlen_type.
              * io/write.c (itoa): Move from runtime/error.c:gfc_itoa, rename,
              make static.
              (write_i): Call with pointer to itoa.
              (write_z): Call with pointer to gfc_xtoa.
              (write_integer): Pointer to itoa.
              (nml_write_obj): Type cleanup, don't call strlen in loop.
      
      From-SVN: r145758
      Janne Blomqvist committed
    • re PR tree-optimization/36291 (GCC is slow and memory-hungry building sipQtGuipart.cpp) · 75ccc1e7
      2009-04-08  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/36291
      	* tree-dfa.c (add_referenced_var): Do not recurse into
      	global initializers.
      	* tree-ssa-ccp.c (get_symbol_constant_value): Add newly
      	exposed variables.
      	(fold_const_aggregate_ref): Likewise.
      
      From-SVN: r145757
      Richard Guenther committed
    • re PR c++/25185 (deep typedef substitution in error message) · f6f5e3a1
      	PR c++/25185
      	* error.c (dump_aggr_type): Chase template typedefs if
      	-fno-pretty-templates.
      
      From-SVN: r145753
      Jason Merrill committed
    • [multiple changes] · b568955d
      2009-04-08  Thomas Quinot  <quinot@adacore.com>
      
      	* checks.adb: Minor reformatting
      
      2009-04-08  Vincent Celier  <celier@adacore.com>
      
      	* vms_data.ads: Add documentation for new style keyword
      	OVERRIDING_INDICATORS
      
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
      	spec is in the current unit.
      
      From-SVN: r145749
      Arnaud Charlet committed
    • recog.c (ordered_comparison_operator): New. · c6963675
      2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
      
              * recog.c (ordered_comparison_operator): New.
              * gensupport.c (std_preds): Add it.
      	* doc/md.texi (Machine-Independent Predicates): Document it.
      
      From-SVN: r145748
      Paolo Bonzini committed
    • tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging. · 6d07ad98
      	* tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
      	* function.h (rtl_eh): Remove exception_handler_label_map.
      	* except.c (ehl_hash, ehl_eq, add_ehl_entry,
      	remove_exception_handler_label, for_each_eh_label_1): Remove.
      	(rtl_remove_unreachable_regions): Remove.
      	(convert_from_eh_region_ranges): Do not remove unreachable regions.
      	(find_exception_handler_labels): Don't build the hashtable.
      	(maybe_remove_eh_handler): Remove.
      	(for_each_eh_label): Rewrite to walk the tree.
      	(rest_of_handle_eh): Do not cleanup cfg prior EH construction.
      	* except.h (maybe_remove_eh_handler): Remove.
      	* passes.c (init_optimization_passes): Schedule second EH cleanup
      	before out-of-ssa.
      	* cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
      	cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
      
      From-SVN: r145747
      Jan Hubicka committed
    • genoutput.c (validate_optab_operands): New. · 7ddf71e3
      2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
      
      	* genoutput.c (validate_optab_operands): New.
      	(gen_insn, gen_expand): Call it.
      
      	* genflags.c (gen_insn): Detect misused iterators.
      	(main): Pass line_no to gen_insn, exit with status 1 on error.
      
      	* genextract.c (line_no): Make global.
      	(VEC_safe_set_locstr): Change assertion to error message.
      	(main): Exit with status 1 on error.
      
      From-SVN: r145746
      Paolo Bonzini committed
    • [multiple changes] · ed57136d
      2009-04-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
      	presence of entity.
      
      	* usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
      
      2009-04-08  Vincent Celier  <celier@adacore.com>
      
      	* vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
      
      2009-04-08  Thomas Quinot  <quinot@adacore.com>
      
      	* checks.ads: Minor reformatting
      
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* gnat_rm.texi: Update documentation of pragma Obsolescent
      	
      	* sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
      	be omitted, and allow Entity parameter to be omitted.
      
      From-SVN: r145745
      Arnaud Charlet committed
    • [multiple changes] · ef7c5692
      2009-04-08  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_util.adb: Minor comment fix
      
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* g-socket.ads: Fix bad syntax in pragma Obsolescent
      
      	* par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
      	argument with no identifier following one that has an identifier. Was
      	missed in some cases.
      
      	* sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
      	identifier.
      	(Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
      
      	* snames.adb: Add Name_Policy
      
      	* snames.ads: Add Name_Policy
      
      From-SVN: r145744
      Arnaud Charlet committed
    • [multiple changes] · 4da17013
      2009-04-08  Vincent Celier  <celier@adacore.com>
      
      	* snames.adb, snames.ads: Add new standard names IDE and
      	Compiler_Command.
      
      2009-04-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe,
      	i.e. does not need a temporary to capture the value, if expression is
      	an acceess type, even if target type is a record whose size may not
      	have been determined yet.
      
      	* exp_disp.adb (Expand_Dispatching_Call): Set size info for generated
      	access_to_subprogram type, to avoid order-of-elaboration anomalies in
      	gigi.
      
      From-SVN: r145743
      Arnaud Charlet committed
    • gnat_rm.texi: Minor reformatting · 0c7f5241
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* gnat_rm.texi: Minor reformatting
      
      	* par-ch2.adb: Minor reformatting
      
      From-SVN: r145742
      Robert Dewar committed
    • exp_attr.adb, [...]: Code clean up. · ae8c7d87
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
      
      From-SVN: r145741
      Robert Dewar committed
    • sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate properly in… · ff69f95a
      sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate properly in the presence of Remote_Types or...
      
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
      	properly in the presence of Remote_Types or Remote_Call_Interface.
      
      	* sem_util.adb: Add comment.
      
      From-SVN: r145739
      Robert Dewar committed
    • re PR middle-end/39614 (Internal error compiling CSiBE) · 4d84fe7c
      	PR c/39614
      	PR c/39673
      	* c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
      	C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
      	EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
      	* c-convert.c (convert): Do not call fold on results of conversion
      	functions when the result is a C_MAYBE_CONST_EXPR.
      	* c-parser.c (c_parser_postfix_expression): Do not fold condition
      	of __builtin_choose_expr.
      	* c-typeck.c (remove_c_maybe_const_expr): New.
      	(build_unary_op, build_conditional_expr, build_compound_expr,
      	build_binary_op, c_objc_common_truthvalue_conversion): Call
      	remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
      	integer operands.
      
      testsuite:
      	* gcc.c-torture/compile/pr39614-1.c,
      	gcc.c-torture/compile/pr39614-2.c,
      	gcc.c-torture/compile/pr39614-3.c,
      	gcc.c-torture/compile/pr39614-4.c,
      	gcc.c-torture/compile/pr39614-5.c,
      	gcc.c-torture/compile/pr39673-1.c,
      	gcc.c-torture/compile/pr39673-2.c: New tests.
      	* gcc.dg/gnu89-const-expr-2.c, gcc.dg/gnu99-const-expr-2.c: Test
      	more cases.
      	* gcc.dg/overflow-warn-1.c, gcc.dg/overflow-warn-2.c,
      	gcc.dg/overflow-warn-3.c, gcc.dg/overflow-warn-4.c: Update
      	expected errors.
      
      From-SVN: r145737
      Joseph Myers committed
    • [multiple changes] · 2db15b1d
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* ug_words: Add /ASSUME_VALID for -gnatB
      
      	* vms_data.ads: Add /ASSUME_VALID for -gnatB
      
      	* sem_cat.adb: Add clarifying commment
      
      	* a-direio.ads (Bytes): Make sure value is non-zero
      
      2009-04-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Is_Variable): If the prefix is an explicit dereference
      	that does not come from source, check for a rewritten function call in
      	prefixed notation before other forms of rewriting.
      
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
      	these are now obsolescent units used only for bootrapping with an
      	older compiler.
      
      From-SVN: r145733
      Arnaud Charlet committed
    • [multiple changes] · 94fd3dc6
      2009-04-08  Robert Dewar  <dewar@adacore.com>
      
      	* gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
      
      	* sem_ch3.adb: Minor comment updates
      
      2009-04-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
      	that come from source.
      
      From-SVN: r145732
      Arnaud Charlet committed
    • fold-const.c (const_binop): Combine two VECTOR_CST under operation CODE to produce a new one. · d1d1c602
      2009-04-08 Bingfeng Mei <bmei@broadcom.com>
      
      	* fold-const.c (const_binop): Combine two VECTOR_CST under operation 
              CODE to produce a new one. Add a prototype to use fold_convert_const
      
      From-SVN: r145731
      Bingfeng Mei committed
    • utils.c, [...]: Add support for pragma Thread_Local_Storage · 40a14772
      2009-04-08  Tristan Gingold  <gingold@adacore.com>
      
      	* gcc-interface/utils.c, gcc-interface/decl.c, gcc-interface/gigi.h:
      	Add support for pragma Thread_Local_Storage
      
      From-SVN: r145730
      Tristan Gingold committed