- 10 Jul, 2009 9 commits
-
-
2009-07-10 Vincent Celier <celier@adacore.com> * make.adb: Do not include object directories or library ALI directories of library projects in the object path. From-SVN: r149460
Vincent Celier committed -
sem_prag.adb (Analyze pragma, [...]): Analyze argument of pragma, to capture global references if the context is generic. 2009-07-10 Ed Schonberg <schonberg@adacore.com> * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of pragma, to capture global references if the context is generic. * exp_ch2.adb (Expand_Discriminant): If a task type discriminant appears within the initialization procedure for the corresponding record, replace it with the proper discriminal. From-SVN: r149459
Ed Schonberg committed -
2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org> PR 25509 PR 40614 * c.opt (Wunused-result): New. * doc/invoke.texi: Document it. * c-common.c (c_warn_unused_result): Use it. testsuite/ * g++.dg/warn/unused-result1-Werror.c: New. From-SVN: r149458
Manuel López-Ibáñez committed -
* targhooks.c (default_target_can_inline_p): Rename from default_target_option_can_inline_p. * targhooks.h (default_target_can_inline_p): Likewise. * target-def.h (TARGET_CAN_INLINE_P): Rename from TARGET_OPTION_CAN_INLINE_P. * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise. * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise. (mep_target_can_inline_p): Rename from mep_target_option_can_inline_p. From-SVN: r149457
DJ Delorie committed -
2009-07-10 Paul Thomas <pault@gcc.gnu.org> PR fortran/39334 * primary.c (match_kind_param): Return MATCH_NO if the symbol has no value. 2009-07-10 Paul Thomas <pault@gcc.gnu.org> PR fortran/39334 * gfortran.dg/recursive_parameter_1.f90: New test. From-SVN: r149456
Paul Thomas committed -
* config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor registers used to pass vectors. From-SVN: r149455
DJ Delorie committed -
2009-07-09 Steven G. Kargl <kargl@gcc.gnu.org> * gfortran.dg/c_kind_tests_2.f03: clean-up leftover module(s). * gfortran.dg/module_equivalence_6.f90: Ditto. * gfortran.dg/alloc_comp_auto_array_2.f90: Ditto. * gfortran.dg/nan_2.f90: Ditto. * gfortran.dg/inquire_11.f90: Ditto. * gfortran.dg/abstract_type_3.f03: Ditto. * gfortran.dg/abstract_type_1.f90: Ditto. * gfortran.dg/private_type_9.f90: Ditto. * gfortran.dg/abstract_type_5.f03: Ditto. * gfortran.dg/elemental_subroutine_6.f90: Ditto. * gfortran.dg/derived_comp_array_ref_3.f90: Ditto. * gfortran.dg/derived_sub.f90: Ditto. * gfortran.dg/missing_optional_dummy_5.f90: Ditto. * gfortran.dg/bounds_check_fail_2.f90: Ditto. * gfortran.dg/maxloc_bounds_6.f90: Ditto. * gfortran.dg/mvbits_6.f90: Ditto. * gfortran.dg/abstract_type_2.f03: Ditto. * gfortran.dg/abstract_type_4.f03: Ditto. * gfortran.dg/bounds_check_9.f90: Ditto. * gfortran.dg/optional_dim_3.f90: Ditto. * gfortran.dg/pr32921.f: Ditto. * gfortran.dg/entry_16.f90: Ditto. * gfortran.dg/generic_16.f90: Ditto. From-SVN: r149454
Steven G. Kargl committed -
From-SVN: r149453
DJ Delorie committed -
From-SVN: r149452
GCC Administrator committed
-
- 09 Jul, 2009 25 commits
-
-
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 -
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 -
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. (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. * gcc.target/m68k/20090709-1.c: New. From-SVN: r149426
Maxim Kuvyrkov committed -
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 -
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 -
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 -
From-SVN: r149421
Janis Johnson committed -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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) <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. Fix surrounding returns to use NULL_RTX rather than 0. From-SVN: r149401
Adam Nemet committed -
* config/mep/mep.c: (mep_option_can_inline_p): New. (TARGET_OPTION_CAN_INLINE_P): Define. From-SVN: r149400
DJ Delorie committed -
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 -
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 -
From-SVN: r149396
GCC Administrator committed
-
- 08 Jul, 2009 6 commits
-
-
PR libstdc++/40691 * include/bugs/valarray-after.h (_Expr::operator!): Fix return type. * testsuite/26_numerics/valarray/40691.cc: New test. From-SVN: r149393
Janis Johnson committed -
2009-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/40675 * simplify.c (gfc_simplify_sign): Handle signed zero correctly. * trans-intrinsic.c (gfc_conv_intrinsic_sign): Support -fno-sign-zero. * invoke.texi (-fno-sign-zero): Add text regarding SIGN * intrinsic. 2009-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/40675 * gfortran.dg/nosigned_zero_1.f90: New test. * gfortran.dg/nosigned_zero_2.f90: New test. From-SVN: r149390
Tobias Burnus committed -
2008-07-08 Paul Thomas <pault@gcc.gnu.org> PR fortran/40683 * gfortran.dg/proc_ptr_21.f90: Initialize 'i'. From-SVN: r149383
Paul Thomas committed -
From-SVN: r149378
Eric Botcazou committed -
2009-07-08 Mark Wielaard <mjw@redhat.com> PR debug/40659 * dwarf2out.c (add_data_member_location_attribute): When we have only a constant offset don't emit a new location description using DW_OP_plus_uconst, but just add the constant with add_AT_int, when dwarf_version > 2. From-SVN: r149377
Mark Wielaard committed -
PR target/38900 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c. (enum reg_class): Add CLOBBERED_REGS. (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise. * config/i386/i386.c (ix86_conditional_register_usage): Moved from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit. (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls. (ix86_expand_call): Use sibcall_insn_operand when needed. Don't force 64-bit sibcalls into R11. * config/i386/constraints.md (U): New constraint. * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it. (sibcall_1_rex64, sibcall_value_1_rex64): Likewise. (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove. From-SVN: r149373
Richard Henderson committed
-