aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2013-01-24i386.md (*movti_internal_rex64): Add (o,e) alternative.Uros Bizjak2-23/+35
* config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative. (*movtf_internal_rex64): Add (!o,C) alternative (*movxf_internal_rex64): Ditto. (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives. From-SVN: r195446
2013-01-24bind_c_array_params_2.f90: Require -mno-relax-pic-calls for MIPS.Richard Sandiford2-0/+6
gcc/testsuite/ * gfortran.dg/bind_c_array_params_2.f90: Require -mno-relax-pic-calls for MIPS. From-SVN: r195443
2013-01-24octeon-pipe-1.c: Add -ffat-lto-objectsRichard Sandiford2-1/+5
gcc/testsuite/ * gcc.target/mips/octeon-pipe-1.c: Add -ffat-lto-objects From-SVN: r195441
2013-01-24invoke.texi: fix typo.Shenghou Ma3-2/+7
* doc/invoke.texi: fix typo. * doc/objc.texi: fix typo. From-SVN: r195437
2013-01-24mips.md (*and<mode>3_mips16): Use the "W" constraint for the first two ↵Richard Sandiford2-1/+6
alternatives. gcc/ * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint for the first two alternatives. From-SVN: r195433
2013-01-24re PR c/56078 (causes cc1 to crash)Jakub Jelinek5-7/+48
PR c/56078 * c-typeck.c (set_nonincremental_init_from_string): If constructor_max_index is NULL, treat it as if tree_int_cst_lt returned false. (process_init_element): Likewise. * gcc.dg/pr56078.c: New test. * gcc.c-torture/compile/20030305-1.c: Add dg-error lines. From-SVN: r195432
2013-01-24re PR tree-optimization/55927 (FAIL: g++.dg/ipa/devirt-10.C -std=gnu++11 ↵Martin Jambor2-1/+6
scan-ipa-dump-times inline "Discovered a virtual call to a known target" 1) 2013-01-24 Martin Jambor <mjambor@suse.cz> PR tree-optimization/55927 * g++.dg/ipa/devirt-10.C: Disable early inlining. From-SVN: r195430
2013-01-24Remove zone allocator.Diego Novillo18-2889/+110
This patch removes the GC zone allocator. It is not used and it produces several regressions in the testsuite. Furthermore, it complicates things for the plan to implement manual GC markers (http://gcc.gnu.org/wiki/cxx-conversion/gc-alternatives#Do_GC_marking_manually). Tested on x86_64 with standard checking, --enable-checking=gc and --enable-checking=release. From-SVN: r195426
2013-01-24avr.c (avr_out_fract): Make register numbers that might be outside of source ↵Georg-Johann Lay2-6/+11
operand signed. * config/avr/avr.c (avr_out_fract): Make register numbers that might be outside of source operand signed. From-SVN: r195424
2013-01-24constraints.md (Yf): New constraint.Uros Bizjak5-13/+41
* config/i386/constraints.md (Yf): New constraint. * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead of f constraint to conditionaly disable x87 register preferences. (*movdf_internal): Ditto. (*movsf_internal): Ditto. testsuite/ChangeLog: * gcc.target/i386/movsd.c: New test. From-SVN: r195423
2013-01-24re PR inline-asm/55934 (LRA inline asm error recovery)Steven Bosscher5-4/+62
gcc/ PR inline-asm/55934 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms that have operands with impossible constraints. Add a FIXME for a speed-up opportunity. * lra-constraints.c (process_alt_operands): Verify that a class selected from constraints on asms is valid for the operand mode. (curr_insn_transform): Remove incorrect comment. testsuite/ PR inline-asm/55934 * gcc.target/i386/pr55934.c: New test. From-SVN: r195420
2013-01-24Daily bump.GCC Administrator1-1/+1
From-SVN: r195417
2013-01-23re PR fortran/56081 (Seg fault ICE on select with bad case)Janus Weil4-4/+40
2013-01-23 Janus Weil <janus@gcc.gnu.org> PR fortran/56081 * resolve.c (resolve_select): Add argument 'select_type', reject non-scalar expressions. (resolve_select_type,resolve_code): Pass new argument to 'resolve_select'. 2013-01-23 Janus Weil <janus@gcc.gnu.org> PR fortran/56081 * gfortran.dg/select_8.f90: New. From-SVN: r195412
2013-01-23* ChangeLog: Add missing entry.Uros Bizjak1-0/+5
From-SVN: r195411
2013-01-23i386.md (*movdf_internal_rex64): Disparage alternatives involving stack ↵Uros Bizjak1-2/+2
registers slightly. * config/i386/i386.md (*movdf_internal_rex64): Disparage alternatives involving stack registers slightly. From-SVN: r195410
2013-01-23rs6000.c (rs6000_delegitimize_address): Check that TOC operand is a valid ↵David Edelsohn2-1/+8
symbol ref in the constant pool. * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that TOC operand is a valid symbol ref in the constant pool. From-SVN: r195409
2013-01-23Add TARGET_OS_CPP_BUILTINS for microblaze*-linuxEdgar E. Iglesias2-0/+8
From-SVN: r195408
2013-01-23re PR target/54222 ([avr] Implement fixed-point support)Georg-Johann Lay3-0/+383
PR target/54222 * config/avr/stdfix.h: New file. * t-avr (stdfix-gcc.h): New rule to build it. (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h. From-SVN: r195407
2013-01-23Remove obsolete check for target_config_cflags, no longer set.David Holsgrove2-6/+4
From-SVN: r195406
2013-01-23libsanitizer merge from upstream r173241Kostya Serebryany2-1/+5
From-SVN: r195404
2013-01-23re PR fortran/56052 ([OOP] ICE in omp_add_variable, at gimplify.c:5606)Jakub Jelinek4-1/+34
PR fortran/56052 * trans-decl.c (gfc_get_symbol_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P on select_type_temporary and don't set DECL_BY_REFERENCE. * gfortran.dg/gomp/pr56052.f90: New test. From-SVN: r195399
2013-01-23re PR target/49069 (ICE in gen_cstoredi4, at config/arm/arm.md:7554)Jakub Jelinek5-13/+32
PR target/49069 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand instead of cmpdi_operand for first comparison operand. Don't assert that comparison operands aren't both constants. * gcc.dg/pr49069.c: New test. From-SVN: r195398
2013-01-23Daily bump.GCC Administrator1-1/+1
From-SVN: r195396
2013-01-22re PR c++/55944 ([C++11] static local member with constexpr c'tor causes ICE)Paolo Carlini4-1/+31
/cp 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/55944 * decl.c (check_initializer): Use TARGET_EXPR_DIRECT_INIT_P only on TARGET_EXPR nodes. /testsuite 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/55944 * g++.dg/cpp0x/constexpr-static10.C: New. From-SVN: r195391
2013-01-22* testsuite/ChangeLog: Move ChangeLog entries to 2013.Uros Bizjak1-8/+8
From-SVN: r195389
2013-01-22install.texi (Downloading the Source): Update references to downloading ↵Jonathan Wakely2-24/+21
separate components. * doc/install.texi (Downloading the Source): Update references to downloading separate components. From-SVN: r195388
2013-01-22* doc/extend.texi (__int128): Improve grammar.Jonathan Wakely2-4/+8
From-SVN: r195387
2013-01-22re PR target/56028 (Splitting a 64-bit volatile store)Uros Bizjak4-73/+192
PR target/56028 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF) alternative to (o,r). (*movdi_internal_rex64): Remove (!o,n) alternative. (DImode immediate->memory splitter): Remove. (DImode immediate->memory peephole2): Remove. (movtf): Enable for TARGET_64BIT || TARGET_SSE. (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r) alternative to (!o,*r). (*movtf_internal_sse): New pattern. (*movxf_internal_rex64): New pattern. (*movxf_internal): Disable for TARGET_64BIT. (*movdf_internal_rex64): Remove (!o,F) alternative. testsuite/ChangeLog: 2012-01-22 Uros Bizjak <ubizjak@gmail.com> PR target/56028 * gcc.target/i386/pr56028.c: New test. From-SVN: r195386
2013-01-22re PR middle-end/56074 (ICE compiling gcc.dg/vect/pr49093.c)Jakub Jelinek3-3/+11
PR middle-end/56074 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc) isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION. * tree-vect-loop-manip.c (find_loop_location): Also ignore stmt locations where LOCATION_LOCUS of the stmt location is UNKNOWN_LOCATION or BUILTINS_LOCATION. From-SVN: r195382
2013-01-22re PR rtl-optimization/55686 (ICE in assign_by_spills, at lra-assigns.c:1244)Jakub Jelinek4-5/+39
PR target/55686 * config/i386/i386.md (UNSPEC_STOS): New. (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1): Add UNSPEC_STOS. * gcc.target/i386/pr55686.c: New test. From-SVN: r195381
2013-01-22re PR c++/56071 (friend class template cannot access private constructor in ↵Jason Merrill3-0/+29
exception-specification) PR c++/56071 * pt.c (maybe_instantiate_noexcept): Don't defer access checks. From-SVN: r195378
2013-01-22re PR c++/56067 (Removal of -Wsynth from doc didn't remove example)Paolo Carlini2-17/+5
2013-01-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56067 * doc/invoke.texi: Remove left over -Wsynth example. From-SVN: r195375
2013-01-22trans.c (gnat_to_gnu): Do not translate the Etype of the node before ↵Eric Botcazou2-1/+6
translating the Actions. * gcc-interface/trans.c (gnat_to_gnu) <N_Expression_With_Actions>: Do not translate the Etype of the node before translating the Actions. From-SVN: r195368
2013-01-22PR c++/53609 - Wrong variadic template pack expansion in alias templateDodji Seketeli6-146/+291
Consider this example: 1 template<class...I> struct List {}; 2 template<int T> struct Z {static const int value = T;}; 3 template<int...T> using LZ = List<Z<T>...>; 4 5 template<class...U> 6 struct F 7 { 8 using N = LZ<U::value...>; //#1 This should amount to List<Z<U::value>...> 9 } 10 11 F<Z<1>, Z<2> >::N A; //#2 which G++ fails to compile, with this error message: test-PR53609-3.cc: In instantiation of 'struct F<Z<1>, Z<2> >': test-PR53609-3.cc:11:15: required from here test-PR53609-3.cc:3:43: error: wrong number of template arguments (2, should be 1) template<int...T> using LZ = List<Z<T>...>; ^ test-PR53609-3.cc:2:24: error: provided for 'template<int T> struct Z' template<int T> struct Z {static const int value = T;}; I think this is because in #1, when we substitute the argument pack {U::value...} into the pack expansion Z<T>..., tsubst_pack_expansion yields Z<U::value...>, instead of Z<U::value>..., so the instantiation of LZ amounts to List<Z<U::value...> >, instead of List<Z<U::value>...>. The idea of this patch is to make tsubst_pack_expansion support substituting an argument pack (into a pack expansion) where one of the arguments (let's call it the Ith argument) is itself a pack expansion P. In that case, the Ith element resulting from the substituting should be a pack expansion P'. The pattern of P' is then the pattern of P into which the pattern of the Ith argument of the argument pack has been substituted. Tested on x86_64-unknown-linux-gnu against trunk. gcc/cp/ * pt.c (argument_pack_element_is_expansion_p) (make_argument_pack_select, use_pack_expansion_extra_args_p) (gen_elem_of_pack_expansion_instantiation): New static functions. (tsubst): When looking through an ARGUMENT_PACK_SELECT tree node, look through the possibly resulting pack expansion as well. (tsubst_pack_expansion): Use use_pack_expansion_extra_p to generalize when to use the PACK_EXPANSION_EXTRA_ARGS mechanism. Use gen_elem_of_pack_expansion_instantiation to build the instantiation piece-wise. Don't use arg_from_parm_pack_p anymore, as gen_elem_of_pack_expansion_instantiation and the change in tsubst above generalize this particular case. (arg_from_parm_pack_p): Remove this for it's not used by tsubst_pack_expansion anymore. gcc/testsuite/ * g++.dg/cpp0x/variadic139.C: New test. * g++.dg/cpp0x/variadic140.C: Likewise. * g++.dg/cpp0x/variadic141.C: Likewise. From-SVN: r195367
2013-01-22trans.c (Pragma_to_gnu): Use optimize_size instead of optimize and adjust ↵Eric Botcazou4-6/+38
warning message. * gcc-interface/trans.c (Pragma_to_gnu) <Name_Space>: Use optimize_size instead of optimize and adjust warning message. (Compilation_Unit_to_gnu): Process pragmas preceding the unit. From-SVN: r195366
2013-01-22gigi.h (ADT_unhandled_except_decl, [...]): New.Tristan Gingold3-1/+49
* gcc-interface/gigi.h (ADT_unhandled_except_decl, ADT_unhandled_others_decl): New. (unhandled_others_decl, unhandled_except_decl): Define. * gcc-interface/trans.c: Include common/common-target.h. (gigi): Initialize them. (Subprogram_Body_to_gnu): On SEH targets, wrap the body of the main function in a try/catch clause. From-SVN: r195364
2013-01-21re PR c++/56059 (SIGSEGV on invalid C++11 code)Jason Merrill3-0/+24
PR c++/56059 * tree.c (strip_typedefs_expr) [TREE_VEC]: Preserve non-default template args count. From-SVN: r195355
2013-01-22Daily bump.GCC Administrator1-1/+1
From-SVN: r195354
2013-01-21* config/i386/i386.md (isa): Switch places of fma and fma4.Uros Bizjak1-1/+1
From-SVN: r195350
2013-01-21re PR fortran/55919 (Bogus warning with -J directory/)Thomas Koenig4-1/+30
2013-01-21 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/55919 * scanner.c (add_path_to_list): Copy path to temporary and strip trailing directory separators before calling stat(). 2013-01-21 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/55919 * gfortran.dg/include_8.f90: New test. From-SVN: r195348
2013-01-21* testsuite/ChangeLog: Fix duplicate entry.Uros Bizjak1-6/+1
From-SVN: r195347
2013-01-21pr55579.c: Cleanup esra tree dumpUros Bizjak3-1/+12
* gcc.dg/tree-ssa/pr55579.c: Cleanup esra tree dump * gfortran.dg/unlimited_polymorphic_8.f90: Cleanup original tree dump. From-SVN: r195346
2013-01-21re PR tree-optimization/56051 (Wrong expression evaluation)Jakub Jelinek4-0/+57
PR tree-optimization/56051 * fold-const.c (fold_binary_loc): Don't fold X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either a narrowing conversion, or widening conversion from signed to unsigned. * gcc.c-torture/execute/pr56051.c: New test. From-SVN: r195343
2013-01-21re PR rtl-optimization/56023 ([alpha] -fcompare-debug failure due to sched1 ↵Uros Bizjak4-5/+38
pass) PR rtl-optimization/56023 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions, dependent on debug instruction. testsuite/ChangeLog: PR rtl-optimization/56023 * gcc.dg/pr56023.c: New test. From-SVN: r195342
2013-01-21re PR middle-end/56022 (ICE (segfault) at convert_memory_address_addr_space ↵Martin Jambor4-4/+24
(explow.c:334)) 2013-01-21 Martin Jambor <mjambor@suse.cz> PR middle-end/56022 * function.c (allocate_struct_function): Call invoke_set_current_function_hook earlier. testsuite/ * gcc.target/i386/pr56022.c: New test. From-SVN: r195341
2013-01-21* lib/target-supports.exp (check_effective_target_alias): New.Jason Merrill2-0/+14
From-SVN: r195338
2013-01-21reload1.c (init_reload): Only initialize reload_obstack during the first call.Jakub Jelinek2-2/+10
* reload1.c (init_reload): Only initialize reload_obstack during the first call. From-SVN: r195335
2013-01-21Fix up English grammarMarek Polacek2-1/+5
From-SVN: r195334
2013-01-21marvell-pj4.md (pj4_shift_conds, [...]): Handle simple_alu_shift.Yi-Hsiu Hsu2-4/+9
2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com> * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift, pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift. From-SVN: r195333
2013-01-21Fix up wrong marvell-pj4.md file committed earlier and update copyright year.Ramana Radhakrishnan2-5/+11
2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> PR target/56058 * config/arm/marvell-pj4.md: Update copyright year. Fix up use of alu to alu_reg and simple_alu_imm. From-SVN: r195332