[PATCH PR65767]Fix test case failure on arm-none-eabi

2015-04-19 Thread Bin Cheng
Hi, As comments at PR65767 and PR65718, we should use namespace other than std to avoid duplicated definition problem on arm-none-eabi. This patch fixes the issue. It is an obvious change, but I will wait for approval because of GCC5 branch. Is it OK? gcc/testsuite/ChangeLog 2015-04-20 Bin Che

Re: [PATCH] [ARM] Fix widen-sum pattern in neon.md.

2015-04-19 Thread Xingxing Pan
On 04/15/2015 03:13 AM, Ramana Radhakrishnan wrote: On Thu, Mar 5, 2015 at 1:34 PM, Xingxing Pan wrote: Hi, The expanding of widen-sum pattern always fails. The vectorizer expects the operands to have the same size, while the current implementation of widen-sum pattern dose not conform to this

Re: [PATCH][MIPS] Enable load-load/store-store bonding

2015-04-19 Thread sameera
Gentle reminder! - Thanks and regards, Sameera D. On Monday 30 March 2015 04:58 PM, sameera wrote: Hi! Sorry for delay in sending this patch for review. Please find attached updated patch. In P5600, 2 consecutive loads/stores of same type which access contiguous memory locations are bonded

Re: [PATCH] Add new target h8300-*-linux

2015-04-19 Thread Yoshinori Sato
At Fri, 17 Apr 2015 10:53:51 -0600, Jeff Law wrote: > > On 03/05/2015 09:50 AM, Yoshinori Sato wrote: > > Add h8300-*-linux target for h8300 linux kernel and userland. > > > > h8300-*-elf is some difference of standard elf. > > h8300-*-linux is compatible of standard elf rules. > > > > Thanks. >

Re: [PATCH 1/2] PR c++/61636

2015-04-19 Thread Jason Merrill
On 04/19/2015 03:03 PM, Adam Butcher wrote: I think I need to resolve a member call within a generic lambda as if it were not in template context to determine whether it unambiguously resolves to a static member function. If it does, then no capture required. Otherwise, 'this' should be capture

Re: [PATCH] Fix check for whether a function is a variadic function

2015-04-19 Thread Jason Merrill
On 04/19/2015 07:45 PM, Patrick Palka wrote: stdarg_p() apparently returns false for a variadic function that has no concrete parameters, e.g. "void foo (...);". This patch fixes this issue by removing the predicate's seemingly bogus "n != NULL_TREE" test. What does this do with K&R non-protot

[Patch] pr65779 - [5/6 Regression] undefined local symbol on powerpc

2015-04-19 Thread Alan Modra
This patch removes bogus debug info left around by shrink-wrapping, which on some powerpc targets with just the right register allocation led to assembly errors. Bootstrapped and regression tested powerpc64-linux and x86_64-linux. I did see some regressions, but completely unrelated to this patch.

[PATCH] 65479 - sanitizer stack trace missing frames past #0 on powerpc64

2015-04-19 Thread Martin Sebor
The attached patch resolves the failures in a number of address sanitizer tests on powerpc64*-*-*-* discussed in bug 65479 (the failures in c-c++-common/asan/swapcontext-test-1.c reported in pr65643 remain unresolved). The patch has been tested on powerpc64*-*-*-* and x86_64 with no regressions.

Re: [wwwdocs] Porting to again

2015-04-19 Thread Gerald Pfeifer
On Wed, 18 Feb 2015, Marek Polacek wrote: > This is a revised version. I reworded the paragraph dealing with > __STDC_VERSION__, made some clarifications wrt %a, and added some > text wrt cpp -P issue. I made some minor changes on top of this: - Use a shorter URL for a PR reference. - Avoid a "he

patch to fix PR65805

2015-04-19 Thread Vladimir Makarov
The followingpatch fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65805 The problem occurred when SP was changed between the original insn and rematerialized one and the rematerialized insn contained a reg which will be substituted by SP. In this case difference between sp offset and t

[PATCH] Fix check for whether a function is a variadic function

2015-04-19 Thread Patrick Palka
stdarg_p() apparently returns false for a variadic function that has no concrete parameters, e.g. "void foo (...);". This patch fixes this issue by removing the predicate's seemingly bogus "n != NULL_TREE" test. (Zero-parameter functions like "void bar (void);" will always have a void_type_node s

Re: [PATCH, i386, Darwin RFT]: Remove reload_in_progress checks

2015-04-19 Thread Dominique d'Humières
With the patch bootstrapping x86_64-apple-darwin14 was broken due to a typo: ../../work/gcc/config/i386/i386.c: In function 'void ix86_expand_move(machine_mode, rtx_def**)': ../../work/gcc/config/i386/i386.c:17296:32: error: expected ',' or ';' before ')' token ? op0 : gen_reg_rtx (Pmode));

[PATCH] tetstsuite gcc.target/i386/ avx512*

2015-04-19 Thread Andreas Tobler
Hi all, the attached patch makes it possible to compile and run the failing avx512* testcases on FreeBSD (amd64). See the failing testcases: https://gcc.gnu.org/ml/gcc-testresults/2015-04/msg02272.html The header values.h mentions that this interface is obsolete and one should use and/or i

Re: [PATCH 1/2] PR c++/61636

2015-04-19 Thread Adam Butcher
On 2015-04-18 18:53, Adam Butcher wrote: Test like this? /* { dg-do run { target c++14 } } */ /* { dg-final { scan-assembler-not "..." } } */ struct X { int f (int, double) { return 255; } static int f (int, int) { return 65535; } auto m1 () { return [=] (auto a) { return

[PATCH, i386, Darwin RFT]: Remove reload_in_progress checks

2015-04-19 Thread Uros Bizjak
Hello! Attached patch removes reload_in_progress checks for x86 (LRA enabled) target. AFAICS, reload_in_progress is never set during the compilation, a watchpoint on this variable didn't trigger for a couple of complex compilations. 2015-04-19 Uros Bizjak * config/i386/i386.c (set_pic_reg

Re: [wwwdocs] Remove extra SD-6 column in C++14 language stats.

2015-04-19 Thread Gerald Pfeifer
On Sun, 19 Apr 2015, Ed Smith-Rowland wrote: I'll need someone to apply this... Done. (Good timing before the GCC 5.1 release.) Gerald

Re: [PATCH] PR 62173, re-shuffle insns for RTL loop invariant hoisting

2015-04-19 Thread Jiong Wang
2015-02-11 18:18 GMT+00:00 Jiong Wang : > > 2015-02-11 Jiong Wang > > gcc/ > * loop-invariant.c (find_defs): Enable DF_DU_CHAIN build. > (vfp_const_iv): New hash table. > (expensive_addr_check_p): New boolean. > (init_inv_motion_data): Initialize new variables. > (free_inv_motion_data)

[patch, fortran] PR 37131

2015-04-19 Thread Thomas Koenig
Hello world, here is the first installation of the matmul inlining patch. This patch calculates c=MATMUL(a,b) using DO loops where there is no dependency between a and c/b and c loops, taking care of realloc on assignment and bounds checking (using the same error messages that the library does),

Re: [PATCH] Optionally sanitize globals in user-defined sections

2015-04-19 Thread Jakub Jelinek
On Sun, Apr 19, 2015 at 10:54:57AM +0300, Yury Gribov wrote: > On 04/17/2015 08:29 PM, Andi Kleen wrote: > >Yury Gribov writes: > >>+ > >>+static bool > >>+section_sanitized_p (const char *sec) > >>+{ > >>+ if (!sanitized_sections) > >>+return false; > >>+ size_t len = strlen (sec); > >>+ c

[wwwdocs] Remove extra SD-6 column in C++14 language stats.

2015-04-19 Thread Ed Smith-Rowland
I accidentally added an extra column to the C++14 language stats by duplicating a column for the SD-6 feature test macros. This one-liner fixes it. I'll need someone to apply this... Sorry. Ed ? class_key.txt ? help ? patch ? patch_cxx14 ? patch_cxx14_2 ? patch_cxx14_3 ? patch_cxx1y ? patch_

[Patch, fortran] merge two gfc_trans_scalar_assign flags

2015-04-19 Thread Mikael Morin
Hello, while working on pr65792, I noticed that gfc_trans_scalar_assign's l_is_temp and dealloc flags are used only once, and at the same place. This patch merges them together. The calls are changed from gfc_trans_scalar_assign (...blah..., foo, x, bar); to gfc_trans_scalar_assign

Re: [Patch, Fortran, PR58586, v1] ICE with derived type with allocatable component passed by value

2015-04-19 Thread Mikael Morin
Hello, Le 15/04/2015 20:03, Andre Vehreschild a écrit : > by accident I patched this pr. For short, when a structure constructor for a > structure with an allocatable component or a function returning a type with an > allocatable component is passed as actual argument to a function, then > gfortr

Re: [Patch, fortran] PR65792 unitialized structure constructor array subcomponent

2015-04-19 Thread Dominique d'Humières
> Snip > Both patches have been regression tested on trunk on x86_64-linux. > > OK for trunk [first patch]? > OK for 4.9 and 5 (after the 5.1 release) [second patch]? > > Mikael > > PS: Dominiq reported that the variant of this patch posted on the PR was > also fixing PR49324. I couldn't confirm as

Re: [PATCH] Optionally sanitize globals in user-defined sections

2015-04-19 Thread Yury Gribov
On 04/17/2015 08:29 PM, Andi Kleen wrote: Yury Gribov writes: + +static bool +section_sanitized_p (const char *sec) +{ + if (!sanitized_sections) +return false; + size_t len = strlen (sec); + const char *p = sanitized_sections; + while ((p = strstr (p, sec))) +{ + if ((p == san