[PATCH] Refactor the code to remove IS_UNKNOWN_LOCATION

2012-09-25 Thread Dehao Chen
IS_UNKNOWN_LOCATION is very misleading. This patch removes this macro from input.h. For sites when checking LOCUS is intended, we explicit use LOCATION_LOCUS and compare it to UNKNOWN_LOCATION. Bootstrapped and passed all gcc regression tests. Ok for trunk? Thanks, Dehao gcc/ChangeLog: 2012-09

Is it hard to have a little talk with you?

2012-09-25 Thread Bethanie Heinen
Hi, I'm Bethanie. I don't know you. I found ur account right here, was impressed with it and now write you. My ex boyfriend and I decided to let us part friends about two weeks ago. So, I decided to find something new and maybe find it on this site. I did not use to meet on sites but u really i

Go patch committed: Better error for switch on non-comparable type

2012-09-25 Thread Ian Lance Taylor
This patch to the Go frontend gives a better error message for a switch on a non-comparable type. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian diff -r 74d2d7d217d8 -r f47f5449a663 go/statements.cc --- a/go/statements.cc Sat Sep 22 00:1

Re: add typedef printers to libstdc++

2012-09-25 Thread Paolo Carlini
Hi Tom, On 09/25/2012 10:53 PM, Tom Tromey wrote: "Magnus" == Magnus Fromreide writes: Magnus> How does it display the types of the variables us, s and ss in the Magnus> following code: It does what you'd expect. Magnus> I would expect it to say std::basic_string, Magnus> std::string and std

Re: [PR54551] global dead debug pseudo tracking in fast-dce

2012-09-25 Thread Alexandre Oliva
On Sep 25, 2012, Jakub Jelinek wrote: > (the other alternative would be to use mode in the hash function etc., > but if usually the same pseudo has the same mode everywhere, then the above > should be good enough). AFAIK each pseudo is referenced everywhere using the same RTX; if so, it follows

Re: Merge C++ conversion into trunk (4/6 - hash table rewrite)

2012-09-25 Thread Lawrence Crowl
On 8/15/12, Richard Henderson wrote: > On 2012-08-15 07:29, Richard Guenther wrote: > > + typedef typename Element::Element_t Element_t; > > Can we use something less ugly than Element_t? > Such as > > typedef typename Element::T T; > > ? Given that this name is scoped anyway... I've been fi

[PATCH committed] Fix PR54704

2012-09-25 Thread Dehao Chen
Hi, This patch (fixed by Richard, I just helped testing) fixes a bug in the hash function which leads to too many collisions and a 3x compile time overhead for tramp3d. After applying the patch, the compile time of tramp3d returns to normal (the same as no block-location patch). Bootstrapped and

Re: [google 4.7] fix line number checksum mismatch in lipo-use (issue6566044)

2012-09-25 Thread Xinliang David Li
On Mon, Sep 24, 2012 at 2:42 PM, Rong Xu wrote: > Hi, > > This is for google branches only. > It fix the lino number checksum mismatch during LIPO-use build. > > Tested with SPEC and google internal banchmarks. > > Thanks, > > -Rong > > 2012-09-24 Rong Xu > > * gcc/coverage.c (coverage_

Re: add typedef printers to libstdc++

2012-09-25 Thread Tom Tromey
> "Magnus" == Magnus Fromreide writes: Magnus> How does it display the types of the variables us, s and ss in the Magnus> following code: It does what you'd expect. Magnus> I would expect it to say std::basic_string, Magnus> std::string and std::basic_string, but I thought a test Magnus> ca

Re: [PATCH] rs6000: Add testcase for ne0 stuff

2012-09-25 Thread David Edelsohn
On Tue, Sep 25, 2012 at 2:28 PM, Segher Boessenkool wrote: > How's this? > > > Segher > > > 2012-09-25 Segher Boessenkool > > gcc/testsuite/ > * gcc.target/powerpc/ppc-ne0-1.c: New. Okay. Thanks, David

Re: [RFA 2/n] Don't lift loads above register using jumps in postreload-gcse.c

2012-09-25 Thread Steven Bosscher
On Tue, Sep 25, 2012 at 9:12 PM, Matthew Gretton-Dann wrote: >> No, I mean using the onlyjump_p predicate. > > Again sorry for the delay. Attached is an updated patch using the onlyjump_p > predicate as suggested by Steven. + if (onlyjump_p (BB_END (pred->src))) Eh, don't you want (!onlyju

Re: [RFA 2/n] Don't lift loads above register using jumps in postreload-gcse.c

2012-09-25 Thread Matthew Gretton-Dann
On Wednesday 05 September 2012 17:40:23 Steven Bosscher wrote: > On Wed, Sep 5, 2012 at 3:18 PM, Matthew Gretton-Dann > > wrote: > > On 5 September 2012 13:45, Richard Earnshaw wrote: > >> On 05/09/12 13:02, Steven Bosscher wrote: > >>> On Wed, Sep 5, 2012 at 1:42 PM, Matthew Gretton-Dann wrote:

[PATCH] rs6000: Add testcase for ne0 stuff

2012-09-25 Thread Segher Boessenkool
How's this? Segher 2012-09-25 Segher Boessenkool gcc/testsuite/ * gcc.target/powerpc/ppc-ne0-1.c: New. --- gcc/testsuite/gcc.target/powerpc/ppc-ne0-1.c | 33 ++ 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 gcc/testsuite/gc

Re: [Patch][AArch64] Implement TARGET_SHIFT_TRUNCATION_MASK.

2012-09-25 Thread Marcus Shawcroft
On 10/09/12 16:28, Tejas Belagod wrote: gcc/ * config/aarch64/aarch64.c (aarch64_shift_truncation_mask): Define. (TARGET_SHIFT_TRUNCATION_MASK): Define. * config/aarch64/aarch64.h (SHIFT_COUNT_TRUNCATED): Conditionalize on TARGET_SIMD. Committed to aarch64-branch

Re: [Patch][AArch64] Fix Narrowing high shifts.

2012-09-25 Thread Marcus Shawcroft
On 10/09/12 16:22, Tejas Belagod wrote: 2012-09-10 Tejas Belagod gcc/ * config/aarch64/arm_neon.h (vrshrn_high_n_s16, vrshrn_high_n_s32, vrshrn_high_n_s64, vrshrn_high_n_u16, vrshrn_high_n_u32, vrshrn_high_n_u64, vshrn_high_n_s16, vshrn_high_n_s32, vshrn_high_n_s32,

Re: [Patch][AArch64] Implement vmovq_n_f64.

2012-09-25 Thread Marcus Shawcroft
On 10/09/12 16:20, Tejas Belagod wrote: 2012-09-10 Tejas Belagod gcc/ * config/aarch64/arm_neon.h (vmovq_n_f64): Add. Committed to aarch64-branch and aarch64-4.7-branch. /Marcus

Re: [Patch][AArch64] Fix vfmaq_lane_f64.

2012-09-25 Thread Marcus Shawcroft
On 10/09/12 16:18, Tejas Belagod wrote: 2012-09-10 Tejas Belagod gcc/ * config/aarch64/arm_neon.h (vfmaq_lane_f64): Fix prototype and assembler template accordingly. Committed to aarch64-branch and aarch64-4.7-branch. /Marcus

Re: [PATCH] PR c++/54372 - unused attribute inactive on dependant entities

2012-09-25 Thread Jason Merrill
OK. Jason

Re: [Patch][AArch64] Move immediate into Advanced SIMD scalar.

2012-09-25 Thread Marcus Shawcroft
On 10/09/12 16:14, Tejas Belagod wrote: 2012-09-10 Tejas Belagod gcc/ * config/aarch64/aarch64-protos.h (aarch64_simd_imm_scalar_p): Declare. * config/aarch64/aarch64.c (aarch64_simd_imm_scalar_p): New. * config/aarch64/aarch64.md (*movdi_aarch64): Add alternative

Re: PING Re: [PATCH, MIPS] add new peephole for 74k dspr2

2012-09-25 Thread Maciej W. Rozycki
On Tue, 25 Sep 2012, Richard Sandiford wrote: > >> According to my sources the R4650 has a 4-cycle MULT latency (MAD is 3-4 > >> cycles on that processor). An MTHI/MTLO pair will take 2 cycles; > >> obviously the resulting larger code may adversely affect cache performance > >> in some scenar

Re: [Patch][AArch64] Tighten predicate for CMP pattern.

2012-09-25 Thread Marcus Shawcroft
On 10/09/12 16:11, Tejas Belagod wrote: 2012-09-10 Tejas Belagod gcc/ * config/aarch64/aarch64-simd.md (aarch64_cm): Tighten predicate for operand 2 of the compare pattern to accept register or zero. * config/aarch64/predicates.md (aarch64_simd_reg_or_zero): New.

Re: [Patch][AArch64] Split a move of Q-reg vectors contained in general regs.

2012-09-25 Thread Marcus Shawcroft
On 10/09/12 16:05, Tejas Belagod wrote: 2012-09-10 Tejas Belagod gcc/ * config/aarch64/aarch64-simd.md (*aarch64_simd_mov): Split Q-reg vector value move contained in general registers. Committed to aarch64-branch and aarch64-4.7-branch /Marcus

Re: [Patch][AArch64] Expand binary operations' constant operands for neon intrinsics.

2012-09-25 Thread Marcus Shawcroft
On 10/09/12 16:02, Tejas Belagod wrote: Hi, This patch expands an Advanced SIMD intrinsic's operand into a constant operand only if the predicate allows it. Regression-tested on aarch64-none-elf. OK for aarch64-branch? Thanks, Tejas Belagod ARM. Changelog 2012-09-10 Tejas Belagod gcc/

Re: [Patch][AArch64] Implement support for LD{1,2,3,4}/ST{1,2,3,4}.

2012-09-25 Thread Marcus Shawcroft
I've committed this patch to aarch64-branch and backported to aarch64-4.7-branch. /Marcus On 10 Sep 2012, at 15:54, Tejas Belagod wrote: Hi, The attached patch implements register list support, standard patterns for struct vector(strided) load-store support and their associated Advanced SIM

RFA: update config-list.mk

2012-09-25 Thread Joern Rennecke
A few arm targets were removed from config.gcc, and picochip is only available with --enable-obsolete. This patch brings config-list.mk up-to-date in these respects. 2012-09-24 Joern Rennecke * contrib-list.mk (LIST): Remove arm-freebsd6, arm-linux, arm-ecos-elf, arm-rtems, ar

Re: Ping: PATCH RFA: Print backtrace on ICE

2012-09-25 Thread Diego Novillo
On 2012-09-20 22:33 , Ian Lance Taylor wrote: gcc/: 2012-09-17 Ian Lance Taylor * diagnostic.c: Include "demangle.h" and "backtrace.h". (bt_stop): New static array. (bt_callback, bt_err_callback): New static functions. (diagnostic_action_after_output): Ca

Re: [PATCH] Fix up CFLAGS/CXXFLAGS gcc/configure adjustment (PR other/54692)

2012-09-25 Thread Jakub Jelinek
On Tue, Sep 25, 2012 at 05:59:28PM +0200, Paolo Bonzini wrote: > Il 25/09/2012 13:19, Jakub Jelinek ha scritto: > Yes, thanks. Would it make sense to leave -Og in? Maybe once it matures more. E.g. the scheduler isn't currently tweaked for -Og (should either not schedule at all, or only within gr

[ARM] fix for PR49423

2012-09-25 Thread Dinar Temirbulatov
Hi Ramana, Here is obvious fix for PR49423, I just added pool range for arm_zero_extendqisi2, arm_zero_extendqisi2_v6, arm_zero_extendhisi2, arm_zero_extendhisi2_v6 patterns. thanks, Dinar. PR49423.patch Description: Binary data

[Patch,avr,committed] PR54641, PR54701

2012-09-25 Thread Georg-Johann Lay
Applied the following patches: PR64641: http://gcc.gnu.org/viewcvs?view=revision&revision=191714 PR target/54641 * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS for sources compiled with COMPILER. PR54701: http://gcc.gnu.org/viewcvs?view=revision&revision

Re: [PATCH] rs6000: Fix ne0 patterns (PR51274)

2012-09-25 Thread Michael Meissner
On Tue, Sep 25, 2012 at 03:40:10PM +0200, Segher Boessenkool wrote: > >This is okay, but can you also add a target testcase to check that the > >correct assembly instructions are generated so that we can try to > >ensure this does not regress again? > > This won't regress in this way again, becaus

Re: [PATCH] Fix up CFLAGS/CXXFLAGS gcc/configure adjustment (PR other/54692)

2012-09-25 Thread Paolo Bonzini
Il 25/09/2012 13:19, Jakub Jelinek ha scritto: > Hi! > > On Thu, Sep 13, 2012 at 06:24:14PM +0200, Paolo Bonzini wrote: >> Il 13/09/2012 17:57, Jakub Jelinek ha scritto: >>> Can we get this change in? The current state is terribly annoying. > > Yes, please go ahead. >>> Here it is, bo

Re: [Patch] catch builtin_bswap16 construct

2012-09-25 Thread Eric Botcazou
> I guess I just have to wait for approval by the right maintainer now? Right, GCC's bureaucracy is no legend. :-) I've CCed Richard, who approved the __builtin_bswap16 stuff back in April. -- Eric Botcazou

[PATCH] Fix PR54704

2012-09-25 Thread Richard Guenther
I am testing the following patch to fix a typo(?) in the hash function for location ad-hoc data. The current hash function causes 1000 collisions for each search when building tramp3d. Bootstrap and regtest running on x86_64-unknown-linux-gnu. Richard. 2012-09-25 Richard Guenther P

Re: [Patch] catch builtin_bswap16 construct

2012-09-25 Thread Christophe Lyon
On 25 September 2012 13:32, Segher Boessenkool wrote: >>> Christophe, it looks like the zero-extend in the unsigned case is not >>> needed on any target? Assuming the shifts are at least SImode, of >>> course (I'm too lazy to check, sorry). >> >> >> It's also present when compiling: >> unsigned s

Re: [PATCH] Fix PR54702 and LTO bootstrap (for me)

2012-09-25 Thread Richard Guenther
On Tue, 25 Sep 2012, Richard Guenther wrote: > > This fixes PR54702 and LTO bootstrap (well, at least I now survive > stage2 cc1 build). We shouldn't enter builtins into the symtab > asm-name hash, too much code seems to be confused by that (at least > we should at most insert builtins with a se

[CPP] Add pragmas for emitting diagnostics

2012-09-25 Thread Florian Weimer
This patch adds support for #pragma GCC warning and #pragma GCC error. These pragmas can be used from preprocessor macros, unlike the existing #warning and #error directives. Library authors can use these pragmas to add deprecation warnings to macros they define. Bootstrapped and tested on x8

[PATCH, AArch64] Handle symbol + offset more effectively

2012-09-25 Thread Ian Bolton
Hi all, This patch corrects what seemed to be a typo in expand_mov_immediate in aarch64.c, where we had || instead of an && in our original code. if (offset != const0_rtx && (targetm.cannot_force_const_mem (mode, imm) || (can_create_pseudo_p ( // <- should have been && A

Re: [PATCH] rs6000: Fix ne0 patterns (PR51274)

2012-09-25 Thread Segher Boessenkool
This is okay, but can you also add a target testcase to check that the correct assembly instructions are generated so that we can try to ensure this does not regress again? This won't regress in this way again, because now the pattern is a single RTL op. But yes, target tests for this kind of t

Re: [PATCH] rs6000: Fix ne0 patterns (PR51274)

2012-09-25 Thread David Edelsohn
On Tue, Sep 25, 2012 at 12:44 AM, Segher Boessenkool wrote: > The current patterns will never match. Fix that. Also, merge the > SI and DI variants of each. Also, remove an unnecessary earlyclobber. > And add a pattern for what combine considers the canonical form of > one of these patterns. >

Re: [C++ Patch] PR 54526

2012-09-25 Thread Jason Merrill
On 09/25/2012 06:47 AM, Paolo Carlini wrote: if I understand correctly, in C++11 mode we should simply accept what we used to accept only with -fpermissive. Let's also mention -std=c++11 as an alternative to -fpermissive in the note. OK with that change. Jason

RE: [PATCH, AArch64] Allow symbol+offset even if not being used for memory access

2012-09-25 Thread Ian Bolton
> Ok. Having dug a bit deeper I think the main problem is that you're > working against yourself by not handling this pattern right from the > beginning. You have split the address incorrectly to begin and are > now trying to recover after the fact. > > The following patch seems to do the trick

[PATCH] Fix PR54702 and LTO bootstrap (for me)

2012-09-25 Thread Richard Guenther
This fixes PR54702 and LTO bootstrap (well, at least I now survive stage2 cc1 build). We shouldn't enter builtins into the symtab asm-name hash, too much code seems to be confused by that (at least we should at most insert builtins with a set assembler name). Smells somewhat LTO-ish, but well.

Re: [PATCH] Fix PR54674

2012-09-25 Thread William J. Schmidt
On Tue, 2012-09-25 at 09:14 +0200, Richard Guenther wrote: > On Mon, 24 Sep 2012, William J. Schmidt wrote: > > > In cases where pointers and ints are cast back and forth, SLSR can be > > tricked into introducing a multiply where one of the operands is of > > pointer type. Don't do that! > > >

Re: [PR54551] global dead debug pseudo tracking in fast-dce

2012-09-25 Thread Jakub Jelinek
On Sun, Sep 23, 2012 at 07:59:37AM -0300, Alexandre Oliva wrote: > This patch introduces a global mode of dead_debug tracking for use in > fast DCE. If a debug use reaches the top of a basic block before > finding its death point, the pending and subsequent uses of the pseudo > in debug insns will

Re: [PATCH] PR c++/54372 - unused attribute inactive on dependant entities

2012-09-25 Thread Dodji Seketeli
Jason Merrill writes: > On 09/20/2012 10:01 AM, Dodji Seketeli wrote: >> This is because in cplus_decl_attributes, save_template_attributes >> makes so that the 'unused' attribute is applied to its appertaining >> entity only at instantiation time. But then at parsing time >> maybe_warn_unused_l

Re: [PATCH] Fix VRP single-bit signed precision handling (PR tree-optimization/54676)

2012-09-25 Thread Richard Guenther
On Tue, Sep 25, 2012 at 1:23 PM, Jakub Jelinek wrote: > Hi! > > This patch fixes two spots where signed 1-bit precision isn't handled > properly in VRP. With that type, build_int_cst (TREE_TYPE (min), 1) > will overflow and thus adding it to something or subtracting leads to > ICEs or bad code.

Re: [Patch] catch builtin_bswap16 construct

2012-09-25 Thread Segher Boessenkool
Christophe, it looks like the zero-extend in the unsigned case is not needed on any target? Assuming the shifts are at least SImode, of course (I'm too lazy to check, sorry). It's also present when compiling: unsigned short swapu16(unsigned short x) { return __builtin_bswap16(x); } so it'

Re: [PATCH] Fix up CFLAGS/CXXFLAGS gcc/configure adjustment (PR other/54692)

2012-09-25 Thread Richard Guenther
On Tue, Sep 25, 2012 at 1:19 PM, Jakub Jelinek wrote: > Hi! > > On Thu, Sep 13, 2012 at 06:24:14PM +0200, Paolo Bonzini wrote: >> Il 13/09/2012 17:57, Jakub Jelinek ha scritto: >> >>> > > Can we get this change in? The current state is terribly annoying. >> >> > >> >> > Yes, please go ahead. >> >

[PATCH] Fix VRP single-bit signed precision handling (PR tree-optimization/54676)

2012-09-25 Thread Jakub Jelinek
Hi! This patch fixes two spots where signed 1-bit precision isn't handled properly in VRP. With that type, build_int_cst (TREE_TYPE (min), 1) will overflow and thus adding it to something or subtracting leads to ICEs or bad code. In the first spot min is different from max, which for 1-bit preci

[PATCH] Fix lto-bootstrap issue (one of them)

2012-09-25 Thread Richard Guenther
The following fixes the TREE_ADDRESSABLE issue during LTO bootstrap. We fail to merge all symbols because 'first' may no longer be 'first'. Committed as obvious. LTO bootstrap is still broken for me: /tmp/ccXpATTw.ltrans19.ltrans.o: In function `is_ctor_or_dtor.17240': ccXpATTw.ltrans19.o:(.tex

[PATCH] Fix up CFLAGS/CXXFLAGS gcc/configure adjustment (PR other/54692)

2012-09-25 Thread Jakub Jelinek
Hi! On Thu, Sep 13, 2012 at 06:24:14PM +0200, Paolo Bonzini wrote: > Il 13/09/2012 17:57, Jakub Jelinek ha scritto: > >>> > > Can we get this change in? The current state is terribly annoying. > >> > > >> > Yes, please go ahead. > > Here it is, bootstrapped/regtested on x86_64-linux and i686-lin

Re: Rewrite lto-symtab to work on symbol table

2012-09-25 Thread Richard Guenther
On Mon, Sep 24, 2012 at 6:10 PM, H.J. Lu wrote: > On Mon, Sep 24, 2012 at 8:50 AM, Martin Jambor wrote: >> Hi, >> >> On Tue, Sep 18, 2012 at 03:35:45PM +0200, Jan Hubicka wrote: >>> Hi, >>> this patch reorganize lto-symtab to work across symtab's symbol table >>> instead >>> of building its own.

[C++ Patch] PR 54526

2012-09-25 Thread Paolo Carlini
Hi, if I understand correctly, in C++11 mode we should simply accept what we used to accept only with -fpermissive. Tested x86_64-linux. Thanks, Paolo. // /cp 2012-09-25 Paolo Carlini PR c++/54526 * parser.c (cp_parser_template_id): In C++11 mode simpl

Re: [Patch] catch builtin_bswap16 construct

2012-09-25 Thread Christophe Lyon
On 25 September 2012 07:00, Segher Boessenkool wrote: > Christophe, it looks like the zero-extend in the unsigned case is not > needed on any target? Assuming the shifts are at least SImode, of > course (I'm too lazy to check, sorry). > It's also present when compiling: unsigned short swapu16(un

New German PO file for 'gcc' (version 4.7.2)

2012-09-25 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-4.7.2.de.po', has just

Re: [SH] PR 54089 - More rotcr, rotl, rotr

2012-09-25 Thread Kaz Kojima
Oleg Endo wrote: > This patch does some further improvements to the utilization of rotate > insns on SH. Tested on rev 191657 with > make -k check RUNTESTFLAGS="--target_board=sh-sim > \{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}" > and no new failures. > > OK? OK. > (BTW, com

Re: PING Re: [PATCH, MIPS] add new peephole for 74k dspr2

2012-09-25 Thread Richard Sandiford
Richard Sandiford writes: > "Maciej W. Rozycki" writes: >> On Mon, 24 Sep 2012, Richard Sandiford wrote: >> >>> > From the context I am assuming none of this matters for the 74K (and >>> > presumably the 24KE/34K) and a MULT $0, $0 is indeed faster, but overall >>> > isn't it something that sh

[SH] PR 54089 - More rotcr, rotl, rotr

2012-09-25 Thread Oleg Endo
Hello, This patch does some further improvements to the utilization of rotate insns on SH. Tested on rev 191657 with make -k check RUNTESTFLAGS="--target_board=sh-sim \{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}" and no new failures. OK? (BTW, comparing test summaries of rev. 1

Re: PING Re: [PATCH, MIPS] add new peephole for 74k dspr2

2012-09-25 Thread Richard Sandiford
"Maciej W. Rozycki" writes: > On Mon, 24 Sep 2012, Richard Sandiford wrote: > >> > From the context I am assuming none of this matters for the 74K (and >> > presumably the 24KE/34K) and a MULT $0, $0 is indeed faster, but overall >> > isn't it something that should be decided based on instructi

RE: [Updated]: [PATCH GCC/ARM] Fix problem that hardreg_cprop opportunities are missed on thumb1

2012-09-25 Thread Bin Cheng
> -Original Message- > From: Richard Sandiford [mailto:rdsandif...@googlemail.com] > Sent: Wednesday, September 05, 2012 6:09 AM > To: Bin Cheng > Cc: Ramana Radhakrishnan; 'Eric Botcazou'; gcc-patches@gcc.gnu.org > Subject: Re: Ping: [PATCH GCC/ARM] Fix problem that hardreg_cprop > opport

Re: [PATCH] rs6000: Fix ne0 patterns (PR51274)

2012-09-25 Thread Segher Boessenkool
PR target/51274 Also: PR target/53087

Re: [patch] PR54645 move location_adhoc_data map into GC

2012-09-25 Thread Richard Guenther
On Mon, Sep 24, 2012 at 10:23 PM, Hans-Peter Nilsson wrote: > On Fri, 21 Sep 2012, Dehao Chen wrote: >> This patch moves location_adhoc_data into GC, and also rebuild the >> hash table when reading in the PCH. After the patch, PCH can work as >> expected. >> >> Bootstrapped and passed gcc regressi

[PATCH, rtl-optimization]: Fix PR54457, [x32] Fail to combine 64bit index + constant

2012-09-25 Thread Uros Bizjak
Hello! Attached patch fixes the combine deficiency, where combine is not able to recognize combination of: Trying 6 -> 8: Failed to match this instruction: (set (reg:QI 66) (mem/j:QI (plus:SI (subreg:SI (plus:DI (reg/v:DI 62 [ position ]) (const_int 1 [0x1])) 0)

Re: [PATCH] Fix PR54674

2012-09-25 Thread Richard Guenther
On Mon, 24 Sep 2012, William J. Schmidt wrote: > In cases where pointers and ints are cast back and forth, SLSR can be > tricked into introducing a multiply where one of the operands is of > pointer type. Don't do that! > > Verified that the reduced test case in the PR is fixed with a > cross-co

Re: [PATCH] Fix PR C++/50970 -- Function pointer dereferenced twice in if statement on Arm cpu

2012-09-25 Thread Zhenqiang Chen
On 22 September 2012 06:42, wrote: > On 20 Sep 2012, at 08:51, "Zhenqiang Chen" wrote: > >> Hi, >> >> PR 50970 is a general c++ front-end issue for targets which define >> TARGET_PTRMEMFUNC_VBIT_LOCATION ptrmemfunc_vbit_in_delta, although the >> reporter had issues only on ARM. >> >> Root cause:

[PATCH, testsuite]: Avoid 'overflow in implicit constant conversion' warning in gcc.target/i386/pr50275.c for x32

2012-09-25 Thread Uros Bizjak
Hello! 2012-09-25 Uros Bizjak * gcc.target/i386/pr50725.c: Change 'long' to 'long long'. Tested on x86_64-pc-linux-gnu, committed to mainline SVN. Uros. Index: gcc.target/i386/pr50725.c === --- gcc.target/i386/pr50725.c