Re: [PATCH PR62151]Fix uninitialized register issue caused by distribute_notes in combine pass

2014-08-31 Thread Segher Boessenkool
On Fri, Aug 29, 2014 at 11:58:37PM -0600, Jeff Law wrote: > One could argue that this mess is a result of trying to optimize a reg > that is set more than once.Though I guess that might be a bit of a > big hammer. It works fine in other cases, and is quite beneficial for e.g. optimising inst

[PATCH 1/2] Add -B support to gcc-ar/ranlib/nm

2014-08-31 Thread Andi Kleen
From: Andi Kleen To use gcc-{ar,ranlib} for boot strap we need to add a -B option to the tool. Since ar has weird and unusual argument conventions implement the code by hand instead of using any libraries. v2: Fix typo v3: Improve comments. Use strlen. Use DIR_SEPARATOR. Add prefixes at begin.

[PATCH 2/2] Support slim LTO bootstrap

2014-08-31 Thread Andi Kleen
From: Andi Kleen Change the bootstrap-lto config file to use slim (non fat) LTO.. Speeds up the LTO bootstrap by ~18% on a 4 core system. This requires using gcc-ar/ranlib in post stage 1 builds, so these are passed to all sub builds. v2: Change existing config file as requested by Honza. conf

Updated slim LTO patchkit

2014-08-31 Thread Andi Kleen
This patchkit implements slim LTO bootstrap, which speeds up LTO bootstrap by only compiling once. I implemented all of Richard's feedback for the new -B option for gcc-ar. Passes full bootstrap and test on x86_64-linux and LTO bootstrap. Ok to commit now? -Andi

Re: [PATCH 5/5] add libcc1 [gcc-5/changes.html]

2014-08-31 Thread Gerald Pfeifer
Hi Jan, On Fri, 8 Aug 2014, Jan Kratochvil wrote: >>> "Jeff" == Jeff Law writes: >>> Does this deserve a mention in the news file? > Attached (based on Tom's PATCH 0/5 mail). Index: htdocs/gcc-5/changes.html === +C + +GDB

Re: [PATCH 2/2] Support slim LTO bootstrap

2014-08-31 Thread Andi Kleen
Andi Kleen writes: > diff --git a/config/bootstrap-lto-slim.mk b/config/bootstrap-lto-slim.mk > new file mode 100644 > index 000..9e065e1 > --- /dev/null > +++ b/config/bootstrap-lto-slim.mk This file was not supposed to be included anymore. I removed it in my version. Instead the existing bo

Re: [ARM Documentation] Clarify -mcpu, -mtune, -march

2014-08-31 Thread Gerald Pfeifer
On Wed, 5 Feb 2014, James Greenhalgh wrote: > As far as I know the behaviour of this flag has always been this way. > So is this also OK to backport to release branches? 2014-02-05 James Greenhalgh PR target/59718 * doc/invoke.texi (-march=): Clarify documentation for ARM.

Re: [PATCH][1-3] New configure options that make the compiler use -fPIE and -pie as default option

2014-08-31 Thread Gerald Pfeifer
On Fri, 1 Aug 2014, Rainer Orth wrote: > +NOTE: With configure --enable-default-pie this option is enabled by default > > With the @option{--enable-default-pie} configure option, ... And just "Note: " or perhaps "@emph{Note}:" as in many other cases. Gerald

[wwwdocs] Patch for Re: _contribute.html_: missing information regarding feedback procedure

2014-08-31 Thread Gerald Pfeifer
On Fri, 10 May 2013, Jonathan Wakely wrote: >> At the very bottom of the above page (http://gcc.gnu.org/contribute.html), >> there is no indication of GCC only accepting *plain text* messages. > That would belong on http://gcc.gnu.org/lists.html but it could be > improved, as it only says "Please r

C++ PATCH for c++/62302 (wrong comdat group)

2014-08-31 Thread Jason Merrill
Honza's earlier change to the assert at the end of cdtor_comdat_group was wrong; we really do need to make sure that we've created the '5' group that we want. This is complicated by the change to alias creation that automatically copies DECL_COMDAT_GROUP over, but since comdat groups are copie

Re: [wwwdocs] Add "Porting to GCC 4.9" document

2014-08-31 Thread Gerald Pfeifer
On Tue, 4 Mar 2014, Jonathan Wakely wrote: I've added an initial "Porting to GCC 4.9" page at http://gcc.gnu.org/gcc-4.9/porting_to.html Very nice! Thank you for doing this. What do you think about the following patch with minor changes? The only material one (apart from making the URL relat

Re: [wwwdocs] Add "Porting to GCC 4.9" document

2014-08-31 Thread Jonathan Wakely
On 31/08/14 21:23 +0200, Gerald Pfeifer wrote: On Tue, 4 Mar 2014, Jonathan Wakely wrote: I've added an initial "Porting to GCC 4.9" page at http://gcc.gnu.org/gcc-4.9/porting_to.html Very nice! Thank you for doing this. What do you think about the following patch with minor changes? The on

[wwwdocs, committed] gcc-5/changes.html: Update Fortran section

2014-08-31 Thread Tobias Burnus
Dear all, I have committed the attached patch. Comment and suggestions are welcome! See also: https://gcc.gnu.org/gcc-5/changes.html#fortran Tobias Index: changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-5/changes.html,v retr

Re: [PATCH] doc/generic.texi: Fix typo

2014-08-31 Thread Gerald Pfeifer
On Fri, 29 Aug 2014, Mike Stump wrote: > These errors are on purpose. > >> -There are many places in which this document is incomplet and incorrekt. >> +There are many places in which this document is incomplete or incorrect. Since this now came up for the second time this year, I went ahead and

Re: [PATCH] 2014-08-29 Honggyu Kim

2014-08-31 Thread Gerald Pfeifer
On Fri, 29 Aug 2014, Marek Polacek wrote: >> -There are many places in which this document is incomplet and incorrekt. >> +There are many places in which this document is incomplete or incorrect. > I believe these typos are intentional. That is my understanding as well, so I added a comment to tha

Re: fix typo in doc/generic.texi

2014-08-31 Thread Gerald Pfeifer
On Tue, 11 Feb 2014, Marek Polacek wrote: > On Wed, Feb 12, 2014 at 12:00:30AM +0530, Prathamesh Kulkarni wrote: >> * (generic.texi): Fix typo >> >> Index: generic.texi >> === >> --- generic.texi(revision 207627) >> +++ generic.te

[RFC/PATCH] Fix-it hints

2014-08-31 Thread Manuel López-Ibáñez
This patch implements fix-it hints. See https://gcc.gnu.org/PR62314 When the caret line is active (which is the default), this adds an additional source-line indicating how to fix the code: gcc/testsuite/g++.dg/template/crash83.C:5:21: error: an explicit specialization must be preceded by 'templa

Re: [PATCH] doc/generic.texi: Fix typo

2014-08-31 Thread Robert Dewar
On 8/31/2014 4:49 PM, Gerald Pfeifer wrote: On Fri, 29 Aug 2014, Mike Stump wrote: These errors are on purpose. Surprising that someone would not get this obvious clever joke. -There are many places in which this document is incomplet and incorrekt. +There are many places in which this docu

Re: [PATCH, Fortran] -fno-automatic with -finit-local prevents initialization of automatics in recursive functions

2014-08-31 Thread Tobias Burnus
Fritz Reese wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62309 It seems with gcc-4.8.3 -fno-automatic prevents initializers from being applied to automatic variables. [...] According to gfortran's manual page, -fno-automatic should "Treat each program unit (except those marked as RECURS

Re: [PATCH, Fortran] -fno-automatic with -finit-local prevents initialization of automatics in recursive functions

2014-08-31 Thread Steve Kargl
On Mon, Sep 01, 2014 at 12:28:39AM +0200, Tobias Burnus wrote: > Fritz Reese wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62309 > > > > It seems with gcc-4.8.3 -fno-automatic prevents initializers from > > being applied to automatic variables. > [...] > > According to gfortran's manual p

[BUILDROBOT][PATCH] mcore-elf: Fix bad declaration

2014-08-31 Thread Jan-Benedict Glaw
Hi! This patch fixes a non-matching declaration, which lets G++ 4.8.1 (as of Debian's g++ package) barf: g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -

RE: [PATCH] doc/generic.texi: Fix typo

2014-08-31 Thread Honggyu Kim
On 9/1/2014 7:11 AM, Robert Dewar wrote: > Seems a shame that anyone should need an explanation, but oh well :-) Sorry about that. I should have thought about it twice :) > P.S. my favorite instance of this kind of documentation is an early IBM > Fortran manual, which says that you should put exa

RE: [PATCH] doc/generic.texi: Fix typo

2014-08-31 Thread Honggyu Kim
On 9/1/2014 5:50 AM, Gerald Pfeifer wrote: > Since this now came up for the second time this year, I went ahead and > applied the patch below. Thanks for the comment :) Honggyu

[PATCH] Add header guard to several header files.

2014-08-31 Thread Kito Cheng
Hi all: This patch is add header guard to several header files :) From 1647c5d3ee3a7e086f57863b2503d11c1a699f00 Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Fri, 22 Aug 2014 17:34:49 +0800 Subject: [PATCH] Add header guard to several header files. 2014-09-01 Kito Cheng except.h: Fix hea

Re: [PATCH] GCC/test: Don't try ARM cortex-M check on non-ARM

2014-08-31 Thread Mike Stump
On Aug 29, 2014, at 5:04 PM, Maciej W. Rozycki wrote: > Executing on host: powerpc-linux-gnu-gcc arm_cortex_m25641.c > -fno-diagnostics-show-caret -fdiagnostics-color=never -mthumb -S -o > arm_cortex_m25641.s(timeout = 300) > OK to apply? Ok.

Re: [PATCH] Add header guard to several header files.

2014-08-31 Thread Kito Cheng
Oops, ChangeLog here: ChangeLog 2014-09-01 Kito Cheng except.h: Fix header guard. addresses.h: Add missing header guard. cfghooks.h: Likewise. collect-utils.h: Likewise. collect2-aix.h: Likewise. conditions.h: Likewise. cselib.h: Likewise. dwarf2asm.h: Likewise.

[PATCH] Add missing size directive for arm-*-elf

2014-08-31 Thread Kito Cheng
Hi all: In arm-*-elf target some variable will missing size directive, for example: foo.c: void foo (void) { static char bufbuf[8]; } $ arm-none-eabi-gcc ./foo.c -S -o - ... .align 2 bufbuf.4078: .space 8 ... .ident "GCC: (GNU) 5.0.0 20140828 (experimental)" And then the size info will m

Re: [PATCH PR62151]Fix uninitialized register issue caused by distribute_notes in combine pass

2014-08-31 Thread Bin.Cheng
On Sun, Aug 31, 2014 at 8:18 PM, Segher Boessenkool wrote: > On Fri, Aug 29, 2014 at 11:58:37PM -0600, Jeff Law wrote: >> One could argue that this mess is a result of trying to optimize a reg >> that is set more than once.Though I guess that might be a bit of a >> big hammer. > > It works fin

Re: [PATCH PR62151]Fix uninitialized register issue caused by distribute_notes in combine pass

2014-08-31 Thread Bin.Cheng
On Sat, Aug 30, 2014 at 1:58 PM, Jeff Law wrote: > On 08/27/14 23:04, Bin.Cheng wrote: >> >> On Wed, Aug 27, 2014 at 6:34 PM, Richard Earnshaw >> wrote: >>> >>> On 27/08/14 11:08, Bin Cheng wrote: Hi As reported in bug pr62151, combine pass may wrongly delete necessary instruc

Re: [PATCH] SPARC: add mcpu=leon3v7 target

2014-08-31 Thread Sebastian Huber
Hello, what is the status for this patch? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachri

RE: [PATCH][ARM] Fix -fcall-saved-rX for X > 7 with -Os -mthumb

2014-08-31 Thread Thomas Preud'homme
Ping? > > -Original Message- > > From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- > > ow...@gcc.gnu.org] On Behalf Of Thomas Preud'homme > > Sent: Wednesday, August 20, 2014 9:28 AM > > To: gcc-patches@gcc.gnu.org > > Subject: [PATCH][ARM] Fix -fcall-saved-rX for X > 7 > > > > Thi