[PATCH] 69912 - [6 regression] ICE in build_ctor_subob_ref initializing a flexible array member

2016-02-23 Thread Martin Sebor
The attached patch removes the assumption that the initializer for a flexible array member is an array of the same cv-qualified type as the array, avoiding the ICE. Martin PR c++/69912 - [6 regression] ICE in build_ctor_subob_ref initializing a flexible array member gcc/testsuite/ChangeLog: 201

Re: better debug info for C++ cdtors, aliases, thunks and other trampolines

2016-02-23 Thread Alexandre Oliva
Hi, Richard, Thanks for the feedback. I'm afraid I can't quite figure out what you're getting at. Please see below. On Feb 22, 2016, Richard Biener wrote: > I think this breaks early-debug assumptions in creating new decl DIEs > rather than just annotating old ones. Can you elaborate on it,

Re: Fix/work around PR57676, LRA terminates prematurely

2016-02-23 Thread Vladimir Makarov
On 02/23/2016 06:56 AM, Richard Biener wrote: On Mon, Feb 22, 2016 at 4:34 PM, Jeff Law wrote: On 02/22/2016 07:34 AM, Richard Biener wrote: Hum, but then you get to "inifinite" compiles again when LRA is buggy or the user presents it with an impossible to handle asm. Neither should be happe

Re: [patch, libstdc++] In debug mode, diagnose empty initializer_list in min/max/minmax

2016-02-23 Thread Jonathan Wakely
On 23/02/16 22:03 +0100, Eelis wrote: The std::min, std::max, and std::minmax overloads that take a std::initializer_list all require that the list is not empty. The attached patch adds debug mode checks for this. Nice, thanks for the patch. Thanks, Eelis Index: libstdc++-v3/include/deb

[PATCH] Fix PR target/69810

2016-02-23 Thread David Edelsohn
Anton reported a latent bug in the rs6000 port discovered with csmith. Splitters for extendqihi2 and zero_extendqihi2 can generate invalid compare RTL. PowerPC can load and store bytes or halfwords, but computations operate on registers. Currently the extend patterns exist for HImode, although no

[COMMITTED][AArch64] Tweak the pipeline model for Exynos M1

2016-02-23 Thread Evandro Menezes
Minor tweaks to the cost and scheduling models for Exynos M1. Committed as r233646 and r233647. -- Evandro Menezes >From ab6127823e706361315f1c8b87fb4c32bc299b65 Mon Sep 17 00:00:00 2001 From: evandro Date: Tue, 23 Feb 2016 20:21:23 + Subject: [PATCH 1/2] * gcc/config/aarch64/aarch

[patch, libstdc++] In debug mode, diagnose empty initializer_list in min/max/minmax

2016-02-23 Thread Eelis
The std::min, std::max, and std::minmax overloads that take a std::initializer_list all require that the list is not empty. The attached patch adds debug mode checks for this. Thanks, Eelis Index: libstdc++-v3/include/debug/formatter.h ==

[PATCH] Bump max-ssa-name-query-depth default (PR c/69918)

2016-02-23 Thread Jakub Jelinek
Hi! As mentioned in the PR, the builtin-integral-1.c testcase fails on i?86 Solaris. The problem is that on Solaris the dg-add-options c99_runtime adds -std=c99, which turns -fexcess-precision=standard, and that on some arches changes _388 = (double) i1_63(D); _389 = (double) i2_335(D); _3

[PATCH] Fix thinko in build_vector_from_ctor (PR middle-end/69915)

2016-02-23 Thread Jakub Jelinek
Hi! This function has changed last year to support embedded VECTOR_CSTs in the ctor elements. Before that change, there was no pos var and idx used to match exactly the indices in the new vector, but if there is any VECTOR_CST, it will fill in more positions. Unfortunately, the final loop which z

[patch] Document __STDCPP_WANT_MATH_SPEC_FUNCS__ macro

2016-02-23 Thread Jonathan Wakely
Committed to trunk. commit 6da32ab58d56e2909ed39e5fc2170717ad26e895 Author: Jonathan Wakely Date: Tue Feb 23 20:01:35 2016 + Document __STDCPP_WANT_MATH_SPEC_FUNCS__ macro * doc/xml/manual/using.xml: Document __STDCPP_WANT_MATH_SPEC_FUNCS__. * doc/html/*: Regenerate. d

[patch] libstdc++/69893 make work with C++11

2016-02-23 Thread Jonathan Wakely
The header was implicitly relying on the fact that the additional overloads defined by C++11 were not added to the global namespace, so that it could do "using ::acosh;" to get the C library's acosh(double) declaration only, and not the C++11 overloads. With the new in GCC 6 that no longer work

Re: [PATCH] Fix c_parser_for_statement for ObjC (PR objc/69844)

2016-02-23 Thread Jakub Jelinek
On Tue, Feb 23, 2016 at 08:24:06PM +0100, Marek Polacek wrote: > > --- gcc/c/c-parser.c.jj 2016-02-16 16:29:54.0 +0100 > > +++ gcc/c/c-parser.c2016-02-18 17:36:55.025067859 +0100 > > @@ -5887,12 +5887,27 @@ c_parser_for_statement (c_parser *parser > > { > >c_token *

Re: [PATCH] New plugin events when evaluating constexpr expressions.

2016-02-23 Thread Daniel Gutson
On Tue, Nov 3, 2015 at 9:09 AM, Andres Tiraboschi wrote: > Hi > This patch adds two plugins events when evaluated call expression and > an init or modify expression in constexpr. > The goal of this patch is to allow the plugins to analyze and or > modify the evaluation of constant expressions.

Re: [PATCH] Fix c_parser_for_statement for ObjC (PR objc/69844)

2016-02-23 Thread Marek Polacek
On Thu, Feb 18, 2016 at 10:39:02PM +0100, Jakub Jelinek wrote: > Hi! > > Here is an attempt to fix up the token reclassification after for statement, > where we lexed the next token with the declaration from for in scope and > need to undo that if it wasn't else. > > If token->id_kind is C_ID_CLA

Re: [patch] Clarify interaction of -Wnarrowing with -std

2016-02-23 Thread Jonathan Wakely
On 19/02/16 13:17 -0700, Sandra Loosemore wrote: On 02/19/2016 12:01 PM, Jason Merrill wrote: On 02/19/2016 07:42 AM, Jonathan Wakely wrote: In PR69864 Manu suggests improving the docs to explain that -Wnarrowing sometimes produces errors not warnings. I think the right way to do that is clari

[committed] Remove __seg_tls before first release

2016-02-23 Thread Richard Henderson
The addition of named address spaces to the i386 backend is new for gcc6. I had invented __seg_tls while thinking about how it might be used within glibc. But during the last couple of weeks I've had occasion to attempt to use the feature within the linux kernel. There, things weren't quite so e

Re: [RFC] [PATCH] Add __array_size keyword

2016-02-23 Thread Stuart Brady
On Wed, Feb 17, 2016 at 12:29:34AM +, Stuart Brady wrote: > > - should __array_size (b) be an integer constant (size_t)2, or should it > > be non-constant (size_t)2 because the argument is a VLA (albeit a VLA > > whose top-level dimension is an integer constant expression)? > > Ouch. I woul

Re: [PATCH] gcov: Configurable destination for error output

2016-02-23 Thread Nathan Sidwell
On 02/23/16 11:04, Aaron Conole wrote: Before I start cooking up this change, is it possible I need to worry about gcov_error being invoked from multiple threads? If so, I'll need some kind of mutex which I think is not needed with the current design. As I recall the main entry points to the g

RE: [RFC] [MIPS] Enable non-executable PT_GNU_STACK support

2016-02-23 Thread Faraz Shahbazker
Bump. From: Faraz Shahbazker [faraz.shahbaz...@imgtec.com] Sent: 05 February 2016 10:36 To: gcc-patches@gcc.gnu.org Cc: Matthew Fortune Subject: [RFC] [MIPS] Enable non-executable PT_GNU_STACK support Enable non-executable stack mode if assembler and linker

Re: [PATCH] Fix PR c++/69736

2016-02-23 Thread Patrick Palka
On Tue, 23 Feb 2016, Patrick Palka wrote: On Tue, 23 Feb 2016, Marek Polacek wrote: On Tue, Feb 23, 2016 at 09:58:41AM -0500, Patrick Palka wrote: finish_call_expr thinks that a call to a function which has been obfuscated by force_paren_expr is a call to an unknown function. This eventually

Re: [PATCH] gcov: Configurable destination for error output

2016-02-23 Thread Aaron Conole
Nathan Sidwell writes: > On 02/22/16 14:35, Aaron Conole wrote: > >> D'oh, you're probably right. In my excitement to contribute, I forgot >> this was shared. I think 'w' should be correct, since this isn't >> intended to be read at all, but I could be convinced otherwise. > > sorry, I misremembe

Re: [PATCH] Fix PR c++/69736

2016-02-23 Thread Patrick Palka
On Tue, 23 Feb 2016, Marek Polacek wrote: On Tue, Feb 23, 2016 at 09:58:41AM -0500, Patrick Palka wrote: finish_call_expr thinks that a call to a function which has been obfuscated by force_paren_expr is a call to an unknown function. This eventually leads us to not make use of the function's

[PATCH] Fix normal_inner_ref expansion (PR middle-end/69909)

2016-02-23 Thread Jakub Jelinek
Hi! When the base of a handled component (BIT_FIELD_REF in the testcase) is SSA_NAME which happens to be expanded as some MEM (on the testcase it is SSA_NAME set to VIEW_CONVERT_EXPR of an SSA_NAME that has MEM as DECL_RTL), expand_expr_real_1 can try to update the MEM attributes from exp, but tha

Re: [PATCH] Fix PR c++/69736

2016-02-23 Thread Marek Polacek
On Tue, Feb 23, 2016 at 09:58:41AM -0500, Patrick Palka wrote: > finish_call_expr thinks that a call to a function which has been > obfuscated by force_paren_expr is a call to an unknown function. This > eventually leads us to not make use of the function's default arguments > when processing the

Re: [PATCH 10/9] ENABLE_CHECKING refactoring: remove remaining occurrences

2016-02-23 Thread Richard Biener
On Wed, Nov 4, 2015 at 4:03 PM, Mikhail Maltsev wrote: > On 11/03/2015 02:35 AM, Jeff Law wrote: >> This is good fore the trunk too. Please install. >> >> Thanks! >> >> jeff > > Committed as r229758. > grep ENABLE_CHECKING *.[ch] dwarf2out.c:#if ENABLE_CHECKING dwarf2out.c:#if ENABLE_CHECKING dw

Re: Use plain -fopenacc to enable OpenACC kernels processing

2016-02-23 Thread Thomas Schwinge
Hi! On Mon, 15 Feb 2016 17:53:58 +0100, Tom de Vries wrote: > On 10/02/16 15:40, Thomas Schwinge wrote: > > On Fri, 5 Feb 2016 13:06:17 +0100, I wrote: > >> On Mon, 9 Nov 2015 18:39:19 +0100, Tom de Vries > >> wrote: > >>> On 09/11/15 16:35, Tom de Vries wrote: > this patch series for stag

Re: [PATCH PR69052]Check if loop inv can be propagated into mem ref with additional addr expr canonicalization

2016-02-23 Thread Bin.Cheng
On Fri, Feb 19, 2016 at 10:24 PM, Jeff Law wrote: > On 02/16/2016 11:43 AM, Bin Cheng wrote: >> >> >> From: Jeff Law >> Sent: 11 February 2016 23:26 >> To: Bin.Cheng >> Cc: Bin Cheng; gcc-patches@gcc.gnu.org; nd >> Subject: Re: [PATCH PR69052]Check if loop

[PATCH] Fix PR c++/69736

2016-02-23 Thread Patrick Palka
finish_call_expr thinks that a call to a function which has been obfuscated by force_paren_expr is a call to an unknown function. This eventually leads us to not make use of the function's default arguments when processing the argument list. So a function call like f() may compile and yet (f)() m

Re: [Fortran,4.9/5/6 Regression]ICE for Fortran files when specifying a file instead of an include directory

2016-02-23 Thread Dominique d'Humières
Hi Jerry, > Let me no if any objections. The test gfortran.dg/include_6.f90 should be updated: before the patch f951: Warning: 'gfortran.log' is not a directory after f951: Fatal Error: 'gfortran.log' is not a directory Thanks, Dominique

Re: [pr 69666] No SRA default_def replacements for unscalarizable

2016-02-23 Thread H.J. Lu
On Fri, Feb 19, 2016 at 8:21 AM, Martin Jambor wrote: > Hi, > > in PR 69666, SRA attempts to turn a load from an aggregate that is > uninitialized into a load from a default definition SSA name (which > something it does to generate an appropriate warning later) but > unfortunately it does so usin

[PATCH 7/9] S/390: Get rid of Y constraint in vector.md.

2016-02-23 Thread Andreas Krebbel
This finally removes the Y constraint from the vector patterns while folding some of them using a code iterator. gcc/ChangeLog: * config/s390/subst.md (SUBST mode iterator): Add ashiftrt. (DSI_VI): New mode iterator. ("addr_style_op_subst"): Use DSI_VI instead of DSI.

[PATCH 3/9] S/390: Get rid of Y constraint in rotate patterns.

2016-02-23 Thread Andreas Krebbel
This patch introduces substitution patterns to add PLUS const_int, and AND operands to patterns and uses this to rewrite the existing rotate pattern. gcc/ChangeLog: * config/s390/predicates.md (const_int_6bitset_operand): New predicates. * config/s390/s390.md: Include subs

[PATCH 9/9] S/390: Disallow SImode in s390_decompose_address

2016-02-23 Thread Andreas Krebbel
After Y is never used anymore with SImode operands we can finally disallow SImode (if != Pmode) in s390_decompose_address. In fact that was the whole point of the patch series. gcc/ChangeLog: * config/s390/s390.c (s390_decompose_address): Don't accept SImode anymore. --- gcc/con

[PATCH 4/9] S/390: Get rid of Y constraint in left and logical right shift patterns.

2016-02-23 Thread Andreas Krebbel
With this patch the substitution patterns added earlier are used for the logical right shift and all the left shift patterns. * config/s390/s390.md ("3"): Change predicate of op2 to nonmemory_operand. ("*di3_31", "*di3_31_and"): Merge into single pattern definition

[PATCH 5/9] S/390: Get rid of Y constraint in arithmetic right shift patterns.

2016-02-23 Thread Andreas Krebbel
The arithmetic shift patterns set also the condition code. This adds more substitution potential. Depending on whether the actual result or the CC output will be used 3 different variants of each of these patterns are needed. This multiplied with the PLUS and the AND operands from the earlier su

[PATCH 8/9] S/390: Use define_subst for the setmem patterns.

2016-02-23 Thread Andreas Krebbel
While trying to get rid of the Y constraint in the setmem patterns I noticed that for these patterns it isn't even a problem since these always only use the constraint with a Pmode match_operand. But while being at it I've tried to fold some of the patterns a bit. gcc/ChangeLog: * config

[PATCH 0/9] S/390 rework shift count handling - v2

2016-02-23 Thread Andreas Krebbel
This is an updated version of the shift count rework in the S/390 backend. I think I've addressed most of the feedback from Ulrich and Bernd (gensupport patch). https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00940.html Andreas Krebbel (9): gensupport: Fix define_subst operand renumbering. S/3

[PATCH 1/9] gensupport: Fix define_subst operand renumbering.

2016-02-23 Thread Andreas Krebbel
When processing substitutions the operands are renumbered. To find a free operand number the array used_operands_numbers is used. Currently this array is used to assign new numbers before all the RTXes in the vector have been processed. I did run into problems with this for insns where a match_du

[PATCH 2/9] S/390: Use enabled attribute overrides to disable alternatives.

2016-02-23 Thread Andreas Krebbel
So far whenever we wanted to disable an alternative we have used mode attributes emitting constraints matching an earlier alternative assuming that due to this the later alternative will never be chosen. With this patch the `enabled' attribute, which so far is only set from `cpu_facility', is over

[PATCH 6/9] S/390: Get rid of Y constraint in tabort.

2016-02-23 Thread Andreas Krebbel
This removes the Y constraint from the tabort pattern definition. In this case it is easier without using substitutions. gcc/ChangeLog: * config/s390/s390.md ("*tabort_1"): Change predicate to nonmemory_operand. Add a second alternative to cover register as well as const

[PATCH] Reduce pool allocator overhead for !CHECKING_P

2016-02-23 Thread Richard Biener
The following patch reverts an earlier decision of me to make the id member unconditional. On PR26854 we can see df_chain_block pool df-problems.c:2398 (df_chain_alloc) 152 0: 0.0% 937593072 61860737: 90.1% 24 thus a peak of 900MB used for df cha

Re: [PATCH 6/9] S/390: Get rid of Y constraint in tabort.

2016-02-23 Thread Andreas Krebbel
On 02/01/2016 02:36 PM, Ulrich Weigand wrote: > Andreas Krebbel wrote: > >> (define_insn "*tabort_1" >> - [(unspec_volatile [(match_operand:SI 0 "shift_count_or_setmem_operand" >> "Y")] >> + [(unspec_volatile [(match_operand:SI 0 "addrreg_or_constint_operand" >> "a,n")] >> UN

Re: [PATCH 5/9] S/390: Get rid of Y constraint in arithmetic right shift patterns.

2016-02-23 Thread Andreas Krebbel
On 02/01/2016 02:35 PM, Ulrich Weigand wrote: > Andreas Krebbel wrote: > >> +; This is like the addr_style_op substitution above but with a CC clobber. >> +(define_subst "addr_style_op_cc_subst" > >> +; This is like the masked_op substitution but with a CC clobber. >> +(define_subst "masked_op_cc

Re: [PATCH, PR middle-end/68134] Reject scalar modes in default get_mask_mode hook

2016-02-23 Thread Alan Lawrence
On 20/02/16 09:29, Ilya Enkovich wrote: 2016-02-19 20:36 GMT+03:00 Alan Lawrence : Mostly this is fairly straightforward, relatively little midend code is required, and the backend cleans up quite a bit. However, I get stuck on the case of singleton vectors (64x1). No surprises there, then... T

[testsuite, i386] Require alias support in gcc.target/i386/chkp-hidden-def.c

2016-02-23 Thread Rainer Orth
gcc.target/i386/chkp-hidden-def.c currently FAILs on Solaris/x86. When investigating, I found that on Darwin/x86 the test fails in a different way: FAIL: gcc.target/i386/chkp-hidden-def.c (test for excess errors) UNRESOLVED: gcc.target/i386/chkp-hidden-def.c scan-assembler-not test.chkp Excess e

[PATCH] Fix DF bitmap memory stat accounting and some minor mem-stat stuff

2016-02-23 Thread Richard Biener
The following fixes df-problems.c:4405 (df_md_alloc) -39759960:4741239668736.0% -40520627: 0.6% 0 0 heap df-problems.c:225 (df_rd_alloc) -17948440:4741239668736.0% -40284572: 0.3% 0 0 he

Re: [patch, libgfortran] PR69456 Namelist value with trailing sign is ignored without error

2016-02-23 Thread Dominique d'Humières
Hi Jerry, The patch works as advertised without regression. Just one nit, I am puzzled by the comment in the line of gfortran.dg/namelist_89.f90 +write(99,*) " c1=(1-,1+1)" ! Treated as 1e-1?! Should not it be +write(99,*) " c1=(1-,1+1)" ! Should give error on item number 5 or something els

Re: [PATCH] PR28901 Add two levels for -Wunused-const-variable.

2016-02-23 Thread Mark Wielaard
On Tue, 2016-02-23 at 09:51 +, Manuel López-Ibáñez wrote: > On 23/02/16 08:56, Jakub Jelinek wrote: > > On Tue, Feb 23, 2016@09:53:57AM +0100, Mark Wielaard wrote: > >> --- a/gcc/ChangeLog > >> +++ b/gcc/ChangeLog > >> @@ -1,3 +1,10 @@ > >> +2016-02-23 Mark Wielaard > >> + Jakub Jelinek

Re: Fix/work around PR57676, LRA terminates prematurely

2016-02-23 Thread Richard Biener
On Mon, Feb 22, 2016 at 4:34 PM, Jeff Law wrote: > On 02/22/2016 07:34 AM, Richard Biener wrote: > >> Hum, but then you get to "inifinite" compiles again when LRA is buggy >> or the user presents it with an impossible to handle asm. > > Neither should be happening in practice, even an impossible a

Re: [PATCH] Another -Wnonnull-compare false positive fix (PR c++/69902)

2016-02-23 Thread Richard Biener
On Mon, Feb 22, 2016 at 10:30 PM, Jakub Jelinek wrote: > Hi! > > Here is a fix for another -Wnonnull-compare false positive - the problem > is that during folding the NE_EXPR of a nonnull_arg_p with NULL (on which > the C++ FE set TREE_NO_WARNING, because it is an artificial comparison > for dynam

Re: [PATCH] Note that -Wunreachable-code used to be a warning option (PR c/69900)

2016-02-23 Thread Richard Biener
On Mon, Feb 22, 2016 at 10:18 PM, Jakub Jelinek wrote: > Hi! > > While we ignore -Wunreachable-code option now, as we require > that GCC diagnostic options are CL_WARNING only, we should remember > that this is a former Warning option (similarly for -Werror=). > > Bootstrapped/regtested on x86_64-

Re: [PATCH] Add -funknown-commons to work around PR/69368 (and others) in SPEC2006

2016-02-23 Thread Alan Lawrence
On 22/02/16 12:03, Jakub Jelinek wrote: (f) A global command-line option, which we check alongside DECL_COMMON and further tests (basically, we want only DECL_COMMON decls that either have ARRAY_TYPE, or some other aggregate type with flexible array member or some other trailing array in the str

Re: [RFC] [P2] [PR tree-optimization/33562] Lowering more complex assignments.

2016-02-23 Thread Richard Biener
On Mon, Feb 22, 2016 at 5:32 PM, Jeff Law wrote: > On 02/22/2016 07:32 AM, Richard Biener wrote: > >>> Presumably DOM is not looking at r = s.r and realizing it could look s.r >>> piece-wise in the available expression table. If it did, it would >>> effectively turn that fragment into: >>> >>>

Re: [PATCH, ARM] Fix redefinition of cpp macros with #pragma GCC pop,reset

2016-02-23 Thread Kyrill Tkachov
Hi Christian, On 17/02/16 12:50, Christian Bruel wrote: target_option_current_node, used in c-pragma.c to check if a state should be popped or reseted to the previous value, was not set when switching state with #pragma GCC target (I missed to see that, since it is done for pop,reset). So in som

Re: [PATCH] Fix PR56888

2016-02-23 Thread Richard Biener
On Tue, 23 Feb 2016, Jan Hubicka wrote: > > > > Ok, so maybe a better question to symtab would be if there is an > > actual definition for what __builtin_FOO will call. Not really > > whether that definition is cfun. Of course all the fortify > > always-inline wrappers should not count as such

Re: RFA: Prevent an ICE when redeclaring a static function as weak

2016-02-23 Thread Nick Clifton
Hi Jeff, > My inclination would be to defer to gcc-7. Richi, Jakub or Joseph, as > release managers, would have the final say though. It's OK. I will resubmit after gcc 6 branches. Cheers Nick

Re: [Patch, fortran, pr67451, v1] [5/6 Regression] ICE with sourced allocation from coarray

2016-02-23 Thread Andre Vehreschild
Hi Paul, thanks for the review. Committed as r233625. Regards, Andre On Wed, 17 Feb 2016 14:13:48 +0100 Paul Richard Thomas wrote: > Dear Andre, > > I had left this to somebody else, since I am travelling! > > The patch is verging on 'obvious' and so it is OK for trunk. > > Could yo

Re: [PATCH] Fix PR56888

2016-02-23 Thread Jan Hubicka
> > Ok, so maybe a better question to symtab would be if there is an > actual definition for what __builtin_FOO will call. Not really > whether that definition is cfun. Of course all the fortify > always-inline wrappers should not count as such (just in case > the symtab code is confused about t

Re: [PATCH] Fix PR56888

2016-02-23 Thread Jan Hubicka
> On Mon, 22 Feb 2016, Jakub Jelinek wrote: > > > On Mon, Feb 22, 2016 at 01:44:09PM +0100, Richard Biener wrote: > > > --- 1079,1086 > > > || !dominated_by_p (CDI_DOMINATORS, > > > loop->latch, gimple_bb (stmt))) > > > return; > > > +

[Committed 1/3] S/390: Turn movstr-1.c into compile only test.

2016-02-23 Thread Andreas Krebbel
gcc/testsuite/ChangeLog: * gcc.target/s390/md/movstr-1.c: Turn into compile test. --- gcc/testsuite/gcc.target/s390/md/movstr-1.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/gcc/testsuite/gcc.target/s390/md/movstr-1.c b/gcc/testsuite/gcc.target/s

[Committed 3/3] S/390: Move vcond-shift.c to vector subdir.

2016-02-23 Thread Andreas Krebbel
gcc/testsuite/ChangeLog: * gcc.target/s390/vcond-shift.c: Move to ... * gcc.target/s390/vector/vcond-shift.c: ... here. --- gcc/testsuite/gcc.target/s390/vcond-shift.c| 61 -- gcc/testsuite/gcc.target/s390/vector/vcond-shift.c | 61 +

Re: [PATCH] Make cstddef / cstdarg more robust (PR 69881)

2016-02-23 Thread Jonathan Wakely
On 23/02/16 11:09 +0100, Jakub Jelinek wrote: On Tue, Feb 23, 2016 at 10:00:58AM +, Bernd Edlinger wrote: Previously the g++ default was --std=gnu++98, but gcc-6 changed the default to --std=gnu++14. And when building gcc-4.9, stage1 does not override that with --std=gnu++98. That has chan

[Committed 2/3] S/390: Move movstr-2.c into vector subdir.

2016-02-23 Thread Andreas Krebbel
gcc/testsuite/ChangeLog: * gcc.target/s390/md/movstr-2.c: Move and rename to ... * gcc.target/s390/vector/stpcpy-1.c: ... this one. --- gcc/testsuite/gcc.target/s390/md/movstr-2.c | 98 --- gcc/testsuite/gcc.target/s390/vector/stpcpy-1.c | 100

[Committed 0/3] S/390: Move recently added testcases to correct subdirs

2016-02-23 Thread Andreas Krebbel
Andreas Krebbel (3): S/390: Turn movstr-1.c into compile only test. S/390: Move movstr-2.c into vector subdir. S/390: Move vcond-shift.c to vector subdir. gcc/testsuite/gcc.target/s390/md/movstr-1.c| 16 +--- gcc/testsuite/gcc.target/s390/md/movstr-2.c| 98

Re: [PATCH] Make cstddef / cstdarg more robust (PR 69881)

2016-02-23 Thread Jonathan Wakely
On 23/02/16 10:00 +, Bernd Edlinger wrote: On 23/02/15 10:42, Jonathan Wakely wrote: On 23/02/16 07:15 +, Bernd Edlinger wrote: as described in the PR 69881 it happens quite often that cstddef is called with __need_size_t because we still support gmp-4.3.2 which is installed by contrib/

[wwwdocs] Add a link to porting_to

2016-02-23 Thread Marek Polacek
Committed. Index: porting_to.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/porting_to.html,v retrieving revision 1.14 diff -u -r1.14 porting_to.html --- porting_to.html 14 Feb 2016 13:13:43 - 1.14 +++ porting_to.html

Re: [PATCH] Make cstddef / cstdarg more robust (PR 69881)

2016-02-23 Thread Jakub Jelinek
On Tue, Feb 23, 2016 at 10:00:58AM +, Bernd Edlinger wrote: > Previously the g++ default was --std=gnu++98, > but gcc-6 changed the default to --std=gnu++14. > > And when building gcc-4.9, stage1 does not override that with > --std=gnu++98. > > That has changed, and that triggers the latent b

Re: [Patch, testsuite] Require int32 target support in sso tests

2016-02-23 Thread Mike Stump
On Feb 22, 2016, at 11:52 PM, Senthil Kumar Selvaraj wrote: > > Yes that works Ok. Committed revision 233621. Scream if anything goes wrong. Thanks for testing.

Re: [PATCH] Make cstddef / cstdarg more robust (PR 69881)

2016-02-23 Thread Bernd Edlinger
On 23/02/15 10:42, Jonathan Wakely wrote: >On 23/02/16 07:15 +, Bernd Edlinger wrote: >>as described in the PR 69881 it happens quite often that cstddef is >>called with __need_size_t because we still support gmp-4.3.2 which >>is installed by contrib/download_prerequisites. This causes a kind

Re: [PATCH] PR28901 Add two levels for -Wunused-const-variable.

2016-02-23 Thread Jakub Jelinek
On Tue, Feb 23, 2016 at 09:51:05AM +, Manuel López-Ibáñez wrote: > >>diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c > >>index 27a073a..8b3fddc 100644 > >>--- a/gcc/cgraphunit.c > >>+++ b/gcc/cgraphunit.c > >>@@ -917,6 +917,7 @@ walk_polymorphic_call_targets (hash_set > >>*reachable_call_targ

Re: [PATCH] PR28901 Add two levels for -Wunused-const-variable.

2016-02-23 Thread Manuel López-Ibáñez
On 23/02/16 08:56, Jakub Jelinek wrote: On Tue, Feb 23, 2016@09:53:57AM +0100, Mark Wielaard wrote: --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-02-23 Mark Wielaard + Jakub Jelinek + + PR c/69911 + * cgraphunit.c (check_global_declaration): Check main

Re: [PATCH] Make cstddef / cstdarg more robust (PR 69881)

2016-02-23 Thread Jonathan Wakely
On 23/02/16 07:15 +, Bernd Edlinger wrote: as described in the PR 69881 it happens quite often that cstddef is called with __need_size_t because we still support gmp-4.3.2 which is installed by contrib/download_prerequisites. This causes a kind of undefined behavior. It is just by chance th

RE: [MIPS r5900] libgcc floating point fixes

2016-02-23 Thread Matthew Fortune
Woon yung Liu wries > Bump! Sorry, but could I please get an answer? I'm willing to update the > patch without > credit, if necessary. Hi WY, Apologies for exceptionally slow response. The patch you referenced is mostly OK but I would like to get the MIPS16 check changed to a configure time ch

Re: [PATCH] PR28901 Add two levels for -Wunused-const-variable.

2016-02-23 Thread Jakub Jelinek
On Tue, Feb 23, 2016 at 09:53:57AM +0100, Mark Wielaard wrote: > --- a/gcc/ChangeLog > +++ b/gcc/ChangeLog > @@ -1,3 +1,10 @@ > +2016-02-23 Mark Wielaard > + Jakub Jelinek > + > + PR c/69911 > + * cgraphunit.c (check_global_declaration): Check main_input_filename > + and DE

Re: [PATCH] PR28901 Add two levels for -Wunused-const-variable.

2016-02-23 Thread Mark Wielaard
On Tue, 2016-02-23 at 09:26 +0100, Jakub Jelinek wrote: > On Tue, Feb 23, 2016 at 08:55:40AM +0100, Mark Wielaard wrote: > > On Mon, 2016-02-22 at 19:20 -0800, H.J. Lu wrote: > > > It caused: > > > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69911 > > > > Apologies. Apparently main_input_f

Re: [PATCH] PR28901 Add two levels for -Wunused-const-variable.

2016-02-23 Thread Jakub Jelinek
On Tue, Feb 23, 2016 at 08:55:40AM +0100, Mark Wielaard wrote: > On Mon, 2016-02-22 at 19:20 -0800, H.J. Lu wrote: > > It caused: > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69911 > > Apologies. Apparently main_input_filename can be NULL. I am not entirely > sure when that happens. Or ho