OSDN Git Service

pf3gnuchains/gcc-fork.git
11 years agoinclude/
espindola [Mon, 19 Oct 2009 15:11:35 +0000 (15:11 +0000)]
include/
2009-10-09  Rafael Avila de Espindola  <espindola@google.com>

PR40790
* plugin-api.h: Don't include stdint.h unconditionally.

lto-plugin/
2009-10-09  Rafael Avila de Espindola  <espindola@google.com>

PR40790
* configure: Regenerate.
* configure.ac: Add AC_TYPE_UINT64_T.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152976 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-19 Matthias Klose <doko@ubuntu.com>
doko [Mon, 19 Oct 2009 14:26:28 +0000 (14:26 +0000)]
2009-10-19  Matthias Klose  <doko@ubuntu.com>

        PR target/40134
        * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152975 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-18 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 19 Oct 2009 08:45:43 +0000 (08:45 +0000)]
2009-10-18  Richard Guenther  <rguenther@suse.de>

PR fortran/41494
* trans-expr.c (gfc_trans_scalar_assign): Do not call
gfc_evaluate_now.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152973 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM
jakub [Mon, 19 Oct 2009 07:39:43 +0000 (07:39 +0000)]
* cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM
op0.

* gcc.dg/debug/vta-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152972 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Mon, 19 Oct 2009 00:16:47 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152970 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Sun, 18 Oct 2009 00:16:47 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152964 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
hutchinsonandy [Sat, 17 Oct 2009 22:42:17 +0000 (22:42 +0000)]
2009-10-17  Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
PR middle-end/41738
* optabs.c (expand_binop): Make mode of shift count expression mode of shift count not target.
Remove indent nit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152961 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
ebotcazou [Sat, 17 Oct 2009 22:21:24 +0000 (22:21 +0000)]
* tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
case.  Force using values to replace references within the statement.
(convert_local_reference_stmt): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152960 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
ebotcazou [Sat, 17 Oct 2009 22:17:26 +0000 (22:17 +0000)]
* gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
remove a subsequent GOTO or RETURN statement.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152959 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
hutchinsonandy [Sat, 17 Oct 2009 22:15:45 +0000 (22:15 +0000)]
2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
* config/avr.md (*movqi): Add zero as equally preferable constraint as general register.
(*movhi): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152958 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-17 Janus Weil <janus@gcc.gnu.org>
pault [Sat, 17 Oct 2009 18:09:25 +0000 (18:09 +0000)]
2009-10-17  Janus Weil  <janus@gcc.gnu.org>
    Paul Thomas  <pault@gcc.gnu.org>

PR fortran/41608
* decl.c (gfc_match_data_decl): Add BT_CLASS for undefined type
and empty type errors.
* parse.c (gfc_build_block_ns): Only set recursive if parent ns
has a proc_name.

PR fortran/41629
PR fortran/41618
PR fortran/41587
* gfortran.h : Add class_ok bitfield to symbol_attr.
* decl.c (build_sym): Set attr.class_ok if dummy, pointer or
allocatable.
(build_struct): Use gfc_try 't' to carry errors past the call
to encapsulate_class_symbol.
(attr_decl1): For a CLASS object, apply the new attribute to
the data component.
* match.c (gfc_match_select_type): Set attr.class_ok for an
assigned selector.
* resolve.c (resolve_fl_variable_derived): Check a CLASS object
is dummy, pointer or allocatable by testing the class_ok and
the use_assoc attribute.

2009-10-17  Janus Weil  <janus@gcc.gnu.org>
    Paul Thomas  <pault@gcc.gnu.org>

PR fortran/41629
* gfortran.dg/class_6.f90: New test.

PR fortran/41608
PR fortran/41587
* gfortran.dg/class_7.f90: New test.

PR fortran/41618
* gfortran.dg/class_8.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152955 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
ebotcazou [Sat, 17 Oct 2009 16:03:49 +0000 (16:03 +0000)]
* print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152954 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-17 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 17 Oct 2009 15:40:53 +0000 (15:40 +0000)]
2009-10-17  Richard Guenther  <rguenther@suse.de>

* lto-streamer-in.c (lto_input_location): Try to reuse
previous maps.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152953 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-17 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 17 Oct 2009 14:15:42 +0000 (14:15 +0000)]
2009-10-17  Richard Guenther  <rguenther@suse.de>

* gcc.dg/lto/20091017-1_0.c: New testcase.
* gcc.dg/lto/20091017-1_1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152952 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * cpplib.pot: Regenerate.
jsm28 [Sat, 17 Oct 2009 13:46:26 +0000 (13:46 +0000)]
* cpplib.pot: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152951 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.pot: Regenerate.
jsm28 [Sat, 17 Oct 2009 13:46:08 +0000 (13:46 +0000)]
* gcc.pot: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152950 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gnat.dg/unchecked_convert4.adb: Add missing rep clause.
ebotcazou [Sat, 17 Oct 2009 12:06:56 +0000 (12:06 +0000)]
* gnat.dg/unchecked_convert4.adb: Add missing rep clause.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152938 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-17 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 17 Oct 2009 11:47:56 +0000 (11:47 +0000)]
2009-10-17  Richard Guenther  <rguenther@suse.de>

* lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
operands in COMPONENT_REFs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152937 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix typo
ebotcazou [Sat, 17 Oct 2009 11:23:23 +0000 (11:23 +0000)]
Fix typo

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152936 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc-interface/utils.c (convert): When converting to a padded type
ebotcazou [Sat, 17 Oct 2009 11:17:27 +0000 (11:17 +0000)]
* gcc-interface/utils.c (convert): When converting to a padded type
with an inner type of self-referential size, pad the expression before
doing the unchecked conversion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152935 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
ebotcazou [Sat, 17 Oct 2009 11:05:35 +0000 (11:05 +0000)]
* gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
sure the element type is consistent.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152934 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
aesok [Sat, 17 Oct 2009 10:46:18 +0000 (10:46 +0000)]
* targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
if not defined. Change type of second argument to const_rtx.
(default_function_value): Call gcc_unreachable if FUNCTION_VALUE
macro not defined.
* targhooks.h (default_libcall_value): Update prototype.
* target.h (struct gcc_target): Change type of second argument of
libcall_value to const_rtx.
* config/arm/arm.c (arm_libcall_value): Change type of second argument
to const_rtx.
(arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
* doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152933 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
ebotcazou [Sat, 17 Oct 2009 10:39:11 +0000 (10:39 +0000)]
* gcc-interface/trans.c (addressable_p): Handle bitwise operations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152932 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix libgomp without --enable-languages=fortran.
rwild [Sat, 17 Oct 2009 07:34:47 +0000 (07:34 +0000)]
Fix libgomp without --enable-languages=fortran.

libgomp/:
PR libgomp/41418
* configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
or a hyphen (happens with fortran language disabled).
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152931 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/40521
jakub [Sat, 17 Oct 2009 07:28:13 +0000 (07:28 +0000)]
PR debug/40521
* debug.h (struct gcc_debug_hooks): Add assembly_start hook.
* cgraphunit.c (cgraph_optimize): Call it.
* dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
(dwarf2out_assembly_start): ... here.  New hook.
(dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
* debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
hook.
* dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
* sdbout.c (sdb_debug_hooks): Likewise.
* vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
(vmsdbgout_assembly_start): New hook.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152930 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago* rtl.h (RTL_LOCATION): Fix typo.
aoliva [Sat, 17 Oct 2009 06:29:47 +0000 (06:29 +0000)]
* rtl.h (RTL_LOCATION): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152929 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago* print-rtl.c (print_rtx): Print locators in asm_operands
aoliva [Sat, 17 Oct 2009 06:28:58 +0000 (06:28 +0000)]
* print-rtl.c (print_rtx): Print locators in asm_operands
and asm_input.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152928 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoPR debug/41535
aoliva [Sat, 17 Oct 2009 06:28:43 +0000 (06:28 +0000)]
PR debug/41535
* sched-deps.c (depl_on_debug_p): New.
(attach_dep_link): Reject debug deps before nondebug deps.
(add_to_deps_list): Insert debug deps after nondebug deps.
(sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
deps.
(sd_add_dep): Do not reject debug deps.
(add_insn_mem_dependence): Don't count debug deps.
(remove_from_deps): Likewise.
(sched_analyze_2): Set up mem deps on debug insns.
(sched_analyze_insn): Record reg uses for deps on debug insns.
* haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
try_ready nondebug insn after debug insn.
* ddg.c (create_ddg_dep_from_intra_loop_link,
create_ddg_dep_no_link): Don't reject debug deps.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152927 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR c++/38888
jason [Sat, 17 Oct 2009 06:11:21 +0000 (06:11 +0000)]
PR c++/38888
* error.c (dump_template_bindings): Wrap argument packs in {}.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152925 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR c++/38798
jason [Sat, 17 Oct 2009 06:11:08 +0000 (06:11 +0000)]
PR c++/38798
* parser.c (CP_PARSER_FLAGS_NO_TYPE_DEFINITIONS): New.
(cp_parser_type_specifier): Don't try to parse a class-specifier
or enum-specifier in that case.
(cp_parser_trailing_type_id): New.
(cp_parser_late_return_type_opt): Call it.
(cp_parser_type_id_1): Add is_trailing_return parm.
(cp_parser_type_specifier_seq): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152924 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Sat, 17 Oct 2009 00:17:06 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152923 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 16 Oct 2009 21:17:31 +0000 (21:17 +0000)]
2009-10-16  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (merge_incomplete_and_complete_type): Remove.
(maybe_merge_incomplete_and_complete_type): Likewise.
(lto_symtab_merge): Do not call them.  Do not warn for
complete vs. incomplete compatible types.
(lto_symtab_merge_decls_2): Simplify.
* gimple.c (gimple_force_type_merge): Remove.
(gimple_types_compatible_p): Make it static.
* gimple.h (gimple_force_type_merge): Remove.
(gimple_types_compatible_p): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152920 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Janus Weil <janus@gcc.gnu.org>
janus [Fri, 16 Oct 2009 21:10:43 +0000 (21:10 +0000)]
2009-10-16  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41719
* resolve.c (resolve_ordinary_assign): Reject intrinsic assignments
to polymorphic variables.

2009-10-16  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41719
* gfortran.dg/class_5.f03: New test case.
* gfortran.dg/typebound_operator_2.f03: Fixing invalid test case.
* gfortran.dg/typebound_operator_4.f03: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152919 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 16 Oct 2009 20:17:39 +0000 (20:17 +0000)]
2009-10-16  Benjamin Kosnik  <bkoz@redhat.com>

* include/c_compatibility/stdatomic.h: Include cstdatomic if
__cplusplus.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152918 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
ebotcazou [Fri, 16 Oct 2009 20:07:52 +0000 (20:07 +0000)]
* gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
(TYPE_IS_FAT_POINTER_P): ...this.
(TYPE_THIN_POINTER_P): Rename into...
(TYPE_IS_THIN_POINTER_P): ...this.
(TYPE_FAT_OR_THIN_POINTER_P): Rename into...
(TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
(TYPE_IS_PADDING_P): Change definition, move old one to...
(TYPE_PADDING_P): ...this.
* gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
(get_unpadded_type): Likewise.
(gnat_to_gnu_component_type): Likewise.
(gnat_to_gnu_param): Likewise.
(relate_alias_sets): Likewise.
(make_packable_type): Likewise.
(maybe_pad_type): Likewise.
(gnat_to_gnu_field): Likewise.
(is_variable_size): Likewise.
(annotate_object): Likewise.
(validate_size): Likewise.
(set_rm_size): Likewise.
(make_type_from_size): Likewise.
(rm_size): Likewise.
* gcc-interface/misc.c (gnat_print_type): Likewise.
(gnat_get_alias_set): Likewise.
* gcc-interface/trans.c (Identifier_to_gnu): Likewise.
(Attribute_to_gnu): Likewise.
(call_to_gnu): Likewise.
(gnat_to_gnu): Likewise.
(add_decl_expr): Likewise.
(convert_with_check): Likewise.
(addressable_p): Likewise.
(maybe_implicit_deref): Likewise.
(protect_multiple_eval): Likewise.
(gnat_stabilize_reference_1): Likewise.
* gcc-interface/utils.c (gnat_pushdecl): Likewise.
(finish_record_type): Likewise.
(rest_of_record_type_compilation): Likewise.
(create_type_decl): Likewise.
(gnat_types_compatible_p): Likewise.
(build_template): Likewise.
(convert_vms_descriptor64): Likewise.
(convert_vms_descriptor32): Likewise.
(build_unc_object_type_from_ptr): Likewise.
(update_pointer_to): Likewise.
(convert_to_fat_pointer): Likewise.
(convert_to_fat_pointer): Likewise.
(convert): Likewise.
(remove_conversions): Likewise.
(maybe_unconstrained_array): Likewise.
(unchecked_convert): Likewise.
(handle_vector_type_attribute): Likewise.
* gcc-interface/utils2.c (build_binary_op): Likewise.
(build_unary_op): Likewise.
(build_allocator): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152917 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * exp_dbug.ads: Adjust type names in comments.
ebotcazou [Fri, 16 Oct 2009 19:28:52 +0000 (19:28 +0000)]
* exp_dbug.ads: Adjust type names in comments.
* gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
add new IS_COMPONENT_TYPE parameter.  Adjust.  Remove dead code.
(gnat_to_gnu_entity): Adjust for above change.
(gnat_to_gnu_component_type): Likewise.
(gnat_to_gnu_field): Likewise.
* gcc-interface/trans.c (call_to_gnu): Likewise.  Do not unnecessarily
call max_size.
* gcc-interface/utils.c (finish_record_type): Remove obsolete code.
* gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152916 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
jakub [Fri, 16 Oct 2009 18:21:09 +0000 (18:21 +0000)]
* dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152915 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * g++.dg/ipa/iinline-1.C: Use dg-add-options bind_pic_locally.
ghazi [Fri, 16 Oct 2009 17:01:15 +0000 (17:01 +0000)]
* g++.dg/ipa/iinline-1.C: Use dg-add-options bind_pic_locally.
* g++.dg/other/first-global.C: Likewise.
* g++.dg/parse/attr-externally-visible-1.C: Likewise.
* g++.dg/torture/pr40323.C: Likewise.
* g++.dg/tree-ssa/nothrow-1.C: Likewise.
* gcc.dg/inline-33.c: Likewise.
* gcc.dg/ipa/ipa-1.c: Likewise.
* gcc.dg/ipa/ipa-2.c: Likewise.
* gcc.dg/ipa/ipa-3.c: Likewise.
* gcc.dg/ipa/ipa-4.c: Likewise.
* gcc.dg/ipa/ipa-5.c: Likewise.
* gcc.dg/ipa/ipa-7.c: Likewise.
* gcc.dg/ipa/ipacost-2.c: Likewise.
* gcc.dg/tree-ssa/inline-3.c: Likewise.
* gcc.dg/tree-ssa/local-pure-const.c: Likewise.
* gfortran.dg/whole_file_5.f90: Likewise.
* gfortran.dg/whole_file_6.f90: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152911 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 16 Oct 2009 16:57:31 +0000 (16:57 +0000)]
2009-10-16  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/41728
* tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
if fold_stmt did anything.

* gcc.c-torture/compile/pr41728.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152910 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Rafael Avila de Espindola <espindola@google.com>
espindola [Fri, 16 Oct 2009 15:25:13 +0000 (15:25 +0000)]
2009-10-16  Rafael Avila de Espindola  <espindola@google.com>

* lto-plugin.c (message): New variable.
(check): New function.
(parse_table_entry, translate, write_resolution,add_output_files,
exec_lto_wrapper,claim_file_handler, onload): Use check instead of
assert.
(cleanup_handler): Use check instead of assert. Remove the arguments
file if it exists.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152906 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 16 Oct 2009 14:42:47 +0000 (14:42 +0000)]
2009-10-16  Richard Guenther  <rguenther@suse.de>

PR lto/41598
* gcc.dg/lto/20091016-1_0.c: New testcase.
* gcc.dg/lto/20091016-1_1.c: Likewise.
* gcc.dg/lto/20091016-1_a.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152904 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 16 Oct 2009 14:23:22 +0000 (14:23 +0000)]
2009-10-16  Richard Guenther  <rguenther@suse.de>

PR lto/41715
* lto-streamer-in.c (lto_input_tree_ref): Revert last change.
(maybe_fixup_handled_component): New function.
(input_gimple_stmt): Fixup mismatched decl replacements.

lto/
* lto.c (lto_fixup_tree): Revert last change.

* gfortran.dg/lto/20091015-1_0.f: New testcase.
* gfortran.dg/lto/20091015-1_1.f: Likewise.
* gfortran.dg/lto/20091015-1_2.f: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152903 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 16 Oct 2009 14:21:05 +0000 (14:21 +0000)]
2009-10-16  Richard Guenther  <rguenther@suse.de>

PR lto/41713
* lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
the same as VAR_DECL.

* gfortran.dg/lto/20091016-1_0.f90: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152902 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
joel [Fri, 16 Oct 2009 13:33:53 +0000 (13:33 +0000)]
2009-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>

* s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
* s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152900 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 16 Oct 2009 11:45:55 +0000 (11:45 +0000)]
2009-10-16  Richard Guenther  <rguenther@suse.de>

* gimple.c (iterative_hash_gimple_type): For integer types
also hash their minimum and maximum values and the string flag.
For array types hash their domain and the string flag.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152899 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 16 Oct 2009 11:44:46 +0000 (11:44 +0000)]
2009-10-16  Richard Guenther  <rguenther@suse.de>

* gimple.c (gimple_types_compatible_p): Restrict completing
types to record or unions.  Simplify completion.
Do not merge records or unions with different
TYPE_STRUCTURAL_EQUALITY_P tag.
(iterative_hash_gimple_type): Restrict non-recursing into
pointer targets for records and unions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152898 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/41717
jakub [Fri, 16 Oct 2009 10:43:18 +0000 (10:43 +0000)]
PR debug/41717
* cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
* dwarf2out.c (mem_loc_descriptor): Don't handle
POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
punt if it is not lowpart subreg or if inner mode isn't
MODE_INT.

* gcc.dg/debug/pr41717.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152897 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Fri, 16 Oct 2009 10:09:28 +0000 (10:09 +0000)]
2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
investigating previous or next insns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152896 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 16 Oct 2009 07:47:33 +0000 (07:47 +0000)]
2009-10-15  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/40654
PR libstdc++/40826
* src/atomic.cc (atomic_flag_test_and_set_explicit): Add
static_cast from base to derived.
(atomic_flag_clear_explicit): Same.
* include/bits/atomic_2.h (__atomic2::atomic_flag): Public derivation.
Remove value type constructor.
* include/bits/atomic_0.h (__atomic0::atomic_flag): Same.
* include/std/future (_Future_state): Use ATOMIC_FLAG_INIT to
initialized the atomic_flag member.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152895 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago Commit file missed in previous commit.
jvdelisle [Fri, 16 Oct 2009 07:08:52 +0000 (07:08 +0000)]
Commit file missed in previous commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152894 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tree-sra.c (build_ref_for_offset_1): Update comment.
ebotcazou [Fri, 16 Oct 2009 06:56:34 +0000 (06:56 +0000)]
* tree-sra.c (build_ref_for_offset_1): Update comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152893 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
krebbel [Fri, 16 Oct 2009 06:21:47 +0000 (06:21 +0000)]
2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>

* config/s390/s390.md (atype): Added missing values.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152891 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-16 Paul Thomas <pault@gcc.gnu.org>
pault [Fri, 16 Oct 2009 06:07:09 +0000 (06:07 +0000)]
2009-10-16  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/41648
PR fortran/41656
* trans-expr.c (select_class_proc): Convert the expression for the
vindex, carried on the first member of the esym list.
* gfortran.h : Add the vindex field to the esym_list structure.
and eliminate the class_object field.
* resolve.c (check_class_members): Remove the setting of the
class_object field.
(vindex_expr): New function.
(get_class_from_expr): New function.
(resolve_class_compcall): Call the above to find the ultimate
class or derived component.  If derived, do not generate the
esym list.  Add and expression for the vindex to the esym list
by calling the above.
(resolve_class_typebound_call): The same.

2009-10-16  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/41648
* gfortran.dg/dynamic_dispatch_4.f03 : New test.

PR fortran/41656
* gfortran.dg/dynamic_dispatch_5.f03 : New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152890 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoChangeLogs fixed, again.
dgutson [Fri, 16 Oct 2009 00:37:38 +0000 (00:37 +0000)]
ChangeLogs fixed, again.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152888 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Fri, 16 Oct 2009 00:16:49 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152887 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/41702
danglin [Thu, 15 Oct 2009 23:22:44 +0000 (23:22 +0000)]
PR target/41702
* pa.md (casesi): Use sign extended index in call to
gen_casesi64p.
(casesi64p): Update pattern to reflect above.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152882 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFixed ChangeLog entries.
dgutson [Thu, 15 Oct 2009 22:32:31 +0000 (22:32 +0000)]
Fixed ChangeLog entries.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152877 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Steve Ellcey <sje@cup.hp.com>
sje [Thu, 15 Oct 2009 21:49:29 +0000 (21:49 +0000)]
2009-10-15  Steve Ellcey  <sje@cup.hp.com>

PR rtl-optimization/41697
* sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152872 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRemove extra pathname.
hjl [Thu, 15 Oct 2009 21:05:37 +0000 (21:05 +0000)]
Remove extra pathname.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152869 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix 23983, add proper attributes to the altivec/vsx builtins
meissner [Thu, 15 Oct 2009 20:50:40 +0000 (20:50 +0000)]
Fix 23983, add proper attributes to the altivec/vsx builtins

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152867 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
hjl [Thu, 15 Oct 2009 18:55:27 +0000 (18:55 +0000)]
2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/linux.h (ASM_SPEC): Add --32.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152865 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * lib/target-supports.exp (add_options_for_bind_pic_locally): New.
ghazi [Thu, 15 Oct 2009 18:09:59 +0000 (18:09 +0000)]
* lib/target-supports.exp (add_options_for_bind_pic_locally): New.
* gcc.dg/tree-ssa/ipa-cp-1.c: Bind pic locally.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152857 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoAdd the PR number for the ETIME/DTIME documentation change.
kargl [Thu, 15 Oct 2009 17:31:36 +0000 (17:31 +0000)]
Add the PR number for the ETIME/DTIME documentation change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152855 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Steven G. Kargl <kargl@gcc.gnu.org>
kargl [Thu, 15 Oct 2009 17:28:04 +0000 (17:28 +0000)]
2009-10-15  Steven G. Kargl  <kargl@gcc.gnu.org>

* intrinsic.texi: Explicitly state that ETIME and DTIME take
REAL(4) arguments.  Fix nearby typographically errors where
/leq was used instead of \leq.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152854 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
jakub [Thu, 15 Oct 2009 16:40:52 +0000 (16:40 +0000)]
* dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
and DW_TAG_template_alias.
(dwarf_attr_name): Handle DW_AT_main_subprogram,
DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
and DW_AT_GNU_odr_signature.
(dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
DW_FORM_flag_present and DW_FORM_ref_sig8.
(output_signature): Only print name on the first byte.
(output_die): Likewise for dw_val_class_data8.

* include/dwarf2.h (DW_LANG_Python): Add comment that it is
a DWARF 4 addition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152853 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Alexander Monakov <amonakov@ispras.ru>
amonakov [Thu, 15 Oct 2009 16:10:49 +0000 (16:10 +0000)]
2009-10-15  Alexander Monakov  <amonakov@ispras.ru>

* doc/invoke.texi: Clarify that most optimizations are not enabled
without -O.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152852 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 15 Oct 2009 16:04:29 +0000 (16:04 +0000)]
2009-10-15  Richard Guenther  <rguenther@suse.de>

PR lto/41668
* gimple.c (compare_type_names_p): Handle anonymous names
differently based on new mode argument.
(gimple_types_compatible_p): For structs also compare the tags.
(iterative_hash_type_name): Rename to ...
(iterative_hash_name): ... this.  Hash all names.
(iterative_hash_gimple_type): Fix hashing the struct tag of
pointer targets.  Hash field decl names.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152851 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 15 Oct 2009 16:03:32 +0000 (16:03 +0000)]
2009-10-15  Richard Guenther  <rguenther@suse.de>

PR lto/41669
* gimple.c (gimple_get_alias_set): Avoid recursing on
invalid type topology.

* gcc.dg/lto/20091015-1_0.c: New testcase.
* gcc.dg/lto/20091015-1_1.c: Likewise.
* gcc.dg/lto/20091015-1_2.c: Likewise.
* gcc.dg/lto/20091015-1_a.h: Likewise.
* gcc.dg/lto/20091015-1_b.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152850 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Steve Ellcey <sje@cup.hp.com>
sje [Thu, 15 Oct 2009 15:40:31 +0000 (15:40 +0000)]
2009-10-15  Steve Ellcey  <sje@cup.hp.com>

* gcc.dg/torture/pr41555.c: Add -std=c99 option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152848 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
pinskia [Thu, 15 Oct 2009 15:12:03 +0000 (15:12 +0000)]
2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * config/spu/spu.c (get_branch_target): Use extract_asm_operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152847 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Rafael Avila de Espindola <espindola@google.com>
espindola [Thu, 15 Oct 2009 14:36:40 +0000 (14:36 +0000)]
2009-10-15  Rafael Avila de Espindola  <espindola@google.com>

* lto-plugin.c (resolution_file): New.
(free_1): Update comment.
(free_2): Free resolution_file.
(write_resolution): Write resolution to specified file. Use the
syms array from the symbol table.
(all_symbols_read_handler): Delay call to free_1 past call to
write_resolution.
(process_option): Add a -resolution option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152846 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Jim Blandy <jimb@red-bean.com>
gingold [Thu, 15 Oct 2009 08:56:02 +0000 (08:56 +0000)]
2009-10-15  Jim Blandy  <jimb@red-bean.com>

* libgnuintl.h (_INTL_MAY_RETURN_STRING_ARG, gettext, dgettext)
(dcgettext, ngettext, dngettext, dcngettext): Backport changes
from current gettext to provide GCC format_arg attributes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152842 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-15 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 15 Oct 2009 08:53:35 +0000 (08:53 +0000)]
2009-10-15  Richard Guenther  <rguenther@suse.de>

* tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152841 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
jakub [Thu, 15 Oct 2009 07:34:25 +0000 (07:34 +0000)]
* config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
add --with-tune{,-32,-64} configured default for -mtune if explicit
-mcpu is used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152799 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 15 Oct 2009 02:51:30 +0000 (02:51 +0000)]
2009-10-14  Benjamin Kosnik  <bkoz@redhat.com>

* doc/xml/authors.xml: Update.
* doc/xml/manual/intro.xml: Move test section...
* doc/xml/manual/appendix_porting.xml: ...here.
* doc/xml/manual/diagnostics.xml: Edit.
* doc/xml/manual/using.xml: Break out exception section.
* doc/xml/manual/using_exceptions.xml: New.
* doc/html: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152797 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 15 Oct 2009 02:39:28 +0000 (02:39 +0000)]
2009-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

* config/abi/pre/gnu.ver: Export the _S_construct<> helpers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152796 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago* config/h8300/h8300.c (F): New.
dj [Thu, 15 Oct 2009 02:30:48 +0000 (02:30 +0000)]
* config/h8300/h8300.c (F): New.
(Fpa): New.
(h8300_emit_stack_adjustment): Call them.
(push): Likewise.
(h8300_push_pop): Likewise.
(h8300_expand_prologue): Likewise.
* config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
(MUST_USE_SJLJ_EXCEPTIONS): Define.
(INCOMING_RETURN_ADDR_RTX): Define.
(INCOMING_FRAME_SP_OFFSET): Define.
(DWARF_CIE_DATA_ALIGNMENT): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152795 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 15 Oct 2009 01:16:53 +0000 (01:16 +0000)]
2009-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/basic_string.h (operator+=(initializer_list<>),
append(initializer_list<>)): Forward to the append overload taking
a const CharT* pointer and a size, thus avoiding instantiating
unnecessarily in the built library the overload taking a pair of
iterators.
(operator=(initializer_list<>), assign(initializer_list<>)): Likewise
for assign.
(insert(iterator, initializer_list<>): Likewise for insert.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152794 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Thu, 15 Oct 2009 00:17:03 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152793 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 15 Oct 2009 00:01:05 +0000 (00:01 +0000)]
2009-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/c++config: Do not disable extern templates for string
in plain parallel-mode and in profile-mode; add comment explaining
_GLIBCXX_EXTERN_TEMPLATE == -1.
* testsuite/ext/profile/mutex_extensions.cc: Adjust dg-error line.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152790 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 14 Oct 2009 23:50:09 +0000 (23:50 +0000)]
2009-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/c++config: Do not disable extern templates for string
in plain parallel-mode and in profile-mode; add comment explaining
_GLIBCXX_EXTERN_TEMPLATE == -1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152789 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * stor-layout.c (place_field): Don't emit -Wpadded warnings for
jakub [Wed, 14 Oct 2009 21:30:19 +0000 (21:30 +0000)]
* stor-layout.c (place_field): Don't emit -Wpadded warnings for
fields in builtin structs.
(finalize_record_size): Likewise.

* obj-c++.dg/layout-1.mm: Don't xfail dg-bogus on lp64, change
line from 1 to 0.
* obj-c++.dg/bitfield-1.mm: Likewise.
* obj-c++.dg/bitfield-4.mm: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152780 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 14 Oct 2009 19:55:49 +0000 (19:55 +0000)]
2009-10-14  Richard Guenther  <rguenther@suse.de>

PR lto/41173
* gcc.dg/lto/20091014-1_0.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152778 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
dgutson [Wed, 14 Oct 2009 19:18:20 +0000 (19:18 +0000)]
2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>

        gcc/
        * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds
        fixed.

        gcc/testsuite/
        * gcc.target/arm/neon/vfp-shift-a2t2.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152777 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 14 Oct 2009 18:39:45 +0000 (18:39 +0000)]
2009-10-14  Richard Guenther  <rguenther@suse.de>

* gimple.c (gtc_ob): New global.
(struct type_pair_d): Replace pointers with type UIDs.
(type_pair_hash): Adjust.
(type_pair_eq): Likewise.
(lookup_type_pair): Likewise.  Allocate from an obstack.
(gimple_force_type_merge): Adjust.
(gimple_types_compatible_p): Likewise.
(free_gimple_type_tables): Free the obstack.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152776 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/41707
jakub [Wed, 14 Oct 2009 17:06:39 +0000 (17:06 +0000)]
PR testsuite/41707
* g++.dg/plugin/attribute_plugin-test-1.C: Expect the first
warning on line 0 instead of 1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152773 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
jakub [Wed, 14 Oct 2009 17:05:45 +0000 (17:05 +0000)]
* tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
stmts setting DEBUG_EXPR_DECLs.

* cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
Don't crash if mode1 is VOIDmode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152772 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Wed, 14 Oct 2009 16:24:11 +0000 (16:24 +0000)]
2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>

* params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
* params.h (IRA_LOOP_RESERVED_REGS): New
* tree-pass.h (pass_subregs_of_mode_init,
pass_subregs_of_mode_finish): Remove.
* passes.c (pass_subregs_of_mode_init,
pass_subregs_of_mode_finish): Remove.
(pass_reginfo_init): Move before loop optimizations.
* config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
* common.opt (fira-loop-pressure): New.
* toplev.h (flag_ira_loop_pressure): New.
* rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
externals.
* reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
Make external and void type functions.
(gate_subregs_of_mode_init, pass_subregs_of_mode_init,
pass_subregs_of_mode_finish): Remove.
* ira-costs.c (init_costs): Call init_subregs_of_mode.
* regmove.c: Include ira.h.
(regmove_optimize): Call ira_set_pseudo_classes after IRA based
register pressure calculation in loops.
* loop-invariant.c: Include REGS_H and ira.h.
(struct loop_data): New members max_reg_pressure, regs_ref, and
regs_live.
(struct invariant): New member orig_regno.
(curr_loop): New variable.
(find_exits): Initialize regs_ref and regs_live.
(create_new_invariant): Initialize orig_regno.
(get_cover_class_and_nregs): New.
(get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
array.  Add code for flag_ira_loop_pressure.
(gain_for_invariant): Make new_regs an array.  Add code for
flag_ira_loop_pressure.
(best_gain_for_invariant): Ditto.
(set_move_mark): New parameter gain.  Use it for debugging output.
(find_invariants_to_move): Make regs_needed and new_regs an array.
Add code for flag_ira_loop_pressure.
(move_invariant_reg): Set up orig_regno.
(move_invariants): Set up reg classes for pseudos for
flag_ira_loop_pressure.
(free_loop_data): Clear regs_ref and regs_live.
(curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
get_regno_cover_class, change_pressure, mark_regno_live,
mark_regno_death, mark_reg_store, mark_reg_clobber,
mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
(move_loop_invariants): Calculate pressure.  Initialize curr_loop.
* ira.c (ira): Call ira_set_pseudo_classes after IRA based
register pressure calculation in loops if new regs were added.
Call finish_subregs_of_mode.
* opts.c (decode_options): Set up flag_ira_loop_pressure.
* Makefile.in (loop-invariant.o): Add ira.h.
(regmove.o): Ditto.
* doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
Describe.
* doc/tm.texi (STACK_REG_COVER_CLASS): Describe.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152770 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 14 Oct 2009 14:14:44 +0000 (14:14 +0000)]
2009-10-14  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (lto_symtab_compatible): Fold in ...
(lto_symtab_merge): ... here.  Rewrite both to take the
prevailing and a to-be-merged entry and to queue diagnostics
properly.
(lto_symtab_resolve_replaceable_p): New predicate for
symbol resolution.
(lto_symtab_resolve_can_prevail_p): Likewise.
(lto_symtab_resolve_symbols): Rewrite.  Fold in code that
handles merging commons by choosing the largest decl.  Fold
in code that gives ODR errors.
(lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
diagnostics here.
(lto_symtab_merge_decls_1): Re-structure.  Deal with the
case of no prevailing decl here.  Diagnose mismatches
in object types here.  Drop all but the prevailing decls.
(lto_symtab_prevailing_decl): Return the single prevailing decl.
* lto-streamer-in.c (lto_input_tree_ref): Deal with
VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.

lto/
* lto.c (lto_fixup_tree): In case the prevailing decl is not
compatible with the one we replace wrap it around a
VIEW_CONVERT_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152768 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2009-10-14 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 14 Oct 2009 13:08:44 +0000 (13:08 +0000)]
2009-10-14  Richard Guenther  <rguenther@suse.de>

PR lto/41521
* lto-streamer-in.c (input_bb): Replace debug stmts with
nops instead of dropping them.

* gfortran.dg/lto/pr41521_0.f90: New testcase.
* gfortran.dg/lto/pr41521_1.f90: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152767 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc/doc/extended.texi: Replace the dash character with
nickc [Wed, 14 Oct 2009 12:05:33 +0000 (12:05 +0000)]
* gcc/doc/extended.texi: Replace the dash character with
    @minus{} in situations where it is being used as a minus
    symbol.
    * gcc/doc/tm.texi: Likewise.
    * gcc/doc/invoke.texi: Likewise.
    * gcc/doc/md.texi: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152765 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR preprocessor/41543
jakub [Wed, 14 Oct 2009 10:04:22 +0000 (10:04 +0000)]
PR preprocessor/41543
* input.h (BUILTINS_LOCATION): Change to 1 from 2.
Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
* tree.c: Include intl.h.
(expand_location): Handle BUILTINS_LOCATION.
* Makefile.in (tree.o): Depend on intl.h.

* include/line-map.h (RESERVED_LOCATION_COUNT): Define.
* line-map.c (linemap_init): Initialize highest_location and
highest_line to RESERVED_LOCATION_COUNT-1 instead of 0.

* gcc.dg/debug/dwarf2/pr41543.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152761 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/41695
jakub [Wed, 14 Oct 2009 09:53:55 +0000 (09:53 +0000)]
PR debug/41695
* dwarf2out.c (dwarf2out_var_location): Always clear
last_postcall_label when changing last_label.

* gcc.dg/debug/dwarf2/pr41695.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152760 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
hainque [Wed, 14 Oct 2009 08:39:43 +0000 (08:39 +0000)]
    * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
        (process_command): Handle -E as done with -c and -S.  Do not add
        the target executable suffix to the output file when -E is used.
        (main): Adjust error message accordingly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152758 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * testsuite/ChangeLog: Fix formatting.
uros [Wed, 14 Oct 2009 07:27:17 +0000 (07:27 +0000)]
* testsuite/ChangeLog: Fix formatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152754 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/i386/i386.exp (check_effective_target_ms_hook_prologue):
uros [Wed, 14 Oct 2009 06:53:28 +0000 (06:53 +0000)]
* gcc.target/i386/i386.exp (check_effective_target_ms_hook_prologue):
New procedure.
* gcc.target/i386/ms_hook_prologue.c: Check for  ms_hook_prologue
effective target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152753 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR c++/39866
jason [Wed, 14 Oct 2009 06:27:50 +0000 (06:27 +0000)]
PR c++/39866
* call.c (print_z_candidates): Don't print deleted candidates.
(print_z_candidate): Note deleted candidates.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152752 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR c++/40092
jason [Wed, 14 Oct 2009 06:27:41 +0000 (06:27 +0000)]
PR c++/40092
* tree.c (cp_tree_equal): Add test for TEMPLATE_PARM_PARAMETER_PACK
equality.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152751 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago* gcc.dg/guality/pr41616-1.c: Drop -O2.
aoliva [Wed, 14 Oct 2009 05:01:41 +0000 (05:01 +0000)]
* gcc.dg/guality/pr41616-1.c: Drop -O2.
* gcc.dg/guality/pr41447-1.c: Likewise.  Name main.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152750 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoPR debug/41343
aoliva [Wed, 14 Oct 2009 05:01:24 +0000 (05:01 +0000)]
PR debug/41343
PR debug/41447
PR debug/41264
PR debug/41338
* tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
decl with rtl.
(tree_code_size): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152749 138bc75d-0d04-0410-961f-82ee72b054a4