Jonathan Wakely [Wed, 18 Mar 2015 10:53:38 +0000 (10:53 +0000)]
acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
2015-03-18 Jonathan Wakely <jwakely@redhat.com>
Torvald Riegel <triegel@redhat.com>
* acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
(shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
(shared_timed_mutex::lock_shared()): Retry on EAGAIN.
(shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
EDEADLK.
Co-Authored-By: Torvald Riegel <triegel@redhat.com>
From-SVN: r221484
Paolo Carlini [Wed, 18 Mar 2015 10:31:24 +0000 (10:31 +0000)]
re PR c++/65340 ([C++14]ICE in mark_used, at decl2.c:5040)
2015-03-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65340
* call.c (build_over_call): Pass the tsubst_flags_t argument to
mark_used.
* decl2.c (mark_used): Inline the require_deduced_type call and
guard the error call.
2015-03-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65340
* g++.dg/cpp1y/pr65340.C: New.
From-SVN: r221483
Jerry DeLisle [Wed, 18 Mar 2015 01:47:12 +0000 (01:47 +0000)]
re PR fortran/64432 (SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate)
2015-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/64432
* gfortran.dg/system_clock_3.f08: Adjust test.
From-SVN: r221482
GCC Administrator [Wed, 18 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221481
Jason Merrill [Tue, 17 Mar 2015 17:38:25 +0000 (13:38 -0400)]
re PR c++/65061 (Issue with using declaration and member class template)
PR c++/65061
* parser.c (cp_parser_template_name): Call strip_using_decl.
From-SVN: r221478
Jonathan Wakely [Tue, 17 Mar 2015 16:36:32 +0000 (16:36 +0000)]
1.cc: Remove name of unused exception variable.
* testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
unused exception variable.
* testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
* testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
test.
* testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
From-SVN: r221477
Jonathan Wakely [Tue, 17 Mar 2015 14:24:55 +0000 (14:24 +0000)]
nested_exception.h: Do not try to derive from final classes.
* libsupc++/nested_exception.h: Do not try to derive from final
classes.
* testsuite/18_support/nested_exception/throw_with_nested.cc: Test
final class.
From-SVN: r221476
Georg-Johann Lay [Tue, 17 Mar 2015 10:34:11 +0000 (10:34 +0000)]
re PR target/65296 ([avr] fix various issues with specs file generation)
PR target/65296
* config/avr/avr.opt (-nodevicelib): New option.
* doc/invoke.texi (AVR Options): Document it.
* config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
libgcc.a, libc.a, libm.a.
* config/avr/specs.h: Same.
* config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
which don't (directly) depend on the device. Print more help.
(*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
(*cpp): Don't define __AVR_DEV_LIB_NAME__.
* config/avr/driver-avr.c: Remove -nodevicelib from option list in
case of an error.
(avr_devicespecs_file): Use suffix "%s" instead of absolute path
for specs file name.
* config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
* config/avr/avr-mcus.def: Adjust initializers and comments.
From-SVN: r221475
Paul Thomas [Tue, 17 Mar 2015 05:20:08 +0000 (05:20 +0000)]
re PR fortran/59198 (ICE on cyclically dependent polymorphic types)
2014-03-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/59198
* trans-types.c (gfc_get_derived_type): If an abstract derived
type with procedure pointer components has no other type of
component, return the backend_decl. Otherwise build the
components if any of the non-procedure pointer components have
no backend_decl.
2014-03-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/59198
* gfortran.dg/proc_ptr_comp_44.f90 : New test
* gfortran.dg/proc_ptr_comp_45.f90 : New test
From-SVN: r221474
Jerry DeLisle [Tue, 17 Mar 2015 01:22:12 +0000 (01:22 +0000)]
re PR fortran/64432 (SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate)
2015-03-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/64432
* gfortran.dg/system_clock_3.f08: New test.
From-SVN: r221473
Jerry DeLisle [Tue, 17 Mar 2015 01:04:58 +0000 (01:04 +0000)]
re PR fortran/64432 (SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate)
2015-03-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/64432
* intrinsics/system_clock.c (system_clock4, system_clock8):
Cleanup some whitespace.
From-SVN: r221472
Jerry DeLisle [Tue, 17 Mar 2015 01:01:54 +0000 (01:01 +0000)]
re PR fortran/64432 (SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate)
2015-03-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/64432
*trans-intrinisic.c (conv_intrinsic_system_clock): Check the
smallest kind passed in user arguments and hardcode tesults for
KIND=1 or KIND=2 to indicate no clock available.
From-SVN: r221471
Edward Smith-Rowland [Tue, 17 Mar 2015 00:50:55 +0000 (00:50 +0000)]
re PR c++/64626 (C++14 single quote should not always be a digit separator)
libcpp/
2015-03-16 Edward Smith-Rowland <3dw4rd@verizon.net>
PR c++/64626
* lex.c (lex_number): If a number ends with digit-seps (') skip back
and let lex_string take them.
gcc/testsuite/
2015-03-16 Edward Smith-Rowland <3dw4rd@verizon.net>
PR c++/64626
g++.dg/cpp1y/pr64626-1.C: New.
g++.dg/cpp1y/pr64626-2.C: New.
g++.dg/cpp1y/digit-sep-neg.C: Adjust errors and warnings.
From-SVN: r221470
GCC Administrator [Tue, 17 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221469
Jan Hubicka [Mon, 16 Mar 2015 19:39:14 +0000 (20:39 +0100)]
tree-sra.c (ipa_sra_preliminary_function_checks): Use DECL_ONE_ONLY to check if decl is one only.
* tree-sra.c (ipa_sra_preliminary_function_checks): Use
DECL_ONE_ONLY to check if decl is one only.
* ipa-split.c (consider_split): Limit splitt of one only functions.
From-SVN: r221466
Jakub Jelinek [Mon, 16 Mar 2015 18:50:43 +0000 (19:50 +0100)]
re PR tree-optimization/65427 (ICE in emit_move_insn with wide vector types)
PR tree-optimization/65427
* tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
functions.
(expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
* gcc.c-torture/execute/pr65427.c: New test.
From-SVN: r221464
Marek Polacek [Mon, 16 Mar 2015 18:30:49 +0000 (18:30 +0000)]
DR 1688 PR c++/65327
DR 1688
PR c++/65327
* decl.c (grokdeclarator): Allow volatile and constexpr together.
* g++.dg/cpp0x/constexpr-object1.C: Change dg-error to dg-bogus.
* g++.dg/cpp0x/pr65327.C: New test.
From-SVN: r221463
Marek Polacek [Mon, 16 Mar 2015 18:28:26 +0000 (18:28 +0000)]
cgraph.h (add_new_static_var): Remove declaration.
* cgraph.h (add_new_static_var): Remove declaration.
* varpool.c (add_new_static_var): Remove function.
From-SVN: r221462
Jakub Jelinek [Mon, 16 Mar 2015 16:10:58 +0000 (17:10 +0100)]
omp-low.c (expand_omp_target): Use auto_vec<tree, 11> instead of vec<tree> * with vec_alloc and release for args.
* omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
instead of vec<tree> * with vec_alloc and release for args.
Adjust all users.
From-SVN: r221460
Jakub Jelinek [Mon, 16 Mar 2015 16:10:17 +0000 (17:10 +0100)]
re PR middle-end/65431 (Invalid read of size 8 at 0x105DBBF8: delete_omp_context(unsigned long) (omp-low.c:1586))
PR middle-end/65431
* omp-low.c (delete_omp_context): Only splay_tree_delete
reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
is_gimple_omp_oacc contexts. Don't look at ctx->outer.
From-SVN: r221459
H.J. Lu [Mon, 16 Mar 2015 15:28:58 +0000 (08:28 -0700)]
Move cloog.m4 ChangeLog entry to config/ChangeLog
From-SVN: r221458
Max Ostapenko [Mon, 16 Mar 2015 11:17:32 +0000 (13:17 +0200)]
re PR sanitizer/64820 (Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.)
2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
PR sanitizer/64820
gcc/
* cfgexpand.c (align_base): New function.
(alloc_stack_frame_space): Call it.
(expand_stack_vars): Align prev_frame to be sure
data->asan_vec elements aligned properly.
gcc/testsuite/
* c-c++-common/asan/pr64820.c: New test.
From-SVN: r221457
Andre Vehreschild [Mon, 16 Mar 2015 10:29:59 +0000 (11:29 +0100)]
resolve.c: Prevent segfault on illegal input.
gcc/fortran/ChangeLog:
2015-03-16 Andre Vehreschild <vehre@gmx.de>
* resolve.c: Prevent segfault on illegal input.
gcc/testsuite/ChangeLog:
2015-03-16 Andre Vehreschild <vehre@gmx.de>
* gfortran.dg/pointer_2.f90: New test.
From-SVN: r221455
Eric Botcazou [Mon, 16 Mar 2015 10:26:28 +0000 (10:26 +0000)]
re PR middle-end/65409 (ICE in store_field)
PR middle-end/65409
* expr.c (store_field): Do not do a direct block copy if the source is
a PARALLEL with BLKmode.
From-SVN: r221453
Tom de Vries [Mon, 16 Mar 2015 10:11:11 +0000 (10:11 +0000)]
Add PR64895 xfails in i386/fuse-caller-save*.c
2015-03-16 Tom de Vries <tom@codesourcery.com>
* gcc.target/i386/fuse-caller-save-rec.c: Add PR64895 xfail on scans.
* gcc.target/i386/fuse-caller-save-xmm.c: Same.
* gcc.target/i386/fuse-caller-save.c: Same.
From-SVN: r221452
Eric Botcazou [Mon, 16 Mar 2015 09:59:01 +0000 (09:59 +0000)]
utils2.c (gnat_invariant_expr): Return null if the type of the expression ends up being composite.
* gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
of the expression ends up being composite.
From-SVN: r221449
Tom de Vries [Mon, 16 Mar 2015 09:42:21 +0000 (09:42 +0000)]
Revert 'Use actual_call_used_reg_set to find conflicting regs'
2015-03-16 Tom de Vries <tom@codesourcery.com>
PR middle-end/65414
Revert:
2015-03-12 Tom de Vries <tom@codesourcery.com>
PR rtl-optimization/64895
* lra-lives.c (check_pseudos_live_through_calls): Use
actual_call_used_reg_set instead of call_used_reg_set, if available.
From-SVN: r221448
Eric Botcazou [Mon, 16 Mar 2015 09:40:14 +0000 (09:40 +0000)]
decl.c (is_from_limited_with_of_main): New predicate.
* gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
(gnat_to_gnu_entity) <E_Subprogram_Type>: Invoke it on return and
parameter types to detect circularities in ASIS mode.
* gcc-interface/trans.c (Attribute_to_gnu): Mention AI05-0151.
From-SVN: r221447
Eric Botcazou [Mon, 16 Mar 2015 09:18:38 +0000 (09:18 +0000)]
decl.c (gnat_to_gnu_entity): Do not short-circuit the regular handling.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
short-circuit the regular handling.
From-SVN: r221446
Alan Modra [Mon, 16 Mar 2015 03:29:36 +0000 (13:59 +1030)]
re PR regression/63150 (FAIL: gcc.target/powerpc/pr53199.c scan-assembler-times *)
PR target/63150
gcc/
* config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
Modify Z->r bswapdi splitter to use dest in place of scratch.
In r->Z and Z->r bswapdi splitter rename word_high, word_low
to word1, word2 and rearrange logic to suit.
(bswapdi2_64bit): Remove early clobber on Z->r alternative.
(bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
(bswapdi2_32bit): Remove early clobber on Z->r alternative.
Add one '?' on r->r. Modify Z->r splitter to avoid need for
early clobber.
gcc/testsuite/
* gcc.target/powerpc/pr53199.c: Add extra functions. Revert
2014-12-05 change.
From-SVN: r221445
GCC Administrator [Mon, 16 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221444
John David Anglin [Sun, 15 Mar 2015 23:49:02 +0000 (23:49 +0000)]
pr65270-1.c: Add -fno-common to dg-options on hppa*-*-hpux*.
* gcc.dg/torture/pr65270-1.c: Add -fno-common to dg-options on
hppa*-*-hpux*.
* gcc.dg/torture/pr65270-2.c: Likewise.
From-SVN: r221441
GCC Administrator [Sun, 15 Mar 2015 00:16:21 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221439
Mikael Morin [Sat, 14 Mar 2015 12:23:27 +0000 (12:23 +0000)]
re PR fortran/61138 (Wrong code with pointer-bounds remapping)
PR fortran/61138
fortran/
* trans-expr.c (gfc_trans_pointer_assignment): Clear DESCRIPTOR_ONLY
field before reusing LSE.
testsuite/
gfortran.dg/pointer_remapping_9.f90: New.
From-SVN: r221436
Jakub Jelinek [Sat, 14 Mar 2015 09:56:39 +0000 (10:56 +0100)]
re PR target/65369 (nettle test failure on powerpc64le-linux-gnu when built with -O3)
PR tree-optimization/65369
* tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
(vs - 1) * TYPE_SIZE_UNIT (elem_type).
* gcc.c-torture/execute/pr65369.c: New test.
From-SVN: r221435
Jakub Jelinek [Sat, 14 Mar 2015 09:55:41 +0000 (10:55 +0100)]
re PR tree-optimization/65418 (vim miscompilation)
PR tree-optimization/65418
* tree-ssa-reassoc.c (extract_bit_test_mask): If there
are casts in the first PLUS_EXPR operand, ensure tbias and
*totallowp are in the inner type.
* gcc.c-torture/execute/pr65418-1.c: New test.
* gcc.c-torture/execute/pr65418-2.c: New test.
From-SVN: r221434
Jakub Jelinek [Sat, 14 Mar 2015 08:54:08 +0000 (09:54 +0100)]
re PR rtl-optimization/65401 (make_field_assignment broken for big-endian)
PR rtl-optimization/65401
* combine.c (rtx_equal_for_field_assignment_p): Add widen_x
argument. If true, adjust_address_nv of x with big-endian
correction for the mode widening to GET_MODE (y).
(make_field_assignment): Don't do MEM mode widening here.
Use MEM_P instead of GET_CODE == MEM.
* gcc.c-torture/execute/pr65401.c: New test.
From-SVN: r221433
GCC Administrator [Sat, 14 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221432
Ian Lance Taylor [Fri, 13 Mar 2015 20:48:15 +0000 (20:48 +0000)]
compiler: Permit label on fallthrough statement.
Test case: https://go-review.googlesource.com/7523 .
From-SVN: r221428
Ian Lance Taylor [Fri, 13 Mar 2015 18:53:13 +0000 (18:53 +0000)]
libgo/README: Minor updates.
In particular, mention that libgo should not be stripped.
From-SVN: r221427
Uros Bizjak [Fri, 13 Mar 2015 18:09:12 +0000 (19:09 +0100)]
jit-recording.c (dump::write): Also check vasprintf return value.
* jit-recording.c (dump::write): Also check vasprintf return value.
(recording::context::add_error_va): Ditto.
(recording::string::from_printf): Ditto.
From-SVN: r221426
David Malcolm [Fri, 13 Mar 2015 17:23:37 +0000 (17:23 +0000)]
jit docs: Add "Packaging notes" section
gcc/jit/ChangeLog:
* docs/internals/index.rst (Packaging notes): New section.
* docs/_build/texinfo/libgccjit.texi: Regenerate.
From-SVN: r221425
Arnaud Charlet [Fri, 13 Mar 2015 13:48:21 +0000 (14:48 +0100)]
Fix typo.
From-SVN: r221423
Arnaud Charlet [Fri, 13 Mar 2015 13:47:24 +0000 (14:47 +0100)]
[multiple changes]
2015-03-13 Robert Dewar <dewar@adacore.com>
* exp_unst.adb (Note_Uplevel_Reference): Eliminate duplicate
references.
(Actual_Ref): New function.
(AREC_String): Minor reformatting.
(Unnest_Subprogram): Use Actual_Ref.
* frontend.adb (Frontend): Turn off Unnest_Subprogram_Mode
before call to Instantiate_Bodies.
2015-03-13 Ed Schonberg <schonberg@adacore.com>
* freeze.adb (Freeze_Profile): If the return type of a function
being frozen is an untagged limited view and the function is
abstract, mark the type as frozen because there is no later
point at which the profile of the subprogram will be elaborated.
2015-03-13 Robert Dewar <dewar@adacore.com>
* einfo.adb, einfo.ads, atree.adb, atree.ads, atree.h: Add seventh
component to entities. Add new fields Field36-41 and Node36-41.
2015-03-13 Claire Dross <dross@adacore.com>
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Rewrite after review.
2015-03-13 Robert Dewar <dewar@adacore.com>
* exp_util.adb (Is_Volatile_Reference): Compile time known
value is never considered to be a volatile reference.
2015-03-13 Robert Dewar <dewar@adacore.com>
* sem_ch3.adb (Analyze_Object_Contract): Suppress "constant
cannot be volatile" for internally generated object (such as
FIRST and LAST constants).
2015-03-13 Ed Schonberg <schonberg@adacore.com>
* sem_ch12.adb (Validate_Access_Subprogram_Instance): If a
convention is specified for the formal parameter, verify that
the actual has the same convention.
* sem_prag.adb (Set_Convention_From_Pragma): Allow convention
pragma to be set on a generic formal type.
* sem_util.adb (Set_Convention): Ignore within an instance,
as it has already been verified in the generic unit.
From-SVN: r221422
Ilya Verbin [Fri, 13 Mar 2015 13:30:26 +0000 (13:30 +0000)]
varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for the external decls.
gcc/
* varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
the external decls.
libgomp/
* testsuite/libgomp.fortran/declare-target-1.f90: New test.
* testsuite/libgomp.fortran/declare-target-2.f90: New file.
From-SVN: r221421
Arnaud Charlet [Fri, 13 Mar 2015 13:28:15 +0000 (14:28 +0100)]
[multiple changes]
2015-03-13 Claire Dross <dross@adacore.com>
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not inline
subprograms with unconstrained record parameters containing
Itype declarations.
* sinfo.ads Document GNATprove assumption that type should match
in the AST.
* sem_ch6.adb (Analyze_Subprogram_Body_Contract):
Do not check for Refined_Depends and Refined_Globals contracts
as they are optional.
2015-03-13 Ed Schonberg <schonberg@adacore.com>
* sem_ch12.adb (Instantiate_Type): For a floating-point type,
capture dimension info if any, because the generated subtype
declaration does not come from source and will not process dimensions.
* sem_dim,adb (Analyze_Dimension_Extension_Or_Record_Aggregate):
Do not analyze expressions with an initialization procedure
because aggregates will have been checked at the point of record
declaration.
2015-03-13 Robert Dewar <dewar@adacore.com>
* aspects.ads, aspects.adb: Add entries for aspect Unimplemented.
* einfo.ads, einfo.adb (Is_Unimplemented): New flag.
* sem_ch13.adb: Add dummy entry for aspect Unimplemented.
* snames.ads-tmpl: Add entry for Name_Unimplemented.
From-SVN: r221420
Arnaud Charlet [Fri, 13 Mar 2015 13:22:52 +0000 (14:22 +0100)]
[multiple changes]
2015-03-13 Gary Dismukes <dismukes@adacore.com>
* style.adb (Missing_Overriding): Apply the
Comes_From_Source test to the Original_Node of the subprogram
node, to handle the case of a null procedure declaration that
has been rewritten as an empty procedure body.
2015-03-13 Robert Dewar <dewar@adacore.com>
* exp_util.ads: Minor fix to comment.
* sem_ch3.adb (Constrain_Index): Correct pasto from previous
change.
From-SVN: r221419
Robert Dewar [Fri, 13 Mar 2015 13:18:39 +0000 (13:18 +0000)]
exp_util.ads, [...] (Force_Evaluation): Add Related_Id and Is_Low/High_Bound params.
2015-03-13 Robert Dewar <dewar@adacore.com>
* exp_util.ads, exp_util.adb (Force_Evaluation): Add Related_Id and
Is_Low/High_Bound params.
* sem_ch3.adb (Constrain_Index): Use new Force_Evaluation calling
sequence to simplify generation of FIRST/LAST temps for bounds.
From-SVN: r221418
Jonathan Wakely [Fri, 13 Mar 2015 12:47:21 +0000 (12:47 +0000)]
* include/experimental/system_error: Fix include guard.
From-SVN: r221417
Sebastian Huber [Fri, 13 Mar 2015 10:57:07 +0000 (10:57 +0000)]
libgomp: Add RTEMS support
libgomp/ChangeLog
* configure.tgt (*-*-rtems*): Use local-exec TLS model.
* configure.ac (*-*-rtems*): Assume Pthread is supported.
(pthread.h): Check for this header file.
* configure: Regenerate.
From-SVN: r221415
Jonathan Wakely [Fri, 13 Mar 2015 10:49:08 +0000 (10:49 +0000)]
acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
* acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
* configure: Regenerate.
From-SVN: r221414
Kyrylo Tkachov [Fri, 13 Mar 2015 10:48:44 +0000 (10:48 +0000)]
[ARM] PR target/64600 Fix another ICE with -mtune=xscale: properly sign-extend mask during constant splitting
PR target/64600
* config/arm/arm.c (arm_gen_constant, AND case): Use
ARM_SIGN_EXTEND when constructing AND mask.
PR target/64600
* gcc.target/arm/pr64600_1.c: New test.
From-SVN: r221413
Thomas Preud'homme [Fri, 13 Mar 2015 09:45:48 +0000 (09:45 +0000)]
graph.c (print_graph_cfg): Make function names visible and append parenthesis to it.
2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
gcc/
* graph.c (print_graph_cfg): Make function names visible and append
parenthesis to it. Also make groups of basic blocks belonging to the
same function visible.
From-SVN: r221412
Richard Biener [Fri, 13 Mar 2015 08:52:51 +0000 (08:52 +0000)]
re PR ipa/44563 (GCC uses a lot of RAM when compiling a large numbers of functions)
2015-03-12 Richard Biener <rguenther@suse.de>
PR middle-end/44563
* tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
to avoid quadratic behavior with inline expansion splitting blocks.
* tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
with the successor if the predecessor will be merged with it.
* tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
entry block with its successor.
From-SVN: r221410
Richard Biener [Fri, 13 Mar 2015 08:47:14 +0000 (08:47 +0000)]
re PR ipa/44563 (GCC uses a lot of RAM when compiling a large numbers of functions)
2015-03-10 Richard Biener <rguenther@suse.de>
PR middle-end/44563
* tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
(cleanup_tree_cfg_1): Do not call it.
(execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
(fixup_noreturn_call): Mark the stmt as control altering.
* tree-cfg.c (execute_fixup_cfg): Do not dump the function
here.
(pass_data_fixup_cfg): Produce a dump file.
* tree-ssa-dom.c: Include tree-cfgcleanup.h.
(need_noreturn_fixup): New global.
(pass_dominator::execute): Fixup queued noreturn calls.
(optimize_stmt): Queue calls that became noreturn for fixup.
* tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
* tree-ssa-pre.c: Include tree-cfgcleanup.h.
(el_to_fixup): New global.
(eliminate_dom_walker::before_dom_childre): Queue calls that
became noreturn for fixup.
(eliminate): Fixup queued noreturn calls.
* tree-ssa-propagate.c: Include tree-cfgcleanup.h.
(substitute_and_fold_dom_walker): New member stmts_to_fixup.
(substitute_and_fold_dom_walker::before_dom_children): Queue
alls that became noreturn for fixup.
(substitute_and_fold): Fixup queued noreturn calls.
From-SVN: r221409
Uros Bizjak [Fri, 13 Mar 2015 07:33:51 +0000 (08:33 +0100)]
ChangeLog: Fix whitespace.
* ChangeLog: Fix whitespace.
* testsuite/ChangeLog: Ditto.
From-SVN: r221407
Jan Hubicka [Fri, 13 Mar 2015 06:30:04 +0000 (07:30 +0100)]
ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P and CXX_DESTURCTOR_P.
* ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
are building; for methods check ODR type of class they belong to if
they may lead to a polymorphic call.
(sem_function::compare_polymorphic_p): Be bit smarter about testing
when function may lead to a polymorphic call.
(sem_function::compare_type_list): Remove.
(sem_variable::equals): Update use of compatible_types_p.
(sem_variable::parse_tree_refs): Remove.
(sem_item_optimizer::filter_removed_items): Do not filter out CXX
cdtor.
* ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
matching here.
(func_checker::compatible_polymorphic_types_p): Break out from ...
(unc_checker::compatible_types_p): ... here.
* ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
Declare.
(unc_checker::compatible_types_p): Update.
* ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
Remove.
From-SVN: r221406
GCC Administrator [Fri, 13 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221405
Paolo Carlini [Thu, 12 Mar 2015 23:55:49 +0000 (23:55 +0000)]
re PR c++/65323 (duplicate -Wzero-as-null-pointer-constant warnings)
2015-03-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65323
* decl.c (check_default_argument): Don't call
maybe_warn_zero_as_null_pointer_constant.
From-SVN: r221402
Ian Lance Taylor [Thu, 12 Mar 2015 17:05:22 +0000 (17:05 +0000)]
go/build: cgo works on linux/arm64.
From-SVN: r221398
Ian Lance Taylor [Thu, 12 Mar 2015 16:44:36 +0000 (16:44 +0000)]
Makefile.am (GOLINK): Add GOCFLAGS.
* Makefile.am (GOLINK): Add GOCFLAGS.
* Makefile.in: Rebuild.
From-SVN: r221397
Ian Lance Taylor [Thu, 12 Mar 2015 16:41:28 +0000 (16:41 +0000)]
re PR go/65404 (cgo tool on powerpc-linux-gnu maybe incomplete)
PR go/65404
go/build: cgo works on linux/pcc.
From-SVN: r221396
Renlin Li [Thu, 12 Mar 2015 15:00:28 +0000 (15:00 +0000)]
[PATCH]Remove xfail for wrapped target
libstdc++-v3/
2015-03-12 Renlin Li <renlin.li@arm.com>
* testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
wrapped target.
From-SVN: r221393
Olivier Hainque [Thu, 12 Mar 2015 14:34:25 +0000 (14:34 +0000)]
Add missing bit to ChangeLog entry for the latest update
in gcc/ada/gcc-interface/trans.c.
From-SVN: r221392
Olivier Hainque [Thu, 12 Mar 2015 14:24:48 +0000 (14:24 +0000)]
trans.c (Attribute_to_gnu): On targets where a function symbol designates a function descriptor...
2015-03-12 Olivier Hainque <hainque@adacore.com>
* gcc-interface/trans.c (Attribute_to_gnu) <Code_Address case>:
On targets where a function symbol designates a function descriptor,
fetch the function code address from the descriptor.
From-SVN: r221391
Kyrylo Tkachov [Thu, 12 Mar 2015 13:41:50 +0000 (13:41 +0000)]
Fix ChangeLog entries from previous commit
From-SVN: r221388
Kyrylo Tkachov [Thu, 12 Mar 2015 13:40:50 +0000 (13:40 +0000)]
[simplify-rtx] PR 65235: Calculate element size correctly when simplifying (vec_select (vec_concat (const_int) (...)) [...])
PR rtl-optimization 65235
* simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
When first element of vec_concat is const_int, calculate its size
using second element.
PR rtl-optimization 65235
* gcc.target/aarch64/pr65235_1.c: New test.
From-SVN: r221387
Richard Biener [Thu, 12 Mar 2015 13:02:42 +0000 (13:02 +0000)]
re PR ipa/65270 (issues with merging memory accesses from different code paths)
2015-03-12 Richard Biener <rguenther@suse.de>
PR middle-end/65270
* fold-const.c (operand_equal_p): Fix ordering of resetting
OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
From-SVN: r221386
Dominik Vogt [Thu, 12 Mar 2015 11:13:40 +0000 (11:13 +0000)]
S/390: Hotpatching fixes.
2015-03-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
* config/s390/s390.c (s390_reorg): Move code to output nops after label
to s390_reorg ().
(s390_asm_output_function_label): Likewise.
* config/s390/s390.c (s390_asm_output_function_label):
Fix function label alignment with -mhtopatch.
* config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
("nop_2_byte"): New define_insn.
("nop_4_byte"): Likewise.
("nop_6_byte"): Likewise.
* doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
* doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
2015-03-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
* gcc.target/s390/hotpatch-21.c: New test for hotpatch alignment.
* gcc.target/s390/hotpatch-22.c: Likewise.
* gcc.target/s390/hotpatch-23.c: Likewise.
* gcc.target/s390/hotpatch-24.c: Likewise.
* gcc.target/s390/hotpatch-2.c: Also check hotpatch alignment.
* gcc.target/s390/hotpatch-1.c: Update expected output.
* gcc.target/s390/hotpatch-2.c: Likewise.
* gcc.target/s390/hotpatch-3.c: Likewise.
* gcc.target/s390/hotpatch-4.c: Likewise.
* gcc.target/s390/hotpatch-5.c: Likewise.
* gcc.target/s390/hotpatch-6.c: Likewise.
* gcc.target/s390/hotpatch-7.c: Likewise.
* gcc.target/s390/hotpatch-8.c: Likewise.
* gcc.target/s390/hotpatch-9.c: Likewise.
* gcc.target/s390/hotpatch-10.c: Likewise.
* gcc.target/s390/hotpatch-11.c: Likewise.
* gcc.target/s390/hotpatch-12.c: Likewise.
* gcc.target/s390/hotpatch-13.c: Likewise.
* gcc.target/s390/hotpatch-14.c: Likewise.
* gcc.target/s390/hotpatch-15.c: Likewise.
* gcc.target/s390/hotpatch-16.c: Likewise.
* gcc.target/s390/hotpatch-17.c: Likewise.
* gcc.target/s390/hotpatch-18.c: Likewise.
* gcc.target/s390/hotpatch-19.c: Likewise.
From-SVN: r221381
Ilya Enkovich [Thu, 12 Mar 2015 09:53:36 +0000 (09:53 +0000)]
re PR target/65103 ([i386] GOTOFF relocation is not propagated into address expression)
gcc/
PR target/65103
* config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
register.
gcc/testsuite/
PR target/65103
* gcc.target/i386/pr65103-1.c: New.
From-SVN: r221380
Ilya Enkovich [Thu, 12 Mar 2015 09:23:06 +0000 (09:23 +0000)]
re PR target/65044 (ICE: SIGSEGV in contains_struct_check with -fsanitize=address -fcheck-pointer-bounds)
gcc/
PR target/65044
* toplev.c (process_options): Restrict Pointer Bounds Checker
usage with Address Sanitizer.
gcc/testsuite/
PR target/65044
* gcc.target/i386/pr65044.c: New.
From-SVN: r221379
Ilya Enkovich [Thu, 12 Mar 2015 08:58:08 +0000 (08:58 +0000)]
re PR other/65384 (Intel MPX does not support x32)
libmpx/
PR other/65384
* configure.ac: Fix x32 test.
* configure: Regenerate.
From-SVN: r221378
Richard Biener [Thu, 12 Mar 2015 08:48:32 +0000 (08:48 +0000)]
tree-cfg.c (gimple_split_block): Remove loop finding stmt to split on.
2015-03-12 Richard Biener <rguenther@suse.de>
* tree-cfg.c (gimple_split_block): Remove loop finding stmt
to split on.
* omp-low.c (expand_omp_taskreg): Split block before removing
the stmt.
(expand_omp_target): Likewise.
* ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
* tree-parloops.c (create_call_for_reduction_1): Pass a proper
stmt to split_block.
From-SVN: r221377
Tom de Vries [Thu, 12 Mar 2015 08:01:24 +0000 (08:01 +0000)]
Revert 'require nonpic target' for fuse-caller-save*.c
2015-03-12 Tom de Vries <tom@codesourcery.com>
PR rtl-optimization/64895
* gcc.target/i386/fuse-caller-save-rec.c: Revert require nonpic target.
* gcc.target/i386/fuse-caller-save-xmm.c: Ditto.
* gcc.target/i386/fuse-caller-save.c: Ditto.
From-SVN: r221374
Tom de Vries [Thu, 12 Mar 2015 07:08:12 +0000 (07:08 +0000)]
Add missing PR number
From-SVN: r221373
Tom de Vries [Thu, 12 Mar 2015 06:59:34 +0000 (06:59 +0000)]
Use actual_call_used_reg_set to find conflicting regs
2015-03-12 Tom de Vries <tom@codesourcery.com>
* lra-lives.c (check_pseudos_live_through_calls): Use
actual_call_used_reg_set instead of call_used_reg_set, if available.
From-SVN: r221372
Jan Hubicka [Thu, 12 Mar 2015 03:48:59 +0000 (04:48 +0100)]
* gcc.dg/ipa/pr63569.c: Fix template.
From-SVN: r221371
Sandra Loosemore [Thu, 12 Mar 2015 01:42:52 +0000 (21:42 -0400)]
pr64146.C: Require fpic support.
2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
gcc/testsuite/
* g++.dg/ipa/pr64146.C: Require fpic support.
From-SVN: r221370
GCC Administrator [Thu, 12 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221369
Jan Hubicka [Thu, 12 Mar 2015 00:14:19 +0000 (01:14 +0100)]
cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
* cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
(cgraph_node::remove): Likewise.
(cgraph_node::get_untransformed_body): Likewise.
* varpool.c (varpool_node::remove): Likewise.
(varpool_node::get_constructor): Add sanity check.
* lto.c (read_cgraph_and_symbols): Do not do merging
at ltrans stage.
From-SVN: r221366
Sandra Loosemore [Wed, 11 Mar 2015 23:11:19 +0000 (19:11 -0400)]
invoke.texi (-fgnu89-inline): Remove discussion about old GCC versions.
2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* doc/invoke.texi (-fgnu89-inline): Remove discussion about
old GCC versions.
(-fabi-compat-version): Likewise.
(-ffriend-injection): Likewise.
(-Wdeclaration-after-statement): Likewise.
(-fomit-frame-pointer): Likewise.
(-ftree-coalesce-inlined-vars): Likewise.
(-fvisibility=): Likewise.
* doc/extend.texi (Typeof): Likewise.
(Zero Length): Likewise.
(Escaped Newlines): Likewise.
(Compound Literals): Likewise.
(Function Attributes): Likewise.
(Label Attributes): Likewise.
(Type Attributes): Likewise.
(Function Names): Likewise.
(Other Builtins): Likewise.
(Function Specific Option Pragmas): Likewise.
(C++ Interface): Likewise.
From-SVN: r221364
Thomas Schwinge [Wed, 11 Mar 2015 21:42:56 +0000 (22:42 +0100)]
libgfortran LIBGFOR_MINIMAL enhancements.
Based on GCC trunk r220892, for nvptx-none:
=== gfortran Summary ===
# of expected passes [-31320-]{+32117+}
# of unexpected failures [-7222-]{+6821+}
# of expected failures 78
# of unresolved testcases [-6441-]{+6158+}
# of untested testcases [-432-]{+391+}
# of unsupported tests 639
libgfortran/
* caf/single.c (caf_runtime_error): Revert 2014-11-28 changes.
* runtime/minimal.c (STRERR_MAXSZ): Don't define.
(runtime_error_at, sys_abort): Bring more in line with the
non-LIBGFOR_MINIMAL code.
(runtime_warning_at, internal_error): New functions.
From-SVN: r221363
Thomas Schwinge [Wed, 11 Mar 2015 21:42:50 +0000 (22:42 +0100)]
No libstdc++ for nvptx.
The C++ front end insists to link against libstdc++ -- which we don't build:
$ < build-gcc/gcc/testsuite/g++/g++.log grep -o 'error opening [^[:cntrl:]]*' | sort | uniq -c
2 error opening libasan.a
2 error opening libssp.a
12075 error opening libstdc++.a
Based on GCC trunk r220892:
=== g++ Summary ===
# of expected passes [-63221-]{+68841+}
# of unexpected failures [-11751-]{+8764+}
# of unexpected successes 6
# of expected failures [-246-]{+249+}
# of unresolved testcases [-5950-]{+3353+}
# of unsupported tests [-4160-]{+4143+}
gcc/
* config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
From-SVN: r221362
Janne Blomqvist [Wed, 11 Mar 2015 21:34:22 +0000 (23:34 +0200)]
PR 65200 Handle EPERM in addition to EACCES.
gcc/fortran ChangeLog:
2015-03-11 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/65200
* gfortran.texi: Document behavior when opening files without
explicit ACTION= specifier.
libgfortran ChangeLog:
2015-03-11 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/65200
* io/open.c (new_unit): Use gf_strerror rather than hardcoding
error messages for different errno values.
* io/unix.c (regular_file2): Handle EPERM in addition to EACCES.
gcc/testsuite ChangeLog:
2015-03-11 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/65200
* gfortran.dg/open_errors.f90: Update checks for iomsg string.
* gfortran.dg/open_new_segv.f90: Fix error message pattern.
From-SVN: r221361
Marek Polacek [Wed, 11 Mar 2015 20:36:56 +0000 (20:36 +0000)]
re PR tree-optimization/65388 (Wrong comparison in same_succ_def::equal() tree-ssa-tail-merge.c:590)
PR tree-optimization/65388
* tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
From-SVN: r221359
Jakub Jelinek [Wed, 11 Mar 2015 19:51:55 +0000 (20:51 +0100)]
c-parser.c (c_parse_init): Don't call xstrdup on get_identifier argument.
* c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
argument.
* c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
on record_builtin_type argument.
From-SVN: r221358
Jakub Jelinek [Wed, 11 Mar 2015 19:49:56 +0000 (20:49 +0100)]
no-asan-check-glob.c: Add -ffat-lto-objects to dg-options, fix up dg-skip-if.
* c-c++-common/asan/no-asan-check-glob.c: Add -ffat-lto-objects
to dg-options, fix up dg-skip-if.
From-SVN: r221357
Bernd Edlinger [Wed, 11 Mar 2015 19:20:03 +0000 (19:20 +0000)]
tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick upstream 224508 and 224755.
2015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
* tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
upstream 224508 and 224755.
From-SVN: r221356
Georg-Johann Lay [Wed, 11 Mar 2015 18:51:09 +0000 (18:51 +0000)]
re PR target/65296 ([avr] fix various issues with specs file generation)
gcc/
PR target/65296
* configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
* configure: Regenerate.
* config.in: Regenerate.
* doc/invoke.texi (AVR Options) [-mrmw]: Document it.
[-mn-flash]: Document it.
[__AVR_ARCH__]: Document avrtiny.
* config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
(*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
(*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
gcc/testsuite/
PR target/65296
* gcc.target/avr/tiny-memx: Use -mmcu instead of -march.
* gcc.target/avr/tiny-caller-save.c: Same.
From-SVN: r221355
Andreas Krebbel [Wed, 11 Mar 2015 18:35:44 +0000 (18:35 +0000)]
S/390: Doc: Add missing cpu values z196, zEC12.
* doc/invoke.texi: Add missing cpu values (z196, zEC12).
From-SVN: r221353
Michael Meissner [Wed, 11 Mar 2015 16:57:41 +0000 (16:57 +0000)]
re PR target/65242 (ICE (in gen_add2_insn, at optabs.c:4761) on powerpc64le-linux-gnu)
[gcc]
2015-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/65242
* config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
allow reloads of PLUS in floating point/VSX registers.
[gcc/testsuite]
2015-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/65242
* g++.dg/pr65242.C: New test.
From-SVN: r221350
Junmo Park [Wed, 11 Mar 2015 16:53:07 +0000 (16:53 +0000)]
Add missing definition crypto_sha256_fast, crypto_sha256_slow
2015-03-11 Junmo Park <junmoz.park@samsung.com>
* config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add crypto_sha256_fast.
(cortex_a57_crypto_complex): Add crypto_sha256_slow.
From-SVN: r221349
Richard Biener [Wed, 11 Mar 2015 15:09:51 +0000 (15:09 +0000)]
re PR tree-optimization/65310 (vectorizer uses wrong alignment)
2015-03-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/65310
* tree-sra.c (build_ref_for_offset): Also preserve larger
alignment.
From-SVN: r221348
Aldy Hernandez [Wed, 11 Mar 2015 15:01:37 +0000 (15:01 +0000)]
cp-gimplify.c (simple_empty_class_p): New.
* cp-gimplify.c (simple_empty_class_p): New.
* cp-gimplify.c (cp_gimplify_expr): Handle RETURN_EXPR. Abstract
the code for empty class copies into simple_empty_class_p, and
adapt it to handle COMPOUND_EXPRs.
From-SVN: r221347
Marat Zakirov [Wed, 11 Mar 2015 07:39:20 +0000 (07:39 +0000)]
asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
* asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
* c-c++-common/asan/no-asan-check-glob.c: New test.
From-SVN: r221345
GCC Administrator [Wed, 11 Mar 2015 00:16:13 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r221342
Paolo Carlini [Tue, 10 Mar 2015 22:20:41 +0000 (22:20 +0000)]
re PR c++/65370 (r213519 causes: error: redeclaration of 'template... may not have default arguments [-fpermissive])
/cp
2015-03-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65370
* decl.c (duplicate_decls): Call check_redeclaration_no_default_args
only if the location of newdecl doesn't match the location of olddecl.
/testsuite
2015-03-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65370
* g++.dg/other/default11.C: New.
* g++.dg/other/default12.C: Likewise.
From-SVN: r221337
Jakub Jelinek [Tue, 10 Mar 2015 21:03:21 +0000 (22:03 +0100)]
re PR target/65368 (_bzhi_u32 intrinsic generates incorrect code when -O1 or above is specified and index is an immediate)
PR target/65368
* config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
new define_expand.
(*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
* gcc.target/i386/bmi2-bzhi-2.c: New test.
From-SVN: r221335
Paul Thomas [Tue, 10 Mar 2015 19:39:05 +0000 (19:39 +0000)]
re PR fortran/65024 ([OOP] unlimited polymorphic pointer structure not built when it should be)
2015-03-10 Paul Thomas <pault@gcc.gnu.org>
PR fortran/65024
* trans-expr.c (gfc_conv_component_ref): If the component
backend declaration is missing and the derived type symbol is
available in the reference, call gfc_build_derived_type.
2015-03-10 Paul Thomas <pault@gcc.gnu.org>
PR fortran/65024
* gfortran.dg/unlimited_polymorphic_23.f90: New test
From-SVN: r221334
Jakub Jelinek [Tue, 10 Mar 2015 19:10:43 +0000 (20:10 +0100)]
re PR c++/65127 (internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'addr_expr' in parsing_nsdmi, at cp/parser.c:18311)
PR c++/65127
* parser.c (parsing_nsdmi): Don't return true if current_class_ptr
is not a PARM_DECL.
* g++.dg/cpp0x/pr65127.C: New test.
From-SVN: r221332