Re: [Patch] PR 65315 - Fix alignment of local variables

2015-03-05 Thread Richard Biener
On Wed, Mar 4, 2015 at 8:50 PM, Steve Ellcey wrote: > While examining some MIPS code I noticed that GCC did not seem to be > fully honoring the aligned attribute on some local variables. I submitted > PR middle-end/65315 to record the bug and I think I now understand it and > have a fix. The pro

Re: [patch/committed] PR middle-end/65233 make walk-ssa_copies handle empty PHIs

2015-03-05 Thread Richard Biener
On Thu, Mar 5, 2015 at 1:54 AM, Jan Hubicka wrote: >> > >> > It gets passed the valueize callback now which returns NULL_TREE for >> > SSA names we can't follow. >> >> Btw, for match-and-simplify I had to use that as default for fold_stmt >> _exactly_ because of the call to fold_stmt from replace_

Re: [PATCH] Fix PR rtl-optimization/65067

2015-03-05 Thread Richard Biener
On Thu, Mar 5, 2015 at 8:10 AM, Bernd Edlinger wrote: > Hi, > > on ARM we have a code quality regression, because of the strict volatile > bitfields handing. The reason is that the current implementation directly > jumps to store_fixed_bit_field_1 which emits a sequence of and/or/shift > expressi

Re: [PATCH] Fix another wrong-code bug with -fstrict-volatile-bitfields

2015-03-05 Thread Richard Biener
On Wed, Mar 4, 2015 at 3:13 PM, Bernd Edlinger wrote: > bounced... again, without html. > > > Hi Richard, > > while working on another bug in the area of -fstrict-volatile-bitfields > I became aware of another example where -fstrict-volatile-bitfields may > generate > wrong code. This is re

RE: [PATCH] Fix PR rtl-optimization/65067

2015-03-05 Thread Bernd Edlinger
Hi, On Thu, 5 Mar 2015 09:52:54, Richard Biener wrote: > > On Thu, Mar 5, 2015 at 8:10 AM, Bernd Edlinger > wrote: >> Hi, >> >> on ARM we have a code quality regression, because of the strict volatile >> bitfields handing. The reason is that the current implementation directly >> jumps to store_f

Re: [c-family] Fix -fdump-ada-spec ICEs

2015-03-05 Thread Dominique Dhumieres
Hi Eric, Following this commit (r221088) testing dump-ada-spec-3.C with make -k check-g++ RUNTESTFLAGS="dg.exp=other/dump-ada-spec-3.C generates a lot of *.ads files in the gcc/testsuite/g++ directory which are not cleaned up after completion. Any idea about how to do the cleaning? TIA Domini

Re: [PATCH] Fix PR rtl-optimization/65067

2015-03-05 Thread Richard Biener
On Thu, Mar 5, 2015 at 10:03 AM, Bernd Edlinger wrote: > Hi, > > On Thu, 5 Mar 2015 09:52:54, Richard Biener wrote: >> >> On Thu, Mar 5, 2015 at 8:10 AM, Bernd Edlinger >> wrote: >>> Hi, >>> >>> on ARM we have a code quality regression, because of the strict volatile >>> bitfields handing. The re

[PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-05 Thread Thomas Preud'homme
Note: this is stage1 material. Currently loop2_invariant pass hoist instructions out of loop by creating a new temporary for the destination register of that instruction and leaving there a mov from new temporary to old register as shown below: loop header start of loop body //stuff (set (reg 1

[Committed] S/390: var-expand1 use default values for peel/unroll limits

2015-03-05 Thread Andreas Krebbel
Hi, with -march=z10 we use much higher values for peel and unroll limits. This makes the loop in the testcase to disappear on tree level already. With the patch these values are set back to the default values making the testcase to pass again. Committed to mainline Bye, -Andreas- 2015-03-05

[Committed] S/390: xfail ssa-dom-cse-2

2015-03-05 Thread Andreas Krebbel
Hi, the initializer value in that testcase ends up in literal pool. As described in the testcase the optimization does currently not work in that situation. Committed to mainline. Bye, -Andreas- 2015-03-05 Andreas Krebbel * gcc.dg/tree-ssa/ssa-dom-cse-2.c: diff --git a/gcc/testsui

[PATCH][ARM][testsuite] Fix FAIL: gcc.target/arm/macro_defs0.c and macro_defs1.c when -marm forced

2015-03-05 Thread Mantas Mikaitis
Hello, Tests gcc.target/arm/macro_defs0.c and gcc.target/arm/macro_defs1.c fail in multilib which forces -marm as pointed out in this message: https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00483.html . This patch will cause these tests to be classified as unsupported rather than FAIL. Ok f

[PATCH] [AVX512F] Add scatter support for vectorizer

2015-03-05 Thread Petr Murzin
Hello, This patch adds scatter support for vectorizer (for AVX512F instructions). Please have a look. Is it ok for stage 1? 2015-03-05 Andrey Turetskiy * config/i386/i386-builtin-types.def (VOID_PFLOAT_HI_V8DI_V16SF_INT): New. (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.

[R220456][4.8] Backport the patch which fixes __ARM_FP & __ARM_NEON_FP predefines

2015-03-05 Thread Mantas Mikaitis
Hello, This is a backport for gcc-4_8-branch of the patch " [PATCH][ARM] __ARM_FP & __ARM_NEON_FP defined when -march=armv7-m" posted in: https://gcc.gnu.org/ml/gcc-patches/2014-12/msg00250.html arm-none-linux-gnueabi/hf tested without new regressions. OK for gcc-4_8-branch? Kind regards, M

RE: [PATCH] Fix another wrong-code bug with -fstrict-volatile-bitfields

2015-03-05 Thread Bernd Edlinger
Hi, On Thu, 5 Mar 2015 10:00:26, Richard Biener wrote: > > On Wed, Mar 4, 2015 at 3:13 PM, Bernd Edlinger > wrote: >> bounced... again, without html. >> >> >> Hi Richard, >> >> while working on another bug in the area of -fstrict-volatile-bitfields >> I became aware of another example where -fstr

Re: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-05 Thread Richard Biener
On Thu, Mar 5, 2015 at 10:53 AM, Thomas Preud'homme wrote: > Note: this is stage1 material. > > Currently loop2_invariant pass hoist instructions out of loop by creating a > new temporary for the destination register of that instruction and leaving > there a mov from new temporary to old registe

Re: [PATCH] Fix another wrong-code bug with -fstrict-volatile-bitfields

2015-03-05 Thread Richard Biener
On Thu, Mar 5, 2015 at 12:00 PM, Bernd Edlinger wrote: > Hi, > > On Thu, 5 Mar 2015 10:00:26, Richard Biener wrote: >> >> On Wed, Mar 4, 2015 at 3:13 PM, Bernd Edlinger >> wrote: >>> bounced... again, without html. >>> >>> >>> Hi Richard, >>> >>> while working on another bug in the area of -fstri

[PATCH] S390: Hotpatching fixes.

2015-03-05 Thread Dominik Vogt
S390: Hotpatching fixes. * Properly align function labels with -mhotpatch and add test cases. * Include the nops after the function label in the area covered by cfi and debug information. * Correct a typo in the documentation. * Fix formatting in the generated 6-byte-NOP and adapt the test

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

2015-03-05 Thread Xingxing Pan
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. This patch implements the widen-sum pattern with vpadal. Change the vaddw pattern to anonymous. Add

Re: [patch] libstdc++/64797 fix handling of incomplete multibyte characters

2015-03-05 Thread Jonathan Wakely
On 04/03/15 17:20 +, Jonathan Wakely wrote: To fix the non-portable 22_locale/conversions/string/2.cc test I changed it to use char16_t and char32_t where I can reliably create an invalid sequence that causes a conversion error. That revealed some more problems in the Unicode conversion utili

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

2015-03-05 Thread Kyrill Tkachov
On 05/03/15 13:34, Xingxing Pan wrote: Hi, Hi Xingxing, Thanks for improving this! Some comments inline. 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.

[PATCH] Fix PR ipa/65318

2015-03-05 Thread Martin Liška
Hello. This is patch that prevents merge operation for ICF on variables types which are not compatible. Regression tests were run on x86_64-linux-pc. Ready for trunk? Thanks, Martin >From b92ec230162b99ff11d4e5688f63ae978e75af12 Mon Sep 17 00:00:00 2001 From: mliska Date: Thu, 5 Mar 2015 13:41

Fix PR ada/65319

2015-03-05 Thread Eric Botcazou
This removes obsolete code in c-ada-spec.c that valgrind rightfully complains about and should fix the PR in the process. Tested on x86_64-linux-gnu, applied on the mainline and 4.9 branch. 2015-03-05 Eric Botcazou PR ada/65319 * c-ada-spec.c (print_destructor): Remove obsol

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

2015-03-05 Thread James Greenhalgh
Hi Xingxing, I'm a little confused by your reasons for adding testcases marked XFAIL. On Thu, Mar 05, 2015 at 01:34:25PM +, Xingxing Pan wrote: > +/* { dg-final { scan-tree-dump-times "pattern recognized.*w\\\+" 1 "vect" { > xfail *-*-* } } } */ > +/* { dg-final { cleanup-tree-dump "vect" }

Re: [PATCH] Fix PR ipa/65318

2015-03-05 Thread Marek Polacek
On Thu, Mar 05, 2015 at 02:53:44PM +0100, Martin Liška wrote: > --- a/gcc/ipa-icf.c > +++ b/gcc/ipa-icf.c > @@ -1501,6 +1501,11 @@ sem_variable::equals (sem_item *item, >if (DECL_INITIAL (item->decl) == error_mark_node && in_lto_p) > dyn_cast (item->node)->get_constructor (); > > + /* A

Re: [PATCH] Fix PR ipa/65318

2015-03-05 Thread Martin Liška
On 03/05/2015 03:29 PM, Marek Polacek wrote: On Thu, Mar 05, 2015 at 02:53:44PM +0100, Martin Liška wrote: --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -1501,6 +1501,11 @@ sem_variable::equals (sem_item *item, if (DECL_INITIAL (item->decl) == error_mark_node && in_lto_p) dyn_cast (item->

Re: RFC: PATCHES: Properly handle reference to protected data on x86

2015-03-05 Thread H.J. Lu
On Wed, Mar 4, 2015 at 3:26 PM, H.J. Lu wrote: > Protected symbol means that it can't be pre-emptied. It > doesn't mean its address won't be external. This is true > for pointer to protected function. With copy relocation, > address of protected data defined in the shared library may > also be

[PATCH][AArch64] Fix Cortex-A53 shift costs

2015-03-05 Thread Wilco Dijkstra
This patch fixes the shift costs for Cortex-A53 so they are more accurate - immediate shifts use SBFM/UBFM which takes 2 cycles, register controlled shifts take 1 cycle. Bootstrap and regression OK. ChangeLog: 2015-03-05 Wilco Dijkstra * gcc/config/arm/aarch-cost-tables.h (cortexa53

Re: [PATCH] PR rtl-optimization/32219: optimizer causees wrong code in pic/hidden/weak symbol checking

2015-03-05 Thread Alex Velenko
On 03/03/15 15:58, Alex Velenko wrote: On 19/02/15 17:26, Richard Henderson wrote: On 02/19/2015 09:08 AM, Alex Velenko wrote: Your suggestion seem to fix gcc.target/arm/long-calls-1.c, but has to be thoroughly tested. Before you do complete testing, please also delete the TREE_STATIC test.

[committed] Fix ubsan test

2015-03-05 Thread Marek Polacek
This test should be run rather than just compiled. Bootstrapped/regtested on x86_64-linux, applying to trunk. 2015-03-05 Marek Polacek * c-c++-common/ubsan/bounds-6.c: Use dg-do run. diff --git gcc/testsuite/c-c++-common/ubsan/bounds-6.c gcc/testsuite/c-c++-common/ubsan/bounds-6.c i

RE: [PATCH] Fix another wrong-code bug with -fstrict-volatile-bitfields

2015-03-05 Thread Bernd Edlinger
Hi, On Thu, 5 Mar 2015 12:24:56, Richard Biener wrote: > > On Thu, Mar 5, 2015 at 12:00 PM, Bernd Edlinger > wrote: >> Hi, >> >> On Thu, 5 Mar 2015 10:00:26, Richard Biener wrote: >>> >>> On Wed, Mar 4, 2015 at 3:13 PM, Bernd Edlinger >> Maybe one thing is missing from strict_volatile_bitfield_p,

Re: [PATCH] PR rtl-optimization/32219: optimizer causees wrong code in pic/hidden/weak symbol checking

2015-03-05 Thread Ramana Radhakrishnan
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 7bf5b4d..777230e 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -6392,14 +6392,8 @@ arm_set_default_type_attributes (tree type) static bool arm_function_in_section_p (tree decl, section *section) { - /* We can

[PATCH, committed] jit documentation fixes

2015-03-05 Thread David Malcolm
On Thu, 2015-03-05 at 07:37 +0100, Bert Wesarg wrote: > Hi David, > > while reading the very good tutorial at > > https://gcc.gnu.org/onlinedocs/jit/intro/tutorial03.html > > I noticed that the calls to gcc_jit_block_end_with_conditional() > misses the on_true and on_false parameters. Good cat

Re: [PATCH] Fix another wrong-code bug with -fstrict-volatile-bitfields

2015-03-05 Thread Richard Biener
On Thu, Mar 5, 2015 at 4:05 PM, Bernd Edlinger wrote: > Hi, > > On Thu, 5 Mar 2015 12:24:56, Richard Biener wrote: >> >> On Thu, Mar 5, 2015 at 12:00 PM, Bernd Edlinger >> wrote: >>> Hi, >>> >>> On Thu, 5 Mar 2015 10:00:26, Richard Biener wrote: On Wed, Mar 4, 2015 at 3:13 PM, Bernd Edl

[PATCH] Improve memory usage on PR64928

2015-03-05 Thread Richard Biener
I am currently testing the following patch to reduce peak memory usage of the out-of-SSA phase for the testcase in the PR. The issue is (as usual) big live and SSA conflict graph memory use. This side tackles live info and frees livein before computing the conflict graph (which only needs liveout

Re: [patch/committed] PR middle-end/65233 make walk-ssa_copies handle empty PHIs

2015-03-05 Thread Jeff Law
On 03/05/15 01:47, Richard Biener wrote: On Thu, Mar 5, 2015 at 1:54 AM, Jan Hubicka wrote: It gets passed the valueize callback now which returns NULL_TREE for SSA names we can't follow. Btw, for match-and-simplify I had to use that as default for fold_stmt _exactly_ because of the call to

Re: [Patch] PR 65315 - Fix alignment of local variables

2015-03-05 Thread Jeff Law
On 03/04/15 12:50, Steve Ellcey wrote: While examining some MIPS code I noticed that GCC did not seem to be fully honoring the aligned attribute on some local variables. I submitted PR middle-end/65315 to record the bug and I think I now understand it and have a fix. The problem was that expan

Re: [Patch] PR 65315 - Fix alignment of local variables

2015-03-05 Thread Steve Ellcey
On Thu, 2015-03-05 at 09:36 +0100, Richard Biener wrote: > > > > I have verified the fix on the MIPS test case in PR 65315 and am doing a > > regression test now. OK to checkin if there are no regressions? > > It looks like large_align vars are dynamically allocated and thus they > should be sor

Re: [PATCH][ARM] Remove an unused reload hook.

2015-03-05 Thread Matthew Wahab
On 27/02/15 09:41, Richard Earnshaw wrote: On 19/02/15 12:19, Matthew Wahab wrote: The LEGITIMIZE_RELOAD_ADDRESS macro is only needed for reload. Since the ARM backend no longer supports reload, this macro is not needed and this patch removes it. gcc/ 2015-02-19 Matthew Wahab * config/

Re: [PATCH] Fix PR ipa/65318

2015-03-05 Thread Jeff Law
On 03/05/15 07:37, Martin Liška wrote: From 3f35d9ec57880409cde384bb7b9e8dbaae5231ef Mon Sep 17 00:00:00 2001 From: mliska Date: Thu, 5 Mar 2015 13:41:07 +0100 Subject: [PATCH] Fix PR ipa/65318. gcc/ChangeLog: 2015-03-05 Martin Liska PR ipa/65318 * ipa-icf.c (sem_variable::

[PATCH] Add new target h8300-*-linux

2015-03-05 Thread Yoshinori Sato
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. diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cfacea1..fc5101c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12

New German PO file for 'gcc' (version 5.1-b20150208)

2015-03-05 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the German team of translators. The file is available at: http://translationproject.org/latest/gcc/de.po (This file, 'gcc-5.1-b20150208.de.po', h

Re: [PATCH] Fix PR ipa/65318

2015-03-05 Thread Jan Hubicka
> gcc/ChangeLog: > > 2015-03-05 Martin Liska > > PR ipa/65318 > * ipa-icf.c (sem_variable::equals): Compare variables types. > > gcc/testsuite/ChangeLog: > > 2015-03-05 Martin Liska > > * gcc.dg/ipa/pr65318.c: New test. OK, Honza

Re: [PATCH] Fix PR ipa/65318

2015-03-05 Thread Jan Hubicka
> > gcc/ChangeLog: > > > > 2015-03-05 Martin Liska > > > > PR ipa/65318 > > * ipa-icf.c (sem_variable::equals): Compare variables types. > > > > gcc/testsuite/ChangeLog: > > > > 2015-03-05 Martin Liska > > > > * gcc.dg/ipa/pr65318.c: New test. > > OK, Though actually I think

Re: RFC: PATCHES: Properly handle reference to protected data on x86

2015-03-05 Thread Rich Felker
On Thu, Mar 05, 2015 at 06:39:10AM -0800, H.J. Lu wrote: > On Wed, Mar 4, 2015 at 3:26 PM, H.J. Lu wrote: > > Protected symbol means that it can't be pre-emptied. It > > doesn't mean its address won't be external. This is true > > for pointer to protected function. With copy relocation, > > add

Re: [PATCH][ARM] Remove an unused reload hook.

2015-03-05 Thread Matthew Wahab
On 05/03/15 16:34, Matthew Wahab wrote: thumb_legitimize_reload_address was added by https://gcc.gnu.org/ml/gcc-patches/2005-08/msg01140.html to fix PR 23436. It replaces sequences like mov r3, r9 mov r2, r10 ldr r0, [r3, r2] with mov r3, r9

Re: RFC: PATCHES: Properly handle reference to protected data on x86

2015-03-05 Thread H.J. Lu
On Thu, Mar 5, 2015 at 9:32 AM, Rich Felker wrote: > On Thu, Mar 05, 2015 at 06:39:10AM -0800, H.J. Lu wrote: >> On Wed, Mar 4, 2015 at 3:26 PM, H.J. Lu wrote: >> > Protected symbol means that it can't be pre-emptied. It >> > doesn't mean its address won't be external. This is true >> > for poi

Re: [PATCH] Fix PR ipa/65318

2015-03-05 Thread Jan Hubicka
Hi, this patch sovles the incorrect folding. The very same unification (ignoring signedness by checking that memory representation is the same) is done by constant pool. Some of the other uses of ctor_for_folding therefore already uses VIEW_CONVERT_EXPR, I suppose as a partial fix for past bugs. T

Re: [PATCH] Fix PR ipa/65318

2015-03-05 Thread Richard Biener
On March 5, 2015 7:08:16 PM CET, Jan Hubicka wrote: >Hi, >this patch sovles the incorrect folding. The very same unification >(ignoring >signedness by checking that memory representation is the same) is done >by >constant pool. > >Some of the other uses of ctor_for_folding therefore already uses >

Re: [PATCH] Fix PR ipa/65318

2015-03-05 Thread Richard Biener
On March 5, 2015 7:08:16 PM CET, Jan Hubicka wrote: >Hi, >this patch sovles the incorrect folding. The very same unification >(ignoring >signedness by checking that memory representation is the same) is done >by >constant pool. > >Some of the other uses of ctor_for_folding therefore already uses >

Re: [PATCH] Fix PR ipa/65318

2015-03-05 Thread Jan Hubicka
> >Index: gimple-fold.c > >=== > >--- gimple-fold.c(revision 221170) > >+++ gimple-fold.c(working copy) > >@@ -263,7 +263,16 @@ get_symbol_constant_value (tree sym) > > { > > val = canonicalize_constructor_val (unshar

Re: [PR58315] reset inlined debug vars at return-to point

2015-03-05 Thread Alexandre Oliva
On Mar 4, 2015, Richard Biener wrote: > Compile-time was slightly faster with the patch, 45s vs. 47s, > but the machine wasn't completely un-loaded. var-tracking parts: > unpatched: > variable tracking : 0.63 ( 1%) usr 0.03 ( 1%) sys 0.82 ( > 2%) wall 28641 kB ( 2%) ggc > var-

patch for PR64342

2015-03-05 Thread Vladimir Makarov
The following patch fixes a bad code generation for avx512f-kandnw-1.c reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64342 The patch was bootstrapped and tested on x86-64. Committed as rev. 221223. 2015-03-05 Vladimir Makarov PR target/64342 * lra-assigns.c

Re: [PR58315] reset inlined debug vars at return-to point

2015-03-05 Thread Richard Biener
On March 5, 2015 8:26:42 PM CET, Alexandre Oliva wrote: >On Mar 4, 2015, Richard Biener wrote: > >> Compile-time was slightly faster with the patch, 45s vs. 47s, >> but the machine wasn't completely un-loaded. var-tracking parts: > >> unpatched: > >> variable tracking : 0.63 ( 1%) usr

[PATCH] Fix ubsan's flexible array member handling (PR sanitizer/65280)

2015-03-05 Thread Marek Polacek
ubsan's code to determine whether we're dealing with a flexible array member didn't check for a COMPONENT_REF, but it should, since flexible array members can only occur in a structure. Consequently, we didn't instrument stuff we should instrument. Bootstrapped/regtested on x86_64-linux, if I hea

Re: [PATCH] target/65286 - Disable multilib for ppc64le

2015-03-05 Thread Alan Modra
This arranges to build a powerpc64le-linux compiler without -m32 support by default. Bootstrapped and regression tested on Ubuntu powerpc64le-linux without --disable-multilib, and on powerpc64-linux and powerpc-linux. OK for mainline and branches? This part of the config.gcc patch does most of t

Re: #pragma GCC unroll support

2015-03-05 Thread Mike Stump
On Jan 30, 2015, at 8:27 AM, Mike Stump wrote: > On Jan 30, 2015, at 7:49 AM, Joseph Myers wrote: >> Use error_at, and %u directly in the format. > > Done. Ping? Index: ada/gcc-interface/trans.c === --- ada/gcc-interface/trans.c

[patch] Optimize empty class copies within a C++ return statement

2015-03-05 Thread Aldy Hernandez
While looking at PR65284, I was confused by the gimple we generate for returns of empty classes by value: class obj { public: obj(int); }; obj funky(){ return obj(555); } For the above snippet, we generate: obj funky() () { struct obj D.2248; struct obj D.2246; obj::obj (&D.22

Re: [PATCH] PR63175 - [4.9/5 regression] FAIL: gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a.c scan-tree-dump-times slp2" basic block vectorized using SLP" 1

2015-03-05 Thread Martin Sebor
Attached is a scaled down version of the test for the bug. It fixes the scan-tree-dump-times string to match what GCC 5 prints and moves the result checking out of the test function and into main to prevent it from getting optimized away (as observed in comment #8 on the bug). The patch also adds

Go patch committed: Do not declare type switch variable outside case statements

2015-03-05 Thread Ian Lance Taylor
This patch by Chris Manghane fixes a bug for cases like this: switch x := v.(type) { case *x: in which the type name in the case happens to be the same as the variable name in the type switch. This is rather confusing code, but it should work. This is http://golang.org/issue/10047 . Boot

[PATCH] PR target/65248: Copy relocation against protected symbol doesn't work

2015-03-05 Thread H.J. Lu
Protected data symbol means that it can't be pre-emptied. It doesn't mean its address won't be external. This is true for pointer to protected function. With copy relocation, address of protected data defined in the shared library may also be external. We only know that for sure at run-time. T

Re: #pragma GCC unroll support

2015-03-05 Thread Sandra Loosemore
On 03/05/2015 04:12 PM, Mike Stump wrote: Ping? Just commenting on the documentation part: Index: doc/extend.texi === --- doc/extend.texi (revision 220084) +++ doc/extend.texi (working copy) @@ -17881,6 +17881,18 @@ voi

Re: [PATCH] gcc/genrecog.c: Check matching constraint in MATCH_OPERAND.

2015-03-05 Thread Chen Gang
Hello Maintainers: Please help check this patch when you have time. I have to leave Sunrus, the mail address (gang.c...@sunrus.com.cn) will be closed soon (Sunrus will be closed soon because of money, I guess). I change my new email address (xili_gchen_5...@hotmail.com) to continue communicatin

Re: RFC: PATCHES: Properly handle reference to protected data on x86

2015-03-05 Thread Alan Modra
On Wed, Mar 04, 2015 at 03:26:10PM -0800, H.J. Lu wrote: > Protected symbol means that it can't be pre-emptied. It > doesn't mean its address won't be external. This is true > for pointer to protected function. With copy relocation, > address of protected data defined in the shared library may >

RE: [Patch,microblaze]: Optimized usage of pcmp conditional instruction.

2015-03-05 Thread Ajit Kumar Agarwal
-Original Message- From: Michael Eager [mailto:ea...@eagerm.com] Sent: Thursday, February 26, 2015 4:29 AM To: Ajit Kumar Agarwal; GCC Patches Cc: Vinod Kathail; Shail Aditya Gupta; Vidhumouli Hunsigida; Nagaraju Mekala Subject: Re: [Patch,microblaze]: Optimized usage of pcmp conditional

Re: [patch] Optimize empty class copies within a C++ return statement

2015-03-05 Thread Jason Merrill
On 03/05/2015 06:25 PM, Aldy Hernandez wrote: + tree ret = TREE_OPERAND (*expr_p, 0); + if (ret && (TREE_CODE (ret) == INIT_EXPR + || TREE_CODE (ret) == MODIFY_EXPR) + && TREE_CODE (TREE_OPERAND (ret, 0)) == RESULT_DECL + && is_gimple_lvalue (TREE

[PATCH ARM]Print CPU tuning information as comment in assembler file.

2015-03-05 Thread Bin Cheng
Hi, This patch is the first part fixing memset-inline-{4,5,6,8,9}.c failures on cortex-a9. GCC/arm doesn't generate any tuning information in assembly, it can't tell whether we are compiling for cortex-a9 tune if the compiler is configured so by default. This patch introduces a new (target depende

[PATCH ARM]Fix memset-inline-* failures on cortex-a9 tune by checking tune information.

2015-03-05 Thread Bin Cheng
Hi, This patch is the second part fixing memset-inline-{4,5,6,8,9}.c failures on cortex-a9. It adds a function checking CPU tuning information in dejagnu, it also uses that function to skip related testcase when we are compiling for cortex-a9 tune. Build and test on arm-none-eabi. Is it OK? gcc