1. 09 Oct, 2010 19 commits
  2. 08 Oct, 2010 21 commits
    • re PR fortran/45943 (gfortran.dg/streamio_16.f90: Fails under MinGW64 - probably \r\n vs \n issue) · 97de8e32
      2010-10-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR fortran/45943
      	* gfortran.dg/streamio_16.f90: Update test.
      
      From-SVN: r165208
      Jerry DeLisle committed
    • re PR rtl-optimization/45903 (unnecessary load of 32/64bit variable when only 8 bits are needed) · 9ad17c6a
      	PR tree-optimization/45903
      	* simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
      	of *SHIFTRT of MEM.
      
      	* gcc.target/i386/pr45903.c: New test.
      
      From-SVN: r165202
      Jakub Jelinek committed
    • re PR rtl-optimization/45903 (unnecessary load of 32/64bit variable when only 8 bits are needed) · 509dd380
      	PR tree-optimization/45903
      	* simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
      	of *SHIFTRT of MEM.
      
      	* gcc.target/i386/pr45903.c: New test.
      
      From-SVN: r165200
      Jakub Jelinek committed
    • future (_Result_alloc): Derive from _Alloc, exploit the Empty Base Optimization. · 0fd76d8e
      2010-10-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/std/future (_Result_alloc): Derive from _Alloc,
      	exploit the Empty Base Optimization.
      
      From-SVN: r165194
      Paolo Carlini committed
    • lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers): Re-construct BLOCK_VARS. · bd39cb52
      2010-10-08  Richard Guenther  <rguenther@suse.de>
      
      	* lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
      	Re-construct BLOCK_VARS.
      	(lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
      	* lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
      	* tree.c (free_lang_data_in_block): Remove.
      	(free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
      	Do not touch the BLOCK tree.
      	* expr.c (expand_expr_real_1): Allow externals.
      
      From-SVN: r165191
      Richard Guenther committed
    • lto-streamer-out.c (lto_output_ts_block_tree_pointers): Do not output BLOCK_SUBBLOCKS. · 8686c474
      2010-10-08  Richard Guenther  <rguenther@suse.de>
      
      	* lto-streamer-out.c (lto_output_ts_block_tree_pointers):
      	Do not output BLOCK_SUBBLOCKS.
      	* lto-streamer-in.c (lto_input_ts_block_tree_pointers):
      	Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
      	Re-construct BLOCK_SUBBLOCKS of parent block.
      	(lto_input_ts_binfo_tree_pointers): Reserve exact space needed
      	for BINFO_BASE_ACCESSES.
      
      From-SVN: r165190
      Richard Guenther committed
    • Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h. · a75bfaa6
      	* Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
      	(TREE_H): Include $(FLAGS_H) instead of options.h.
      	(opts-common.o): Depend on $(FLAGS_H) instead of options.h.
      	* c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
      	* common.opt (flag_complex_method, flag_evaluation_order,
      	flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
      	Variable declarations.
      	* configure.ac (tm_include_list): Include flags.h instead of
      	options.h.
      	* configure: Regenerate.
      	* flags.h: Condition out contents for target libraries.  Include
      	options.h at end of file.
      	(flag_complex_method, flag_ira_algorithm, flag_ira_region,
      	flag_evaluation_order, flag_warn_unused_result): Remove.
      	* gcc.c (main): Intialize global_options with global_options_init.
      	* langhooks-def.h (lhd_init_options_struct): Declare.
      	(LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
      	(LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
      	* langhooks.c (lhd_init_options_struct): New.
      	* langhooks.h (struct lang_hooks): Add init_options_struct.
      	Update comment on init_options.
      	* optc-gen.awk: Generate initializer for global_options_init, not
      	global_options.
      	* opth-gen.awk: Condition out structure declarations for target
      	libraries.  Declare global_options_init.
      	* opts-common.c: Include flags.h instead of options.h.
      	* opts.c (flag_warn_unused_result): Remove.
      	(read_cmdline_options): Take gcc_options parameters.  Pass them to
      	read_cmdline_option.
      	(initial_lang_mask, initial_min_crossjump_insns,
      	initial_max_fields_for_field_sensitive,
      	initial_loop_invariant_max_bbs_in_loop): Define at file scope.
      	(init_options_once): New.  Split out of decode_options.
      	(init_options_struct): New.  Split out of decode_options.
      	(decode_cmdline_options_to_array_default_mask): New.
      	(default_options_optimization): New.  Split out of decode_options.
      	(decode_options): Move most code to other functions.  Update call
      	to read_cmdline_options.
      	(finish_options): New.  Split out of decode_options.
      	* opts.h (decode_options): Add gcc_options parameters.
      	(init_options_once, init_options_struct,
      	decode_cmdline_options_to_array_default_mask): New.
      	* toplev.c (flag_complex_method, flag_ira_algorithm,
      	flag_ira_region, flag_evaluation_order): Remove.
      	(general_init): Use global_options_init for initial flag values
      	for global_dc.
      	(toplev_main): Call init_options_once, init_options_struct,
      	lang_hooks.init_options_struct,
      	decode_cmdline_options_to_array_default_mask and
      	lang_hooks.init_option before decode_options.  Update arguments to
      	decode_options.
      	* tree.h: Include flags.h instead of options.h.
      
      ada:
      	* gcc-interface/misc.c (gnat_init_options_struct): New.  Split out
      	from gnat_init_options.
      	(LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
      
      c-family:
      	* c-common.c (parse_optimize_options): Call
      	decode_cmdline_options_to_array_default_mask before
      	decode_options.  Update arguments to decode_options.
      	* c-common.h (c_common_init_options_struct): Declare.
      	* c-opts.c (c_common_init_options_struct): New.  Split out from
      	c_common_init_options.
      
      cp:
      	* cp-objcp-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
      
      fortran:
      	* f95-lang.c (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
      	* gfortran.h (gfc_init_options_struct): Declare.
      	* options.c (gfc_init_options_struct): New.  Split out from
      	gfc_init_options.
      
      java:
      	* lang.c (java_init_options_struct): New.  Split out from
      	java_init_options.
      	(LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
      
      lto:
      	* lto-lang.c (lto_init_options): Change to
      	lto_init_options_struct.  Update parameters.
      	(LANG_HOOKS_INIT_OPTIONS): Don't define.
      	(LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
      
      From-SVN: r165189
      Joseph Myers committed
    • * gnat.dg/interface5.adb: Compile with warnings disabled. · e899aa16
      From-SVN: r165186
      Arnaud Charlet committed
    • * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define. · ab86687c
      From-SVN: r165184
      Nathan Froyd committed
    • sparc-protos.h (function_arg_advance, [...]): Delete. · 9adafb9f
      	* config/sparc/sparc-protos.h (function_arg_advance, function-arg):
      	Delete.
      	* config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
      	(FUNCTION_INCOMING_ARG): Delete.
      	* config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
      	(function_arg_slotno): Likewise.  Take bool arguments.
      	(sparc_arg_partial_bytes): Update call to it.
      	(function_arg): Rename to...
      	(sparc_function_arg_1): ...this.  Take bool arguments.
      	(sparc_function_arg, sparc_function_incoming_arg): New functions.
      	(function_arg_advance): Rename to...
      	(sparc_function_arg_advance): ...this.  Take bool argument.
      	(TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
      	(TARGET_FUNCTION_INCOMING_ARG): Define.
      
      From-SVN: r165183
      Nathan Froyd committed
    • bfin-protos.h (function_arg, [...]): Delete. · 74f41f02
      	* config/bfin/bfin-protos.h (function_arg, function_arg_advance):
      	Delete.
      	* config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
      	* config/bfin/bfin.c (function_arg_advance): Rename to...
      	(bfin_function_arg_advance): ...this.  Make static.  Take const_tree
      	and bool arguments.
      	(function_arg): Rename to...
      	(bfin_function_arg): ...this.  Make static.  Take const_tree and bool
      	arguments.
      	(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
      
      From-SVN: r165182
      Nathan Froyd committed
    • score-protos.h (score_function_arg): Delete. · 3a2bd2f4
      	* config/score/score-protos.h (score_function_arg): Delete.
      	(score_function_arg_advance): Delete.
      	* config/score/score3.h (score3_function_arg_advance): Take a
      	const_tree and a bool.
      	(score3_function_arg): Likewise.
      	* config/score/score7.h (score7_function_arg_advance): Likewise.
      	(score7_function_arg): Likewise.
      	* config/score/score3.c (score3_classify_arg): Likewise.
      	(score3_function_arg_advance, score3_function_arg): Likewise.
      	* config/score/score7.c (score7_classify_arg): Likewise.
      	(score7_function_arg_advance, score7_function_arg): Likewise.
      	* config/score/score.c (score_function_arg_advance): Likewise.
      	(score_function_arg): Likewise.  De-const-ify `cum' argument.
      	(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
      
      From-SVN: r165181
      Nathan Froyd committed
    • s390-protos.h (s390_function_arg_advance): Delete. · 3cb1da52
      	* config/s390/s390-protos.h (s390_function_arg_advance): Delete.
      	(s390_function_arg): Delete.
      	* config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
      	* config/s390/s390.c (s390_function_arg_float): Take a const_tree.
      	(s390_function_arg_integer): Likewise.
      	(s390_function_arg_advance): Make static.  Take a const_tree and
      	a bool.
      	(s390_function_arg): Likewise.
      	(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
      
      From-SVN: r165180
      Nathan Froyd committed
    • spu-protos.h (spu_function_arg): Delete. · 925ed112
      	* config/spu/spu-protos.h (spu_function_arg): Delete.
      	* config/spu/spu.h (FUNCTION_ARG): Delete.
      	(FUNCTION_ARG_ADVANCE): Move code to ...
      	* config/spu/spu.c (spu_function_arg_advance): New function.
      	(spu_function_arg): Make static.  Take a const_tree and a bool.
      	(spu_setup_incoming_varargs): Call spu_function_arg_advance.
      	(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
      
      From-SVN: r165179
      Nathan Froyd committed
    • tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function. · 9ad6bebe
      	* tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
      	(init_vn_nary_op_from_op): New function.
      	(init_vn_nary_op_from_stmt): New function.
      	(vn_nary_op_lookup_1): New function.
      	(sizeof_vn_nary_op): New function.
      	(alloc_vn_nary_op_noinit): New function.
      	(alloc_vn_nary_op): New function.
      	(vn_nary_op_insert_into): New function.
      	(vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
      	(vn_nary_op_lookup): Likewise.
      	(vn_nary_op_lookup_stmt): Likewise.
      	(vn_nary_op_insert_pieces): Likewise.
      	(vn_nary_op_insert): Likewise.
      	(vn_nary_op_insert_stmt): Likewise.
      	(copy_nary): Likewise.
      	(set_value_id_for_result): New function.
      	(set_hashtable_value_ids): Call it.
      
      From-SVN: r165178
      Nathan Froyd committed
    • [multiple changes] · b878c938
      2010-10-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
      
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch3.adb: Minor reformatting.
      	* exp_ch5.adb: Add comment.
      
      From-SVN: r165177
      Arnaud Charlet committed
    • Add PR buzilla numbers to ChangeLog · 78e27dd3
      From-SVN: r165176
      Tejas Belagod committed
    • [multiple changes] · 40f07b4b
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
      	* gcc-interface/Make-lang.in: Update dependencies.
      	* einfo.ads: Minor reformatting.
      
      2010-10-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
      	sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
      	exp_ch3.adb: Change Is_Inherently_Limited_Type to
      	Is_Immutably_Limited_Type to accord with new RM terminology.
      	* sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
      	of a formal limited private type is not immutably limited in a generic
      	body.
      
      From-SVN: r165175
      Arnaud Charlet committed
    • [multiple changes] · af31bffb
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_prag.adb (Check_Duplicate_Pragma): New procedure
      	Add calls to this new procedure where appropriate
      
      2010-10-08  Vincent Celier  <celier@adacore.com>
      
      	* a-textio.adb (Get_Chunk): Code clean up.
      
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
      	a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
      	a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
      	a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
      	a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
      	a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
      	a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
      	a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
      	parameter.
      
      From-SVN: r165174
      Arnaud Charlet committed
    • fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define. · 0db0c836
      	* config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
      	* config/fr30/fr30.md (leave_func): Rewrite without post_inc.
      
      From-SVN: r165173
      Nathan Froyd committed
    • sem_cat.adb (Check_Categorization_Dependencies): Remote types packages can… · 6f123e48
      sem_cat.adb (Check_Categorization_Dependencies): Remote types packages can depend on preleborated packages.
      
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_cat.adb (Check_Categorization_Dependencies): Remote types
      	packages can depend on preleborated packages.
      
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
      	Interrupt_Handler and Attach_Handler not allowed in generics.
      
      From-SVN: r165172
      Robert Dewar committed