1. 10 Jul, 2009 9 commits
  2. 09 Jul, 2009 25 commits
    • pt.c (perform_typedefs_access_check, [...]): Use CLASS_TYPE_P. · 9dbed529
      gcc/cp/
      
      2008-07-08  Simon Martin  <simartin@users.sourceforge.net>
      	    Jason Merrill  <jason@redhat.com>
      
      	* pt.c (perform_typedefs_access_check, get_types_needing_access_check,
      	append_type_to_template_for_access_check_1): Use CLASS_TYPE_P.
      
      Co-Authored-By: Jason Merrill <jason@redhat.com>
      
      From-SVN: r149439
      Simon Martin committed
    • dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value and DW_OP_stack_value. · 116b0722
      2009-07-09  Jakub Jelinek  <jakub@redhat.com>
      
      	* dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value
      	and DW_OP_stack_value.
      
      From-SVN: r149438
      Jakub Jelinek committed
    • unwind-dw2-fde-darwin.c: Include dwarf2.h. · a80b0574
      gcc
      	* unwind-dw2-fde-darwin.c: Include dwarf2.h.
      	* config/mmix/mmix.c: Include dwarf2.h.
      	* config/rs6000/darwin-fallback.c: Include dwarf2.h.
      	* config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
      	* config/sh/sh.c: Include dwarf2.h.
      	* config/i386/i386.c: Include dwarf2.h.
      	* Makefile.in (DWARF2_H): Remove 'elf'.
      	* except.c: Include dwarf2.h.
      	* unwind-dw2.c: Include dwarf2.h.
      	* dwarf2out.c: Include dwarf2.h.
      	* unwind-dw2-fde-glibc.c: Include dwarf2.h.
      	* unwind-dw2-fde.c: Include dwarf2.h.
      	* dwarf2asm.c: Include dwarf2.h.
      gcc/ada
      	* raise-gcc.c: Include dwarf2h (unconditionally).
      include
      	* elf/dwarf2.h: Remove, renaming to...
      	* dwarf2.h: ... this.
      
      From-SVN: r149433
      Tom Tromey committed
    • haifa-sched.c (insn_finishes_cycle_p): New static function. · 356c23b3
      	* haifa-sched.c (insn_finishes_cycle_p): New static function.
              (max_issue): Use it.
              * sched-int.h (struct sched_info: insn_finishes_block_p): New
              scheduler hook.
              * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
              (region_sched_info): Update.
              * sched-ebb.c (ebb_sched_info): Update.
              * modulo-sched.c (sms_sched_info): Update.
      	* sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
      
      From-SVN: r149427
      Maxim Kuvyrkov committed
    • varasm.c (build_constant_desc): Don't share RTL in pool entries. · 5223c588
      	* varasm.c (build_constant_desc): Don't share RTL in pool entries.
      	
      	* gcc.target/m68k/20090709-1.c: New.
      
      From-SVN: r149426
      Maxim Kuvyrkov committed
    • plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. · 8d4cf6d7
      
      2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
      
      	* gcc/plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
      
      From-SVN: r149424
      Basile Starynkevitch committed
    • re PR c++/40684 (ICE in tsubst) · 8be2c871
      2009-07-09  Dodji Seketeli  <dodji@redhat.com>
      
      gcc/cp/ChangeLog:
      	PR c++/40684
      	* pt.c (type_unification_real): Use tsubst_template_arg instead
      	of tsubst to substitute default template arguments.
      
      gcc/testsuite/ChangeLog:
      	PR c++/40684
      	* g++.dg/template/unify11.C: New test.
      
      From-SVN: r149423
      Dodji Seketeli committed
    • re PR fortran/40629 (Host association problem) · 1aafbf99
      2008-07-09  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/40629
      	* resolve.c (check_host_association):  Use the existing
      	accessible symtree and treat function expressions with
      	symbols that have procedure flavor.
      
      2008-07-09  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/40629
      	* gfortran.dg/host_assoc_function_9.f90: New test.
      
      From-SVN: r149422
      Paul Thomas committed
    • Fix typos in previous ChangeLog entry · 6eba227c
      From-SVN: r149421
      Janis Johnson committed
    • re PR fortran/40646 ([F03] array-valued procedure pointer components) · f64edc8b
      2009-07-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/40646
      	* dump-parse-tree.c (show_expr): Renamed 'is_proc_ptr_comp'.
      	* expr.c (is_proc_ptr_comp): Renamed to 'gfc_is_proc_ptr_comp'.
      	(gfc_check_pointer_assign): Renamed 'is_proc_ptr_comp'.
      	(replace_comp,gfc_expr_replace_comp): New functions, analogous
      	to 'replace_symbol' and 'gfc_expr_replace_symbol', just with components
      	instead of symbols.
      	* gfortran.h (gfc_expr_replace_comp): New prototype.
      	(is_proc_ptr_comp): Renamed to 'gfc_is_proc_ptr_comp'.
      	* interface.c (compare_actual_formal): Renamed 'is_proc_ptr_comp'.
      	* match.c (gfc_match_pointer_assignment): Ditto.
      	* primary.c (gfc_match_varspec): Handle array-valued procedure pointers
      	and procedure pointer components. Renamed 'is_proc_ptr_comp'.
      	* resolve.c (resolve_fl_derived): Correctly handle interfaces with
      	RESULT statement, and handle array-valued procedure pointer components.
      	(resolve_actual_arglist,resolve_ppc_call,resolve_expr_ppc): Renamed
      	'is_proc_ptr_comp'.
      	* trans-array.c (gfc_walk_function_expr): Ditto.
      	* trans-decl.c (gfc_get_symbol_decl): Security check for presence of
      	ns->proc_name.
      	* trans-expr.c (gfc_conv_procedure_call): Handle array-valued procedure
      	pointer components. Renamed 'is_proc_ptr_comp'.
      	(conv_function_val,gfc_trans_arrayfunc_assign): Renamed
      	'is_proc_ptr_comp'.
      	(gfc_get_proc_ptr_comp): Do not modify the argument 'e', but instead
      	make a copy of it.
      	* trans-io.c (gfc_trans_transfer): Handle array-valued procedure
      	pointer components.
      
      
      2009-07-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/40646
      	* gfortran.dg/proc_ptr_22.f90: New.
      	* gfortran.dg/proc_ptr_comp_12.f90: New.
      
      From-SVN: r149419
      Janus Weil committed
    • re PR middle-end/40692 (Endless recursion between fold_ternary and fold_cond_expr_with_comparison) · b9da76de
      	PR middle-end/40692
      	* fold-const.c (fold_cond_expr_with_comparison): Don't replace
      	arg1 with arg01 if arg1 is already INTEGER_CST.
      
      	* gcc.c-torture/compile/pr40692.c: New test.
      
      From-SVN: r149418
      Jakub Jelinek committed
    • [multiple changes] · d175a2fa
      2009-07-09  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch10.adb (Install_Context): If the unit is a package body,
      	install the private with_clauses of the corresponding package
      	declaration.
      
      2009-07-09  Robert Dewar  <dewar@adacore.com>
      
      	* checks.adb: Minor reformatting
      
      2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
      
      	* ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
      	into ug_words.
      
      2009-07-09  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
      	Do not warn for a constant overlaying any constant object
      
      From-SVN: r149417
      Arnaud Charlet committed
    • [multiple changes] · 24da37f2
      2009-07-09  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch10.adb (Install_Context): If the unit is a package body,
      	install the private with_clauses of the corresponding package
      	declaration.
      
      2009-07-09  Robert Dewar  <dewar@adacore.com>
      
      	* checks.adb: Minor reformatting
      
      2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
      
      	* ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
      	into ug_words.
      
      2009-07-09  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
      	Do not warn for a constant overlaying any constant object
      
      From-SVN: r149416
      Arnaud Charlet committed
    • [multiple changes] · 7a5debc9
      2009-07-09  Thomas Quinot  <quinot@adacore.com>
      
      	* g-socket.adb (Check_Selector): Do not create local copies of the
      	socket sets on the stack.
      
      2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
      
      	* gnat_ugn.texi: Add missing VMS translations.
      
      From-SVN: r149414
      Arnaud Charlet committed
    • [multiple changes] · 3f92c93b
      2009-07-09  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
      	condition, to prevent generation of visible code during expansion,
      	when Check is not enabled.
      
      2009-07-09  Gary Dismukes  <dismukes@adacore.com>
      
      	* checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
      	the check gets registered for any available local handler
      	(Set_Local_Raise).
      
      	* sem_util.adb: Add with and use of Exp_Ch11.
      	(Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
      	that the check gets registered for any available local handler.
      
      	* exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
      	on slice ranges.
      
      2009-07-09  Steve Baird  <baird@adacore.com>
      
      	* exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
      	function.
      	(Expand_N_Exception_Declaration): Fix handling of exceptions
      	declared in a subprogram.
      
      From-SVN: r149413
      Arnaud Charlet committed
    • [multiple changes] · f6cf5b85
      2009-07-09  Emmanuel Briot  <briot@adacore.com>
      
      	* prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
      	multi-unit files.
      
      2009-07-09  Thomas Quinot  <quinot@adacore.com>
      
      	* freeze.adb: Minor reformatting
      
      	* exp_ch3.adb: Minor comment fix.
      
      	* sinfo.ads: Minor comment fix
      
      2009-07-09  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
      
      From-SVN: r149411
      Arnaud Charlet committed
    • [multiple changes] · 7aedb36a
      2009-07-09  Ed Schonberg  <schonberg@adacore.com>
      
      	* freeze.adb (Freeze_Expression): If the expression is the name of a
      	function in a call, and the function has not been frozen yet, create
      	extra formals for it to ensure that the proper actuals are created
      	when expanding the call.
      
      2009-07-09  Emmanuel Briot  <briot@adacore.com>
      
      	* prj-pp.adb (Print): Fix handling of source index when set on a
      	declaration node.
      
      From-SVN: r149408
      Arnaud Charlet committed
    • einfo.ads, einfo.adb: New attribute Related_Expression... · a4941eec
      2009-07-09  Ed Schonberg  <schonberg@adacore.com>
      
      	* einfo.ads, einfo.adb: New attribute Related_Expression, used to link
      	a temporary to the source expression whose value it captures.
      
      	* exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
      
      From-SVN: r149406
      Ed Schonberg committed
    • re PR fortran/40604 (ICE with -fcheck=pointer) · 4b41f35e
      2009-07-09  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/40604
              * intrinsic.c (gfc_convert_type_warn): Set sym->result.
              * trans-expr.c (gfc_conv_procedure_call): Fix -fcheck=pointer
              for optional arguments.
      
      2009-07-09  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/40604
              * gfortran.dg/pointer_check_6.f90: New test.
      
      From-SVN: r149405
      Tobias Burnus committed
    • simplify-rtx.c (simplify_binary_operation_1): Transform (and (truncate)) into (truncate (and)). · fcaf7e12
      	* simplify-rtx.c (simplify_binary_operation_1) <AND>: Transform (and
              (truncate)) into (truncate (and)).
      
      testsuite/
      	* gcc.target/mips/truncate-5.c: New test.
      
      From-SVN: r149402
      Adam Nemet committed
    • combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before creating LHS paradoxical subregs. · 3f36bac2
      	* combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
      	creating LHS paradoxical subregs.  Fix surrounding returns to
      	use NULL_RTX rather than 0.
      
      From-SVN: r149401
      Adam Nemet committed
    • mep.c: (mep_option_can_inline_p): New. · ae30c1fa
      * config/mep/mep.c: (mep_option_can_inline_p): New.
      (TARGET_OPTION_CAN_INLINE_P): Define.
      
      From-SVN: r149400
      DJ Delorie committed
    • re PR libfortran/40330 (incorrect IO) · e6fe9294
      2009-07-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libfortran/40330
      	PR libfortran/40662
      	* gfortran.dg/fmt_cache_1.f: New test.
      
      From-SVN: r149399
      Jerry DeLisle committed
    • re PR libfortran/40330 (incorrect IO) · 2418d0e0
      2009-07-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libfortran/40330
      	PR libfortran/40662
      	* io/io.h (st_parameter_dt): Define format_not_saved bit used to signal
      	whether the parsed format data was previously saved. Used to determine
      	if the current format data should be freed or not.
      	* io/transfer.c (st_read_done): Use the format_not_saved bit.
      	(st_write_done): Likewise.
      	* io/format.c (parse_format_list): Add boolean pointer to arg list. This
      	pointer is used to return status to the caller regarding whether it is
      	safe to cache the parsed format data.  Currently, if a FMT_STRING token
      	is encounetered, it is not safe to cache. Also, added a local boolean
      	variable to hold this information as recursive calls to
      	parse_format_list are made.  Remove previous save_format logic.
      	(parse_format): Do not use the format caching facility if the current
      	unit is an internal unit or if it is not safe to save parsed format
      	data.
      
      From-SVN: r149398
      Jerry DeLisle committed
    • Daily bump. · 0eb8f20c
      From-SVN: r149396
      GCC Administrator committed
  3. 08 Jul, 2009 6 commits