aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-07-04cp-demangle.c (d_expression): Handle 'this'.Jason Merrill3-7/+32
* cp-demangle.c (d_expression): Handle 'this'. (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise. From-SVN: r175836
2011-07-04DR 1207 PR c++/49589Jason Merrill6-2/+45
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
2011-07-04error.c (dump_template_bindings): Don't print typenames for a partial ↵Jason Merrill5-17/+80
instantiation. * 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
2011-07-04* error.c (type_to_string): Avoid redundant akas.Jason Merrill4-0/+37
From-SVN: r175833
2011-07-04re PR fortran/49623 (Segfault of "gfortran -L" if no argument follows the "-L")Jakub Jelinek2-0/+9
PR fortran/49623 * gfortranspec.c (lang_specific_driver): Ignore options with CL_ERR_MISSING_ARG errors. From-SVN: r175830
2011-07-04re PR rtl-optimization/49619 (ICE in simplify_subreg, at simplify-rtx.c:5362)Jakub Jelinek5-4/+31
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
2011-07-04re PR rtl-optimization/49472 (Compiler segfault on valid code)Jakub Jelinek4-3/+51
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
2011-07-04re PR debug/49602 (verify_ssa failed (definition does not dominate use) with ↵Jakub Jelinek4-1/+64
"-O2 -g") 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
2011-07-04re PR target/49600 (Bad SSE2 int->float split in i386.md)Uros Bizjak2-53/+52
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
2011-07-04re PR target/34734 ([avr] attribute((progmem)) not handled properly in C++)Georg-Johann Lay10-2/+87
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
2011-07-04re PR target/44643 ([avr] ICE in c-typeck.c)Georg-Johann Lay2-1/+19
PR target/44643 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY instead of TREE_READONLY. From-SVN: r175809
2011-07-04extend.texi (AVR Built-in Functions): Update documentation of ↵Georg-Johann Lay7-25/+211
__builtin_avr_fmul*. * 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
2011-07-04re PR tree-optimization/49615 (internal compiler error: verify_stmts failed ↵Richard Guenther4-1/+41
/ 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
2011-07-04t-avr (intfuncs16): Add _clrsbXX2.Georg-Johann Lay4-3/+29
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
2011-07-04In gcc/objc/: 2011-07-04 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero13-956/+1207
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
2011-07-04Daily bump.GCC Administrator1-1/+1
From-SVN: r175793
2011-07-03PR 49296 Fix wrong PR number in ChangeLogJanne Blomqvist1-1/+1
From-SVN: r175789
2011-07-03re PR tree-optimization/49610 (Segfault with -ftree-vectorize (or -O3))Ira Rosen4-0/+25
PR tree-optimization/49610 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has a basic block. From-SVN: r175786
2011-07-03Daily bump.GCC Administrator1-1/+1
From-SVN: r175785
2011-07-02tree.h (TYPE_ARTIFICIAL): New flag.Eric Botcazou9-2/+65
* tree.h (TYPE_ARTIFICIAL): New flag. * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to the DIE of the type if it is artificial. (gen_array_type_die): Likewise. (gen_enumeration_type_die): Likewise. (gen_struct_or_union_type_die): Likewise. * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL. * lto-streamer-out.c (pack_ts_base_value_fields): Likewise. ada/ * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on the type according to the ARTIFICIAL_P parameter. (create_type_decl): Likewise. (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. Co-Authored-By: Nicolas Setton <setton@adacore.com> Co-Authored-By: Olivier Hainque <hainque@adacore.com> From-SVN: r175781
2011-07-02re PR fortran/49562 ([OOP] assigning value to type-bound function)Janus Weil4-3/+44
2011-07-02 Janus Weil <janus@gcc.gnu.org> PR fortran/49562 * expr.c (gfc_check_vardef_context): Handle type-bound procedures. 2011-07-02 Janus Weil <janus@gcc.gnu.org> PR fortran/49562 * gfortran.dg/typebound_proc_23.f90: New. From-SVN: r175779
2011-07-02Daily bump.GCC Administrator1-1/+1
From-SVN: r175775
2011-07-01re PR c++/49605 (-Wdelete-non-virtual-dtor is not picky enough)Jonathan Wakely4-2/+35
2011-07-01 Jonathan Wakely <jwakely.gcc@gmail.com> PR c++/49605 * init.c (build_delete): Only warn for sfk_deleting_destructor. From-SVN: r175771
2011-07-01Make-lang.in (gnat1): Prepend '+' to the command.Eric Botcazou2-2/+7
* gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. (gnatbind): Likewise. From-SVN: r175769
2011-07-01tree-object-size.c (pass_through_call): Handle BUILT_IN_ASSUME_ALIGNED.Jakub Jelinek2-1/+7
* tree-object-size.c (pass_through_call): Handle BUILT_IN_ASSUME_ALIGNED. From-SVN: r175768
2011-07-01Make-lang.in (cp/decl.o): Depend on pointer-set.h.Jakub Jelinek2-5/+13
* Make-lang.in (cp/decl.o): Depend on pointer-set.h. (cp/class.o): Likewise. (cp/error.o): Likewise. (cp/name-lookup.o): Likewise. (cp/decl2.o): Likewise. Don't depend on $(POINTER_SET_H). From-SVN: r175767
2011-07-01re PR c++/48261 (internal compiler error: in lookup_template_function, at ↵Jason Merrill4-2/+34
cp/pt.c:6227) PR c++/48261 * pt.c (lookup_template_function): Handle non-function. From-SVN: r175766
2011-07-01re PR c++/48593 (Wrong return type when applying address operator to ↵Jason Merrill7-6/+39
inherited, template dependend member, using a typedef) PR c++/48593 * pt.c (tsubst_qualified_id): Check PTRMEM_OK_P. * tree.c (build_qualified_name): Set PTRMEM_OK_P. * semantics.c (finish_parenthesized_expr): Clear PTRMEM_OK_P on SCOPE_REF, too. * cp-tree.h (PTRMEM_OK_P): Apply to SCOPE_REF, too. (QUALIFIED_NAME_IS_TEMPLATE): Switch to lang flag 1. From-SVN: r175765
2011-07-01re PR c++/48883 (?: ternary operator fails in certain contexts - link error)Jason Merrill4-0/+22
PR c++/48883 PR c++/49609 * pt.c (resolve_nondeduced_context): Call mark_used. From-SVN: r175764
2011-07-01Darwin has case-insensitive filesystemsJoel Brobecker4-6/+41
HFS+, the FS on Darwin, is case insensitive. So this patch adjusts filename_cmp.c to ignore the casing when comparing filenames on Darwin. include/ChangeLog: * filenames.h (HAVE_CASE_INSENSITIVE_FILE_SYSTEM): Define on Darwin, as well as on the systems that use a DOS-like filesystem. libiberty/ChangeLog: * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of HAVE_CASE_INSENSITIVE_FILE_SYSTEM. From-SVN: r175762
2011-07-01re PR debug/49408 (member function template id not matching linkage name)Jan Kratochvil3-3/+84
libiberty/ PR debug/49408 * cp-demangle.c (d_print_comp): Suppress argument list for function references by the '&' unary operator. Keep also already processed variant without the argument list. Suppress argument list types for function call used in an expression. * testsuite/demangle-expected: Fix excessive argument list types in `test for typed function in decltype'. New testcase for no argument list types printed. 3 new testcases for function references by the '&' unary operator.. From-SVN: r175761
2011-07-01tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.Martin Jambor2-0/+5
2011-07-01 Martin Jambor <mjambor@suse.cz> * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs. From-SVN: r175760
2011-07-01re PR c++/49085 (Crash with SIGSEGV during compilation.)Jason Merrill4-0/+26
PR c++/49085 * semantics.c (finish_offsetof): Complain about incomplete type. From-SVN: r175758
2011-07-01Use proper mode for stack save area.H.J. Lu3-3/+13
2011-07-01 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/48016 * explow.c (update_nonlocal_goto_save_area): Use proper mode for stack save area. * function.c (expand_function_start): Likewise. From-SVN: r175756
2011-07-01config-list.mk (LIST): Append OPT-enable-obsolete to alpha-dec-osf5.1, ↵Rainer Orth2-2/+9
mips-sgi-irix6.5. * config-list.mk (LIST): Append OPT-enable-obsolete to alpha-dec-osf5.1, mips-sgi-irix6.5. From-SVN: r175754
2011-07-01re PR middle-end/49596 (FAIL: gcc.dg/torture/pr43879_1.c)Richard Guenther2-1/+8
2011-07-01 Richard Guenther <rguenther@suse.de> PR middle-end/49596 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes may have unknown refs. From-SVN: r175753
2011-07-01tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.Kai Tietz4-1/+20
2011-07-01 Kai Tietz <ktietz@redhat.com> * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo. 2011-07-01 Kai Tietz <ktietz@redhat.com> * gcc.dg/tree-ssa/bitwise-sink.c: New test. From-SVN: r175752
2011-07-01config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.Rainer Orth3-10/+22
* config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5. * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it. (Specific, mips-sgi-irix6): Likewise. From-SVN: r175751
2011-07-01re PR libmudflap/49549 (Use of --noinhibit-exec is unportable)Rainer Orth7-5/+52
libmudflap: PR libmudflap/49549 * testsuite/lib/libmudflap.exp (load_gcc_lib): Load target-supports.exp. * testsuite/libmudflap.cth/cthfrags.exp: Only pass --noinhibit-exec to GNU ld. gcc: PR libmudflap/49549 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld. gcc/testsuite: PR libmudflap/49549 * lib/target-supports.exp (check_effective_target_gld): New proc. From-SVN: r175749
2011-07-01tree-pretty-print.c (dump_generic_code): Print [idx]= and [idx1 ...Jakub Jelinek2-8/+53
* tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print [idx]= and [idx1 ... idx2]= before initializers if needed for array initializers. From-SVN: r175748
2011-07-01config.gcc (score-*-elf): Remove score7.o.Chen Liqin6-2210/+1550
2011-07-01 Chen Liqin <liqin.gcc@gmail.com> * config.gcc (score-*-elf): Remove score7.o. * config/score/t-score-elf: Likewise. * config/score/score.c: Merge score7 to score.c and remove forwarding functions. * config/score/score7.c: Deleted. * config/score/score7.h: Deleted. From-SVN: r175747
2011-07-01re PR middle-end/49603 (177.mesa in SPEC CPU 2000 failed to build)Richard Guenther4-12/+37
2011-07-01 Richard Guenther <rguenther@suse.de> PR tree-optimization/49603 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert. * gcc.dg/torture/pr49603.c: New testcase. From-SVN: r175746
2011-06-30correct changelogJason Merrill1-1/+1
From-SVN: r175744
2011-06-30re PR c++/49387 (t.cxx:140: error: too many initializers for ‘const ↵Jason Merrill4-0/+31
__class_type_info_pseudo’) PR c++/49387 * rtti.c (get_pseudo_ti_index): Call complete_type. From-SVN: r175743
2011-07-01Daily bump.GCC Administrator1-1/+1
From-SVN: r175742
2011-06-30re PR c++/49569 (-std=gnu++0x causes segmentation fault)Jason Merrill4-2/+33
PR c++/49569 * method.c (implicitly_declare_fn): Set DECL_PARM_LEVEL and DECL_PARM_INDEX on rhs parm. From-SVN: r175738
2011-06-30* pt.c (iterative_hash_template_arg): Use cp_tree_operand_length.Jason Merrill2-1/+3
From-SVN: r175737
2011-06-30re PR c++/49355 (new T({""}) crashes G++ when struct T { std::string foobar };)Jason Merrill4-4/+33
PR c++/49355 * tree.c (stabilize_init): Handle aggregate initialization. From-SVN: r175736
2011-06-30tree-sra.c (struct access): Rename total_scalarization to ↵Martin Jambor4-25/+93
grp_total_scalarization 2011-06-30 Martin Jambor <mjambor@suse.cz> * tree-sra.c (struct access): Rename total_scalarization to grp_total_scalarization (completely_scalarize_var): New function. (sort_and_splice_var_accesses): Set total_scalarization in the representative access. (analyze_access_subtree): Propagate total scalarization accross the tree, no holes in totally scalarized trees, simplify coverage computation. (analyze_all_variable_accesses): Call completely_scalarize_var instead of completely_scalarize_record. * testsuite/gcc.dg/tree-ssa/sra-12.c: New test. From-SVN: r175733
2011-06-30re PR c++/48481 (C++ overloading memory hog)Jason Merrill5-15/+35
PR c++/48481 * name-lookup.c (struct arg_lookup): Add fn_set. (add_function): Check it. (lookup_arg_dependent_1): Initialize it. From-SVN: r175732