1. 05 Jul, 2011 22 commits
  2. 04 Jul, 2011 16 commits
    • cp-demangle.c (d_expression): Handle 'this'. · a517066d
      	* cp-demangle.c (d_expression): Handle 'this'.
      	(d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
      
      From-SVN: r175836
      Jason Merrill committed
    • DR 1207 PR c++/49589 · f2fe30af
      	DR 1207
      	PR c++/49589
      	* mangle.c (write_expression): Handle 'this'.
      	* parser.c (cp_parser_postfix_dot_deref_expression): Allow
      	incomplete *this.
      	* semantics.c (potential_constant_expression_1): Check that
      	DECL_CONTEXT is set on 'this'.
      
      From-SVN: r175835
      Jason Merrill committed
    • error.c (dump_template_bindings): Don't print typenames for a partial instantiation. · 21d69a5b
      	* error.c (dump_template_bindings): Don't print typenames
      	for a partial instantiation.
      	(dump_function_decl): If we aren't printing function arguments,
      	print template arguments as <args> rather than [with ...].
      	(dump_expr): Don't print return type or template header.
      	[BASELINK]: Use BASELINK_FUNCTIONS rather than get_first_fn.
      	* pt.c (dependent_template_arg_p): Handle null arg.
      
      From-SVN: r175834
      Jason Merrill committed
    • * error.c (type_to_string): Avoid redundant akas. · 0d3128d6
      From-SVN: r175833
      Jason Merrill committed
    • re PR fortran/49623 (Segfault of "gfortran -L" if no argument follows the "-L") · bc947511
      	PR fortran/49623
      	* gfortranspec.c (lang_specific_driver): Ignore options with
      	CL_ERR_MISSING_ARG errors.
      
      From-SVN: r175830
      Jakub Jelinek committed
    • re PR rtl-optimization/49619 (ICE in simplify_subreg, at simplify-rtx.c:5362) · af421d9c
      	PR rtl-optimization/49619
      	* combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
      	pass VOIDmode as op0_mode to recursive call, and return temp even
      	when different from tor, just if it is not IOR of the original
      	PLUS arguments.
      
      	* gcc.dg/pr49619.c: New test.
      
      From-SVN: r175825
      Jakub Jelinek committed
    • re PR rtl-optimization/49472 (Compiler segfault on valid code) · 707f9919
      	PR rtl-optimization/49472
      	* simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
      	negating MULT, negate the second operand instead of first.
      	(simplify_binary_operation_1) <case MULT>: If one operand is
      	a NEG and the other is MULT, don't attempt to optimize by
      	negation of the MULT operand if it only moves the NEG operation
      	around.
      
      	* gfortran.dg/pr49472.f90: New test.
      
      From-SVN: r175821
      Jakub Jelinek committed
    • re PR debug/49602 (verify_ssa failed (definition does not dominate use) with "-O2 -g") · 15923c25
      	PR debug/49602
      	* tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
      	get_current_def return value if it can't be trusted to be
      	the current value of the variable in the current bb.
      
      	* gcc.dg/pr49602.c: New test.
      
      From-SVN: r175818
      Jakub Jelinek committed
    • re PR target/49600 (Bad SSE2 int->float split in i386.md) · 0d5e0c1b
      	PR target/49600
      	* config/i386/i386.md (SSE2 int->float split): Push operand 1 in
      	general register to memory for !TARGET_INTER_UNIT_MOVES.
      
      From-SVN: r175817
      Uros Bizjak committed
    • re PR target/34734 ([avr] attribute((progmem)) not handled properly in C++) · a648cfe8
      	PR target/34734
      	PR target/44643
      	* gcc.target/avr/avr.exp: Run over cpp files, too.
      	* gcc.target/avr/torture/avr-torture.exp: Ditto.
      	* gcc.target/avr/progmem.h: New file.
      	* gcc.target/avr/exit-abort.h: New file.
      	* gcc.target/avr/progmem-error-1.c: New file.
      	* gcc.target/avr/progmem-error-1.cpp: New file.
      	* gcc.target/avr/progmem-warning-1.c: New file.
      	* gcc.target/avr/torture/progmem-1.c: New file.
      	* gcc.target/avr/torture/progmem-1.cpp: New file.
      
      From-SVN: r175811
      Georg-Johann Lay committed
    • re PR target/44643 ([avr] ICE in c-typeck.c) · db297e20
      	PR target/44643
      	* config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
      	instead of TREE_READONLY.
      
      From-SVN: r175809
      Georg-Johann Lay committed
    • extend.texi (AVR Built-in Functions): Update documentation of __builtin_avr_fmul*. · f451d14d
      	* doc/extend.texi (AVR Built-in Functions): Update documentation
      	of __builtin_avr_fmul*.
      	* config/avr/avr.c (avr_init_builtins): Don't depend on
      	AVR_HAVE_MUL.
      	* config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
      	* config/avr/avr.md (fmul): Rename to fmul_insn.
      	(fmuls): Rename to fmuls_insn.
      	(fmulsu): Rename to fmulsu_insn.
      	(fmul,fmuls,fmulsu): New expander.
      	(*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
      	* config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
      	* config/avr/libgcc.S (__fmul): New function.
      	(__fmuls): New function.
      	(__fmulsu,__fmulsu_exit): New function.
      
      From-SVN: r175807
      Georg-Johann Lay committed
    • re PR tree-optimization/49615 (internal compiler error: verify_stmts failed /… · 30f1e6de
      re PR tree-optimization/49615 (internal compiler error: verify_stmts failed / LHS in noreturn call with pointer-to-never-returning-member)
      
      2011-07-04  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/49615
      	* tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
      	basic-block index check.
      
      	* g++.dg/torture/pr49615.C: New testcase.
      
      From-SVN: r175803
      Richard Guenther committed
    • t-avr (intfuncs16): Add _clrsbXX2. · 6dab9931
      libgcc/
      	* config/avr/t-avr (intfuncs16): Add _clrsbXX2.
      
      gcc/
      	* longlong.h (count_leading_zeros, count_trailing_zeros,
      	COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
      	resp. 64.
      
      From-SVN: r175800
      Georg-Johann Lay committed
    • In gcc/objc/: 2011-07-04 Nicola Pero <nicola.pero@meta-innovation.com> · f027ee7c
      In gcc/objc/:
      2011-07-04  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	Refactored encoding code into objc-encoding.h and objc-encoding.c.
      	* objc-act.c (util_obstack, util_firstobj, encode_type_qualifiers,
      	encode_type, generating_instance_variables, objc_method_parm_type,
      	objc_encoded_type_size, encode_method_prototype,
      	objc_build_encode_expr, pointee_is_readonly, encode_pointer,
      	encode_array, encode_vector, encode_aggregate_fields,
      	encode_aggregate_within, encode_next_bitfield,
      	encode_gnu_bitfield, encode_field_decl,
      	objc_v2_encode_property_attr): Moved to objc-encoding.h and
      	objc-encoding.c.  No change in the actual code.
      	Include objc-encoding.h.
      	(objc_init): Added TODO.
      	(objc_build_property_setter_name): Made non-static so it can be
      	called from objc-encoding.c.
      	* objc-act.h (OBJC_ENCODE_INLINE_DEFS,
      	OBJC_ENCODE_DONT_INLINE_DEFS): Moved to objc-encoding.h.
      	* objc-runtime-shared-support.h (objc_v2_encode_property_attr,
      	encode_method_prototype, encode_field_decl,
      	generating_instance_variables): Moved to objc-encoding.h.	
      	(objc_build_property_setter_name): Declare.
      	* objc-encoding.c: New.
      	* objc-encoding.h: New.
      	* objc-gnu-runtime-abi-01.c: Include objc-encoding.h.
      	* objc-next-runtime-abi-01.c: Likewise.
      	* objc-next-runtime-abi-02.c: Likewise.	
      	* objc-runtime-shared-support.c: Likewise.
      	* Make-lang.in (OBJC_OBJS): Added objc-encoding.o.
      	(objc/objc-lang.o): Reordered dependencies.
      	(objc/objc-runtime-shared-support.o): Reordered dependencies.
      	Added dependencies on objc-encoding.h and on $(GGC_H),
      	$(DIAGNOSTIC_CORE_H), $(FLAGS_H) and input.h.
      	(objc/objc-gnu-runtime-abi-01.o): Likewise.
      	(objc/objc-next-runtime-abi-01.o): Likewise.
      	(objc/objc-next-runtime-abi-02.o): Likewise.
      	(objc/objc-act.o): Reordered dependencies.  Added dependency on
      	objc-encoding.h.
      	(objc/objc-encoding.o): New rule.
      
      	* objc-encoding.c (encode_type): Use "%<%T%>" format when printing
      	warning "unknown type %<%T%> found during Objective-C encoding"
      	instead of using gen_type_name.
      	
      In gcc/objcp/:
      2011-07-04  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* Make-lang.in (OBJCXX_OBJS): Added objc-encoding.o.
      	(objcp/objcp-lang.o): Reordered dependencies.  Depend on GGC_H.
      	(objcp/objcp-decl.o): Reordered dependencies.
      	(objcp/objc-runtime-shared-support.o): Reordered dependencies.
      	Updated them to be identical to the corresponding new objc/ ones,
      	with the addition of objcp-decl.h.
      	(objcp/objc-runtime-shared-support.o): Likewise.
      	(objcp/objc-gnu-runtime-abi-01.o): Likewise.
      	(objcp/objc-next-runtime-abi-01.o): Likewise.
      	(objcp/objc-next-runtime-abi-02.o): Likewise.
      	(objcp/objcp-act.o): Reordered dependencies.  Added dependency on
      	objc-encoding.h.
      	(objcp/objc-encoding.o): New rule.
      
      From-SVN: r175797
      Nicola Pero committed
    • Daily bump. · 7e6fd113
      From-SVN: r175793
      GCC Administrator committed
  3. 03 Jul, 2011 2 commits