aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2010-12-18* gcc.pot: Regenerate.Joseph Myers2-6045/+6756
From-SVN: r168030
2010-12-18pt.c (most_specialized_class): Use ngettext to determine "candidates are:" / ↵Joseph Myers2-1/+6
"candidate is" message. * pt.c (most_specialized_class): Use ngettext to determine "candidates are:" / "candidate is" message. From-SVN: r168029
2010-12-18re PR tree-optimization/46985 (ICE: SIGSEGV in is_gimple_min_invariant ↵Jakub Jelinek4-1/+30
(gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre) PR tree-optimization/46985 * tree-scalar-evolution.c (instantiate_scev_r): If chrec is NULL, return it immediately. * gfortran.dg/pr46985.f90: New test. From-SVN: r168027
2010-12-18re PR target/46915 (Wrong code is generated for conditional branch followed ↵John David Anglin2-33/+84
by zero length asm) PR target/46915 * config/pa/pa.c (branch_to_delay_slot_p): Use next_active_insn instead of next_real_insn. Search forward checking for both ASM_INPUT and ASM_OPERANDS asms until exit condition is found. (branch_needs_nop_p): Likewise. (use_skip_p): New function. (output_cbranch): Use use_skip_p. (output_bb, output_bvb): Likewise. From-SVN: r168026
2010-12-18re PR tree-optimization/46232 (64-bit gcc.dg/tree-ssa/pr14814.c FAILs on SPARC)Eric Botcazou2-4/+6
PR tree-optimization/46232 * gcc.dg/tree-ssa/pr14814.c: Add -fno-tree-sra. From-SVN: r168023
2010-12-18objc-act.c (objc_eh_personality): Select personality name on runtime.Iain Sandoe4-21/+50
gcc/objc: * objc/objc-act.c (objc_eh_personality): Select personality name on runtime. (objc_init_exceptions): New. (objc_begin_try_stmt): Use objc_init_exceptions. (objc_build_throw_stmt): Likewise. gcc/testsuite: * fobjc-exceptions.m: Update dg-error syntax. From-SVN: r168020
2010-12-18re PR target/36834 (structure return ABI for windows targets differs from ↵Kai Tietz6-1/+156
native MSVC) 2010-12-18 Kai Tietz <kai.tietz@onevision.com> PR target/36834 * config/i386/i386.c (ix86_keep_aggregate_return_pointer): New local function. (ix86_return_pops_args): Use ix86_keep_aggregate_return_pointer function instead of KEEP_AGGREGATE_RETURN_POINTER. (ix86_handle_callee_pop_aggregate_return): New handler. (ix86_attribute_table): Add new attribute callee_pop_aggregate_return. * doc/extend.texi (callee_pop_aggregate_return): Add attribute documentation. 2010-12-18 Kai Tietz <kai.tietz@onevision.com> PR target/36834 * gcc.target/i386/aggregate-ret1.c: New. * gcc.target/i386/aggregate-ret2.c: New. From-SVN: r168019
2010-12-18darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Only set sjlj exceptions for ↵Iain Sandoe2-0/+10
NeXT/m32. gcc: * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Only set sjlj exceptions for NeXT/m32. From-SVN: r168018
2010-12-18darwin.h (GCC_DRIVER_HOST_INITIALIZATION): Only expose when not building for ↵Iain Sandoe2-2/+8
target. gcc: * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): Only expose when not building for target. From-SVN: r168017
2010-12-18add new test missed from r167682Iain Sandoe2-0/+91
testsuite: * gcc.target/powerpc/darwin-split-ld-stret.c: New test. From-SVN: r168015
2010-12-18Don't crash on recursive variables and typed consts.Ian Lance Taylor3-8/+117
From-SVN: r168012
2010-12-18max-stack-align.c: New testcase.Ahmad Sharif2-0/+18
2010-12-17 Ahmad Sharif <asharif@google.com> * gcc.target/i386/max-stack-align.c: New testcase. From-SVN: r168011
2010-12-18netbsd.opt, [...]: New files.Joseph Myers4-1/+96
* config/netbsd.opt, config/netbsd-elf.opt: New files. * config.gcc (alpha*-*-netbsd*, arm*-*-netbsdelf*, arm*-*-netbsd*, i[34567]86-*-netbsdelf*, i[34567]86-*-netbsd*, x86_64-*-netbsd*, m68k*-*-netbsdelf*, mips*-*-netbsd*, powerpc-*-netbsd*, sh*-*-netbsd*, sparc-*-netbsdelf*, sparc64-*-netbsd*, vax-*-netbsdelf*, vax-*-netbsd*): Use these .opt files. From-SVN: r168010
2010-12-18Daily bump.GCC Administrator1-1/+1
From-SVN: r168009
2010-12-17In gcc/testsuite/: 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero2-1/+5
In gcc/testsuite/: 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/exceptions-4.m: Adjust for change in error message. From-SVN: r168003
2010-12-17Continue searching in find_oldest_value_reg on class match failure.Richard Henderson2-1/+6
From-SVN: r168001
2010-12-17re PR c/20385 (Lame parse error message for undefined type)Paolo Bonzini9-89/+268
gcc: 2010-12-17 Paolo Bonzini <bonzini@gnu.org> PR c/20385 * function.c (used_types_insert): Handle ERROR_MARK. * c-decl.c (grokdeclarator): Handle ERROR_MARK. (declspecs_add_type): Leave error_mark_node in specs->type. (finish_declspecs): Change it to integer_type_node here. * c-parser.c (c_parser_peek_2nd_token): Move earlier. (enum c_lookahead_kind): New. (c_parser_next_token_starts_typename): New name of c_parser_next_tokens_start_typename. Accept lookahead enum and handle it here instead of... (c_parser_next_tokens_start_declaration): ... here. Call it. (c_parser_declspecs): Accept another argument. Do not exit on C_ID_ID if it is guessed to be an unknown typename. (c_parser_parms_declarator): Use 2nd token to distinguish a K&R declaration from an ANSI declaration starting with an unknown typename. (c_parser_struct_declaration, c_parser_objc_type_name, c_parser_typeof_specifier, c_parser_declarator, c_parser_direct_declarator_inner): Adjust calls. (c_parser_parameter_declaration): Likewise. (c_parser_type_name): Pass back an error_mark_node to the caller. (c_parser_postfix_expression): Do error recovery when c_parser_type_name returns NULL. testsuite: 2010-12-17 Paolo Bonzini <bonzini@gnu.org> PR c/20385 * objc.dg/tls/init-2.m: Adjust. * gcc.dg/noncompile/920923-1.c: Adjust. * gcc.dg/noncompile/pr44517.c: Adjust. * gcc.dg/declspec-18.c: New test. From-SVN: r167999
2010-12-17netware.h (ASM_SPEC, [...]): Define.Joseph Myers6-7/+55
* config/i386/netware.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE): Define. * config/i386/nto.h (LIB_SPEC, ASM_SPEC): Define. (DBX_REGISTER_NUMBER): Undefine. * config/i386/sol2.h (SIZE_TYPE, PTRDIFF_TYPE): Define. * config/i386/vxworksae.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE): Define. * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu, i[3456x]86-*-netware*, i[34567]86-*-nto-qnx*, i[34567]86-*-solaris2*, i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae): Don't use svr4.h. From-SVN: r167998
2010-12-17Replace "BB [%i]" with "[bb %i]" in vzeroupper RTL dump.H.J. Lu2-4/+15
2010-12-17 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.c (move_or_delete_vzeroupper_2): Replace "BB [%i]" with "[bb %i]" in dump. (move_or_delete_vzeroupper_1): Likewise. (rescan_move_or_delete_vzeroupper): Likewise. Always dump upper 128bit state at exit. From-SVN: r167996
2010-12-17titype-1.c: Enable TImode on __SPU__.Ulrich Weigand8-7/+17
* gcc.dg/titype-1.c: Enable TImode on __SPU__. * gcc.dg/torture/fp-int-convert.h: Likewise. * gcc.dg/tree-ssa/ivopts-1.c: Likewise. * gcc.dg/uninit-C.c: Likewise. * gcc.dg/uninit-C-O0.c: Likewise. * gcc.dg/format/unnamed-1.c: Likewise. * gcc.dg/format/ms_unnamed-1.c: Likewise. From-SVN: r167995
2010-12-17re PR c++/46670 (ICE in dependent_type_p, at cp/pt.c:17553)Jason Merrill4-0/+26
PR c++/46670 * pt.c (value_dependent_expression_p) [ARRAY_REF]: Handle properly. From-SVN: r167993
2010-12-17interix.opt: New.Joseph Myers4-2/+40
* config/interix.opt: New. * config/interix.h (LINK_SPEC): Don't handle -soname*. * config.gcc (i[34567]86-*-interix3*): Use interix.opt. From-SVN: r167992
2010-12-17arm.md (maddhisi4, *maddhidi4): Use the canonical operand order for plus.Andrew Stubbs2-7/+13
2010-12-17 Andrew Stubbs <ams@codesourcery.com> gcc/ * config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical operand order for plus. Drop redundant % from constraints. From-SVN: r167991
2010-12-17t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and _floatunstisf.Ulrich Weigand3-2/+84
* config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and _floatunstisf. * config/spu/spu.md ("floattisf2"): New expander. ("floatunstisf2"): New insn pattern and splitter. ("cgt_ti_m1"): New insn pattern. From-SVN: r167984
2010-12-17* ja.po: Update.Joseph Myers2-8213/+4881
From-SVN: r167983
2010-12-17arm.c (arm_select_cc_mode): Before calling arm_select_dominance_cc_mode for ↵Bernd Schmidt4-0/+48
AND or IOR operations... gcc/ * config/arm/arm.c (arm_select_cc_mode): Before calling arm_select_dominance_cc_mode for AND or IOR operations, ensure that op is NE or EQ. gcc/testsuite/ * gcc.c-torture/compile/20101217-1.c: New test. From-SVN: r167981
2010-12-17re PR middle-end/46761 (-fgraphite-identity produces wrong code for array ↵Alexander Monakov4-12/+49
initialization arr[i] = i) PR middle-end/46761 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Prefer to use unadjusted UB. testsuite: * gcc.dg/graphite/pr46761.c: New. From-SVN: r167980
2010-12-17re PR fortran/46849 ([OOP] MODULE PROCEDURE resolution does not work in ↵Janus Weil4-1/+38
BLOCK or SELECT TYPE) 2010-12-17 Janus Weil <janus@gcc.gnu.org> Tobias Burnus <burnus@gcc.gnu.org> PR fortran/46849 * resolve.c (resolve_symbol): Remove symbols that wrongly ended up in a local BLOCK namespace. 2010-12-17 Janus Weil <janus@gcc.gnu.org> PR fortran/46849 * gfortran.dg/block_9.f08: New. Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org> From-SVN: r167978
2010-12-17re PR debug/45088 (pointer type information lost in debuginfo)Dodji Seketeli5-1/+79
Fix for PR debug/45088 gcc/ * dwarf2out.c (gen_type_die_with_usage): Do not try to emit debug info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use that underlying type instead. gcc/testsuite/ * g++.dg/debug/dwarf2/self-ref-1.C: New test. * g++.dg/debug/dwarf2/self-ref-2.C: Likewise. From-SVN: r167976
2010-12-17Avoid always splitting the stack when calling append and copy.Ian Lance Taylor1-9/+42
From-SVN: r167970
2010-12-17Daily bump.GCC Administrator1-1/+1
From-SVN: r167968
2010-12-17re PR ipa/44563 (GCC uses a lot of RAM when compiling a large numbers of ↵Jan Hubicka2-85/+181
functions) PR middle-end/44563 * ipa-inline.c: Update doplevel comment. (cgraph_estimate_size_after_inlining): Remove times attribute. (cgraph_mark_inline_edge): Update. (cgraph_mark_inline): Remove. (cgraph_estimate_growth): Update. (cgraph_check_inline_limits): Remove one only argument. (cgraph_edge_badness): Update. (cgraph_decide_recursive_inlining): Update. (cgraph_decide_inlining_of_small_function): Fix handling of tree_can_inline_p and call_stmt_cannot_inline_p. (cgraph_flatten): Likewise. (cgraph_decide_inlining): Update. (cgraph_decide_inlining_incrementally): Fix handling of call_stmt_cannot_inline_p. From-SVN: r167964
2010-12-16darwin.opt (dylinker, [...]): New Driver options.Joseph Myers3-1/+75
* config/darwin.opt (dylinker, headerpad_max_install_names, keep_private_externs, nofixprebinding, nomultidefs, noprebind, noseglinkedit, object, prebind, prebind_all_twolevel_modules, preload, private_bundle, pthread, seglinkedit, twolevel_namespace, twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New Driver options. * config/darwin.h (LINK_SPEC): Remove '*' after headerpad_max_install_names. From-SVN: r167963
2010-12-16Fix PR46924: Do not detect reductions outside the current SESE region.Sebastian Pop5-9/+50
2010-12-16 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46924 * graphite-sese-to-poly.c (detect_commutative_reduction): Do not detect reductions outside the current SESE region. * sese.h (stmt_in_sese_p): New. (defined_in_sese_p): Call stmt_in_sese_p. * gcc.dg/graphite/pr46924.c: New. From-SVN: r167962
2010-12-16re PR tree-optimization/46966 (ICE: in execute_cse_reciprocals, at ↵Jakub Jelinek4-0/+25
tree-ssa-math-opts.c:474 with -floop-interchange -fno-tree-copy-prop -fno-tree-loop-im) PR tree-optimization/46966 * graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for for bbs that are removed from SCOP_BBS vector. * gcc.dg/graphite/pr46966.c: New test. From-SVN: r167960
2010-12-16tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to ↵Eric Botcazou6-4/+76
get_ref_base_and_extent returns -1 as the max size. * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to get_ref_base_and_extent returns -1 as the max size. From-SVN: r167958
2010-12-16Support for LEON processorKonrad Eisele10-61/+301
Support for LEON processor * config.gcc (sparc-*-elf*): Deal with sparc-leon specifically. (sparc-*-linux*): Likewise. (sparc-*-rtems*): Remove Solaris left-overs. (sparc*-*-*): Remove obsolete sparc86x setting. (sparc-leon*): Default to --with-cpu=v8 and --with-tune=leon. * doc/invoke.texi (SPARC Options): Document -mcpu/-mtune=leon. * config/sparc/sparc.h (TARGET_CPU_leon): Define. (TARGET_CPU_sparc86x): Delete. (TARGET_CPU_cypress): Define as alias to TARGET_CPU_v7. (TARGET_CPU_f930): Define as alias to TARGET_CPU_sparclite. (TARGET_CPU_f934): Likewise. (TARGET_CPU_tsc701): Define as alias to TARGET_CPU_sparclet. (CPP_CPU_SPEC): Add entry for -mcpu=leon. (enum processor_type): Add PROCESSOR_LEON. Reorganize. * config/sparc/sparc.c (leon_costs): New cost array. (sparc_option_override): Add entry for TARGET_CPU_leon and -mcpu=leon. Initialize cost array to leon_costs if -mtune=leon. * config/sparc/sparc.md (cpu attribute): Add leon. Reorganize. Include leon.md scheduling description. * config/sparc/leon.md: New file. * config/sparc/t-elf: Do not assemble Solaris startup files. * config/sparc/t-leon: New file. * config/sparc/t-leon3: Likewise. Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com> From-SVN: r167957
2010-12-16re PR tree-optimization/43655 (-ftree-ter causes FAIL: ↵Jakub Jelinek4-1/+49
g++.old-deja/g++.law/temps5.C execution test) PR tree-optimization/43655 * tree-ssa-ter.c (is_replaceable_p): Don't use gimple_references_memory_p for -O0, instead check for load by looking at rhs. * g++.dg/opt/pr43655.C: New test. From-SVN: r167955
2010-12-16Fix PR46404: call scev_reset to reset the number of iterations as well.Sebastian Pop4-1/+38
2010-12-16 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46404 * graphite-clast-to-gimple.c (gloog): Call scev_reset. * gcc.dg/graphite/pr46404-1.c: New. From-SVN: r167954
2010-12-16sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.Anatoly Sokolov3-109/+119
* config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove. * config/sh/sh.c (sh_asm_output_addr_const_extra): New function. (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define. From-SVN: r167951
2010-12-16t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.Ulrich Weigand3-3/+20
* config/spu/t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define. * config/spu/spu.h (MIN_UNITS_PER_WORD): Do not define. (LIBGCC2_UNITS_PER_WORD): Define if not already defined. From-SVN: r167950
2010-12-16re PR debug/46893 (ICE: in trunc_int_for_mode, at explow.c:56 with -O -g)Jakub Jelinek4-2/+27
PR debug/46893 * cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode, use TYPE_MODE (TREE_TYPE (tem)) instead of mode1. * gcc.dg/pr46893.c: New test. From-SVN: r167949
2010-12-16Make main return 0.H.J. Lu2-0/+7
2010-12-16 H.J. Lu <hongjiu.lu@intel.com> PR lto/46976 * gcc.dg/lto/pr46940_1.c (main): Return 0. From-SVN: r167903
2010-12-16re PR target/46883 (GCC ICE with error: unrecognizable insn)Chung-Lin Tang4-4/+33
2010-12-16 Chung-Lin Tang <cltang@codesourcery.com> PR target/46883 * config/arm/arm.md (zero_extendhisi2 for register input splitter): Change "register_operand" to "s_register_operand". (zero_extendqisi2 for register input splitter): Same. testsuite/ * gcc.target/arm/pr46883.c: New testcase. From-SVN: r167900
2010-12-16Don't crash on recursive consts.Ian Lance Taylor2-4/+51
From-SVN: r167899
2010-12-16Rework handling of recursive function types.Ian Lance Taylor1-4/+10
From-SVN: r167898
2010-12-16Don't crash when copying a call with no arguments.Ian Lance Taylor1-1/+4
From-SVN: r167897
2010-12-16re PR lto/46976 (FAIL: gcc.dg/lto/pr46940_0.c)Jan Hubicka2-2/+8
PR lto/46976 * gcc.dg/lto/pr46940_0.c: Fix commit. From-SVN: r167896
2010-12-16re PR c++/39859 (duplicated and unhelpful error for "c:n" (parser))Nathan Froyd5-11/+132
gcc/cp/ PR c++/39859 PR c++/44522 PR c++/44523 * parser.c (struct cp_parser): Add colon_corrects_to_scope_p field. (cp_parser_new): Initialize it. (cp_parser_nested_name_specifier_opt): Auto-correct colons to scopes if we are able to. (cp_parser_question_colon_clause): Disallow colon correction. (cp_parser_label_for_labeled_statement): Likewise. (cp_parser_range_for): Likewise. (cp_parser_enum_specifier): Likewise. (cp_parser_class_head): Likewise. (cp_parser_member_declaration): Likewise. gcc/testsuite/ PR c++/39859 PR c++/44522 PR c++/44523 * g++.dg/parse/colon-autocorrect-1.C: New testcase. * g++.dg/parse/colon-autocorrect-2.C: New testcase. From-SVN: r167895
2010-12-16re PR c++/46852 (ICE: tree check: expected class ‘type’, have ↵Nathan Froyd4-1/+20
‘exceptional’ (error_mark) in cp_parser_class_specifier, at cp/parser.c:16947) gcc/cp/ PR c++/46852 * parser.c (cp_parser_class_specifier): Check for TYPE_P. gcc/testsuite/ PR c++/46852 * g++.dg/pr46852.C: New test. From-SVN: r167894