1. 15 Nov, 2010 31 commits
    • In gcc/objc/: 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> · b6cfe8ac
      In gcc/objc/:
      2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc-act.c (objc_build_setter_call): New.
              (objc_maybe_build_modify_expr): Rewritten to build a compound
              statement.
              (objc_build_incr_expr_for_property_ref): Updated calls to
              objc_maybe_build_modify_expr to call objc_build_setter_call
              instead.  Use build_modify_expr () instead of build2 (MODIFY_EXPR,
              ...).  Use convert () instead of build1 (NOP_EXPR, ...).  Use
              TREE_NO_WARNING on the final compound statement to silence C++
              warnings.
      
      In gcc/testsuite/:
      2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/property/dotsyntax-18.m: New.
              * objc.dg/property/dotsyntax-19.m: New.
              * objc.dg/property/dotsyntax-20.m: New.
              * obj-c++.dg/property/dotsyntax-18.mm: New.
              * obj-c++.dg/property/dotsyntax-19.mm: New.     
              * obj-c++.dg/property/dotsyntax-20.mm: New.
              * objc.dg/property/dotsyntax-4.m: Removed some unused variables and code.
              * objc.dg/property/dotsyntax-6.m: Same change.
              * objc.dg/property/dotsyntax-16.m: Same change. 
              * objc.dg/property/dotsyntax-17.m: Same change.
              * obj-c++.dg/property/dotsyntax-4.mm: Same change.
              * obj-c++.dg/property/dotsyntax-6.mm: Same change.
              * obj-c++.dg/property/dotsyntax-16.mm: Same change. 
              * obj-c++.dg/property/dotsyntax-17.mm: Same change.
              * objc.dg/property/at-property-22.m: Added missing casts.
              * obj-c++.dg/property/at-property-22.mm: Same change.
      
      From-SVN: r166779
      Nicola Pero committed
    • re PR tree-optimization/46491 (ipa-pure-const.c miscompilation) · 567b99c8
      	PR tree-optimization/46491
      	* gcc.target/i386/pr46491.c: New test.
      
      From-SVN: r166777
      Jakub Jelinek committed
    • re PR tree-optimization/46461 (ICE: invalid argument to gimple call at -O with __builtin_memset()) · 7a4f257d
      	PR tree-optimization/46461
      	* tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
      	a gimple val.
      
      	* gcc.c-torture/compile/pr46461.c: New test.
      
      From-SVN: r166776
      Jakub Jelinek committed
    • MAINTAINERS: Moved myself to reviewers section. · ecbfe87a
      	* MAINTAINERS: Moved myself to reviewers section.
      
      From-SVN: r166775
      Zdenek Dvorak committed
    • PR libstdc++/45711 cleanup. · 9606fadb
      libstdc++-v3/:
              PR libstdc++/45711
              * src/Makefile.am (stamp-debug): Also adjust VPATH.
              * src/Makefile.in: Regenerate.
      
      From-SVN: r166772
      Ralf Wildenhues committed
    • Update MAINTAINERS. · 29a4f477
      /:
      	* MAINTAINERS (Various Maintainers): Add self for build machinery.
      	(Write After Approval): Remove self.
      
      From-SVN: r166771
      Ralf Wildenhues committed
    • godump.c: New file. · c6a13190
      gcc/:
      	* godump.c: New file.
      	* common.opt (fdump-go-spec=): New option.
      	* tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
      	(TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
      	(TYPE_SYMTAB_IS_DIE): Define.
      	(struct tree_type): Change GTY for symtab field to use
      	TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
      	to pick the union field.
      	* debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
      	(dump_go_spec_init): Declare.
      	* toplev.c (process_options): Handle flag_dump_go_spec.
      	* debug.c: Include "tree.h".
      	(do_nothing_debug_hooks): Set tree_type_symtab_field.
      	* dwarf2out.c (dwarf2_debug_hooks): Likewise.
      	* dbxout.c (dbx_debug_hooks): Likewise.
      	(xcoff_debug_hooks): Likewise.
      	* vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
      	* sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
      	SDB_DEBUGGING_INFO is not defined.
      	* doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
      	(Overall Options): Document -fdump-go-spec.
      	* Makefile.in (OBJS-common): Add godump.o.
      	(debug.o): Add dependency on $(TREE_H).
      	(godump.o): New target.
      	(GTFILES): Add $(srcdir)/godump.c.
      gcc/c-family/:
      	* c-lex.c (init_c_lex): Set macro debug callbacks if
      	flag_dump_go_spec is set.
      
      From-SVN: r166770
      Ian Lance Taylor committed
    • re PR fortran/46484 (Should reject ALLOCATED(non-variable expression )) · 11746b92
      2010-11-15  Tobias Burnus  <burnus@net.b.de>
      
              PR fortran/46484
              * check.c (variable_check): Don't treat functions calls as
              * variables;
              optionally accept function themselves.
              (gfc_check_all_any, gfc_check_loc, gfc_check_move_alloc,
              gfc_check_null, gfc_check_present, gfc_check_cpu_time,
              gfc_check_date_and_time, gfc_check_mvbits, gfc_check_random_number,
              gfc_check_random_seed, gfc_check_system_clock,
              gfc_check_dtime_etime, gfc_check_dtime_etime_sub,
              gfc_check_itime_idate,gfc_check_ltime_gmtime): Update call.
      
      2010-11-15  Tobias Burnus  <burnus@net.b.de>
      
              PR fortran/46484
              * gfortran.dg/allocatable_scalar_11.f90: New.
              * gfortran.dg/allocatable_scalar_5.f90: Make test case standard
              * conform.
      
      From-SVN: r166769
      Tobias Burnus committed
    • libffi-dg.exp: Rename ... · ed2a97eb
      	* testsuite/lib/libffi-dg.exp: Rename ...
      	* testsuite/lib/libffi.exp: ... to this.
      	* libffi/testsuite/libffi.call/call.exp: Don't load libffi-dg.exp.
      	* libffi/testsuite/libffi.special/special.exp: Likewise.
      
      From-SVN: r166768
      Rainer Orth committed
    • re PR debug/46095 (ICE: in dwarf2out_frame_debug_expr, at dwarf2out.c:2341 with -fstack-protector) · 23d8fd35
      	PR debug/46095
      	* config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
      	marking r11 set RTX_FRAME_RELATED_P if offset is too large for
      	style < 0, add REG_FRAME_RELATED_EXPR.
      
      	* gcc.target/i386/pr46095.c: New test.
      
      From-SVN: r166767
      Jakub Jelinek committed
    • re PR debug/46387 (ICE in add_stores, at var-tracking.c:5415) · 61630b27
      	PR debug/46387
      	* rtl.h (vt_equate_reg_base_value): New prototype.
      	* alias.c (vt_equate_reg_base_value): New function.
      	* var-tracking.c (vt_init_cfa_base): Use it.
      
      	* gcc.dg/pr46387.c: New test.
      
      From-SVN: r166766
      Jakub Jelinek committed
    • re PR lto/41528 (LTO needs better internal and user documentation) · 3abe8cab
      2010-11-15  Jan Hubicka  <jh@suse.cz>
      	    Diego Novillo  <dnovillo@google.com>
      
      	PR lto/41528
      	* doc/lto.texi: Add.
      	* doc/gccint.texi: Add reference to lto.texi.
      	* doc/invoke.texi: Update user documentation for LTO.
      	Move internal flags to lto.texi
      
      
      
      Co-Authored-By: Diego Novillo <dnovillo@google.com>
      
      From-SVN: r166765
      Jan Hubicka committed
    • In gcc/: 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> · 925e8657
      In gcc/:
      2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * c-typeck.c (build_unary_op): Use
              objc_build_incr_expr_for_property_ref to build the pre/post
              increment/decrement of an Objective-C property ref, and skip the
              lvalue_or_else check in that case.
      
      In gcc/c-family/:
      2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * c-common.h (objc_build_incr_expr_for_property_ref): New.
              * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
      
      In gcc/cp/:
      2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * typeck.c (cp_build_unary_op): Use
              objc_build_incr_expr_for_property_ref to build the pre/post
              increment/decrement of an Objective-C property ref.
      
      In gcc/objc/:
      2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc-act.c (objc_build_incr_expr_for_property_ref): New.
              (objc_create_temporary_var): Moved it towards the beginning of the
              file so that objc_build_incr_expr_for_property_ref can use it.
      
      In gcc/testsuite/:
      2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/property/dotsyntax-16.m: New.
              * objc.dg/property/dotsyntax-17.m: New.
              * obj-c++.dg/property/dotsyntax-16.mm: New.
              * obj-c++.dg/property/dotsyntax-17.mm: New.
              * objc.dg/property/at-property-10.m: Uncommented using 'x++'
              syntax with properties, which now works.
              * obj-c++.dg/property/at-property-10.mm: Same change.
      
      From-SVN: r166763
      Nicola Pero committed
    • re PR tree-optimization/46349 (incorrect scalarization) · 4cc13d9d
      2010-11-15  Martin Jambor  <mjambor@suse.cz>
      
      	PR tree-optimization/46349
      	* tree-sra.c (contains_bitfld_comp_ref_p): New function.
      	(contains_vce_or_bfcref_p): Likewise.
      	(sra_modify_assign): Use them.
      
      	* testsuite/gnat.dg/opt9.adb: New file.
      	* testsuite/gnat.dg/opt9_pkg.ads: Likewise
      
      From-SVN: r166759
      Martin Jambor committed
    • configure.ac: Fix spelling in option names. · 9965e3cd
      * configure.ac: Fix spelling in option names.
      * configure: Regenerated.
      
      config/:
      * cloog.m4 (CLOOG_INIT_FLAGS): Fix spelling in option names.
      
      From-SVN: r166758
      Andreas Schwab committed
    • re PR lto/44989 (g++.dg/guality/redeclaration1.C) · d6e524ce
      2010-11-15  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/44989
      	* g++.dg/guality/redeclaration1.C: Do not execute for LTO.
      
      From-SVN: r166757
      Richard Guenther committed
    • re PR preprocessor/45038 (__DBL_MIN__ result in old-style-cast) · bb0a9581
      gcc/c-family/
      	PR preprocessor/45038
      	* c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
      	dialects.
      
      gcc/testsuite/
      	PR preprocessor/45038
      	* g++.dg/pr45038.C: New test.
      
      From-SVN: r166756
      Nathan Froyd committed
    • re PR tree-optimization/46467 (gcc.dg/torture/pta-structcopy-1.c FAILs with… · c636a4fb
      re PR tree-optimization/46467 (gcc.dg/torture/pta-structcopy-1.c FAILs with -fipa-pta without inlining)
      
      2010-11-15  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/46467
      	* tree-ssa-structalias.c (do_structure_copy): Properly treat
      	variables without subvars.
      
      	* gcc.dg/ipa/ipa-pta-16.c: New testcase.
      
      From-SVN: r166755
      Richard Guenther committed
    • re PR target/46432 (v850-elf --enable-werror-always build fails) · d0a4fd97
              PR target/46432
              * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
      
      From-SVN: r166754
      Joern Rennecke committed
    • re PR bootstrap/45444 (ARM bootstrap failure: uninitialized const member in… · 21272a45
      re PR bootstrap/45444 (ARM bootstrap failure: uninitialized const member in 'neon_builtin_datum' is invalid in C++ [-Werror=c++-compat])
      
      	PR bootstrap/45444
      	* config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
      	(arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
      
      From-SVN: r166753
      Joern Rennecke committed
    • re PR middle-end/46423 (FAIL: g++.dg/torture/pr34850.C) · fcdc80e4
      2010-11-15  Richard Guenther  <rguenther@suse.de>
      
      	PR testsuite/46423
      	* g++.dg/torture/pr34850.C: Adjust.
      
      From-SVN: r166752
      Richard Guenther committed
    • picochip.c (file header): Picochip name change. · b7b25842
              * config/picochip/picochip.c (file header): Picochip name change.
              * config/picochip/picochip.md (file header): Likewise.
              * config/picochip/predicates.md (file header): Likewise.
              * config/picochip/dfa_space.md (file header): Likewise.
              * config/picochip/dfa_speed.md (file header): Likewise.
              * config/picochip/picochip.h(file header): Likewise.
              * config/picochip/constraints.md (file header): Likewise.
              * config/picochip/picochip-protos.h (file header): Likewise.
              * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
              * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
              * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
              * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
              * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
              * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
              * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
              * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
              * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
              * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
              * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
              * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
              * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
              * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
      
      From-SVN: r166751
      Hariharan Sandanagobalane committed
    • re PR bootstrap/46474 (powerpc64-linux bootstrap comparison failure in libcpp/symtab.o) · 76b14c29
      2010-11-15  Richard Guenther  <rguenther@suse.de>
      
      	PR bootstrap/46474
      	* tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
      
      From-SVN: r166750
      Richard Guenther committed
    • * testsuite/ext/profile/mh.cc: Add xfail for uclibc. · 8679360a
      From-SVN: r166749
      Jie Zhang committed
    • stormy16.c (direct_return): Do not generate a direct return for interrupt handlers. · 2fd7ba4a
      	* config/stormy16/stormy16.c (direct_return): Do not generate a
      	direct return for interrupt handlers.
      
      From-SVN: r166748
      Nick Clifton committed
    • Add PR number to ChangeLog entry: · 5792856d
              PR target/46427
              * config/m32r/m32r.c: Remove unused variables frame_size and insn.
      
      From-SVN: r166747
      Joern Rennecke committed
    • Makefile.in (tm.texi): Replace with rule for: ($(srcdir)/doc/tm.texi). · c18a9bc4
              * Makefile.in (tm.texi): Replace with rule for:
              ($(srcdir)/doc/tm.texi).
              (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
              $(srcdir)/doc/tm.texi .
              (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
              tm.texi .
      
      From-SVN: r166745
      Joern Rennecke committed
    • re PR lto/44150 (g++.dg/lto/20081109 cp_lto_20081109_0.o-cp_lto_20081109_1.o) · 192f8da5
      2010-11-15  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/44150
      	* lto-opts.c (lto_write_options): Write -fexceptions even if
      	not set by the user.
      
      From-SVN: r166744
      Richard Guenther committed
    • * sv.po: Update. · db710796
      From-SVN: r166743
      Joseph Myers committed
    • Daily bump. · 324c4541
      From-SVN: r166742
      GCC Administrator committed
  2. 14 Nov, 2010 9 commits
    • be.po, [...]: Update. · c55c1f46
      	* be.po, ca.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po,
      	ja.po, nl.po, sv.po, tr.po, uk,po, vi.po, zh_CN.po, zh_TW.po:
      	Update.
      
      From-SVN: r166738
      Joseph Myers committed
    • be.po, [...]: Update. · 969b7824
      	* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po, ja.po,
      	nl.po, ru.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po:
      	Update.
      
      From-SVN: r166737
      Joseph Myers committed
    • 13_ecmascript: Remove, empty directory. · 44e29e81
      2010-11-14  Matthias Klose  <doko@ubuntu.com>
      
              * testsuite/28_regex/13_ecmascript: Remove, empty directory.
              * testsuite/28_regex/02_definitions: Likewise.
              * testsuite/29_atomics/headers/stdatomic.h: Likewise.
      
      From-SVN: r166736
      Matthias Klose committed
    • simple-object-coff.c (simple_object_coff_read_strtab): Fix reading offset. · 28d1e73f
      2010-11-14  Kai Tietz  <kai.tietz@onevision.com>
      
              * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
              offset.
      
      From-SVN: r166735
      Kai Tietz committed
    • stl_tree.h (_Rb_tree<>::_M_const_cast_iter): Remove. · 6b6d5d09
      2010-11-14  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/stl_tree.h (_Rb_tree<>::_M_const_cast_iter): Remove.
      	(_Rb_tree_const_iterator<>::_M_const_cast): Add.
      	(_Rb_tree<>::erase, _M_insert_unique_): Adjust.
      	* include/debug/map.h (map<>::erase, insert): Fix C++0x signatures.
      	* include/debug/multimap.h (multimap<>::erase, insert): Likewise.
      	* include/debug/set.h (set<>::erase, insert): Fix, only cosmetic
      	changes in this case.
      	* include/debug/multiset.h (multiset<>::erase, insert): Likewise.
      	* include/profile/set.h (set<>::insert): Remove redundant macro.
      	* include/profile/multiset.h (multiset<>::insert): Likewise.
      	* include/bits/stl_set.h (set<>::insert): Likewise.
      	* include/bits/stl_multiset.h (multiset<>::insert): Likewise.
      
      From-SVN: r166734
      Paolo Carlini committed
    • re PR c/46475 (FAIL: gcc.dg/nofixed-point-2.c) · fc3f9236
      2010-11-14  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR c/46475
      	* gcc.dg/nofixed-point-2.c: Change dg-warning to dg-bogus.
      
      From-SVN: r166733
      Paolo Bonzini committed
    • re PR c/46462 (Revision 166700 caused new C test failures) · a5812bdc
      2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR c/46462
      	* c-decl.c (declspecs_add_type): Make variables with error types
      	integers.
      	* c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
      	do not start a declaration before an Objective-C foreach.
      	(c_parser_declaration_or_fndef): Improve recovery after unknown
      	type name.
      	(c_parser_for_statement): Hoist entrance of "foreach context"
      	before ifs, add corresponding reset where it was missing.  Do
      	not set objc_could_be_foreach_context for C.
      
      From-SVN: r166732
      Paolo Bonzini committed
    • re PR tree-optimization/45722 (FAIL: gcc.c-torture/execute/20040709-2.c execution at -O1 and -Os) · ae788515
      	PR tree-optimization/45722
      	* tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
      	this is a reference to a component.
      	* ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
      	(ipa_note_param_call): Adjust comment.
      
      From-SVN: r166731
      Eric Botcazou committed
    • In gcc/objc/: 2010-11-14 Nicola Pero <nicola.pero@meta-innovation.com> · 8926bd5d
      In gcc/objc/:
      2010-11-14  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc-act.c (objc_add_property_declaration): Check that the decl
              we received from the parser is a FIELD_DECL; reject array and
              bitfield properties.  Convert the warning when a property is
              readonly and a setter is specified into an error.  Convert errors
              when a property declaration does not match a property declaration
              in a superclass into warnings.
              (objc_add_synthesize_declaration_for_property): Use
              DECL_BIT_FIELD_TYPE to determine the type of an instance variable
              if it is a bitfield.  Throw an error if we are asked to synthesize
              setters/getters for a bitfield instance variable but the property
              is not appropriate - it must be assign and nonatomic.  If the
              property is readonly, allow the instance variable type to be a
              specialization of the property type.
              (objc_type_valid_for_messaging): Fixed returning 'false' for a
              Class qualified with a protocol when the 'accept_classes' argument
              is 'false'.
      
      In gcc/testsuite/:
      2010-11-14  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/property/at-property-21.m: New.
              * objc.dg/property/at-property-22.m: New.
              * objc.dg/property/at-property-23.m: New.       
              * objc.dg/property/synthesize-9.m: New.
              * objc.dg/property/synthesize-10.m: New.
              * objc.dg/property/synthesize-11.m: New.        
              * obj-c++.dg/property/at-property-21.mm: New.
              * obj-c++.dg/property/at-property-22.mm: New.
              * obj-c++.dg/property/at-property-23.mm: New.   
              * obj-c++.dg/property/synthesize-9.mm: New.
              * obj-c++.dg/property/synthesize-10.mm: New.
              * obj-c++.dg/property/synthesize-11.mm: New.    
      
              * objc.dg/property/at-property-4.m: Updated to match new compiler
              where some errors have been converted into warnings and vice versa.
              * objc.dg/property/at-property-16.m: Same change.
              * objc.dg/property/at-property-18.m: Same change.
              * objc.dg/property/property-neg-5.m: Same change.
              * obj-c++.dg/property/at-property-4.mm: Same change.
              * obj-c++.dg/property/at-property-16.mm: Same change.
              * obj-c++.dg/property/at-property-18.mm: Same change.
              * obj-c++.dg/property/property-neg-5.mm: Same change.
              
              * obj-c++.dg/property/dynamic-2.mm: Enable tests that were
              commented out because of testsuite problems; I found out that
              using dg-warning instead of dg-message gets them to work.
              * obj-c++.dg/property/property-neg-3.mm: Same change.
              * obj-c++.dg/property/synthesize-6.mm: Same change.
              * obj-c++.dg/property/at-property-5.mm: Same change.    
              * obj-c++.dg/property/at-property-14.mm: Same change.   
              * obj-c++.dg/property/at-property-18.mm: Same change.
              * obj-c++.dg/property/at-property-16.mm: Same change (in this file,
              some tests still do not work due to some other testsuite issue).
      
      From-SVN: r166730
      Nicola Pero committed