gcc-4.8-20140515 is now available

2014-05-15 Thread gccadmin
Snapshot gcc-4.8-20140515 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.8-20140515/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.8 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: [GSoC] writing test-case

2014-05-15 Thread Andreas Schwab
Prathamesh Kulkarni writes: > +/* { dg-final { scan-tree-dump "gimple_match_and_simplified to \[^\n\r\]*= > x_\\d\+\\(D\\) - y_\\d\+\\(D\\)" "forwprop1" } } */ No need to quote +, it's not special to tcl. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53

RE: Live Range Splitting in Integrated Register Allocator

2014-05-15 Thread Ajit Kumar Agarwal
Thanks Vladimir for the clarification. Thanks & Regards Ajit -Original Message- From: Vladimir Makarov [mailto:vmaka...@redhat.com] Sent: Thursday, May 15, 2014 8:39 PM To: Ajit Kumar Agarwal; gcc@gcc.gnu.org Cc: Michael Eager; Vinod Kathail; Vidhumouli Hunsigida; Nagaraju Mekala Subject

Re: Live Range Splitting in Integrated Register Allocator

2014-05-15 Thread Vladimir Makarov
On 05/15/2014 03:28 AM, Ajit Kumar Agarwal wrote: > > On 2014-05-14, 1:33 PM, Ajit Kumar Agarwal wrote: > >> Hello All: >> >> I am planning to implement the Live range splitting based on the following >> cases in the Integrated Register Allocator. >> >> For a given Live range that spans from from

Re: Live range shrinkage in pre-reload scheduling

2014-05-15 Thread Vladimir Makarov
On 05/15/2014 02:46 AM, Ramana Radhakrishnan wrote: > On Wed, May 14, 2014 at 5:38 PM, Richard Sandiford > wrote: >> Vladimir Makarov writes: >>> On 2014-05-13, 6:27 AM, Kyrill Tkachov wrote: Hi all, In haifa-sched.c (in rank_for_schedule) I notice that live range shrinkage is

RE: GCC driver to "Compile twice, score the assembly, choose the best"?

2014-05-15 Thread Paulo Matos
> -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf > Of Ian Bolton > Sent: 15 May 2014 12:47 > To: gcc@gcc.gnu.org > Subject: GCC driver to "Compile twice, score the assembly, choose the > best"? > > Hi, fellow GCC developers! > > I was wondering

Re: GCC driver to "Compile twice, score the assembly, choose the best"?

2014-05-15 Thread Andreas Schwab
"Ian Bolton" writes: > I was wondering if the "gcc" driver could be made to invoke > "cc1" twice, with different flags, and then just keep the > better of the two .s files that comes out? How do you define "better"? Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0

RE: GCC driver to "Compile twice, score the assembly, choose the best"?

2014-05-15 Thread Ian Bolton
Thanks for the quick response. > On Thu, May 15, 2014 at 1:46 PM, Ian Bolton wrote: > > Hi, fellow GCC developers! > > > > I was wondering if the "gcc" driver could be made to invoke > > "cc1" twice, with different flags, and then just keep the > > better of the two .s files that comes out? > >

Re: GCC driver to "Compile twice, score the assembly, choose the best"?

2014-05-15 Thread Richard Biener
On Thu, May 15, 2014 at 1:46 PM, Ian Bolton wrote: > Hi, fellow GCC developers! > > I was wondering if the "gcc" driver could be made to invoke > "cc1" twice, with different flags, and then just keep the > better of the two .s files that comes out? I'd be interested in your .s comparison tool tha

GCC driver to "Compile twice, score the assembly, choose the best"?

2014-05-15 Thread Ian Bolton
Hi, fellow GCC developers! I was wondering if the "gcc" driver could be made to invoke "cc1" twice, with different flags, and then just keep the better of the two .s files that comes out? I'm sure this is not a new idea, but I'm not aware of anything being done in this area, so I've made this pos

Re: GCC 4.8.3 Status Report, branch frozen for release (2014-05-15)

2014-05-15 Thread David Edelsohn
On Thu, May 15, 2014 at 5:27 AM, Richard Biener wrote: > > Status > == > > The 4.8 branch is now frozen as I am preparing a first release > candidate for 4.8.3. All patches to the branch now require > explicit approval from release managers. Please hold off on GCC 4.8.3. powerpc-linux has a

GCC 4.8.3 Release Candidate available from gcc.gnu.org

2014-05-15 Thread Richard Biener
GCC 4.8.3 Release Candidate available from gcc.gnu.org The first release candidate for GCC 4.8.3 is available from ftp://gcc.gnu.org/pub/gcc/snapshots/4.8.3-RC-20140515 and shortly its mirrors. It has been generated from SVN revision 210453. I have so far bootstrapped and tested the release

GCC 4.8.3 Status Report, branch frozen for release (2014-05-15)

2014-05-15 Thread Richard Biener
Status == The 4.8 branch is now frozen as I am preparing a first release candidate for 4.8.3. All patches to the branch now require explicit approval from release managers. Previous Report === https://gcc.gnu.org/ml/gcc/2014-05/msg00026.html

Re: [GSoC] writing test-case

2014-05-15 Thread Richard Biener
>>> * I have written test-cases for patterns in match.pd (attached patch), which >>> result in PASS. Could you review them for me ? >> >> Sure. It looks good to me, though you can look at the changed match-1.c >> testcase on the branch where I've changed the matching to look for the >> debug outpu

Re: [GSoC] writing test-case

2014-05-15 Thread Richard Biener
>> So I came along the need to add another predicate for REAL_CST >> leafs which makes me wonder if we should support tree codes >> as predicates. Thus instead of writing >> >> (match_and_simplify >> (plus (plus @0 INTEGER_CST_P@1) INTEGER_CST_P@2) >> (plus @0 (plus @1 @2))) >> >> write >> >>

RE: Why is this not optimized?

2014-05-15 Thread Bingfeng Mei
Thanks for the reply. I will look at the patch. As far as the cost is concerned, I think fwprop doesn't really need to understand pipeline model. As long as rtx costs after optimization is less than before optimization, I think it is good enough. Of course, it won't be better in every case, but

Re: Live range shrinkage in pre-reload scheduling

2014-05-15 Thread Ramana Radhakrishnan
On Thu, May 15, 2014 at 8:36 AM, Maxim Kuvyrkov wrote: > On May 15, 2014, at 6:46 PM, Ramana Radhakrishnan > wrote: >> >>> >>> I'm not claiming it's a great heuristic or anything. There's bound to >>> be room for improvement. But it was based on "reality" and real results. >>> >>> Of course, i

Re: [GSoC] writing test-case

2014-05-15 Thread Richard Biener
On Thu, May 15, 2014 at 12:30 AM, Prathamesh Kulkarni wrote: > On Wed, May 14, 2014 at 3:54 PM, Richard Biener > wrote: >> On Tue, May 13, 2014 at 11:06 PM, Prathamesh Kulkarni >> wrote: >>> On Tue, May 13, 2014 at 2:36 PM, Richard Biener >>> wrote: On Sun, May 11, 2014 at 5:00 PM, Pratham

Re: problem with fprintf and OpenMP

2014-05-15 Thread Jakub Jelinek
On Thu, May 15, 2014 at 08:01:13AM +0200, Siegmar Gross wrote: > I'm using gcc-4.9.0 and have a problem with the following program. > I have reported the problem allready on gcc-help some days ago, > but didn't get any replies. Perhaps somebody in this list knows, > if the behaviour is intended. Y

Re: Obscure iostream failure, a compiler bug or a language design issue?

2014-05-15 Thread Florian Weimer
On 05/15/2014 09:58 AM, Ulrich Windl wrote: I guess the problem is that constructors are called sequentially without dependency analysis. So if d() is acaaled before including iostream (lexically), the program crashes. Yes, that's right. The C++ mechanism for initialization of global varia

Re: problem with fprintf and OpenMP

2014-05-15 Thread Leif Leonhardy
On 15.05.2014 08:01, Siegmar Gross wrote: #include #include #include int main (void) { #pragma omp parallel default (none) fprintf (stderr, "Hello!\n"); return EXIT_SUCCESS; } I get the following error, when I try to compile the program on "Solaris 10 Sparc". tyr OpenMP 116 \gcc -

Obscure iostream failure, a compiler bug or a language design issue?

2014-05-15 Thread Ulrich Windl
Hello! I had a C++ program that crashed, so I added debug output using clog. Unfortunately the first out put to clog also crashed within iostreams. I was able to make a test case that compiles fine with -Wall -Wextra, but crashes: ---ugly code follows--- class d { public: static void f()

Re: Live range shrinkage in pre-reload scheduling

2014-05-15 Thread Maxim Kuvyrkov
On May 15, 2014, at 6:46 PM, Ramana Radhakrishnan wrote: > >> >> I'm not claiming it's a great heuristic or anything. There's bound to >> be room for improvement. But it was based on "reality" and real results. >> >> Of course, if it turns out not be a win for ARM or s390x any more then it >

RE: Live Range Splitting in Integrated Register Allocator

2014-05-15 Thread Ajit Kumar Agarwal
On 2014-05-14, 1:33 PM, Ajit Kumar Agarwal wrote: > > Hello All: > > I am planning to implement the Live range splitting based on the following > cases in the Integrated Register Allocator. > > For a given Live range that spans from from outer region to inner region of > the loop. Such Live r

Re: Live range shrinkage in pre-reload scheduling

2014-05-15 Thread Richard Sandiford
Ramana Radhakrishnan writes: > On Wed, May 14, 2014 at 5:38 PM, Richard Sandiford > wrote: >> Hey, I resent that. You make it sound I came up with SCHED_PRESSURE_MODEL >> on a whim without any evidence to back it up. I implemented it because >> it gave better EEMBC results on ARM, at least at t