Re: PATCH: PR bootstrap/53472: contrib/compare-debug should strip out .comment section

2012-05-24 Thread Paolo Bonzini
> 2012-05-24  H.J. Lu   > >        PR bootstrap/53472 >        * contrib/compare-debug (remove_comment): New function. >        Remove any .comment sections if the first cmp failed. Ok. Paolo > diff --git a/contrib/compare-debug b/contrib/compare-debug > index 010d17f..fb8986d 100755 > --- a/con

Re: [cxx-conversion] New Hash Table (issue6244048)

2012-05-24 Thread Jakub Jelinek
On Thu, May 24, 2012 at 09:43:42AM -0700, Lawrence Crowl wrote: > Add a type-safe hash table, typed_htab. Uses of this table replace > uses of libiberty's htab_t. The benefits include less boiler-plate > code, full type safety, and improved performance. You haven't looked at the most important p

[C++ Patch] PR 32054

2012-05-24 Thread Paolo Carlini
Hi, another simple issue, this one remained assigned to me for a while ;) Anyway, we are not rejecting storage classes for anonymous unions in class scope. Details: I'm handling anonymous structs in the same way, for consistency (but in principle being an extension we could do nothing); the e

Re: use longcall to abort from !pic trampoline setup on ppc-vxworks

2012-05-24 Thread David Edelsohn
libgcc/ * config/rs6000/vxworks/tramp.S (trampoline_setup): Use a longcall sequence in the non pic case on VxWorks. + addis 11, 0,JUMP_TARGET(abort)@ha Why do you use the addis mnemonic instead of lis mnemonic? Yes, lis X,Y is an alias for addis X,0,Y, but the simp

Re: [PATCH] Add powerpc64-linux configuration options

2012-05-24 Thread Alan Modra
On Thu, May 24, 2012 at 01:45:41PM -0400, Michael Meissner wrote: > This alternative patch just disables building the 32-bit softfloat multlib, > and > removes the -mstrict-align in the powerpc64-linux case. > > I have bootstrapped it and had no regressions. > > David, which patch do you prefer?

Re: [PATCH] Add powerpc64-linux configuration options

2012-05-24 Thread David Edelsohn
On Wed, May 23, 2012 at 6:36 PM, Michael Meissner wrote: > On powerpc64-linux systems that run on IBM servers, the 32-bit software > emulation library is not built with the Red Hat and SUSE distributions, but > the > FSF sources still list it as a multilib.  This patch adds a configuration > opti

Re: [cxx-conversion] Convert vec.[ch] to C++ [1/3] (issue6233044)

2012-05-24 Thread Lawrence Crowl
On 5/24/12, Diego Novillo wrote: > On 12-05-24 04:16 , Richard Guenther wrote: >> On May 23, 2012 Diego Novillo wrote: >>> Some client code changes were needed: >>> >>> 1- The allocation names 'heap', 'stack' and 'gc' are not embedded in >>>the type name anymore. They are enum values used as

[gimplefe] Add dejagnu support for gimple tests (issue6258047)

2012-05-24 Thread Diego Novillo
Add basic testsuite support for gimple. Running the gimple testsuite is the same as running any other testsuite. From /gcc, run: $ make check-gimple I have added a single .gimple test which is currently segfaulting the parser. This means that you will get the following output from the testsuit

Re: PATCH: PR bootstrap/53472: contrib/compare-debug should strip out .comment section

2012-05-24 Thread H.J. Lu
On Thu, May 24, 2012 at 2:43 PM, Jakub Jelinek wrote: > On Thu, May 24, 2012 at 02:32:59PM -0700, H.J. Lu wrote: >> This patch works on openSUSE 12.1.  OK to install? > > Can't you do that only if the first cmp failed? > In that case strip and cmp again... > Like this? OK to install? Thanks. -

ping x2: use longcall to abort from !pic trampoline setup on ppc-vxworks

2012-05-24 Thread Olivier Hainque
Hello, Ping #2 for http://gcc.gnu.org/ml/gcc-patches/2012-04/msg00808.html Thanks in advance, Olivier (sorry for a duplicate or empty version of this message a few minutes ago) On Apr 13, 2012, at 10:08 , Olivier Hainque wrote: > Relocation troubles (24bit reloc overflows) might show up when

ping x2: recognize .persistent.bss sections as bss

2012-05-24 Thread Olivier Hainque
Hello, Ping # 2 for http://gcc.gnu.org/ml/gcc-patches/2012-04/msg00833.html Thanks in advance, Olivier (sorry for a possible duplicate or empty version of that message a few minutes ago) On Apr 13, 2012, at 15:06 , Olivier Hainque wrote: > For several years now, Ada has support for a "Persis

Re: [cxx-conversion] New Hash Table (issue6244048)

2012-05-24 Thread Diego Novillo
On 12-05-24 17:52 , Lawrence Crowl wrote: That said, I'll let y'all decide how much to put in any one piece. I favour the approach we are taking now. Each patch to cxx-conversion is a small incremental step. When we merge into trunk we'll merge the final product of each change, of course.

ping x2 : latch mem to reg before multi-access in convert_move

2012-05-24 Thread Olivier Hainque
Hello, Ping # 2 for http://gcc.gnu.org/ml/gcc-patches/2012-04/msg00298.html Thanks in advance, Olivier (sorry for a possible empty version of that message sent by mistake a few minutes ago) On Apr 5, 2012, at 17:30 , Olivier Hainque wrote: ... > With a previous version of the compiler, we happ

Re: [cxx-conversion] New Hash Table (issue6244048)

2012-05-24 Thread Lawrence Crowl
On 5/24/12, Gabriel Dos Reis wrote: > On May 24, 2012 Lawrence Crowl wrote: > > Add a type-safe hash table, typed_htab. Uses of this table > > replace uses of libiberty's htab_t. The benefits include less > > boiler-plate code, full type safety, and improved performance. > > Lawrence, is there

Re: PATCH: PR bootstrap/53472: contrib/compare-debug should strip out .comment section

2012-05-24 Thread Jakub Jelinek
On Thu, May 24, 2012 at 02:32:59PM -0700, H.J. Lu wrote: > This patch works on openSUSE 12.1. OK to install? Can't you do that only if the first cmp failed? In that case strip and cmp again... > 2012-05-24 H.J. Lu > > PR bootstrap/53472 > * contrib/compare-debug (remove_comment):

Re: PATCH: PR bootstrap/53472: contrib/compare-debug should strip out .comment section

2012-05-24 Thread H.J. Lu
On Thu, May 24, 2012 at 9:53 AM, H.J. Lu wrote: > On Thu, May 24, 2012 at 7:43 AM, H.J. Lu wrote: >> On Thu, May 24, 2012 at 7:35 AM, Paolo Bonzini wrote: >>> Il 24/05/2012 16:01, H.J. Lu ha scritto: configure checks if contrib/compare-debug actually works for comparing a debug and non

Re: [PATCH preprocessor, diagnostics] PR preprocessor/53229 - Fix diagnostics location when pasting tokens

2012-05-24 Thread Dodji Seketeli
Dodji Seketeli writes: > Jason Merrill writes: > >> On 05/24/2012 01:41 PM, Dodji Seketeli wrote: > > [...] > >>> Another way of seeing it is to say that, from the beginning of >>> enter_macro_context, we are in a state of "about to expand a macro" >>> until we actually push the macro context.

libgo patch committed: Make runtime.Stack work

2012-05-24 Thread Ian Lance Taylor
This patch makes the function runtime.Stack actually work, rather than simply hang the program. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian Index: libgo/runtime/mprof.goc ===

Re: [google/gcc-4_6] More Fission updates (revised) (issue6219049)

2012-05-24 Thread Cary Coutant
> OK with a couple of nits I found on the second read. > >> +  if (!(pp->flags&  pp_c_flag_gnu_v3)&&  TREE_CODE (t) != POINTER_TYPE) >> +    pp_c_type_qualifier_list (pp, t); > > You can use 'code' here instead of TREE_CODE(t).  Either that, or remove the > declaration of 'code' above. > >> -  if (

Re: [libgo] Fix IRIX bootstrap failure

2012-05-24 Thread Ian Lance Taylor
Rainer Orth writes: > The current 4.7 branch fails to build on IRIX 6.5: > > /vol/gcc/src/hg/gcc-4.7-branch/local/libgo/runtime/go-caller.c:51:1: error: > conflicting types for '__go_file_line' > In file included from > /vol/gcc/src/hg/gcc-4.7-branch/local/libgo/runtime/go-caller.c:11:0: > /vol

libgo patch committed: Copy runtime_printf from other library

2012-05-24 Thread Ian Lance Taylor
This patch to libgo copies the implementation of runtime_printf from the other Go library, and use that instead of calling the C library printf function. This removes some unnecessary differences in shared files, and removes some unnecessary stack splits. However, the main reason I'm doing it is

Re: [Patch, fortran] PR 53456 More CPU timing fallbacks

2012-05-24 Thread Janne Blomqvist
On Thu, May 24, 2012 at 5:37 PM, Tobias Burnus wrote: > On 05/23/2012 10:43 PM, Janne Blomqvist wrote: >> >> the attached patch allows the use of clock_gettime() with >> CLOCK_PROCESS_CPUTIME_ID or CLOCK_THREAD_CPUTIME_ID if the target >> doesn't have getrusage() or times(). > > > It's not complet

Re: fix install-no-fixedincludes mishaps

2012-05-24 Thread Olivier Hainque
On May 24, 2012, at 6:18 PM, Ian Lance Taylor wrote: >> * Makefile.in: move dependency on install-unwind_h from >> "install-leaf" to "install". > > I don't see the final patch, but it sounds promising. :) Testing was good on my side and Paolo approved so this was checked in, rev 1878

Re: [google/gcc-4_6] More Fission updates (revised) (issue6219049)

2012-05-24 Thread Diego Novillo
On 12-05-22 21:56 , Cary Coutant wrote: [Revised to address review comments and to fix a bug we found late: We've changed want_pubnames to a static inline function, and changed the pubnames output to include (ironically enough) inline functions.] This patch is for the google/gcc-4_6 branch. Fis

Re: PING: [PATCH diagnostics] Make unwound macro expansion trace less redundant

2012-05-24 Thread Dodji Seketeli
Gabriel Dos Reis writes: > On Thu, May 24, 2012 at 11:07 AM, Dodji Seketeli wrote: >> PING: http://gcc.gnu.org/ml/gcc-patches/2012-05/msg01003.html > > Sorry, this slipped under my radar. No problem. > Patch is OK. Thank you. Applied to trunk, revision r187845. -- Dodji

Re: [PATCH preprocessor, diagnostics] PR preprocessor/53229 - Fix diagnostics location when pasting tokens

2012-05-24 Thread Dodji Seketeli
Jason Merrill writes: > On 05/24/2012 01:41 PM, Dodji Seketeli wrote: [...] >> Another way of seeing it is to say that, from the beginning of >> enter_macro_context, we are in a state of "about to expand a macro" >> until we actually push the macro context. So it seems to make sense to >> flip

Re: [PATCH preprocessor, diagnostics] PR preprocessor/53229 - Fix diagnostics location when pasting tokens

2012-05-24 Thread Jason Merrill
On 05/24/2012 01:41 PM, Dodji Seketeli wrote: Jason Merrill writes: The approach sounds good, but why do this in the push_token_context functions rather than in enter_macro_context? Because, it's not only in enter_macro_context that I'd have to put it, but also in replace_args, called from e

Re: [google] make the temp names in FDO/LIPO demanglable (issue6251048)

2012-05-24 Thread Xinliang David Li
Ok. David On Thu, May 24, 2012 at 11:38 AM, Rong Xu wrote: > Hi, > > This is for google branches only. > > It changes the format of the temp function name so that they > can be demangled. > > Tested with regression tests. > > Google ref b/5733865. > > Thanks, > > 2012-05-24   Rong Xu   > >      

[google] make the temp names in FDO/LIPO demanglable (issue6251048)

2012-05-24 Thread Rong Xu
Hi, This is for google branches only. It changes the format of the temp function name so that they can be demangled. Tested with regression tests. Google ref b/5733865. Thanks, 2012-05-24 Rong Xu * l-ipo.c (create_unique_name): Make temp names demanglable. Index: l-ipo.c ===

Re: [PATCH] Add powerpc64-linux configuration options

2012-05-24 Thread Michael Meissner
On Wed, May 23, 2012 at 10:59:10PM +, Joseph S. Myers wrote: > On Wed, 23 May 2012, Michael Meissner wrote: > > > An alternative would be for the powerpc64-linux case, should we just delete > > the > > software floating emulation multilib and stop using the -mstrict-align, > > since > > Linu

Re: [PATCH preprocessor, diagnostics] PR preprocessor/53229 - Fix diagnostics location when pasting tokens

2012-05-24 Thread Dodji Seketeli
Jason Merrill writes: > On 05/24/2012 12:03 PM, Dodji Seketeli wrote: >> + if (macro != NULL) >> +pfile->about_to_expand_macro_p = false; > > The approach sounds good, but why do this in the push_token_context > functions rather than in enter_macro_context? Because, it's not only in enter_m

Re: [PATCH] Fix PR51572

2012-05-24 Thread H.J. Lu
On Mon, Dec 19, 2011 at 3:50 AM, Richard Guenther wrote: > > This fixes another case of PR51572 - we need to properly stream > TYPE_DECLs in TYPE_FIELDS. > > LTO Boostrap and regtest running on x86_64-unknown-linux-gnu, > SPEC 2k6 build scheduled. > > Richard. > > 2011-12-19  Richard Guenther   >

Re: [PATCH v2] ARM: Use different linker path for hardfloat ABI

2012-05-24 Thread Jakub Jelinek
On Wed, May 23, 2012 at 10:17:51AM +0200, Richard Guenther wrote: > On Wed, 23 May 2012, Andreas Jaeger wrote: > > > On Wednesday, May 23, 2012 09:56:31 Richard Earnshaw wrote: > > > [...] > > > This is a behaviour change. It would need RM approval for a release > > > branch. > > > > > > R. > >

Re: [cxx-conversion] New Hash Table (issue6244048)

2012-05-24 Thread Gabriel Dos Reis
On Thu, May 24, 2012 at 11:43 AM, Lawrence Crowl wrote: > Add a type-safe hash table, typed_htab.  Uses of this table replace > uses of libiberty's htab_t.  The benefits include less boiler-plate > code, full type safety, and improved performance. Lawrence, is there any chance you could just call

Re: PATCH: PR bootstrap/53472: contrib/compare-debug should strip out .comment section

2012-05-24 Thread H.J. Lu
On Thu, May 24, 2012 at 7:43 AM, H.J. Lu wrote: > On Thu, May 24, 2012 at 7:35 AM, Paolo Bonzini wrote: >> Il 24/05/2012 16:01, H.J. Lu ha scritto: >>> configure checks if contrib/compare-debug actually works for comparing a >>> debug and non-debug .o file before enabling bootstrap-debug.  But so

Re: [PATCH][ARM] 64-bit shifts in NEON.

2012-05-24 Thread Andrew Stubbs
On 23/02/12 20:36, Andrew Stubbs wrote: On 21/02/12 15:23, Andrew Stubbs wrote: On 06/02/12 13:13, Andrew Stubbs wrote: This patch adds DImode shift support in NEON registers/instructions. The patch causes delays any lowering until the split2 pass, after the register allocator has chosen wheth

Re: [PATCH preprocessor, diagnostics] PR preprocessor/53229 - Fix diagnostics location when pasting tokens

2012-05-24 Thread Jason Merrill
On 05/24/2012 12:03 PM, Dodji Seketeli wrote: + if (macro != NULL) +pfile->about_to_expand_macro_p = false; The approach sounds good, but why do this in the push_token_context functions rather than in enter_macro_context? Jason

[RFA PATCH, i386]: Fix gcc.target/i386/pr53249.c on Sun targets

2012-05-24 Thread Uros Bizjak
Hello! Currently gcc fails to compile following test from the testsuite [1]: FAIL: gcc.target/i386/pr53249.c (test for excess errors) We are trying to compile X32 specific test, but the special pattern that was introduced to handle certain sun assembler limitation, is not prepared to handle X32.

Re: fix install-no-fixedincludes mishaps

2012-05-24 Thread Ian Lance Taylor
Olivier Hainque writes: > OK to apply ? > > libgcc/ > * Makefile.in: move dependency on install-unwind_h from > "install-leaf" to "install". I don't see the final patch, but it sounds promising. Thanks for looking at it so quickly. Ian

Re: PING: [PATCH diagnostics] Make unwound macro expansion trace less redundant

2012-05-24 Thread Gabriel Dos Reis
On Thu, May 24, 2012 at 11:07 AM, Dodji Seketeli wrote: > PING: http://gcc.gnu.org/ml/gcc-patches/2012-05/msg01003.html Sorry, this slipped under my radar. Patch is OK. -- Gaby

PING: [PATCH diagnostics] Make unwound macro expansion trace less redundant

2012-05-24 Thread Dodji Seketeli
PING: http://gcc.gnu.org/ml/gcc-patches/2012-05/msg01003.html Dodji Seketeli writes: > Hello, > > As discussed previously, the unwinder for macro expansion is quite > verbose [1]. This patch proposes to address that shortcoming. > > Consider this test case: > > $ cat -n test.c >1

Re: [PATCH preprocessor, diagnostics] PR preprocessor/53229 - Fix diagnostics location when pasting tokens

2012-05-24 Thread Dodji Seketeli
Jason Merrill writes: > On 05/22/2012 05:04 AM, Dodji Seketeli wrote: >> The problem is that cpp_get_token_1 can be called when we are at the >> beginning of a macro expansion (inside enter_macro_expansion, called >> from cpp_get_token_1), *before* context->c.macro is set. This happens >> e.g, w

Re: Symbol table 24/many: Remove old alias handling code

2012-05-24 Thread H.J. Lu
On Thu, May 24, 2012 at 2:46 AM, Jan Hubicka wrote: > Hi, > this patch removes code handling alias pairs after they was taken over by > symbol table. > It also streamlines how things are output - do_assemble_alias is called when > alias should > be output now, while assemble_alias is the functio

Re: fix install-no-fixedincludes mishaps

2012-05-24 Thread Olivier Hainque
On May 24, 2012, at 16:32 , Paolo Bonzini wrote: >> libgcc/ >> * Makefile.in (clean): Remove libgcc_tm.stamp as well. >> Use a separate command for stamp removals. > > Ok, thanks. Committed. The other one also, on the 4.7 branch as well. Thanks for for prompt feedback. And tha

Re: PATCH: PR bootstrap/53472: contrib/compare-debug should strip out .comment section

2012-05-24 Thread H.J. Lu
On Thu, May 24, 2012 at 7:35 AM, Paolo Bonzini wrote: > Il 24/05/2012 16:01, H.J. Lu ha scritto: >> configure checks if contrib/compare-debug actually works for comparing a >> debug and non-debug .o file before enabling bootstrap-debug.  But some >> compilers encode some command line options (amon

Re: [Patch, fortran] PR 53456 More CPU timing fallbacks

2012-05-24 Thread Tobias Burnus
On 05/23/2012 10:43 PM, Janne Blomqvist wrote: the attached patch allows the use of clock_gettime() with CLOCK_PROCESS_CPUTIME_ID or CLOCK_THREAD_CPUTIME_ID if the target doesn't have getrusage() or times(). It's not completely clear to me whether CLOCK_PROCESS_CPUTIME_ID or even CLOCK_THREAD_

Re: PATCH: PR bootstrap/53472: contrib/compare-debug should strip out .comment section

2012-05-24 Thread Paolo Bonzini
Il 24/05/2012 16:01, H.J. Lu ha scritto: > configure checks if contrib/compare-debug actually works for comparing a > debug and non-debug .o file before enabling bootstrap-debug. But some > compilers encode some command line options (among them -g) into a special > .comment section. This patch re

[Patch, Fortran] PR45170 - Fix deferred-length issue

2012-05-24 Thread Tobias Burnus
This patch fixes an ordering problem with deferred string lengths. For str = str2(:nn) where "nn" is a something a tad more complicated than a local variable (e.g. a non-VALUE dummy argument), the result was wrong: the temporary variable with the string length was used before it was set. T

Re: fix install-no-fixedincludes mishaps

2012-05-24 Thread Paolo Bonzini
Il 24/05/2012 16:31, Olivier Hainque ha scritto: > > On May 24, 2012, at 16:01 , Paolo Bonzini wrote: >>> (*) For this sequence to work, I had to change libgcc_tm.h into >>> libgcc_tm.stamp >>> in the list of files removed by "clean:" in libgcc/Makefile.in. > >> I think you need to remove bo

Re: fix install-no-fixedincludes mishaps

2012-05-24 Thread Olivier Hainque
On May 24, 2012, at 16:01 , Paolo Bonzini wrote: >> (*) For this sequence to work, I had to change libgcc_tm.h into >> libgcc_tm.stamp >> in the list of files removed by "clean:" in libgcc/Makefile.in. > I think you need to remove both files? Agreed. The .h is generated and needs to be rem

Re: [cxx-conversion] Convert vec.[ch] to C++ [1/3] (issue6233044)

2012-05-24 Thread Diego Novillo
I have committed these three patches as a single revision r187836 on cxx-conversion. I will address further comments to the patch in subsequent changes. Andrew, if you have some time, could you see if you can recreate that LTO aliasing failure you were describing earlier? I may change the da

Re: [PATCH, rs6000] Fix insertion of nop[s] to force dependent load into new dispatch group.

2012-05-24 Thread David Edelsohn
On Wed, May 23, 2012 at 11:48 AM, Pat Haugen wrote: > The following patch fixes existing code that tried to prevent load-hit-store > (LHS) from being in the same dispatch group. The main problem was use of the > wrong dependency list in is_costly_group(), but I also added code to verify > the memo

Re: [cxx-conversion] Convert vec.[ch] to C++ [1/3] (issue6233044)

2012-05-24 Thread Diego Novillo
On 12-05-24 04:16 , Richard Guenther wrote: On Wed, May 23, 2012 at 9:48 PM, Diego Novillo wrote: This series of 3 patches re-implement vec.[ch] in C++. The main goal of this first step is to minimize changes to client code. I tried very hard to maintain the existing API. This means that ve

Re: [cxx-conversion] Convert vec.[ch] to C++ [2/3] (issue6236043)

2012-05-24 Thread Diego Novillo
On 12-05-24 04:24 , Richard Guenther wrote: and we could manually provide specializations for selected types (well, the templates). Add a GTY((template)) marker to make gengtype not emit the specializations itself (or simply make it recognize template types and do nothing for them). Patience.

Re: [cxx-conversion] Convert vec.[ch] to C++ [1/3] (issue6233044)

2012-05-24 Thread Diego Novillo
On 12-05-24 04:20 , Andrew Pinski wrote: On Thu, May 24, 2012 at 1:16 AM, Richard Guenther wrote: I believe this was because of aliasing - you may dig in the svn history to find out what we miscompiled when not doing this and whether it is still necessary or not. Yes it was done for aliasin

Re: fix install-no-fixedincludes mishaps

2012-05-24 Thread Paolo Bonzini
Il 24/05/2012 15:32, Olivier Hainque ha scritto: > Hello Ian, > > On May 24, 2012, at 14:22 , Olivier Hainque wrote: >> libgcc/ >> * Makefile.in: move dependency on install-unwind_h from >> "install-leaf" to "install". > > Testing went fine for me. Here is what I checked: > > Fo

PATCH: PR bootstrap/53472: contrib/compare-debug should strip out .comment section

2012-05-24 Thread H.J. Lu
Hi, configure checks if contrib/compare-debug actually works for comparing a debug and non-debug .o file before enabling bootstrap-debug. But some compilers encode some command line options (among them -g) into a special .comment section. This patch removes .comment section before comparing debu

Re: [PATCH][4/n] referenced-vars TLC

2012-05-24 Thread H.J. Lu
On Thu, May 24, 2012 at 12:12 AM, Richard Guenther wrote: > On Wed, 23 May 2012, H.J. Lu wrote: > >> On Wed, May 23, 2012 at 5:00 AM, Richard Guenther wrote: >> > >> > This finally switches us to not record global vars in referenced-vars. >> > For this to work I had to re-engineer how we handle g

Re: [cxx-conversion] Convert vec.[ch] to C++ [2/3] (issue6236043)

2012-05-24 Thread Gabriel Dos Reis
On Thu, May 24, 2012 at 3:24 AM, Richard Guenther wrote: > On Wed, May 23, 2012 at 9:49 PM, Diego Novillo wrote: >> >> Part 2 of the VEC C++ conversion.  This patch implements the gengtype >> changes. >> >> I extended gengtype to understand templated types.  These changes are >> not as ugly as I

Re: [cxx-conversion] Convert vec.[ch] to C++ [1/3] (issue6233044)

2012-05-24 Thread Gabriel Dos Reis
On Thu, May 24, 2012 at 3:16 AM, Richard Guenther wrote: >> Some client code changes were needed: >> >> 1- The allocation names 'heap', 'stack' and 'gc' are not embedded in >>   the type name anymore.  They are enum values used as a template >>   argument for functions like VEC_alloc() and VEC_fr

Re: fix install-no-fixedincludes mishaps

2012-05-24 Thread Olivier Hainque
Hello Ian, On May 24, 2012, at 14:22 , Olivier Hainque wrote: > libgcc/ > * Makefile.in: move dependency on install-unwind_h from > "install-leaf" to "install". Testing went fine for me. Here is what I checked: For a pristine tree: configure --enable-languages=c --disable

Re: [cxx-conversion] Convert vec.[ch] to C++ [1/3] (issue6233044)

2012-05-24 Thread Gabriel Dos Reis
On Wed, May 23, 2012 at 2:48 PM, Diego Novillo wrote: > > This series of 3 patches re-implement vec.[ch] in C++. > this is fantastic! The changes look good to me. -- Gaby

Re: [C++ Patch] for c++/51214

2012-05-24 Thread Jason Merrill
OK, thanks. Jason

Re: [C++ Patch] PR 32080

2012-05-24 Thread Jason Merrill
OK. Jason

Re: Continue strict-volatile-bitfields fixes

2012-05-24 Thread Jakub Jelinek
On Thu, May 24, 2012 at 02:29:18PM +0200, Thomas Schwinge wrote: > Hi! > > Ping. Ok. > > > * fold-const.c (optimize_bit_field_compare): Abort early in the strict > > > volatile bitfields case. > > > > > > Index: fold-const.c > > >

[PATCH] Add testcase for PR53466

2012-05-24 Thread Richard Guenther
Committed. Richard. 2012-05-24 Richard Guenther PR bootstrap/53466 * g++.dg/debug/pr53466.C: New testcase. Index: gcc/testsuite/g++.dg/debug/pr53466.C === --- gcc/testsuite/g++.dg/debug/pr53466.C(revisio

Re: Continue strict-volatile-bitfields fixes

2012-05-24 Thread Thomas Schwinge
Hi! Ping. On Wed, 16 May 2012 19:14:45 +0200, I wrote: > Ping. > > On Wed, 09 May 2012 10:01:55 +0800, I wrote: > > On Fri, 27 Apr 2012 10:29:06 +0200, Jakub Jelinek wrote: > > > On Fri, Apr 27, 2012 at 12:42:41PM +0800, Thomas Schwinge wrote: > > > > > > GET_MODE_BITSIZE (lmode)« (8 bits).  (W

Re: fix install-no-fixedincludes mishaps

2012-05-24 Thread Olivier Hainque
On May 24, 2012, at 06:18 , Ian Lance Taylor wrote: >>(install-unwind_h): Reinstate, copy to user install destination >>for include files, not to the internal gcc object directory one. >>(install-leaf): Depend on it. > > The effect is that every time libgcc is built, unwin

[PATCH] Fix PR53406

2012-05-24 Thread Richard Guenther
This fixes PR53406, calling execute_fixup_cfg may need a subsequent cfg-cleanup run. Profiledbootstrap and regtest running on x86_64-unknown-linux-gnu. Richard. 2012-05-24 Richard Guenther PR middle-end/53460 * tree-profile.c (tree_profiling): Cleanup the CFG if exec

Re: [PATCH] Fix VRP VR_UNDEFINED handling (PR tree-optimization/53465))

2012-05-24 Thread Richard Guenther
On Thu, May 24, 2012 at 1:41 PM, Jakub Jelinek wrote: > Hi! > > As discussed in the PR and on IRC, when UNDEFINED meets some vr with > equivalences in it, we need to drop the equivalences, at least when > the equivalenced SSA_NAME definition doesn't dominate the PHI stmt. > The change in vrp_visit

[PATCH] Fix VRP VR_UNDEFINED handling (PR tree-optimization/53465))

2012-05-24 Thread Jakub Jelinek
Hi! As discussed in the PR and on IRC, when UNDEFINED meets some vr with equivalences in it, we need to drop the equivalences, at least when the equivalenced SSA_NAME definition doesn't dominate the PHI stmt. The change in vrp_visit_phi_node is needed because otherwise vrp_meet would drop the equi

Re: [patch] More thorough checking in reg_fits_class_p

2012-05-24 Thread Marcus Shawcroft
On 21/05/12 15:47, Richard Earnshaw wrote: On 17/05/12 14:23, Jim MacArthur wrote: Sorry for the delay in responding to this, I had a few problems with end_hard_regno. Here's a new version of the patch, which adds to in_hard_reg_set_p the assert and a check for the hardness of end_regno. end_ha

[PATCH][6/n] referenced-vars TLC

2012-05-24 Thread Richard Guenther
I'm bootstrapping and testing the following patch that inlines create_var_ann into its single caller and removes calls to add_referenced_vars when the var is global (which would be a no-op and in a future patch will assert). Bootstrap and regtest ongoing on x86_64-unknown-linux-gnu. Richard. 20

[C++ Patch] PR 32080

2012-05-24 Thread Paolo Carlini
Hi, the issue here is that we don't diagnose jumps into the try of a function-try-block. The reason is quite simple: from cp_parser_function_try_block we call cp_parser_ctor_initializer_opt_and_function_body which calls cp_parser_function_body, which always passes false to cp_parser_compound

[PATCH][5/n] referenced-vars TLC

2012-05-24 Thread Richard Guenther
This removes redundant calls to create_var_ann. A future patch will make this function private. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2012-05-24 Richard Guenther * varpool.c (add_new_static_var): Remove call to create_var_ann. * tree-ssa-ope

Symbol table 24/many: Remove old alias handling code

2012-05-24 Thread Jan Hubicka
Hi, this patch removes code handling alias pairs after they was taken over by symbol table. It also streamlines how things are output - do_assemble_alias is called when alias should be output now, while assemble_alias is the function registering new alias into symbol table. I think I will renam

Re: [PATCH][4/n] referenced-vars TLC

2012-05-24 Thread Richard Guenther
On Thu, 24 May 2012, Richard Guenther wrote: > On Wed, 23 May 2012, H.J. Lu wrote: > > > On Wed, May 23, 2012 at 7:25 AM, H.J. Lu wrote: > > > On Wed, May 23, 2012 at 5:00 AM, Richard Guenther > > > wrote: > > >> > > >> This finally switches us to not record global vars in referenced-vars. > >

Re: [cxx-conversion] Convert vec.[ch] to C++ [2/3] (issue6236043)

2012-05-24 Thread Richard Guenther
On Wed, May 23, 2012 at 9:49 PM, Diego Novillo wrote: > > Part 2 of the VEC C++ conversion.  This patch implements the gengtype > changes. > > I extended gengtype to understand templated types.  These changes are > not as ugly as I thought they would be.  Gengtype has some hardwired > knowledge of

Re: fix cross build

2012-05-24 Thread Richard Guenther
On Wed, May 23, 2012 at 7:58 PM, Nathan Sidwell wrote: > On 05/22/12 15:12, Richard Guenther wrote: > >> But I wonder why CONSTRUCTORs do not inherit TREE_SIDE_EFFECTS >> properly ... > > > the attached patch fixes the ICE and causes no regressions on > i686-pc-linux-gnu. > > ok? Looks ok to me.

Re: [PATCH][4/n] referenced-vars TLC

2012-05-24 Thread Richard Guenther
On Wed, 23 May 2012, H.J. Lu wrote: > On Wed, May 23, 2012 at 7:25 AM, H.J. Lu wrote: > > On Wed, May 23, 2012 at 5:00 AM, Richard Guenther wrote: > >> > >> This finally switches us to not record global vars in referenced-vars. > >> For this to work I had to re-engineer how we handle global var

Re: [PATCH][4/n] referenced-vars TLC

2012-05-24 Thread Richard Guenther
On Wed, 23 May 2012, H.J. Lu wrote: > On Wed, May 23, 2012 at 5:00 AM, Richard Guenther wrote: > > > > This finally switches us to not record global vars in referenced-vars. > > For this to work I had to re-engineer how we handle global var removal > > from local-decls in remove_unused_locals.  I