- 12 Aug, 2009 2 commits
-
-
2009-08-11 Benjamin Kosnik <bkoz@redhat.com> * include/precompiled/extc++.h: Don't include TR1 if C++0x. * include/precompiled/stdc++.h: Don't include cassert if _GLIBCXX_NO_ASSERT defined. * include/ext/cast.h (_GLIBCXX_BEGIN_NAMESPACE): Remove extra semi-colon. * include/ext/pointer.h (_GCC_CXX_POINTER_COMPARISON_OPERATION_SET): Same. * testsuite/17_intro/headers/all.cc: Move into dialect-specific directory. * testsuite/17_intro/headers/all_pedantic_errors.cc: Same. * testsuite/17_intro/headers/all_assert_neg.cc: Same. * testsuite/17_intro/headers/all_c++200x_compatibility.cc: Same. * testsuite/17_intro/headers/c++1998/all.cc: Use extc++.h include. * testsuite/17_intro/headers/c++1998/stdc++.cc: Converted all.cc, use stdc++.h include. * testsuite/17_intro/headers/c++1998/all_pedantic_errors.cc: Same. * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Same. * testsuite/17_intro/headers/c++1998/all_c++200x_compatibility.cc: Same. * testsuite/17_intro/headers/c++1998/all_no_exceptions.cc: New. * testsuite/17_intro/headers/c++1998/all_multiple_inclusion.cc: To... * testsuite/17_intro/headers/c++1998/stdc++_multiple_inclusion.cc ...this. * testsuite/17_intro/headers/c++200x/all.cc: To... * testsuite/17_intro/headers/c++200x/stdc++.cc: ..this. * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: To... * testsuite/17_intro/headers/c++200x/stdc++_multiple_inclusion.cc: ...this. * testsuite/17_intro/headers/c++200x/all_no_exceptions.cc: New. * testsuite/17_intro/headers/c++200x/all_pedantic_errors.cc: New. From-SVN: r150672
Benjamin Kosnik committed -
From-SVN: r150671
GCC Administrator committed
-
- 11 Aug, 2009 16 commits
-
-
2009-08-11 Janus Weil <janus@gcc.gnu.org> PR fortran/41022 * trans-expr.c (gfc_conv_procedure_call): Handle procedure pointer components as actual arguments. 2009-08-11 Janus Weil <janus@gcc.gnu.org> PR fortran/41022 * gfortran.dg/proc_ptr_comp_14.f90: New. From-SVN: r150665
Janus Weil committed -
Fix PR debug/40990 PR debug/40990 * lang.c (put_decl_node): Outputs different level of information depending on the verbosity level. From-SVN: r150659
Dodji Seketeli committed -
* config/mips/predicates.md (qi_mask_operand, hi_mask_operand, si_mask_operand, and_load_operand, low_bitmask_operand, and_reg_operand, and_operand): New predicates. * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints. * config/mips/mips.c (and_operands_ok): New function. * config/mips/mips-protos.h (and_operands_ok): Declare it. * config/mips/mips.md (move_type): Add ext_ins and logical. (type): Handle them. (and<mode>3): Use and_reg_operand as the second operand's predicate. (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and shift_shift. Remove commutative constraint modifier. (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and shift_shift. (*clear_upper32_dext): Remove define_insn_and_split. (*clear_upper32): Turn this define_insn_and_split ... (splitter for ANDing register with 0xffff_ffff): .. into this. testsuite/ * gcc.target/mips/ext-5.c: New test. * gcc.target/mips/ext-6.c: New test. * gcc.target/mips/ext-7.c: New test. * gcc.target/mips/ext-8.c: New test. * gcc.target/mips/extend-2.c: New test. From-SVN: r150657
Adam Nemet committed -
combine.c (try_widen_shift_mode): Factor out code to check if an integer constant is a low-order bitmask from here ... * combine.c (try_widen_shift_mode): Factor out code to check if an integer constant is a low-order bitmask from here ... * rtlanal.c (low_bitmask_len): ... to here. * rtl.h (low_bitmask_len): Declare. From-SVN: r150656
Adam Nemet committed -
PR target/8603 * config/alpha/alpha.md (addsi3): Remove expander. (addsi3): Rename from *addsi3_internal insn pattern. (subsi3): Remove expander. (subsi3): Rename from *subsi3_internal insn pattern. From-SVN: r150654
Uros Bizjak committed -
* config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and FWRITE_UNLOCKED. From-SVN: r150653
Douglas B Rupp committed -
* config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure that records that fit in 64 bits are returned by immediate value, as required by OpenVMS Calling Standard. (function_value): Adjust for above modification. (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use virtual_incoming_args_rtx as base object, not next_arg. * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0. Co-Authored-By: Douglas B Rupp <rupp@gnat.com> Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com> From-SVN: r150652
Vasiliy Fofanov committed -
reload.c (find_reloads_subreg_address): Check the original req_equiv_mem address to detect the case where an address is... * reload.c (find_reloads_subreg_address): Check the original req_equiv_mem address to detect the case where an address is not valid in the outer mode. From-SVN: r150649
Ulrich Weigand committed -
re PR bootstrap/40788 (ICE on sparc: tree check: expected class 'expression', have 'declaration' (var_decl) in gimplify_va_arg_expr, at builtins.c:5107) 2009-08-11 Richard Guenther <rguenther@suse.de> PR bootstrap/40788 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION. From-SVN: r150648
Richard Guenther committed -
* config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS. From-SVN: r150647
Douglas B Rupp committed -
* config/alpha/alpha.c (alpha_sa_size): Force procedure type to PT_STACK when frame_pointer_needed on OpenVMS. (alpha_pv_save_size, alpha_using_fp): Remove. (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE with proper processing for PT_NULL. (alpha_vms_initial_elimination_offset): New function. Support for INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL. (alpha_sa_size): Force procedure type to PT_STACK when frame_pointer_needed on OpenVMS. * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype. (alpha_using_fp): Likewise. (alpha_vms_can_eliminate): Add prototype. (alpha_vms_initial_elimination_offset): Likewise. * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset. Co-Authored-By: Douglas B Rupp <rupp@gnat.com> From-SVN: r150646
Olivier Hainque committed -
* config/alpha/alpha.c (common_object_handler): New function. (vms_attribute_table): Declare a single attribute "common_object". (vms_output_aligned_decl_common): New global function. (SECTION_VMS_OVERLAY): Delete. (SECTION_VMS_GLOBAL): Likewise. (SECTION_VMS_INITIALIZE): Likewise. (vms_asm_named_section): Remove support for above flags. (vms_section_type_flags): Delete. (TARGET_SECTION_TYPE_FLAGS): Likewise. * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New. * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete. (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro. Co-Authored-By: Douglas B Rupp <rupp@gnat.com> From-SVN: r150645
Eric Botcazou committed -
2009-08-10 Benjamin Kosnik <bkoz@redhat.com> * include/std/future: Move error handling bits outside macro guard. * src/future.cc: Adjust. * include/precompiled/stdc++.h: Add future. * doc/xml/manual/using.xml: Same. From-SVN: r150642
Benjamin Kosnik committed -
2009-08-10 Benjamin Kosnik <bkoz@redhat.com> * src/hashtable.cc: Just definitions. * src/hashtable_c++0x.cc: Compile C++0x versions. * src/hash.cc: Same. * src/hash_c++0x.cc: Same. src/hash_tr1.cc: Compile TR1 versions. src/hashtable_tr1.cc: Same. * src/limits_c++0x.cc: Sync build error handling. * src/Makefile.am (sources): Change hash.cc to hash_tr1.cc, hashtable.cc to hashtable_tr1.cc. * src/Makefile.in: Regenerate. From-SVN: r150641
Benjamin Kosnik committed -
2009-08-10 Benjamin Kosnik <bkoz@redhat.com> * include/tr1_impl/functional: Doxygen markup. * doc/html/*: Regenerate. From-SVN: r150640
Benjamin Kosnik committed -
From-SVN: r150639
GCC Administrator committed
-
- 10 Aug, 2009 22 commits
-
-
PR target/41015 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list. (sub_ddmmss): Likewise. From-SVN: r150635
SUGIOKA Toshinobu committed -
Implement DR 757: It's OK for a decl to use a type without linkage so long as the decl is defined in the current translation unit. * decl2.c (no_linkage_decls): New vector. (mark_used): Add decls that use types with no linkage. (cp_write_global_declarations): Check that they are defined. (decl_defined_p, no_linkage_error): New fns. * cp-tree.h (DECL_NO_LINKAGE_CHECKED): New macro. (struct lang_decl_base): Add flag. * decl.c (grokfndecl): Don't check type linkage. (grokvardecl): If the type has no linkage, just make sure DECL_LANG_SPECIFIC is set. * pt.c (check_instantiated_arg): Don't check type linkage. * name-lookup.c (is_local_extern): New fn. * name-lookup.h: Declare it. From-SVN: r150634
Jason Merrill committed -
2009-08-10 Benjamin Kosnik <bkoz@redhat.com> * include/std/future: Fixes for -fno-exceptions. * include/bits/functexcept.h: Same. * libsupc++/exception_ptr.h: Same. * src/pool_allocator.cc: Same. * src/future.cc: Same. * src/functexcept.cc: Same. * config/abi/pre/gnu.ver: New exports. * testsuite/30_threads/packaged_task/cons/assign_neg.cc: Adjust. * testsuite/30_threads/packaged_task/cons/copy_neg.cc: Same. * testsuite/30_threads/unique_future/cons/assign_neg.cc: Same. * testsuite/30_threads/unique_future/cons/copy_neg.cc: Same. * testsuite/30_threads/shared_future/cons/assign_neg.cc: Same. * testsuite/30_threads/promise/cons/assign_neg.cc: Same. * testsuite/30_threads/promise/cons/copy_neg.cc: Same. * testsuite/23_containers/deque/operators/1.cc: Separate in two... * testsuite/23_containers/deque/operators/2.cc: New. From-SVN: r150633
Benjamin Kosnik committed -
2009-08-10 Andreas Tobler <a.tobler@schweiz.org> PR bootstrap/41018 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright year. From-SVN: r150632
Andreas Tobler committed -
2009-08-10 Manuel López-Ibáñez <manu@gcc.gnu.org> testsuite/ * gcc.dg/dg.exp: Test also c-c++-common dir. * g++.dg/dg.exp: Likewise. * g++.dg/warn/Wconversion-real.C: Delete. * gcc.dg/Wconversion-real.c: Move to ... * c-c++-common/Wconversion-real.c: ... here. * lib/target-supports.exp (check_effective_target_c,check_effective_target_c++): New. From-SVN: r150627
Manuel López-Ibáñez committed -
PR target/37053 * reload1.c (reload_as_needed): Use cancel_changes to completely undo a failed replacement attempt. From-SVN: r150626
Ulrich Weigand committed -
From-SVN: r150625
Neil Vachharajani committed -
2009-08-10 Laurent GUERBY <laurent@guerby.net> * make.adb: Handle multilib From-SVN: r150623
Laurent GUERBY committed -
2009-08-10 Daniel Kraft <d@domob.eu> PR fortran/37425 * gfortran.dg/typebound_operator_1.f03: New test. * gfortran.dg/typebound_operator_2.f03: New test. 2009-08-10 Daniel Kraft <d@domob.eu> PR fortran/37425 * gfortran.h (struct gfc_namespace): New fields tb_uop_root and tb_op. (gfc_find_typebound_user_op): New routine. (gfc_find_typebound_intrinsic_op): Ditto. (gfc_check_operator_interface): Now public routine. * decl.c (gfc_match_generic): Match OPERATOR(X) or ASSIGNMENT(=). * interface.c (check_operator_interface): Made public, renamed to `gfc_check_operator_interface' accordingly and hand in the interface as gfc_symbol rather than gfc_interface so it is useful for type-bound operators, too. Return boolean result. (gfc_check_interfaces): Adapt call to `check_operator_interface'. * symbol.c (gfc_get_namespace): Initialize new field `tb_op'. (gfc_free_namespace): Free `tb_uop_root'-based tree. (find_typebound_proc_uop): New helper function. (gfc_find_typebound_proc): Use it. (gfc_find_typebound_user_op): New method. (gfc_find_typebound_intrinsic_op): Ditto. * resolve.c (resolve_tb_generic_targets): New helper function. (resolve_typebound_generic): Use it. (resolve_typebound_intrinsic_op), (resolve_typebound_user_op): New. (resolve_typebound_procedures): Resolve operators, too. (check_uop_procedure): New, code from gfc_resolve_uops. (gfc_resolve_uops): Moved main code to new `check_uop_procedure'. From-SVN: r150622
Daniel Kraft committed -
2009-08-10 Richard Guenther <rguenther@suse.de> PR middle-end/41006 * tree-ssa.c (useless_type_conversion_p_1): Fold into ... (useless_type_conversion_p): ... here. Require pointer targets to be compatible. * gcc.c-torture/compile/pr41006-1.c: New testcase. * gcc.c-torture/compile/pr41006-2.c: Likewise. From-SVN: r150621
Richard Guenther committed -
2009-08-10 Janus Weil <janus@gcc.gnu.org> PR fortran/40940 * decl.c (gfc_match_type_spec): Match CLASS statement and warn about missing polymorphism. * gfortran.h (gfc_typespec): Add field 'is_class'. * misc.c (gfc_clear_ts): Initialize 'is_class' to zero. * resolve.c (type_is_extensible): New function to check if a derived type is extensible. (resolve_fl_variable_derived): Add error checks for CLASS variables. (resolve_typebound_procedure): Disallow non-polymorphic passed-object dummy arguments, turning warning into error. (resolve_fl_derived): Use 'type_is_extensible'. Disallow non-polymorphic passed-object dummy arguments for procedure pointer components, turning warning into error. Add error check for CLASS components. 2009-08-10 Janus Weil <janus@gcc.gnu.org> PR fortran/40940 * gfortran.dg/class_1.f03: New. * gfortran.dg/class_2.f03: New. * gfortran.dg/proc_ptr_comp_pass_1.f90: Use CLASS instead of TYPE. * gfortran.dg/proc_ptr_comp_pass_2.f90: Ditto. * gfortran.dg/proc_ptr_comp_pass_3.f90: Ditto. * gfortran.dg/typebound_call_10.f03: Ditto. * gfortran.dg/typebound_call_2.f03: Ditto. * gfortran.dg/typebound_call_3.f03: Ditto. * gfortran.dg/typebound_call_4.f03: Ditto. * gfortran.dg/typebound_generic_3.f03: Ditto. * gfortran.dg/typebound_generic_4.f03: Ditto. * gfortran.dg/typebound_proc_1.f08: Ditto. * gfortran.dg/typebound_proc_5.f03: Ditto. * gfortran.dg/typebound_proc_6.f03: Ditto. From-SVN: r150620
Janus Weil committed -
2009-08-10 Vincent Celier <celier@adacore.com> * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use the temporary file name in the error message when the temporary file cannot be created. 2009-08-10 Yannick Moy <moy@adacore.com> * gnat_ugn.texi: Fix typo From-SVN: r150619
Arnaud Charlet committed -
2009-08-10 Robert Dewar <dewar@adacore.com> * exp_ch7.adb: Add ??? comment for last change 2009-08-10 Vincent Celier <celier@adacore.com> * prj-env.adb (Add_To_Buffer): New procedure (Create_Config_Pragmas_File): Write to temporary file in one shot (Create_Mapping_File): Ditto (Set_Ada_Paths): Ditto From-SVN: r150618
Arnaud Charlet committed -
2009-08-10 Vincent Celier <celier@adacore.com> PR ada/17566 * xref_lib.adb (Print_Xref): Make sure that there is at least one space between a declaration name and its type. From-SVN: r150617
Vincent Celier committed -
2009-08-10 Dodji Seketeli <dodji@redhat.com> gcc/ChangeLog: PR c++/40866 * tree-inline.c (copy_statement_list): The resulting copy shouldn't loose the original type of the statement list. gcc/testsuite/ChangeLog: PR c++/40866 * g++.dg/expr/stmt-expr-1.C: New test. From-SVN: r150615
Dodji Seketeli committed -
* config/alpha/alpha.c: Include libfuncs.h (avms_asm_output_extern): New function. (alpha_init_libfuncs): Init some decc libfuncs. * config/alpha/alpha-protos.h (avms_asm_output_external): Declare. * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define. (DO_CRTL_NAMES): Define. (LIB_SPEC): Remove. * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef. (LONG_TYPE_SIZE): Define. (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1 (SUBTARGET_SWITCHES): Define malloc64 switch. (TARGET_DEFAULT): Default MASK_MALLOC64 set. (MASK_RETURN_ADDR): Define. doc/invoke.texi (mmalloc64): Document switch. From-SVN: r150614
Douglas B Rupp committed -
* config/alpha/alpha.c (struct machine_function): New flag for VMS, uses_condition_handler. (alpha_expand_builtin_establish_vms_condition_handler): New expander. (alpha_expand_builtin_revert_vms_condition_handler): New expander. (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values. (code_for_builtin): New insn codes for the new alpha_builtins. (alpha_init_builtins): Register the new functions as BUILT_IN_MD. (alpha_sa_size): Account for uses_condition_handler. (alpha_expand_prologue): Likewise. (alpha_start_function): Likewise. (alpha_expand_epilogue): Likewise. * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin establish/revert expanders. * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define. * config/alpha/alpha.md (builtin_establish_vms_condition_handler): New expander, resorting to the alpha.c associated function. (builtin_revert_vms_condition_handler): Likewise. * config/alpha/vms-gcc_shell_handler.c: New file. Implements __gcc_shell_handler, the static VMS condition handler used as an indirection wrapper to the current dynamically established handler. * config/alpha/vms-unwind.h: Complete rewrite. * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c * config/alpha/vms.h (MD_UNWIND_SUPPORT): Co-Authored-By: Douglas B Rupp <rupp@gnat.com> From-SVN: r150612
Olivier Hainque committed -
* config/alpha/alpha.c (alpha_links): Add 'target' field. (alpha_need_linkage): Handle aliases. Return function symbol. (alpha_use_linkage): Rename 'linkage' argument to 'func'. Use ultimate alias target for the linkage name. * config/alpha/alpha.md (movmemdi): Use the symbol returned by alpha_need_linkage for the function symbol. (setmemdi): Likewise. Co-Authored-By: Douglas B Rupp <rupp@gnat.com> From-SVN: r150611
Eric Botcazou committed -
* config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS. * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define. (ASM_WEAKEN_LABEL): Define. (CRT_CALL_STATIC_FUNCTION): Define. (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o. (ENDFILE_SPEC): Define. (INIT_SECTION_ASM_OP): Define. * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove. * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o crtend.o crtendS.o. (MULTILIB_OSDIRNAMES): Define. (shlib_version): Define. (SHLIB_EXT): Define. (SHLIB_OBJS): Define. (SHLIB_NAME): Define. (SHLIB_MULTILIB): Define. (SHLIB_INSTALL): Define. (SHLIB_SYMVEC): Define. (SHLIB_SYMVECX2): Define. (SHLIB_LINK): Define. From-SVN: r150610
Douglas B Rupp committed -
alpha.c (alpha_initialize_trampoline): Initialize VMS trampoline IAW ABI for bounded procedure calls. * config/alpha/alpha.c (alpha_initialize_trampoline): Initialize VMS trampoline IAW ABI for bounded procedure calls. (alpha_start_function): Emit transfer address on nested functions for VMS trampoline call. * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm since no longer used. * config/alpha/vms-tramp.asm: Remove. * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined since now only data initialized at runtime. From-SVN: r150609
Douglas B Rupp committed -
* config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define. (LINK_GCC_C_SEQUENCE_SPEC): Define. (MD_EXEC_PREFIX): Remove, no longer used. (MD_STARTFILE_PREFIX): Likewise. (INCLUDE_DEFAULTS): Likewise. * config/alpha/t-vms: (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile. From-SVN: r150608
Douglas B Rupp committed -
From-SVN: r150603
GCC Administrator committed
-