aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2011-09-16avr.md: (umulqihi3, mulqihi3): Write as one pattern.Georg-Johann Lay2-115/+52
* config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern. (umulqi3_highpart, smulqi3_highpart): Ditto. (*maddqihi4.const, *umaddqihi4.uconst): Ditto. (*msubqihi4.const, *umsubqihi4.uconst): Ditto. (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto. From-SVN: r178913
2011-09-16re PR target/50358 (AVR: Implement [u]maddqihi4 [u]msubqihi4 patterns on the ↵Georg-Johann Lay3-1/+127
enhanced core) PR target/50358 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn. (*maddqi4, *maddqi4.const): New insns. (*msubqi4, *msubqi4.const): New insns. * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for HImode by 1 in the case of multiplying with a CONST_INT. Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI. From-SVN: r178912
2011-09-16Update Go library to r60.Ian Lance Taylor5-151/+156
From-SVN: r178910
2011-09-16re PR lto/50430 (Constructors of static external vars are throwed away ↵Jan Hubicka2-1/+8
leading to missed optimizations (and ipa-cp ICE).) PR lto/50430 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on error_mark_node in the DECL_INITIAL of vtable. From-SVN: r178908
2011-09-16* gcc.target/i386/avx-round-vec.c: Declare round.Uros Bizjak1-1/+1
From-SVN: r178907
2011-09-16foldconst-3.c: Don't use short enums.Terry Guo2-1/+5
* gcc.dg/tree-ssa/foldconst-3.c: Don't use short enums. From-SVN: r178906
2011-09-16Fix defer when not calling recover in function with named results.Ian Lance Taylor4-21/+30
From-SVN: r178905
2011-09-16Daily bump.GCC Administrator1-1/+1
From-SVN: r178902
2011-09-15Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from ↵Diego Novillo13-4/+110
@SYSROOT_CFLAGS_FOR_TARGET@. * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from @SYSROOT_CFLAGS_FOR_TARGET@. * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot. * configure: Regenerate. (site.exp): Add definition of TEST_ALWAYS_FLAGS. Remove setting of GCC_UNDER_TEST. testsuite/ChangeLog * lib/g++.exp (g++_init): Add $TEST_ALWAYS_FLAGS to ALWAYS_CXXFLAGS, if defined. * lib/gfortran.exp (gfortran_init): Add $TEST_ALWAYS_FLAGS to ALWAYS_GFORTRANFLAGS, if defined. * lib/go.exp (go_target_compile): Add $TEST_ALWAYS_FLAGS to ALWAYS_GOCFLAGS, if defined. * lib/obj-c++.exp (obj-c++_init): Add $TEST_ALWAYS_FLAGS to ALWAYS_OBJCXXFLAGS, if defined. * lib/gcc.exp (gcc_target_compile): Add $TEST_ALWAYS_FLAGS to additional_flags, if defined. * lib/gnat.exp (gnat_target_compile): Likewise. * lib/objc.exp (objc_target_compile): Likewise. * lib/target-supports-dg.exp (dg-add-options): Handle TEST_ALWAYS_FLAGS. From-SVN: r178897
2011-09-15re PR testsuite/50322 ([avr]: fail: gcc.dg/tree-ssa/ivopts-lt.c)Tom de Vries2-4/+12
2011-09-15 Tom de Vries <tom@codesourcery.com> PR testsuite/50322 * gcc.dg/tree-ssa/ivopts-lt.c: require stdint_types. include stdint.h. Use uintptr_t in f1. Undo avr xfails. From-SVN: r178895
2011-09-15i386.c (output_fp_compare): Return %v prefixed instruction mnemonics for ↵Uros Bizjak4-21/+54
TARGET_AVX. * config/i386/i386.c (output_fp_compare): Return %v prefixed instruction mnemonics for TARGET_AVX. * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in "type" attribute calculation. (*movdf_internal): Ditto. (*movsf_internal): Ditto. From-SVN: r178891
2011-09-15re PR fortran/50401 (SIGSEGV in resolve_transfer)Janus Weil5-1/+36
2011-09-15 Janus Weil <janus@gcc.gnu.org> PR fortran/50401 * resolve.c (resolve_transfer): Check if component 'ref' is defined. PR fortran/50403 * symbol.c (gfc_use_derived): Check if argument 'sym' is defined. 2011-09-15 Janus Weil <janus@gcc.gnu.org> PR fortran/50401 PR fortran/50403 * gfortran.dg/function_types_3.f90: New. From-SVN: r178889
2011-09-15arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.James Greenhalgh2-0/+6
2011-09-15 James Greenhalgh <james.greenhalgh@arm.com> * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro. From-SVN: r178884
2011-09-15re PR c++/50365 (non-static data member error on valid code)Jason Merrill4-1/+24
PR c++/50365 * parser.c (cp_parser_late_return_type_opt): Check quals parameter for clearing current_class_ptr, too. From-SVN: r178883
2011-09-15re PR c++/50361 ([C++0x] [4.7 Regression] ICE with std::initializer_list and ↵Jason Merrill4-0/+35
nullptr) PR c++/50361 * expr.c (count_type_elements): Handle NULLPTR_TYPE. From-SVN: r178882
2011-09-15ipa-inline-analysis.c (add_condition): Add conditions parameter; simplify ↵Jan Hubicka2-41/+126
obviously true clauses. * ipa-inline-analysis.c (add_condition): Add conditions parameter; simplify obviously true clauses. (and_predicates, or_predicates): Add conditions parameter. (inline_duplication_hoook): Update. (mark_modified): New function. (unmodified_parm): New function. (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate, will_be_nonconstant_predicate): Use unmodified_parm. (estimate_function_body_sizes): Update. (remap_predicate): Update. From-SVN: r178881
2011-09-15tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow ↵Ira Rosen4-0/+71
read-after-read dependencies in basic block SLP. * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow read-after-read dependencies in basic block SLP. From-SVN: r178880
2011-09-15Update dependencies.Arnaud Charlet2-15/+19
From-SVN: r178879
2011-09-15[multiple changes]Arnaud Charlet5-7/+40
2011-09-15 Robert Dewar <dewar@adacore.com> * tree_io.ads: Minor reformatting. * a-intnam.ads: Fix bad header. 2011-09-15 Thomas Quinot <quinot@adacore.com> * a-exexpr-gcc.adb: Minor reformatting. 2011-09-15 Yannick Moy <moy@adacore.com> * sem_ch6.adb: Propagate information that an expression function comes from source (otherwise references to this entity are not stored). From-SVN: r178878
2011-09-15[multiple changes]Arnaud Charlet21-198/+293
2011-09-15 Robert Dewar <dewar@adacore.com> * a-cdlili.adb, a-coinve.adb, a-stzunb-shared.ads, a-suezst.adb, a-suenco.adb, a-stwiun-shared.ads, a-cobove.adb, a-convec.adb, a-btgbso.adb, a-cbdlli.adb, a-suewst.adb: Minor reformatting. 2011-09-15 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Analyze_Expression_Function): Code cleanup: if the expression function is not a completion, create a new specification for the generated declaration, and keep the original specification in the generated body. Shorter code also ensures that proper warnings are generated for unused formals in all cases. 2011-09-15 Sergey Rybin <rybin@adacore.com> * tree_io.ads: Update ASIS_Version_Number because of the changes in the tree structures for expression functions. 2011-09-15 Arnaud Charlet <charlet@adacore.com> * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads, s-osinte-hpux.ads, s-osinte-lynxos.ads, s-osinte-solaris-posix.ads, s-taprop-posix.adb (CLOCK_MONOTONIC): New constant. (CLOCK_REALTIME): Fix wrong value on some OSes. * s-taprop-posix.adb (Monotonic_Clock): Use CLOCK_MONOTONIC. From-SVN: r178877
2011-09-15Daily bump.GCC Administrator1-1/+1
From-SVN: r178875
2011-09-14Fix handling of structs with embedded global types.Ian Lance Taylor3-66/+112
From-SVN: r178870
2011-09-14sparc.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-2/+7
gcc/ * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178869
2011-09-14sh.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-62/+62
gcc/ * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178868
2011-09-14s390.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-12/+17
gcc/ * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178867
2011-09-14rs6000.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford3-6/+12
gcc/ * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref throughout file. * config/rs6000/constraints.md: Likewise. From-SVN: r178866
2011-09-14microblaze.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-1/+6
gcc/ * config/microblaze/microblaze.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178865
2011-09-14bfin.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-12/+11
gcc/ * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178864
2011-09-14name-lookup.c (lookup_arg_dependent): Use conditional timevars.Diego Novillo3-4/+12
* name-lookup.c (lookup_arg_dependent): Use conditional timevars. * decl.c (xref_tag): Likewise. From-SVN: r178860
2011-09-14Fix defer/recover at high optimization levels.Ian Lance Taylor1-2/+5
From-SVN: r178859
2011-09-14re PR c++/50391 ([C++0x] ICE on invalid code, pair with incomplete type)Paolo Carlini4-1/+46
/cp 2011-09-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50391 * pt.c (regenerate_decl_from_template): Don't pass an error_mark_node to build_exception_variant. /testsuite 2011-09-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50391 * g++.dg/cpp0x/noexcept15.C: New. From-SVN: r178857
2011-09-14re PR middle-end/50251 (Revision 178353 caused many test failures)Tom de Vries2-0/+23
2011-09-14 Tom de Vries <tom@codesourcery.com> PR middle-end/50251 * gcc.dg/pr50251.c: New test. From-SVN: r178854
2011-09-14re PR middle-end/50251 (Revision 178353 caused many test failures)Tom de Vries2-0/+20
2011-09-14 Tom de Vries <tom@codesourcery.com> PR middle-end/50251 * explow.c (emit_stack_restore): Set crtl->need_drap if stack_restore is emitted. From-SVN: r178853
2011-09-14arm.c (arm_override_options): Add unaligned_access support.Julian Brown6-48/+352
gcc/ * config/arm/arm.c (arm_override_options): Add unaligned_access support. (arm_file_start): Emit attribute for unaligned access as appropriate. * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD) (UNSPEC_UNALIGNED_STORE): Add constants for unspecs. (insv, extzv): Add unaligned-access support. (extv): Change to expander. Likewise. (extzv_t1, extv_regsi): Add helpers. (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu) (unaligned_storesi, unaligned_storehi): New. (*extv_reg): New (previous extv implementation). * config/arm/arm.opt (munaligned_access): Add option. * config/arm/constraints.md (Uw): New constraint. * expmed.c (store_bit_field_1): Adjust bitfield numbering according to size of access, not size of unit, when BITS_BIG_ENDIAN != BYTES_BIG_ENDIAN. Don't use bitfield accesses for volatile accesses when -fstrict-volatile-bitfields is in effect. (extract_bit_field_1): Likewise. From-SVN: r178852
2011-09-14simplify-rtx.c (simplify_subreg): Check that the inner mode is a scalar ↵Richard Sandiford2-1/+12
integer before applying integer-only... gcc/ * simplify-rtx.c (simplify_subreg): Check that the inner mode is a scalar integer before applying integer-only optimisations to inner arithmetic. From-SVN: r178848
2011-09-14mips.c (mips_expand_epilogue): Generate a simple_return only if the return ↵Bernd Schmidt2-5/+20
address is in r31. * config/mips/mips.c (mips_expand_epilogue): Generate a simple_return only if the return address is in r31. From-SVN: r178847
2011-09-14Really add:Tobias Burnus2-0/+77
2011-09-14 Tobias Burnus <burnus@net-b.de> PR fortran/34547 PR fortran/50375 * gfortran.dg/null_5.f90: New. * gfortran.dg/null_6.f90: New. From-SVN: r178842
2011-09-14re PR fortran/34547 (NULL(): Fortran 2003 changes, accepts invalid, ICE on ↵Tobias Burnus5-2/+70
invalid) 2011-09-14 Tobias Burnus <burnus@net-b.de> PR fortran/34547 PR fortran/50375 * check.c (gfc_check_null): Allow allocatables as MOLD to NULL. * resolve.c (resolve_transfer): Reject NULL without MOLD. * interface.c (gfc_procedure_use): Reject NULL without MOLD if no explicit interface is known. (gfc_search_interface): Reject NULL without MOLD if it would lead to ambiguity. 2011-09-14 Tobias Burnus <burnus@net-b.de> PR fortran/34547 PR fortran/50375 * gfortran.dg/null_5.f90: New. * gfortran.dg/null_6.f90: New. From-SVN: r178841
2011-09-14Daily bump.GCC Administrator1-1/+1
From-SVN: r178839
2011-09-13Always dereference nil receiver passed to value method.Ian Lance Taylor1-21/+3
From-SVN: r178835
2011-09-13cfgcleanup.c (try_head_merge_bb): If get_condition returns NULL for a jump ↵Bernd Schmidt4-2/+52
that is a cc0 insn... * cfgcleanup.c (try_head_merge_bb): If get_condition returns NULL for a jump that is a cc0 insn, pick the previous insn for move_before. * gcc.c-torture/compile/20110913-1.c: New test. From-SVN: r178834
2011-09-13re PR fortran/50379 (ICE in gfc_typenode_for_spec at fortran/trans-types.c)Janus Weil4-3/+23
2011-09-13 Janus Weil <janus@gcc.gnu.org> PR fortran/50379 * symbol.c (check_conflict): Check conflict between GENERIC and RESULT attributes. 2011-09-13 Janus Weil <janus@gcc.gnu.org> PR fortran/50379 * gfortran.dg/result_2.f90: New. From-SVN: r178829
2011-09-13Fix inheriting hidden methods with arguments of hidden type.Ian Lance Taylor4-7/+23
From-SVN: r178827
2011-09-13v850.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-9/+14
gcc/ * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178826
2011-09-13pa.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-95/+97
gcc/ * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178825
2011-09-13mn10300.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-3/+8
gcc/ * config/mn10300/mn10300.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178824
2011-09-13m68k.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-1/+6
gcc/ * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178823
2011-09-13h8300.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford2-4/+9
gcc/ * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178822
2011-09-13arm.md: Use match_test rather than eq/ne symbol_ref throughout file.Richard Sandiford6-138/+145
gcc/ * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref throughout file. * config/arm/neon.md: Likewise. * config/arm/vfp.md: Likewise. * config/arm/thumb2.md: Likewise. * config/arm/cortex-m4.md: Likewise. From-SVN: r178821
2011-09-13Fix inherited hidden methods that return hidden types.Ian Lance Taylor3-13/+94
From-SVN: r178818