[PATCH] Fix and improve tail recursion with pointer types (PR tree-optimization/58209)

2013-08-23 Thread Jakub Jelinek
Hi! The tail recursion optimization hasn't been adjusted for POINTER_PLUS_EXPR introduction, so we can try to produce PLUS_EXPR with 2 pointer operands or not optimize testcases we could with preexisting POINTER_PLUS_EXPR. The following patch attempts to fix that. The last two hunks teach it to

[PATCH] Fix .lbss handling on x86-64 (PR target/58218)

2013-08-23 Thread Jakub Jelinek
Hi! On the following testcase we generate .section.lbss,"aw",@progbits which causes assembler warning, it is supposed to be .section.lbss,"aw",@nobits instead. The following patch fixes that. I went through all of default_section_type_flags and looked for which sections the defau

RE: [PING][PATCH ARM]Extend thumb1_reorg to save more comparison instructions

2013-08-23 Thread bin.cheng
Ping^2 Thanks. bin -Original Message- From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-ow...@gcc.gnu.org] On Behalf Of bin.cheng Sent: Thursday, August 08, 2013 4:51 PM To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [PING][PATCH ARM]Extend thumb1_reorg to save more compa

Re: [PATCH] Fix and improve tail recursion with pointer types (PR tree-optimization/58209)

2013-08-23 Thread Richard Biener
Jakub Jelinek wrote: >Hi! > >The tail recursion optimization hasn't been adjusted for >POINTER_PLUS_EXPR >introduction, so we can try to produce PLUS_EXPR with 2 pointer >operands or >not optimize testcases we could with preexisting POINTER_PLUS_EXPR. > >The following patch attempts to fix that.

Re: RFA: AVR: Support building AVR Linux targets

2013-08-23 Thread nick clifton
Hi Joseph, Your patch itself makes sense on general principles, but the concept of an AVR Linux target doesn't - this is an 8-bit processor Really, the bug you've found is that there's an avr-*-* case that is too general, matching nonsensical targets such as AVR Linux rather than just avr-*-

Re: [PATCH i386 1/8] [AVX512] Adjust register classes.

2013-08-23 Thread Kirill Yukhin
Hello, On 22 Aug 12:06, Richard Henderson wrote: > Ok. I've updated ChangeLog (thanks, HJ!) and checked in to main trunk: http://gcc.gnu.org/ml/gcc-cvs/2013-08/msg00545.html -- Thanks, K

[Patch 2/2] Localization problem in regex

2013-08-23 Thread Tim Shen
Inspired by this mail: http://gcc.gnu.org/ml/libstdc++/2013-08/msg00131.html Thanks! -- Tim Shen regex-locale.patch Description: Binary data

Re: [PATCH] Rerun df_analyze after delete_unmarked_insns during DCE

2013-08-23 Thread Eric Botcazou
> It was also on the mailing list too. If I'd had the reference to 57940, > I wouldn't have approved the patch given your comment from July 20. Understood. I missed the message on the list and remembered only the PR. -- Eric Botcazou

Re: [PATCH] Fix .lbss handling on x86-64 (PR target/58218)

2013-08-23 Thread Uros Bizjak
On Fri, Aug 23, 2013 at 9:08 AM, Jakub Jelinek wrote: > On the following testcase we generate > .section.lbss,"aw",@progbits > which causes assembler warning, it is supposed to be > .section.lbss,"aw",@nobits > instead. The following patch fixes that. I went through all of > def

Re: Fix buffer overflow in ipa_profile

2013-08-23 Thread Florian Weimer
On 08/21/2013 04:30 PM, Jan Hubicka wrote: Index: ipa.c === --- ipa.c (revision 201890) +++ ipa.c (working copy) @@ -1397,7 +1397,7 @@ ipa_profile_read_summary (void) static unsigned int ipa_profile (void) { - stru

Re: [Patch 1/2] Rewrite regex scanner

2013-08-23 Thread Jonathan Wakely
On 23 August 2013 10:15, Tim Shen wrote: > These two patches are not logically relative, but the next patch is > based on this one. > > This patch of the regex scanner(or lexer) supports all styles > specified by N3376. It shall build an abstract layer of regex token > sequence, so that, ideally,

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Jonathan Wakely
On 23 August 2013 10:17, Tim Shen wrote: > Inspired by this mail: http://gcc.gnu.org/ml/libstdc++/2013-08/msg00131.html This is OK too, thanks for the quick fix to the locale issue!

Re: [go-nuts] Re: libtool update for powerpc64le-linux

2013-08-23 Thread Alan Modra
On Thu, Aug 22, 2013 at 06:09:40PM -0700, Ian Lance Taylor wrote: > On Thu, Aug 22, 2013 at 5:35 PM, Alan Modra wrote: > > On Fri, Aug 16, 2013 at 06:18:05PM +0930, Alan Modra wrote: > >> I'd like to apply the following patch to the gcc repository (well, > >> excluding the libgo part which I'm hop

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Paolo Carlini
Hi, On 08/23/2013 11:17 AM, Tim Shen wrote: 2013-08-23 Tim Shen * include/bits/regex.h: Fix callers. * include/bits/regex_compiler.h: Store _Traits reference. * include/bits/regex_executor.h: Add _Traits member for _DFSExecutor. * include/bits/regex_exe

Clean up pretty printers [11/n]

2013-08-23 Thread Gabriel Dos Reis
This patchlet is an easy low hanging fruit in the pile of local patches I have. It turns old style emulation of inline functions into real inline functions. Tested on x86_64-suse-linux. Applied to mainline. -- Gaby 2013-08-23 Gabriel Dos Reis * pretty-print.h (pp_newline_and_flus

[ubsan] Fix bootstrap comparison

2013-08-23 Thread Marek Polacek
This patch fixes bootstrap comparison when doing bootstrap with -fsanitize=undefined enabled. We need to hash the UID of the type and also I had to switch two statements; we need to get TYPE_MAIN_VARIANT of the type first... Hence, no more bootstrap comparison failures. Woohoo! Tested x86_64-lin

Re: [ubsan] Fix bootstrap comparison

2013-08-23 Thread Jakub Jelinek
On Fri, Aug 23, 2013 at 02:37:56PM +0200, Marek Polacek wrote: > This patch fixes bootstrap comparison when doing bootstrap > with -fsanitize=undefined enabled. We need to hash the UID of the > type and also I had to switch two statements; we need to get > TYPE_MAIN_VARIANT of the type first... >

Re: GDB hooks for debugging GCC

2013-08-23 Thread Martin Jambor
Hi, On Fri, Aug 02, 2013 at 09:48:43PM -0400, David Malcolm wrote: > GDB 7.0 onwards supports hooks written in Python to improve the > quality-of-life within the debugger. The best known are the > pretty-printing hooks [1], which we already use within libstdc++ for > printing better representatio

Re: [ubsan] Fix bootstrap comparison

2013-08-23 Thread Marek Polacek
On Fri, Aug 23, 2013 at 02:44:49PM +0200, Jakub Jelinek wrote: > Why not just return TYPE_UID (data->type); ? Wasn't aware it's enough. > Anyway, once you change the hash table uses into pointer_map, this will > all go away. Right. Marek

[C++ RFC / Patch] Another recursive template instantiation issue (c++/51488, etc)

2013-08-23 Thread Paolo Carlini
Hi, besides the issue discussed a bit some time ago, we have got in Bugzilla a number of other issues, all essentially dups of each other (modulo irrelevant details, AFAICS) c++/51488 c++/53618 c++/58059 c++/56163 (this is two bugs, the second one is dup of c++/55843) In thes

[PING 3] [Patch RX] Add assembler option "-mcu" for generating assembler

2013-08-23 Thread Sandeep Kumar Singh
Hi, Please find the patch to add assembler option "-mcu" for generating assembler error messages when target not supporting hardware FPU were seeing FPU code, namely RX100 and RX200. KPIT has recently submitted a patch to add warnings of RX variants that do not have hardware FPU support, http://w

Re: [PATCH] Fix PR57451 (Incorrect debug ranges emitted for -freorder-blocks-and-partition -g)

2013-08-23 Thread Teresa Johnson
Hi Steve and Kaz, Sorry about that. Kaz has a fix shown in rtl-optimization/58220: --- ORIG/trunk/gcc/final.c 2013-08-22 09:43:35.0 +0900 +++ trunk/gcc/final.c 2013-08-22 14:36:51.0 +0900 @@ -1650,7 +1650,7 @@ reemit_insn_block_notes (void) rtx insn, note; insn = get_insns

Re: [C++ patch] Move FINAL flag to middle-end trees.

2013-08-23 Thread Jason Merrill
On 08/22/2013 12:05 PM, Paolo Carlini wrote: Sorry if I'm saying something rather vague: I suppose you mean BINFO_FLAG_6? Because it's the last one. No, that's a language-specific flag. Jason

Re: [C++ patch] Move FINAL flag to middle-end trees.

2013-08-23 Thread Jason Merrill
On 08/22/2013 11:22 AM, Jan Hubicka wrote: This option did not occured to me and of course I would be bit fearing of C++ FE not having binfos ready all the time it wants to touch the type. But probably you know if that can happen ;) Classes (including struct and union) always have binfos. Jas

Re: [C++ patch] Move FINAL flag to middle-end trees.

2013-08-23 Thread Jan Hubicka
> On 08/22/2013 11:22 AM, Jan Hubicka wrote: > >This option did not occured to me and of course I would be bit fearing of > >C++ FE > >not having binfos ready all the time it wants to touch the type. But > >probably > >you know if that can happen ;) > > Classes (including struct and union) alwa

Re: [C++ patch] Move FINAL flag to middle-end trees.

2013-08-23 Thread Paolo Carlini
On 08/23/2013 03:47 PM, Jason Merrill wrote: On 08/22/2013 12:05 PM, Paolo Carlini wrote: Sorry if I'm saying something rather vague: I suppose you mean BINFO_FLAG_6? Because it's the last one. No, that's a language-specific flag. Ah great. Thanks! Paolo.

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Tim Shen
On Fri, Aug 23, 2013 at 6:29 PM, Paolo Carlini wrote: > Thanks a lot indeed. But: "Fix callers" of *what*?!? And from *where*? To be > really honest this kind of ChangeLog entry doesn't make much sense. Please > get used to list the specific functions you are changing. It's important. I see. Act

Re: [Patch 1/2] Rewrite regex scanner

2013-08-23 Thread Tim Shen
On Fri, Aug 23, 2013 at 5:40 PM, Jonathan Wakely wrote: > I would rearrange the ChangeLog, to put > > * include/bits/regex_executor.tcc: Don't use reference for submatch. > > after regex_scanner.tcc, so that the files the _Scanner is moved from > come immediately before the files it is mov

RE: [PATCH] Add a new option "-ftree-bitfield-merge" (patch / doc inside)

2013-08-23 Thread Zoran Jovanovic
Hello, This is new patch version. Optimization does not use BIT_FIELD_REF any more, instead it generates new COMPONENT_REF and FIELD_DECL. Existing Bit field representative is associated with newly created field declaration. During analysis phase optimization uses bit field representatives when

Re: [C++ patch] Move FINAL flag to middle-end trees.

2013-08-23 Thread Jason Merrill
On 08/23/2013 09:57 AM, Jan Hubicka wrote: Ok, I will prepare variant using public_flag of BINFO that seeems unused. I.e. having BINFO_FINAL_P and C++ specific macro CLASSTYPE_FINAL(t) as BINFO_FINAL_P (TYPE_BINFO (t)). Sounds good. Jason

Re: [RFC] Issues with intraprocedural devirtualization

2013-08-23 Thread Jan Hubicka
> Hi, > I went through some statistics on firefox build (it is a source combining > many coding styles). > I was basically curious where we do devirtualization. The result is: > > Before inline (i.e. important devirtualization) > 624 ssa-pre devirt 0 > this is interaprocedural deviru

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Paolo Carlini
On 08/23/2013 03:59 PM, Tim Shen wrote: On Fri, Aug 23, 2013 at 6:29 PM, Paolo Carlini wrote: Thanks a lot indeed. But: "Fix callers" of *what*?!? And from *where*? To be really honest this kind of ChangeLog entry doesn't make much sense. Please get used to list the specific functions you are c

Re: [C++ patch] Move FINAL flag to middle-end trees.

2013-08-23 Thread Jan Hubicka
> On 08/23/2013 09:57 AM, Jan Hubicka wrote: > >Ok, I will prepare variant using public_flag of BINFO that seeems unused. > >I.e. having BINFO_FINAL_P and C++ specific macro > >CLASSTYPE_FINAL(t) as BINFO_FINAL_P (TYPE_BINFO (t)). > > Sounds good. Hi, this is patch I am testing. Does it look OK?

Fixed PR rtl-optimization/58220 and PR regression/58221

2013-08-23 Thread Teresa Johnson
The following patch was just committed as r201941 (pre-approved by Jakub) to fix PR rtl-optimization/58220 and PR regression/58221. Bootstrapped and tested on x86_64-unknown-linux-gnu. also confirmed that I could reproduce the problem in PR rtl-optimization/58220 and that the patch fixes it. Thanks

Re: [PATCH] Fix PR57451 (Incorrect debug ranges emitted for -freorder-blocks-and-partition -g)

2013-08-23 Thread Teresa Johnson
On Fri, Aug 23, 2013 at 6:34 AM, Teresa Johnson wrote: > Hi Steve and Kaz, > > Sorry about that. Kaz has a fix shown in rtl-optimization/58220: > > --- ORIG/trunk/gcc/final.c 2013-08-22 09:43:35.0 +0900 > +++ trunk/gcc/final.c 2013-08-22 14:36:51.0 +0900 > @@ -1650,7 +1650,7 @@ ree

Re: [C++ patch] Move FINAL flag to middle-end trees.

2013-08-23 Thread Jan Hubicka
> Hi, > this is patch I am testing. Does it look OK? > Index: cp/pt.c > === > --- cp/pt.c (revision 201910) > +++ cp/pt.c (working copy) > @@ -8730,7 +8730,8 @@ instantiate_class_template_1 (tree type) >/* Adjust visibilit

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Tim Shen
On Fri, Aug 23, 2013 at 10:26 PM, Paolo Carlini wrote: > Great. But please but the names of the functions you are changing between > round brackets. You have tons of examples everywhere. ...like this? -- Tim Shen changelog Description: Binary data

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Jonathan Wakely
On 23 August 2013 15:53, Tim Shen wrote: > On Fri, Aug 23, 2013 at 10:26 PM, Paolo Carlini > wrote: >> Great. But please but the names of the functions you are changing between >> round brackets. You have tons of examples everywhere. > > ...like this? Yes, that makes it clear what part of the fil

Re: wide-int branch now up for public comment and review

2013-08-23 Thread Richard Sandiford
Hi Kenny, This is the first time I've looked at the implementation of wide-int.h (rather than just looking at the rtl changes, which as you know I like in general), so FWIW here are some comments on wide-int.h. I expect a lot of them overlap with Richard B.'s comments. I also expect many of them

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Paolo Carlini
On 08/23/2013 04:53 PM, Tim Shen wrote: On Fri, Aug 23, 2013 at 10:26 PM, Paolo Carlini wrote: Great. But please but the names of the functions you are changing between round brackets. You have tons of examples everywhere. ...like this? The assign change is fine. But I would also put between r

Re: [RFC] Issues with intraprocedural devirtualization

2013-08-23 Thread Martin Jambor
Hi, On Mon, Aug 19, 2013 at 11:10:31AM +0200, Jan Hubicka wrote: > Hi, > here is variant of patch that drops the field walking from > gimple_extract_devirt_binfo_from_cst completely. As pointed out > by Jason, it is pointless since all structures have BINFO in C++ > and thus get_binfo_at_offset wi

Re: [PING PATCH, PR 57748] Set mode of structures with zero sized arrays to be BLK

2013-08-23 Thread Martin Jambor
Hi Jakub and/or Joseph, the reporter of this bug seems to be very anxious to have it fixed in the repository. While Richi is away, do you think you could have a look? It is very small. Thanks a lot, Martin On Fri, Aug 02, 2013 at 01:45:31PM +0200, Martin Jambor wrote: > Hi, > > while comput

Type inheritance graph analysis & speculative devirtualization, part 4a/6 simple anonymous namespace devirtualization during cgraph construction

2013-08-23 Thread Jan Hubicka
Hi, this patch makes cgraphunit.c to do very simple devirtualization when method being called is from anonymous namespace class and none of its derivations overwrite the method. I do it in cgraph build only because later we need http://gcc.gnu.org/ml/gcc-patches/2013-08/msg01007.html first so the

Re: powerpc64le multilibs and multiarch dir

2013-08-23 Thread David Edelsohn
On Thu, Aug 22, 2013 at 7:15 PM, Alan Modra wrote: > Without another tmake file it really is exactly the same as before. > > old, after applying "make" string gunk > MULTILIB_OPTIONS = m64/m32 > MULTILIB_OSDIRNAMES = ../lib64 ../lib > > new > MULTILIB_OPTIONS = m64/m32 > MULTILIB_OSDIRNAMES = m64

Re: [PING PATCH, PR 57748] Set mode of structures with zero sized arrays to be BLK

2013-08-23 Thread Jakub Jelinek
On Fri, Aug 23, 2013 at 05:11:22PM +0200, Martin Jambor wrote: > Hi Jakub and/or Joseph, > > the reporter of this bug seems to be very anxious to have it fixed in > the repository. While Richi is away, do you think you could have a > look? It is very small. Isn't this ABI incompatible change (a

Re: Type inheritance graph analysis & speculative devirtualization, part 4a/6 simple anonymous namespace devirtualization during cgraph construction

2013-08-23 Thread Graham Stott
Jan, This has broken all builds because method_type_class() is defined. Graham

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Tim Shen
On Fri, Aug 23, 2013 at 11:03 PM, Paolo Carlini wrote: > The assign change is fine. But I would also put between round brackets > (class _Compiler<>) for the _M_traits change and use something like > (_DFSExecutor<>::_DFSExecutor): Adjust. for the last change (remember that > constructors are spec

Re: Type inheritance graph analysis & speculative devirtualization, part 4a/6 simple anonymous namespace devirtualization during cgraph construction

2013-08-23 Thread Jan Hubicka
> Jan, > > This has broken all builds because method_type_class() is defined. Oops, sorry for that. I happened to make partial diff only. This patch adds the missing bit. Honza Index: ChangeLog === --- ChangeLog (revision 201943

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Jonathan Wakely
On 23 August 2013 16:48, Tim Shen wrote: > By the way, do we seariously need to keep ChangeLog in files? Is it > more like a tradition than a solution? After all, we have SVN or Git > now. I remember a mail metioned this but cannot find it >.< It's not a tradition, they are required, see http://ww

Re: [PATCH] Fix PR57451 (Incorrect debug ranges emitted for -freorder-blocks-and-partition -g)

2013-08-23 Thread Steve Ellcey
On Fri, 2013-08-23 at 07:38 -0700, Teresa Johnson wrote: > > It should be committed soon, by Kaz or myself once testing finishes. > > Please let me know if that doesn't fix your failures. > > Fix committed as r201941. Let me know if you still have issues. > > Teresa This patch fixes the problem

Re: [Patch, Fortran, OOP] PR 57843: Type-bound assignment is resolved to non-polymorphic procedure call

2013-08-23 Thread Janus Weil
2013/8/22 Mikael Morin : > Le 22/08/2013 17:41, Janus Weil a écrit : >> Hi all, >> >> here is a wrong-code fix for type-bound assignments, which makes sure >> that these are resolved to polymorphic procedure calls. This was not >> always the case, because we used the wrong ordering when checking fo

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Stefan Schweter
Am Fri, 23 Aug 2013 17:17:41 +0800 schrieb Tim Shen : > Inspired by this mail: > http://gcc.gnu.org/ml/libstdc++/2013-08/msg00131.html > > Thanks! > > Hi Tim, I applied the patch + compiled everything - it's working now! Thanks! But... I found a problem with .imbue(): int main() { s

Re: vector conditional expression with scalar arguments

2013-08-23 Thread Marc Glisse
On Sun, 4 Aug 2013, Gerald Pfeifer wrote: On Sat, 13 Jul 2013, Marc Glisse wrote: 2013-07-14 Marc Glisse gcc/cp/ * call.c (build_conditional_expr_1): Handle the case with 1 vector and 2 scalars. Call save_expr before building a vector. * typeck.c (cp_build_binary_op)

Re: msp430 port

2013-08-23 Thread DJ Delorie
so... can I get an official "ok to commit with you and Nick as maintainers" then?

Re: wide-int branch now up for public comment and review

2013-08-23 Thread Kenneth Zadeck
On 08/23/2013 11:02 AM, Richard Sandiford wrote: Hi Kenny, This is the first time I've looked at the implementation of wide-int.h (rather than just looking at the rtl changes, which as you know I like in general), so FWIW here are some comments on wide-int.h. I expect a lot of them overlap with

Re: [PATCH] Fixing improper conversion from sin() to sinf() in optimization mode.

2013-08-23 Thread Joseph S. Myers
On Tue, 20 Aug 2013, Cong Hou wrote: > When a sin() (cos(), log(), etc.) function is called on a value of > float type and the returned double value is converted to another value > of float type, GCC converts this function call into a float version > (sinf()) in the optimization mode. This avoids

Ping: RFA: fix find_valid_class to accept classes w/out last hard reg

2013-08-23 Thread Joern Rennecke
This patch has not been reviewed for more than three months: http://gcc.gnu.org/ml/gcc-patches/2013-05/msg00113.html

Go patch commited: Don't export embedded builtins

2013-08-23 Thread Ian Lance Taylor
This patch from Chris Manghane fixes a bug in the type reflection information for a struct with an anonymous field of a builtin type. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.8 branch. Ian diff -r ea33e34cb12d go/types.cc --- a/go/types.cc Thu Aug

Re: [RFC] Add conditional compare support

2013-08-23 Thread Joseph S. Myers
On Wed, 21 Aug 2013, Zhenqiang Chen wrote: > SHORT_CIRCUIT expression will be converted to CCMP expressions > at the end of front-end. That doesn't sound like the right place to me. We want the same code to be generated whether users write && and || directly or write corresponding sequences of

Re: [RFC] Add conditional compare support

2013-08-23 Thread Richard Kenner
> That doesn't sound like the right place to me. We want the same code to > be generated whether users write && and || directly or write corresponding > sequences of if conditions. In general we want to move away from > optimizing complicated expressions in fold-const, towards having GIMPLE >

Re: powerpc64le multilibs and multiarch dir

2013-08-23 Thread Joseph S. Myers
On Thu, 22 Aug 2013, Alan Modra wrote: > For multiarch, powerpc64le-linux now will use powerpc64le-linux-gnu. > Given a typical big-endian native toolchain with os dirs /lib and > /lib64, we'll use /lible and /lib64le if supporting little-endian as > well. If you happen to use /lib and /lib32, th

Re: [Patch] Fix infinite loop/crash if array initializer index equals max value

2013-08-23 Thread Joseph S. Myers
On Thu, 22 Aug 2013, Selvaraj, Senthil_Kumar wrote: > 2013-08-23 Senthil Kumar Selvaraj > * c-typeck.c (output_pending_init_elements): Handle overflow of > constructor_unfilled_index. This patch needs to add include a testcase to the testsuite that fails before and passes after th

Re: libtool update for powerpc64le-linux

2013-08-23 Thread Joseph S. Myers
On Fri, 23 Aug 2013, Alan Modra wrote: > I'd like to import upstream libtool into gcc to support powerpc64le, Has the sysroot semantics issue been resolved in upstream libtool, or do you mean "import with 3334f7ed5851ef1e96b052f2984c4acdbf39e20c reverted"? -- Joseph S. Myers jos...@codesourcer

Re: RFA: AVR: Support building AVR Linux targets

2013-08-23 Thread Joseph S. Myers
On Fri, 23 Aug 2013, nick clifton wrote: > Hi Joseph, > > Your patch itself makes sense on general principles, but the concept of an > > AVR Linux target doesn't - this is an 8-bit processor Really, the bug > > you've found is that there's an avr-*-* case that is too general, matching > > non

RE: [PATCH] Add a new option "-ftree-bitfield-merge" (patch / doc inside)

2013-08-23 Thread Joseph S. Myers
On Fri, 23 Aug 2013, Zoran Jovanovic wrote: > New test case involving unions is added. Tests for unions should include *execution* tests that the relevant bits have the right values after the sequence of assignments. -- Joseph S. Myers jos...@codesourcery.com

Re: Request to merge Undefined Behavior Sanitizer in

2013-08-23 Thread Marc Glisse
On Thu, 8 Aug 2013, Joseph S. Myers wrote: On Fri, 26 Jul 2013, Marc Glisse wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57324 (that is using llvm's sanitizer) and for a first patch (unreviewed): http://gcc.gnu.org/ml/gcc-patches/2013-06/msg01466.html (started at http://gcc.gnu.org/ml/

Re: wide-int branch now up for public comment and review

2013-08-23 Thread Mike Stump
On Aug 23, 2013, at 8:02 AM, Richard Sandiford wrote: >> /* Negate THIS. */ >> inline wide_int_ro >> wide_int_ro::operator - () const >> { >> wide_int_ro r; >> r = wide_int_ro (0) - *this; >> return r; >> } >> >> /* Negate THIS. */ >> inline wide_int_ro >> wide_int_ro::neg () const >> { >>

Clean up pretty printers [12/n]

2013-08-23 Thread Gabriel Dos Reis
The primary function of this patch is to formally make the class pretty_printer polymorphic (in the OO sense.) It has always been conceptually polymorphic -- we just didn't have linguistic support to say so in C. As a secondary change, the patch makes a systematic use of pp_buffer -- making it e

Re: [C++ patch] Set attributes for C++ runtime library calls

2013-08-23 Thread Mike Stump
On Aug 22, 2013, at 7:16 PM, Gabriel Dos Reis wrote: >>> My reasoning (for C++98, but the same is true for C++11) is based >>> on 3.8/1: >>> […] >>> The lifetime of an object of type T ends when: >>> -- if T is a class type with a non-trivial destructor (12.4), >>> the destructor call st

Re: [PATCH v3 12/18] convert the Go front end to automatic dependencies

2013-08-23 Thread Ian Lance Taylor
2013/8/20 Tom Tromey : > This converts Go. > > It renames gospec.o to go/gospec.o, for uniformity and so we can > remove an explicit rule. > > It defines go_OBJS, to conform to the documented Make-lang.in > conventions, and to ensure that Go objects are given the correct > order-only dependencies o

Re: Type inheritance graph analysis & speculative devirtualization, part 4a/6 simple anonymous namespace devirtualization during cgraph construction

2013-08-23 Thread Paolo Carlini
Hi, On 08/23/2013 05:12 PM, Jan Hubicka wrote: +/* { dg-final { scan-tree-dump-nop "A::foo" 0 "ssa"} } */ This should be scan-tree-dump-not right? Paolo.

Re: [C++ patch] Set attributes for C++ runtime library calls

2013-08-23 Thread Gabriel Dos Reis
On Fri, Aug 23, 2013 at 7:32 PM, Mike Stump wrote: > On Aug 22, 2013, at 7:16 PM, Gabriel Dos Reis > wrote: >> But even so, in light of this, I don't think you original assertion is >> definitive. > > Nothing is ever definitive. Now, if you want to say I quoted something > wrong, or that I a

Re: wide-int branch now up for public comment and review

2013-08-23 Thread Mike Stump
On Aug 23, 2013, at 8:02 AM, Richard Sandiford wrote: >> #define addr_max_bitsize (64) >> #define addr_max_precision \ > > These should either be lower-case C++ constants or upper-case macros. Fixed: diff --git a/gcc/wide-int.h b/gcc/wide-int.h index 9ccdf7c..b40962c 100644 --- a/gcc/wide-int.

Re: wide-int branch now up for public comment and review

2013-08-23 Thread Mike Stump
On Aug 23, 2013, at 8:02 AM, Richard Sandiford wrote: >> * When a constant that has an integer type is converted to a >>wide-int it comes in with precision 0. For these constants the >>top bit does accurately reflect the sign of that constant; this >>is an exception to the normal ru

Re: [C++ patch] Set attributes for C++ runtime library calls

2013-08-23 Thread Mike Stump
On Aug 23, 2013, at 5:53 PM, Gabriel Dos Reis wrote: > If you quoted the standard to back up your assertions, I would have been > able to "feel free to point this out" :-) > > The thing is I am still trying to figure out what (1) what you would have > liked; I've directly stated it, not sure h

Re: [C++ patch] Set attributes for C++ runtime library calls

2013-08-23 Thread Gabriel Dos Reis
On Fri, Aug 23, 2013 at 10:34 PM, Mike Stump wrote: > On Aug 23, 2013, at 5:53 PM, Gabriel Dos Reis > wrote: >> If you quoted the standard to back up your assertions, I would have been >> able to "feel free to point this out" :-) >> >> The thing is I am still trying to figure out what (1) what y

Trivial improvement to PRE debug dumps

2013-08-23 Thread Jeff Law
I was looking at a performance issue with some jump threading improvements when I had to dig through the PRE dumps. PRE notes when it finds fully redundant expressions, but fails to actually include fully redundant expression in a textual form in the debugging dump. ie, before my patch PRE

Re: msp430 port

2013-08-23 Thread Jeff Law
On 08/23/2013 01:52 PM, DJ Delorie wrote: so... can I get an official "ok to commit with you and Nick as maintainers" then? Just need to clear it with the steering committee, which for this sort of thing has been pretty trivial. Basically it has to pass the technical review (which y'all have

Re: [Patch 2/2] Localization problem in regex

2013-08-23 Thread Tim Shen
On Sat, Aug 24, 2013 at 1:51 AM, Stefan Schweter wrote: > Am Fri, 23 Aug 2013 17:17:41 +0800 > schrieb Tim Shen : > >> Inspired by this mail: >> http://gcc.gnu.org/ml/libstdc++/2013-08/msg00131.html >> >> Thanks! >> >> > > Hi Tim, > > I applied the patch + compiled everything - it's working now! T

Re: [C++ patch] Move FINAL flag to middle-end trees.

2013-08-23 Thread Jason Merrill
On 08/23/2013 10:51 AM, Jan Hubicka wrote: Sadly we ICE here because BINFO of type is not built yet. I tried to move the code after xref_binfos and it does seem to lead to errors while building libstdc++ PCH. Any idea what to do here? If it's causing trouble, let's just put the flag on the typ