1. 02 Nov, 2009 7 commits
    • re PR tree-optimization/41857 (Loop optimizer breaks __ea pointers with -mea64) · d7c0c068
      gcc/
      	PR tree-optimization/41857
      	* tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
      	* tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
      	to create_mem_ref.
      	* tree-ssa-address.c (move_hint_to_base): New function.
      	(most_expensive_mult_to_index): Add TYPE argument.  Use mode and
      	address space associated with TYPE.
      	(addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
      	most_expensive_mult_to_index.  Call move_hint_to_base.
      	(create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
      	TYPE to addr_to_parts.
      
      gcc/testsuite/
      	PR tree-optimization/41857
      	* gcc.target/spu/ea/pr41857.c: New file.
      
      From-SVN: r153810
      Ulrich Weigand committed
    • re PR tree-optimization/41750 (IPA-SRA is broken) · 2b93f88d
      2009-11-02  Martin Jambor  <mjambor@suse.cz>
      
      	PR tree-optimization/41750
      	* tree-sra.c (analyze_modified_params): Loop over all
      	representatives of components of a parameter.
      
      	* testsuite/gcc.c-torture/execute/pr41750.c: New test.
      
      From-SVN: r153809
      Martin Jambor committed
    • re PR tree-optimization/41841 (segfault using '-O -fipa-cp -fipa-struct-reorg… · 68052d59
      re PR tree-optimization/41841 (segfault using '-O -fipa-cp -fipa-struct-reorg -fwhole-program -fprofile-generate')
      
      	PR tree-optimization/41841
      	* ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
      	local variables of not yet materialized clones.
      
      	* gcc.dg/pr41841.c: New test.
      
      From-SVN: r153807
      Jakub Jelinek committed
    • re PR debug/41893 (ICE with -combine and debug) · 0fba566c
      	PR debug/41893
      	* cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
      	for a VOIDmode variable.
      
      	* gcc.dg/debug/pr41893-1.c: New test.
      	* gcc.dg/debug/pr41893-2.c: New file.
      
      From-SVN: r153806
      Jakub Jelinek committed
    • re PR c++/41774 (ice: vector VEC(visibility,base) pop domain error, in… · 9789ba46
      re PR c++/41774 (ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757)
      
      	PR c++/41774
      	* c-pragma.c (visstack): Change into vector of ints rather than
      	enum symbol_visibility.
      	(push_visibility): Add kind argument, push default_visibility together
      	with kind.
      	(pop_visibility): Add kind argument, return true if successful, fail
      	if visibility stack is empty or if stack top is of different kind.
      	(handle_pragma_visibility): Don't check length of visstack, instead
      	call pop_visibility and issue diagnostics if it failed.  Pass 0
      	as last argument to push_visibility and pop_visibility.
      	* c-pragma.h (push_visibility): Add kind argument.
      	(pop_visibility): Likewise.  Return bool instead of void.
      
      	* name-lookup.c (handle_namespace_attrs): Pass 1 as last argument to
      	push_visibility.
      	* parser.c (cp_parser_namespace_definition): Pass 1 as argument to
      	pop_visibility.
      	* rtti.c (push_abi_namespace): Pass 2 as last argument to
      	push_visibility.
      	(pop_abi_namespace): Pass 2 as argument to pop_visibility.
      
      	* g++.dg/ext/visibility/namespace3.C: New test.
      
      From-SVN: r153805
      Jakub Jelinek committed
    • restrict-1.c: Move to c-c++-common. · 3f252b91
      	* gcc.dg/tree-ssa/restrict-1.c: Move to c-c++-common.
      	* gcc.dg/tree-ssa/restrict-2.c: Move to c-c++-common.
      	* gcc.dg/tree-ssa/restrict-4.c: Move to c-c++-common.
      
      From-SVN: r153800
      Jason Merrill committed
    • Daily bump. · d11e83e1
      From-SVN: r153799
      GCC Administrator committed
  2. 01 Nov, 2009 8 commits
    • tree.def (TARGET_MEM_REF): Update comment. · ebcc3d93
      	* tree.def (TARGET_MEM_REF): Update comment.
      	* alias.c (get_alias_set): Retrieve the original memory reference for
      	a TARGET_MEM_REF before proceeding.
      
      From-SVN: r153796
      Eric Botcazou committed
    • [multiple changes] · 958dd42b
      2009-11-01  Tobias Burnus  <burnus@net-b.de>                                            
      
              PR fortran/41872
              * trans-decl.c (gfc_trans_deferred_vars): Do not nullify
              autodeallocated allocatable scalars at the end of scope.
              (gfc_generate_function_code): Fix indention.
              * trans-expr.c (gfc_conv_procedure_call): For allocatable
              scalars, fix calling by reference and autodeallocating
              of intent out variables.
      
      2009-11-01  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/41872
              * gfortran.dg/allocatable_scalar_4.f90: New test.
      
      From-SVN: r153795
      Tobias Burnus committed
    • re PR fortran/41850 (Wrong-code with optional allocatable arrays) · 745ff31f
      2009-11-01  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/41850
              * trans-expr.c (gfc_conv_procedure_call): Deallocate intent-out
              variables only when present. Remove unneccessary present check.
      
      2009-11-01  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/41850
              * gfortran.dg/intent_out_6.f90: New testcase.
      
      From-SVN: r153793
      Tobias Burnus committed
    • tree.c (cv_unqualified): New fn. · 164247b0
      	* tree.c (cv_unqualified): New fn.
      	* cp-tree.h: Declare it.
      	* typeck.c (decay_conversion): Use it instead of TYPE_MAIN_VARIANT.
      
      From-SVN: r153790
      Jason Merrill committed
    • * rtti.c (tinfo_name): Fix lengths for private case. · c86f25e8
      From-SVN: r153789
      Jason Merrill committed
    • re PR c++/41754 (initializer list internal compiler segfault) · 691a1b27
      	PR c++/41754
      	* call.c (compare_ics): Avoid bad union use when
      	comparing two ck_lists.
      
      From-SVN: r153788
      Jason Merrill committed
    • chrono (struct __common_rep_type): New. · cc1e2504
      2009-10-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/std/chrono (struct __common_rep_type): New.
      	(duration_cast(const duration<>&),
      	duration<>::duration(const _Rep2&),
      	duration<>::duration(const duration<>&),
      	operator*(const duration<>&, const _Rep2&),
      	operator*(const _Rep1&, const duration<>&),
      	operator/(const duration<>&, const _Rep2&),
      	time_point_cast(const time_point<>&)): Implement resolution of
      	DR 1177 ([Ready] in Santa Cruz), change to not participate to
      	overload resolution if the constraints are not met. 
      	* testsuite/20_util/duration/cons/1_neg.cc: Adjust dg-errors.
      	* testsuite/20_util/duration/cons/dr974.cc: Likewise.
      	* testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust
      	dg-error line numbers.
      	* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
      	* testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
      
      From-SVN: r153787
      Paolo Carlini committed
    • Daily bump. · 5645baec
      From-SVN: r153786
      GCC Administrator committed
  3. 31 Oct, 2009 8 commits
  4. 30 Oct, 2009 17 commits
    • PR libfortran/41219 Fix build warnings · 23db9913
      From-SVN: r153769
      Janne Blomqvist committed
    • mangle.c (mangle_type_string_for_rtti): Reapply 153734. · 52669d59
      /gcc/cp
      2009-10-30  Jerry Quinn  <jlquinn@optonline.net>
      
      	* mangle.c (mangle_type_string_for_rtti): Reapply 153734.
      	(needs_fake_anon): Likewise.
      	(write_name): Likewise.
      	(write_nested_name): Likewise.
      	* cp-tree.h (mangle_type_string_for_rtti): Likewise.
      	(get_anonymous_namespace): Likewise.
      	* name-lookup.c (get_anonymous_namespace_name): Likewise.
      	* rtti.c (tinfo_name): Likewise, with +1 in the second 
      	build_string call fixed.
      	(tinfo_base_init): Likewise.
      
      libstdc++/
      2009-10-30  Jerry Quinn  <jlquinn@optonline.net>
      
      	* libsupc++/tinfo.cc (operator=(const type_info&)): Reapply 153734.
      	* libsupc++/typeinfo (type_info::name()): Likewise.
      	* libsupc++/tinfo2.cc (before):  Likewise.
      
      From-SVN: r153768
      Jerry Quinn committed
    • random.h: Fix typo in static_assert text. · a20c8540
      2009-10-30  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/random.h: Fix typo in static_assert text.
      
      From-SVN: r153767
      Paolo Carlini committed
    • linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added. · 7664c548
      	* config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
      	* config/arm/bpapi.h (BE8_LINK_SPEC): New define.
      	(LINK_SPEC): BE_LINK_SPEC added.
      
      From-SVN: r153766
      Daniel Gutson committed
    • revert: decl.c (cp_fname_init): Correct build_string argument. · f0b150ba
      	Revert:
      	* decl.c (cp_fname_init): Correct build_string argument.
      
      From-SVN: r153765
      Jason Merrill committed
    • re PR lto/41871 (lto-plugin gives: could not open/create temporary file) · 86ed04df
      2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
      
      	PR41871
      	* lto-plugin.c (claim_file_handler): Close files that we created.
      
      From-SVN: r153764
      Rafael Avila de Espindola committed
    • re PR libstdc++/41759 ([C++0x] <random> static_assert phrasing should be positive) · f6d08b43
      2009-10-30  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/41759
      	* include/bits/random.h: Tweak a bit the text of some static_asserts.
      
      From-SVN: r153762
      Paolo Carlini committed
    • configure.ac: Disable target-winsup & co for x86_64-*-mingw* and *-w64-mingw* targets. · ef4c4300
      2009-10-30  Kai Tietz  <kai.tietz@onevision.com>
      
              * configure.ac: Disable target-winsup & co for
              x86_64-*-mingw* and *-w64-mingw* targets.
              * configure: Regenerated.
      
      From-SVN: r153761
      Kai Tietz committed
    • re PR lto/41858 (-flto -O2 crashes when many source files.) · b207f900
      2009-10-30  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/41858
      	* lto-streamer.h (struct lto_file_decl_data): Remove fd member.
      
      	lto/
      	* lto.c (lto_file_read): Do not set file_data->fd.
      	(lto_read_section_data): Use a single-entry file-descriptor cache.
      	Do not check the result of xmalloc.
      	(free_section_data): Do not use file_data->fd.
      	(lto_read_all_file_options): Likewise.
      
      From-SVN: r153758
      Richard Guenther committed
    • utils.c (MAX_FIXED_MODE_SIZE): Delete. · 62f9f3ce
      	* gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
      	(create_field_decl): Update description.  In a packed record, round
      	the size up to a byte boundary only if the field's type has BLKmode.
      	* gcc-interface/gigi.h (create_field_decl): Update description.
      
      From-SVN: r153755
      Eric Botcazou committed
    • Fix a typo. · e15f1ff6
      From-SVN: r153754
      H.J. Lu committed
    • target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE. · 8c686cf5
      	* target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
      	* config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
      	label.
      
      From-SVN: r153753
      Nathan Sidwell committed
    • * lib/target-supports.exp: Handle powerpc-*-elf. · 95460024
      From-SVN: r153752
      Andrew Jenner committed
    • tree-sra.c (build_ref_for_offset_1): Remove a comment. · 3d158124
      2009-10-30  Martin Jambor  <mjambor@suse.cz>
      
      	* tree-sra.c (build_ref_for_offset_1): Remove a comment.
      
      From-SVN: r153751
      Martin Jambor committed
    • Optimize -mstackrealign. · 890b9b96
      gcc/
      
      2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR target/40836
      	* cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
      	first.  Move assert on stack_alignment_estimated just before
      	setting stack_realign_needed.
      	(gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
      	Don't call update_stack_boundary.
      
      	* config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
      	(verride_options): Don't check ix86_force_align_arg_pointer here.
      	(ix86_function_ok_for_sibcall): Use it.
      	(ix86_update_stack_boundary): Likewise.
      
      	* config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
      
      gcc/testsuite/
      
      2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR target/40838
      	* gcc.target/i386/incoming-6.c: New.
      	* gcc.target/i386/incoming-7.c: Likewise.
      	* gcc.target/i386/incoming-8.c: Likewise.
      	* gcc.target/i386/incoming-9.c: Likewise.
      	* gcc.target/i386/incoming-10.c: Likewise.
      	* gcc.target/i386/incoming-11.c: Likewise.
      	* gcc.target/i386/incoming-12.c: Likewise.
      	* gcc.target/i386/incoming-13.c: Likewise.
      	* gcc.target/i386/incoming-14.c: Likewise.
      	* gcc.target/i386/incoming-15.c: Likewise.
      	* gcc.target/i386/pr37843-4.c: Likewise.
      
      From-SVN: r153750
      H.J. Lu committed
    • [multiple changes] · 6528a7ed
      2009-10-30  Emmanuel Briot  <briot@adacore.com>
      
      	* make.adb (Start_Compile_If_Possible): Compute location of resulting
      	ALI file in this procedure instead of after the compilation itself,
      	since the current directory might have changed in between when using
      	-j<n>.
      
      	* osint.ads: Addded missing alignment clause.
      
      	* adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
      	__gnat_size_of_file_attributes): Rename reset_attributes and
      	size_of_file_attributes.
      
      2009-10-30  Javier Miranda  <miranda@adacore.com>
      
      	* sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
      	of statements when searching for SCIL nodes.
      
      2009-10-30  Tristan Gingold  <gingold@adacore.com>
      
      	* gnatlink.adb, link.c: By default use shared libgcc on darwin.
      
      From-SVN: r153749
      Arnaud Charlet committed
    • [multiple changes] · cafdbd2e
      2009-10-30  Emmanuel Briot  <briot@adacore.com>
      
      	* make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
      	already in the list.
      	This saves system calls when looking for ALI files
      	(Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
      	absolute PATH (so that the above improvement properly occurs if both
      	-D<dir> and -aO<dir> are specified).
      
      2009-10-30  Thomas Quinot  <quinot@adacore.com>
      
      	* a-direct.adb: Minor reformatting
      
      From-SVN: r153748
      Arnaud Charlet committed