1. 03 Jan, 2012 20 commits
  2. 02 Jan, 2012 20 commits
    • Added myself under Write after Approval Maintainer. · c40b2528
      From-SVN: r182821
      Balaji V. Iyer committed
    • re PR driver/48306 (presence of gcc subdir with . in PATH causes breakdown) · 341d3f6e
      	* make-relative-prefix.c (make_relative_prefix_1): Avoid
      	stack overflow if PATH contains just a single entry and
      	HOST_EXECUTABLE_SUFFIX needs to be used.
      
      	PR driver/48306
      	* make-relative-prefix.c: Include sys/stat.h.
      	(make_relative_prefix_1): If access succeeds, check also stat
      	if nstore is a regular file.
      
      From-SVN: r182820
      Jakub Jelinek committed
    • re PR bootstrap/51725 (segfault in stage 3 when compiling gcc/opts.c for sparc64-linux) · a4f436ff
      	PR bootstrap/51725
      	* cselib.c (add_mem_for_addr): Call canonical_cselib_val
      	on mem_elt first.
      
      From-SVN: r182819
      Jakub Jelinek committed
    • DR 1359 PR c++/51675 · ab807569
      	DR 1359
      	PR c++/51675
      	* method.c (walk_field_subobs): Don't check for uninitialized
      	fields in a union.
      	(synthesized_method_walk): Check here.
      
      From-SVN: r182810
      Jason Merrill committed
    • DR 325 PR c++/51666 · d28c2dcd
      	DR 325
      	PR c++/51666
      	* parser.c (cp_parser_cache_defarg): Split out...
      	(cp_parser_parameter_declaration): ...from here.
      	(cp_parser_save_nsdmi): Use it.
      	(cp_parser_cache_group): Remove CPP_COMMA support.
      
      From-SVN: r182809
      Jason Merrill committed
    • PR c++/51462 - ICE in cx_check_missing_mem_inits · 358b9253
      gcc/cp/
      
      	PR c++/51462
      	* semantics.c (cx_check_missing_mem_inits): Don't assert in case
      	of error.
      
      gcc/testsuite/
      
      	PR c++/51462
      	* g++.dg/cpp0x/constexpr-99.C: New test.
      
      From-SVN: r182806
      Dodji Seketeli committed
    • re PR c++/20140 (template function complains about "char-array initialized from wide string") · 7d510a82
      /cp
      2012-01-02  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/20140
      	* typeck2.c (digest_init_r): Use copy_init when initializing
      	an array of chars.
      
      /testsuite
      2012-01-02  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/20140
      	* g++.dg/template/init9.C: New.
      
      From-SVN: r182805
      Paolo Carlini committed
    • invoke.texi (-flto and related options): Copy-edit. · 842322d3
      2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* doc/invoke.texi (-flto and related options): Copy-edit.
      
      From-SVN: r182804
      Sandra Loosemore committed
    • mips.md (loadgp_newabi_<mode>): Add missing earlyclobber. · 21e8e84d
      gcc/
      	* config/mips/mips.md (loadgp_newabi_<mode>): Add missing
      	earlyclobber.
      
      From-SVN: r182803
      Richard Sandiford committed
    • sse.md (*avx2_gatherdi<mode>_3, [...]): New patterns. · 06046046
      	* config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
      	New patterns.
      
      From-SVN: r182802
      Jakub Jelinek committed
    • expr.h (move_by_pieces_ninsns): Declare. · 0d8f5d62
      gcc/
      	* expr.h (move_by_pieces_ninsns): Declare.
      	* expr.c (move_by_pieces_ninsns): Make external.
      	* config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
      	(mips_store_by_pieces_p): Likewise.
      	* config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
      	(STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
      	* config/mips/mips.c (mips_move_by_pieces_p): New function.
      	(mips_store_by_pieces_p): Likewise.
      
      gcc/testsuite/
      	* gcc.dg/memcpy-4.c: Add nomips16 attribute for MIPS targets.
      	Increase copy to 5 bytes.  Look for at least two "mem/s/u"s,
      	rather than a specific number.
      
      From-SVN: r182801
      Richard Sandiford committed
    • passes.c (register_one_dump_file): Free full_name. · 9f929ce6
      	* passes.c (register_one_dump_file): Free full_name.
      
      	* reload1.c (reload): Don't allocate reg_max_ref_width
      	here.
      	(calculate_elim_costs_all_insns): Free offsets_at and
      	offsets_known_at at the end and clear the pointers.
      
      From-SVN: r182800
      Jakub Jelinek committed
    • avr.opt (-mbranch-cost): Fix double definition of this option introduced in r180739. · ce23293b
      	* config/avr/avr.opt (-mbranch-cost): Fix double definition of
      	this option introduced in r180739.
      
      From-SVN: r182798
      Georg-Johann Lay committed
    • re PR target/51345 ([avr] Devices with 8-bit SP need their own multilib(s)) · 884f56d1
      contrib/
      	PR target/51345
      	* gcc_update (files_and_dependencies): Add
      	gcc/config/avr/t-multilib, gcc/config/avr/multilib.h.
      	
      libgcc/
      	PR target/51345
      	* config/avr/lib1funcs.S: Remove FIXME comments.
      	(SPEED_DIV): Depend on __AVR_HAVE_8BIT_SP__.
      gcc/	
      	PR target/51345
      	* config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
      	(tmake_file target=avr): Add avr/t-multilib.
      
      	* config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
      	to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
      	* config/avr/genmultilib.awk: New file.
      	* config/avr/t-multilib: New auto-generated file.
      	* config/avr/multilib.h: New auto-generated file.
      	* config/avr/t-avr (AVR_MCUS): New variable.
      	(genopt.sh): Use it.
      	(s-mlib): Depend on t-multilib.
      	(t-multilib, multilib.h): New dependencies.
      	(s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
      	(MULTILIB_OPTIONS): Remove.
      	(MULTILIB_MATCHES): Remove.
      	(MULTILIB_DIRNAMES): Remove.
      	(MULTILIB_EXCEPTIONS): Remove:
      	* config/avr/genopt.sh: Don't use hard coded file name;
      	pass AVR_MCUS from t-avr instead.
      
      From-SVN: r182797
      Georg-Johann Lay committed
    • re PR fortran/51529 ([OOP] gfortran.dg/class_to_type_1.f03 is miscompiled:… · 94fae14b
      re PR fortran/51529 ([OOP] gfortran.dg/class_to_type_1.f03 is miscompiled: Uninitialized variable used)
      
      2012-01-02  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/51529
      	* trans-array.c (gfc_array_allocate): Null allocated memory of
      	newly allocted class arrays.
      
      	PR fortran/46262
      	PR fortran/46328
      	PR fortran/51052
      	* interface.c(build_compcall_for_operator): Add a type to the
      	expression.
      	* trans-expr.c (conv_base_obj_fcn_val): New function.
      	(gfc_conv_procedure_call): Use base_expr to detect non-variable
      	base objects and, ensuring that there is a temporary variable,
      	build up the typebound call using conv_base_obj_fcn_val.
      	(gfc_trans_class_assign): Pick out class procedure pointer
      	assignments and do the assignment with no further prcessing.
      	(gfc_trans_class_array_init_assign, gfc_trans_class_init_assign
      	gfc_trans_class_assign): Move to top of file.
      	* gfortran.h : Add 'base_expr' field to gfc_expr.
      	* resolve.c (get_declared_from_expr): Add 'types' argument to
      	switch checking of derived types on or off.
      	(resolve_typebound_generic_call): Set the new argument.
      	(resolve_typebound_function, resolve_typebound_subroutine):
      	Set 'types' argument for get_declared_from_expr appropriately.
      	Identify base expression, if not a variable, in the argument
      	list of class valued calls. Assign it to the 'base_expr' field
      	of the final expression. Strip away all references after the
      	last class reference.
      
      
      2012-01-02  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/46262
      	PR fortran/46328
      	PR fortran/51052
      	* gfortran.dg/typebound_operator_7.f03: New.
      	* gfortran.dg/typebound_operator_8.f03: New.
      
      From-SVN: r182796
      Paul Thomas committed
    • avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23". · 9ecd3a64
      	* config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
      
      From-SVN: r182795
      Georg-Johann Lay committed
    • Implement light-weight DImode support. · 8c57e547
      gcc/
      	Implement light-weight DImode support.
      	* config/avr/avr-dimode.md: New file.
      	* config/avr/avr.md: Include it.
      	(adjust_len): Add plus64, compare64.
      	(HIDI): Remove code iterator.
      	(code_stdname): New code attribute.
      	(rotx, rotsmode): Remove DI.
      	(rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
      	as code iterator.
      	* config/avr/avr-protos.h (avr_have_dimode): New.
      	(avr_out_plus64, avr_out_compare64): New.
      	* config/avr/avr.c (avr_out_compare): Handle DImode.
      	(avr_have_dimode): New variable definition and initialization.
      	(avr_out_compare64, avr_out_plus64): New functions.
      	(avr_out_plus_1): Use simplify_unary_operation to negate xval.
      	(adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
      	(avr_compare_pattern): Skip DImode comparisons.
      
      libgcc/
      	Implement light-weight DImode support.
      	* config/avr/t-avr (LIB1ASMFUNCS): Add _adddi3, _adddi3_s8,
      	_subdi3, _cmpdi2, _cmpdi2_s8, _rotldi3.
      	* config/avr/lib1funcs.S (__adddi3, __adddi3_s8, __subdi3,
      	__cmpdi2, __cmpdi2_s8, __rotldi3): New functions.
      
      From-SVN: r182794
      Georg-Johann Lay committed
    • re PR target/51729 (dspr2-MULT.c and dspr2-MULTU.c fail for MIPS) · 5f595f16
      gcc/testsuite/
      	PR target/51729
      	* gcc.target/mips/dspr2-MULT.c: Remove -ffixed-hi -ffixed-lo.
      	XFAIL.
      	* gcc.target/mips/dspr2-MULTU.c: Likewise.
      
      From-SVN: r182793
      Richard Sandiford committed
    • pr46309.c: Add -mtune=octeon2 for MIPS. · e3763a5b
      gcc/testsuite/
      	* gcc.dg/pr46309.c: Add -mtune=octeon2 for MIPS.
      
      From-SVN: r182792
      Richard Sandiford committed
    • constexpr-rom.C: Look for .rdata rather than rodata for MIPS. · c7723398
      gcc/testsuite/
      	* g++.dg/cpp0x/constexpr-rom.C: Look for .rdata rather than rodata
      	for MIPS.
      
      From-SVN: r182791
      Richard Sandiford committed