Re: section anchors and weak hidden symbols

2013-05-16 Thread Nathan Sidwell
On 05/16/13 15:32, Rainer Orth wrote: The new gcc.dg/visibility-21.c testcase fails on i386-pc-solaris2.11 and x86_64-unknown-linux-gnu: FAIL: gcc.dg/visibility-21.c (test for excess errors) Excess errors: /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/visibility-21.c:1:0: warning: this targ

Patch ping

2013-05-16 Thread Jakub Jelinek
Hi! http://gcc.gnu.org/ml/gcc-patches/2013-05/msg00282.html Reject -fsanitize=address -fsanitize=thread linking that won't ever work at runtime. Jakub

[PATCH] Fix VEC_[LR]SHIFT_EXPR folding for big-endian (PR tree-optimization/57051)

2013-05-16 Thread Jakub Jelinek
On Thu, May 16, 2013 at 07:59:00PM +0200, Mikael Pettersson wrote: > Jakub Jelinek writes: > > On Thu, Apr 25, 2013 at 11:47:02PM +0200, Jakub Jelinek wrote: > > > This patch adds folding of constant arguments v>> and v<<, which helps to > > > optimize the testcase from the PR back into constant

[Patch, Fortran] PR48858/55465 - permit multiple bind(C) declarations (but not definitions) for the same proc

2013-05-16 Thread Tobias Burnus
Followup (and depending on) to the C binding patches for * COMMON: http://gcc.gnu.org/ml/fortran/2013-05/msg00048.html * Procedures: http://gcc.gnu.org/ml/fortran/2013-05/msg00051.html which honour Fortran 2008, where the Fortran name is no longer a global identifier if a binding name has been sp

[PATCH] Pattern recognizer rotate improvement

2013-05-16 Thread Jakub Jelinek
On Wed, May 15, 2013 at 03:24:37PM +0200, Richard Biener wrote: > We have the same issue in some other places where we insert invariant > code into the loop body - one reason there is another LIM pass > after vectorization. Well, in this case it causes the shift amount to be loaded into a vector i

Re: GCC does not support *mmintrin.h with function specific opts

2013-05-16 Thread Jakub Jelinek
On Thu, May 16, 2013 at 04:00:53PM -0700, Sriraman Tallam wrote: > On Thu, May 16, 2013 at 3:55 PM, Marc Glisse wrote: > > I don't really understand why you made the change to x86intrin.h instead of > > making it inside each *mmintrin.h header. The code would be the same size, > > it would let us

RE: [PATCH, i386]: Update processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags

2013-05-16 Thread Gopalasubramanian, Ganesh
Thank you Uros for the patch. Could you backport this to the 4.8.0? -Original Message- From: Uros Bizjak [mailto:ubiz...@gmail.com] Sent: Wednesday, May 15, 2013 11:16 PM To: gcc-patches@gcc.gnu.org Cc: Gopalasubramanian, Ganesh Subject: [PATCH, i386]: Update processor_alias_table for mis

Re: [PATCH, rs6000] Increase MALLOC_ABI_ALIGNMENT for 32-bit PowerPC

2013-05-16 Thread David Edelsohn
On Thu, May 16, 2013 at 10:40 PM, Bill Schmidt wrote: > This removes two degradations in CPU2006 for 32-bit PowerPC due to lost > vectorization opportunities. Previously, GCC treated malloc'd arrays as > only guaranteeing 4-byte alignment, even though the glibc implementation > guarantees 8-byte

Fix missing dependency in Makefile.in

2013-05-16 Thread Jeff Law
I've stumbled across this a few times. tree-switch-conversion.c includes optabs.h and thus should depend on $(OPTABS_H). Installed as obvious. commit 7028127e5cdc8c8662a0850dcd3b08df10d229b3 Author: Jeff Law Date: Thu May 16 21:31:09 2013 -0600 * Makefile.in (tree-switch-conver

[patch,fortran] PR50405 - Statement function with itself as argument SEGV's

2013-05-16 Thread Bud Davis
Not to much to add beyond the title and the patch. The test file fails before (eventually, when you run out of stack) and passes after the patch is applied.  No new testsuite failures. --bud Index: gcc/gcc/fortran/resolve.c === ---

[PATCH, rs6000] Increase MALLOC_ABI_ALIGNMENT for 32-bit PowerPC

2013-05-16 Thread Bill Schmidt
This removes two degradations in CPU2006 for 32-bit PowerPC due to lost vectorization opportunities. Previously, GCC treated malloc'd arrays as only guaranteeing 4-byte alignment, even though the glibc implementation guarantees 8-byte alignment. This raises the guarantee to 8 bytes, which is suff

Re: web ICEs on subreg

2013-05-16 Thread Mike Stump
On May 16, 2013, at 5:26 PM, David Edelsohn wrote: > This patch is creating new segfaults for 32 bit POWER AIX. Was this > patch tested with PowerPC? No, x86_64. I've added a patch to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57304 If you could let us know if that fixes the problem you've

Re: [libitm,PATCH] Fix bootstrap due to __always_inline in libitm

2013-05-16 Thread Andi Kleen
On Fri, May 17, 2013 at 02:08:27AM +0200, Gerald Pfeifer wrote: > Ping. This will fix bootstrap on FreeBSD (and it seems NetBSD). > > (Paolo provided some comments, though this looks like the simplest > patch to fix the issue.) It's ok for me, but I cannot approve it. -Andi

Re: web ICEs on subreg

2013-05-16 Thread David Edelsohn
Mike, This patch is creating new segfaults for 32 bit POWER AIX. Was this patch tested with PowerPC? Program received signal SIGSEGV, Segmentation fault. 0x10a1db88 in _ZL8web_mainv () at /nasfarm/dje/src/src/gcc/web.c:138 138 if (DF_REF_REAL_LOC (*ref) == recog_data.operand_loc[op]

[C++ Patch] PR 18126

2013-05-16 Thread Paolo Carlini
Hi, in this old issue Joseph pointed out that the C++ parser doesn't accept the GNU Extension 'sizeof compound-literal' and provided indications about the way to approach it. Indeed, I found very easy to use in cp_parser_sizeof_operand the same approach adopted in cp_parser_cast_expression (m

Re: [libitm,PATCH] Fix bootstrap due to __always_inline in libitm

2013-05-16 Thread Gerald Pfeifer
Ping. This will fix bootstrap on FreeBSD (and it seems NetBSD). (Paolo provided some comments, though this looks like the simplest patch to fix the issue.) Gerald On Mon, 1 Apr 2013, Gerald Pfeifer wrote: > Andi's patch broke bootstrap on all FreeBSD platforms, which took me > a bit to realize

Re: [PATCH v2] Test case for PR55033

2013-05-16 Thread David Edelsohn
On Fri, May 10, 2013 at 11:43 PM, Chung-Ju Wu wrote: > 2013/5/10 Sebastian Huber : > v2: Format changes > > gcc/testsuite/ChangeLog > 2013-05-10 Sebastian Huber > > PR target/55033 > * gcc.target/powerpc/pr55033.c: New. The testcase is okay. Do you have CVS write access or do

Re: GCC does not support *mmintrin.h with function specific opts

2013-05-16 Thread Sriraman Tallam
On Thu, May 16, 2013 at 3:55 PM, Marc Glisse wrote: > On Thu, 16 May 2013, Sriraman Tallam wrote: > >> Hi Jakub, >> >> I have taken your proposed changes and made patch for this. Please >> let me know what you think. I have changed only the headers mmintrin.h >> and x86intrin.h as that includes

Re: GCC does not support *mmintrin.h with function specific opts

2013-05-16 Thread Marc Glisse
On Thu, 16 May 2013, Sriraman Tallam wrote: Hi Jakub, I have taken your proposed changes and made patch for this. Please let me know what you think. I have changed only the headers mmintrin.h and x86intrin.h as that includes all the other headers. I don't really understand why you made the

Re: GCC does not support *mmintrin.h with function specific opts

2013-05-16 Thread Sriraman Tallam
Hi Jakub, I have taken your proposed changes and made patch for this. Please let me know what you think. I have changed only the headers mmintrin.h and x86intrin.h as that includes all the other headers. The builtins get enabled automatically when the pragma target is specified so need to do

[PATCH, i386]: Use detect_caches_amd for other vendors

2013-05-16 Thread Uros Bizjak
Hello! According to cpuid dumps at [1], we can use detect_caches_amd for several othver vendors. 2013-05-16 Uros Bizjak * config/i386/driver-i386.c (host_detect_local_cpu): Determine cache parameters using detect_caches_amd also for CYRIX, NSC and TM2 signatures. Tested on x86_64

Re: debuggability of recog_data

2013-05-16 Thread H.J. Lu
On Thu, May 16, 2013 at 2:02 PM, Richard Sandiford wrote: > Steven Bosscher writes: >> On Wed, May 15, 2013 at 12:14 AM, Mike Stump wrote: >>> I don't what to bike shed. So, I'm happy if the next poor soul that >>> touches it just does so. If people like recog_data_info, I'd be happy >>> to cha

Re: debuggability of recog_data

2013-05-16 Thread Richard Sandiford
Steven Bosscher writes: > On Wed, May 15, 2013 at 12:14 AM, Mike Stump wrote: >> I don't what to bike shed. So, I'm happy if the next poor soul that >> touches it just does so. If people like recog_data_info, I'd be happy >> to change it to that. Let's give then peanut gallery a day to vote on

Re: [PATCH] Don't invalidate string length cache when not needed

2013-05-16 Thread Jakub Jelinek
On Thu, May 16, 2013 at 06:44:03PM +0200, Marek Polacek wrote: > --- gcc/tree-ssa-strlen.c.mp 2013-05-15 14:11:20.079707492 +0200 > +++ gcc/tree-ssa-strlen.c 2013-05-16 17:57:33.963150006 +0200 > @@ -1693,8 +1693,10 @@ handle_char_store (gimple_stmt_iterator > } > els

[PATCH, i386]: Handle VIA/Centaur processors with -march=native

2013-05-16 Thread Uros Bizjak
Hello! Attached patch introduces handling of VIA/Centaur processors with -march=native compile directive. Comparing to original patch in PR45359, attached patch handles detection of "unknown" processors via default detection procedure. I also choose to use generic tuning for all detected processo

Re: [C++] Don't build NE_EXPR manually

2013-05-16 Thread Jason Merrill
OK. Jason

Re: cfgexpand.c patch for [was new port: msp430-elf]

2013-05-16 Thread Joseph S. Myers
On Thu, 16 May 2013, DJ Delorie wrote: > SIZE_TYPE is compared - with individual strcmp's! - against a fixed > set of C types, instead of using some sort of table lookup to support > non-power-of-two types. Joern had a patch (as of December 2010, possibly updated since then) to convert at least

[c++-concepts] merge from trunk

2013-05-16 Thread Gabriel Dos Reis
Trunk was merged into c++-concepts branch at revision 198984. -- Gaby

Re: [PATCH] Fold VEC_[LR]SHIFT_EXPR (PR tree-optimization/57051)

2013-05-16 Thread Mikael Pettersson
Jakub Jelinek writes: > On Thu, Apr 25, 2013 at 11:47:02PM +0200, Jakub Jelinek wrote: > > This patch adds folding of constant arguments v>> and v<<, which helps to > > optimize the testcase from the PR back into constant store after vectorized > > loop is unrolled. > > As this fixes a regre

Re: [PATCH] Refactor rtl_verify_flow_info and rtl_verify_flow_info_1

2013-05-16 Thread Jeff Law
On 05/15/2013 10:55 PM, Teresa Johnson wrote: This patch refactors rtl_verify_flow_info_1 and rtl_verify_flow_info by outlining the verification code into several different routines. rtl_verify_flow_info_1 in particular was getting very large. For the most part the functionality is exactly the s

Re: [PATCH] New switch optimization pass (PR tree-optimization/54742)

2013-05-16 Thread Jeff Law
On 05/16/2013 11:10 AM, Steve Ellcey wrote: On Thu, 2013-05-16 at 10:58 +0200, Richard Biener wrote: Hmm, not terribly happy with that wording, but that gives you an idea of what I'm after. When would someone set UPDATE_DOMINANCE to true and what are their responsibilities when they do so. A

Re: [patch] Small emit-rtl.c / reorg.c cleanup

2013-05-16 Thread Steven Bosscher
On Thu, May 16, 2013 at 1:55 PM, Rainer Orth wrote: > Steven Bosscher writes: > > Unfortunately, this patch broke SPARC bootstrap since it lost the > HAVE_cc0 guard around link_cc0_insns: Oops... I followed Bernhard's suggestion and made those two moved functions static in reorg.c just before com

Re: cfgexpand.c patch for [was new port: msp430-elf]

2013-05-16 Thread DJ Delorie
> I thought it was the other way round - that after Bernd's fixes (July > 2011) towards support for 40-bit integers, FRACTIONAL_INT_MODE worked > better than PARTIAL_INT_MODE. Probably most accurate to say that both ways are not well supported. In general, I always have a hard time with anythin

Re: [PATCH] New switch optimization pass (PR tree-optimization/54742)

2013-05-16 Thread Steve Ellcey
On Thu, 2013-05-16 at 10:58 +0200, Richard Biener wrote: > > > > Hmm, not terribly happy with that wording, but that gives you an idea of > > what I'm after. When would someone set UPDATE_DOMINANCE to true and what > > are their responsibilities when they do so. > > > > Approved with the name cha

[C++ testcase, committed] PR 17410

2013-05-16 Thread Paolo Carlini
Hi, testcase committed to mainline, I'm closing the PR as fixed. Thanks, Paolo. 2013-05-16 Paolo Carlini PR c++/17410 * g++.dg/template/pr17410.C: New. Index: g++.dg/template/pr17410.C === -

Re: cfgexpand.c patch for [was new port: msp430-elf]

2013-05-16 Thread Joseph S. Myers
On Thu, 16 May 2013, DJ Delorie wrote: > > What's the blocker to convert the existing 5 cases of > > PARTIAL_INT_MODE use to specify a precision? > > In general? For me, PARTIAL_INT_MODE() works, FRACTIONAL_INT_MODE() > didn't. I thought it was the other way round - that after Bernd's fixes (Ju

Re: [PATCH] Don't invalidate string length cache when not needed

2013-05-16 Thread Marek Polacek
On Thu, May 16, 2013 at 04:28:19PM +0200, Jakub Jelinek wrote: > On Thu, May 16, 2013 at 04:18:27PM +0200, Jakub Jelinek wrote: > > As q could point to p, if we didn't do what your patch does on the p[0] = > > 'X'; > > store, then we'd need to invalidate the recorded length of the q string. > > Si

Re: cfgexpand.c patch for [was new port: msp430-elf]

2013-05-16 Thread DJ Delorie
> What's the blocker to convert the existing 5 cases of > PARTIAL_INT_MODE use to specify a precision? In general? For me, PARTIAL_INT_MODE() works, FRACTIONAL_INT_MODE() didn't.

Re: cfgexpand.c patch for [was new port: msp430-elf]

2013-05-16 Thread DJ Delorie
> Interestingly we have exactly that for AVR: > > config/avr/avr-modes.def:FRACTIONAL_INT_MODE (PSI, 24, 3); I know. I tried copying them, it didn't work for me.

Re: RFA: RL78: Add support for naked function attribute.

2013-05-16 Thread DJ Delorie
This one is OK. > 2013-05-16 Nick Clifton > > * config/rl78/rl78.c (rl78_attribute_table): Add naked. > (rl78_is_naked_func): New function. > (rl78_expand_prologue): Skip prologue generation for naked > functions. > (rl78_expand_epilogue): Skip epilogue g

Re: [PATCH] Pattern recognizer for rotates

2013-05-16 Thread Jakub Jelinek
On Wed, May 15, 2013 at 03:24:37PM +0200, Richard Biener wrote: > Ok with ... > > + /* Pattern detected. */ > > + if (dump_enabled_p ()) > > +dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location, > > +"vect_recog_rotate_pattern: detected: "); > > Please use MSG_NOTE here

[PATCH] Fix extendsidi2_1 splitting (PR rtl-optimization/57281, PR rtl-optimization/57300 wrong-code)

2013-05-16 Thread Jakub Jelinek
Hi! As discussed in the PR, there seem to be only 3 define_split patterns that use dead_or_set_p, one in i386.md and two in s390.md, but unfortunately insn splitting is done in many passes (combine, split{1,2,3,4,5}, dbr, pro_and_epilogue, final, sometimes mach) and only in combine the note proble

[C++ Patch] PR 17314

2013-05-16 Thread Paolo Carlini
Hi, as agreed, I regtested on x86_64-linux the below diagnostic tweak. Thanks, Paolo. // /cp 2013-05-16 Paolo Carlini PR c++/17314 * call.c (enforce_access): Improve protected access error message. /testsuite 2013-05-16 Paolo Carlini PR c

RFA: RL78: Add support for naked function attribute.

2013-05-16 Thread Nick Clifton
Hi DJ, OK, I am abandoning my RL78 interrupt prologue patch for now. There are just too many complications to make it work. Instead here is a much simpler patch to add support for a naked function attribute. OK to apply ? Cheers Nick gcc/ChangeLog 2013-05-16 Nick Clifton

Re: [fixincludes] solaris_pow_int_overload should use __cplusplus

2013-05-16 Thread Bruce Korb
On 05/16/13 06:41, Rainer Orth wrote: Work is going on to incorporate all applicable fixincludes fixes into the Solaris headers proper. One fix is currently problematic since it uses an G++-internal macro (__GXX_EXPERIMENTAL_CXX0X__) where libstdc++ already switched to testing __cplusplus. The

Re: [PATCH] Refactor rtl_verify_flow_info and rtl_verify_flow_info_1

2013-05-16 Thread Steven Bosscher
On Thu, May 16, 2013 at 6:55 AM, Teresa Johnson wrote: > > * cfgrtl.c (verify_hot_cold_block_grouping): Return err. > (rtl_verify_edges): New function. > (rtl_verify_bb_insns): Ditto. > (rtl_verify_bb_pointers): Ditto. > (rtl_verify_bb_insn_chain): Ditto. >

[C++] Don't build NE_EXPR manually

2013-05-16 Thread Marc Glisse
Hello, this is a minor patch, instead of manually building a NE_EXPR, it seems better to call the front-end function whose job it is. Incidentally, it means one expression is folded a little bit more, so I am re-enabling a test that I commented out this morning. Bootstrap+testsuite on x86_64

C++ PATCH for c++/57279 (function qualifiers in alias-declaration)

2013-05-16 Thread Jason Merrill
In C++11 we also need to allow function qualifiers in alias-declarations, since they are equivalent to typedefs. There doesn't seem to be any good reason for giving an error in grokdeclarator at all, since we need to complain about uses of qualified function types via typedef or template param

[Patch ARM] Fix arm-none-eabi builds.

2013-05-16 Thread Ramana Radhakrishnan
My patch for PR19599 yesterday had a problem with arm-none-eabi builds. I had missed a null pointer check of decl in an AAPCS only configuration. Now applied as obvious. regards Ramana 2013-05-16 Ramana Radhakrishnan PR target/19599 * config/arm/arm.c (arm_function_ok_for_

Re: [fixincludes] solaris_pow_int_overload should use __cplusplus

2013-05-16 Thread Gabriel Dos Reis
On Thu, May 16, 2013 at 8:41 AM, Rainer Orth wrote: > Work is going on to incorporate all applicable fixincludes fixes into > the Solaris headers proper. One fix is currently problematic since it > uses an G++-internal macro (__GXX_EXPERIMENTAL_CXX0X__) where libstdc++ > already switched to test

Re: section anchors and weak hidden symbols

2013-05-16 Thread Rainer Orth
Nathan Sidwell writes: > This patch fixes a problem with section anchors. Found on powerpc, but > also appears on MIPS and ARM targets. > > Section anchors can only be used for definitions known to bind in the > current object file. The default predicate uses the bind_local_p hook to > determin

Re: [PATCH] Don't invalidate string length cache when not needed

2013-05-16 Thread Jakub Jelinek
On Thu, May 16, 2013 at 04:18:27PM +0200, Jakub Jelinek wrote: > As q could point to p, if we didn't do what your patch does on the p[0] = 'X'; > store, then we'd need to invalidate the recorded length of the q string. > Similarly if there is p[0] = '\0' or p[0] = var. Ah, another thing while we a

Re: [PATCH] Don't invalidate string length cache when not needed

2013-05-16 Thread Jakub Jelinek
On Thu, May 16, 2013 at 04:07:44PM +0200, Marek Polacek wrote: > --- gcc/tree-ssa-strlen.c.mp 2013-05-15 14:11:20.079707492 +0200 > +++ gcc/tree-ssa-strlen.c 2013-05-16 16:03:50.373504796 +0200 > @@ -1717,6 +1717,27 @@ handle_char_store (gimple_stmt_iterator > si->endptr = ssaname; >

Re: [PATCH] Don't invalidate string length cache when not needed

2013-05-16 Thread Marek Polacek
On Thu, May 16, 2013 at 03:38:47PM +0200, Jakub Jelinek wrote: > Please add here a comment what it does and why, that if si->length > is non-zero constant, we know that the character at that spot is > not '\0' and when storing non-'\0' to that location, we can't affect > size of any strings at all.

[fixincludes] solaris_pow_int_overload should use __cplusplus

2013-05-16 Thread Rainer Orth
Work is going on to incorporate all applicable fixincludes fixes into the Solaris headers proper. One fix is currently problematic since it uses an G++-internal macro (__GXX_EXPERIMENTAL_CXX0X__) where libstdc++ already switched to testing __cplusplus. The following patch updates the fix to matc

Re: [PATCH] Don't invalidate string length cache when not needed

2013-05-16 Thread Jakub Jelinek
On Thu, May 16, 2013 at 03:31:40PM +0200, Marek Polacek wrote: > Cool, I took the gsi_next approach; seems to work nicely. So, updated > version (it still doesn't handle p[1], p[2], etc.). > > Regtested/bootstrapped on x86_64-linux. > > 2013-05-16 Marek Polacek > > * tree-ssa-strlen.c

Re: [PATCH] Don't invalidate string length cache when not needed

2013-05-16 Thread Marek Polacek
On Wed, May 15, 2013 at 07:20:03PM +0200, Jakub Jelinek wrote: > Well, if si->length is known constant != 0 (note, it is enough to > test that it is non-zero and probably the code above this has > tested that already?) and we are storing non-zero, then that > should mean we are overwriting a non-ze

Re: [wwwdocs] Announce Solaris 9 obsoletion

2013-05-16 Thread Rainer Orth
Tobias Burnus writes: > Am 16.05.2013 13:49, schrieb Rainer Orth: >> Corresponding to the Solaris 9 obsoletion patch, I've now installed the >> following wwwdocs patch to document it. >> --- htdocs/gcc-4.9/changes.html 9 May 2013 17:08:19 - 1.11 >> +++ htdocs/gcc-4.9/changes.html

Re: [wwwdocs] Announce Solaris 9 obsoletion

2013-05-16 Thread Tobias Burnus
Am 16.05.2013 13:49, schrieb Rainer Orth: Corresponding to the Solaris 9 obsoletion patch, I've now installed the following wwwdocs patch to document it. --- htdocs/gcc-4.9/changes.html 9 May 2013 17:08:19 - 1.11 +++ htdocs/gcc-4.9/changes.html 16 May 2013 11:48:37 - 1.13 @@ -1

Re: [PATCH, PR preprocessor/42014] Added LAST_SOURCE_COLUMN in while loop

2013-05-16 Thread Mike Stump
On May 15, 2013, at 10:41 PM, Shakthi Kannan wrote: > | I like using ~/contrib/compare_tests gcc-before.sum gcc-after.sum to > | determine if there are regressions. You can also use that script to > | check for regressions between two build trees as well. > \-- > > I ran the the script betwee

Re: Break infinite folding loop

2013-05-16 Thread Richard Biener
On Thu, May 16, 2013 at 12:05 PM, Marc Glisse wrote: > On Thu, 16 May 2013, Richard Biener wrote: > >> On Thu, May 16, 2013 at 8:42 AM, Marc Glisse wrote: >>> >>> Hello, >>> >>> we can get into a cycle where: >>> (x<0)|1 becomes (x<0)?-1:1 >>> and >>> (y?-1:1) becomes y|1 >>> >>> Contrary to what

[PATCH][2/n] 2nd try: Re-organize -fvect-cost-model, enable basic vectorization at -O2

2013-05-16 Thread Richard Biener
The following is a revision of the original patch in that it also constrains versioning for aliasing with the cheap cost model (formerly -ftree-vect-loop-version only constrained versioning for alignment). It also changes vectorizer related gates to rely on global_options_set instead of playing m

Re: [patch] Small emit-rtl.c / reorg.c cleanup

2013-05-16 Thread Rainer Orth
Steven Bosscher writes: > This just removes one unused function, and moves two functions from > emit-rtl.c to reorg.c which is the only place where they're used. > > Will commit in a few days, barring objections. > > Ciao! > Steven > > > * rtl.h (next_label, skip_consecutive_labels, link_

[wwwdocs] Announce Solaris 9 obsoletion

2013-05-16 Thread Rainer Orth
Corresponding to the Solaris 9 obsoletion patch, I've now installed the following wwwdocs patch to document it. Rainer * htdocs/gcc-4.9/changes.html: Document Solaris 9 obsoletion. Index: htdocs/gcc-4.9/changes.html ===

Re: [build, doc] Obsolete Solaris 9 support

2013-05-16 Thread Rainer Orth
Rainer Orth writes: > I think the time has come to obsolete Solaris 9 support: > > * According to > > http://www.oracle.com/us/support/library/lsp-coverage-sun-software-309122.pdf, > p.17, Premier Support has already ended in October 2011 and even > Extended Support will end in October 201

Re: RFC: PATCH to avoid linking multiple front ends at once with parallel make

2013-05-16 Thread Alexandre Oliva
On May 15, 2013, Jason Merrill wrote: > + elif [ $count == 300 ]; then s/==/=/ Ok with this change. Thanks, -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America

[PATCH] Move autopar pass

2013-05-16 Thread Richard Biener
I noticed that when you enable vectorization for the autopar testcases most of them fail. This is because vectorization introduces new loops and tests that make the CFG complicated enough for autopar to give up. But then autopar is a high-level transform and should be done earlier anyway. Which

[committed] Fix expansion of some #pragma omp for loops

2013-05-16 Thread Jakub Jelinek
Hi! As the testcase show, if in a schedule(static) (the default schedule) or schedule(static,N) non-collapsed loop with unsigned integral iterator the loop condition is false upon entering the loop, but (n2 + step-1 - n1) / step is not 0, we could run the loop body, possibly many times, rather tha

Re: Break infinite folding loop

2013-05-16 Thread Marc Glisse
On Thu, 16 May 2013, Richard Biener wrote: On Thu, May 16, 2013 at 8:42 AM, Marc Glisse wrote: Hello, we can get into a cycle where: (x<0)|1 becomes (x<0)?-1:1 and (y?-1:1) becomes y|1 Contrary to what I posted in the PR, I am disabling the second transformation here. It can be done later (t

Re: [PATCH] Add SCEV cprop dump

2013-05-16 Thread Richard Biener
On Wed, May 15, 2013 at 4:35 PM, Marek Polacek wrote: > On Wed, May 15, 2013 at 02:58:22PM +0200, Richard Biener wrote: >> On Wed, May 15, 2013 at 2:07 PM, Marek Polacek wrote: >> > /* Replace the uses of the name. */ >> > if (name != ev) >> > - replace_uses_by (nam

Re: [PATCH] Don't invalidate string length cache when not needed

2013-05-16 Thread Jakub Jelinek
On Thu, May 16, 2013 at 10:54:53AM +0200, Richard Biener wrote: > Can we properly distinguish the case of > > char *s = "Hello\0World!"; > s[5] = ' '; > > (minor the imperfections in that example)? Thus, overwriting the terminating > 0? I think so. Because then for &s[5], either si should

Re: Break infinite folding loop

2013-05-16 Thread Richard Biener
On Thu, May 16, 2013 at 8:42 AM, Marc Glisse wrote: > Hello, > > we can get into a cycle where: > (x<0)|1 becomes (x<0)?-1:1 > and > (y?-1:1) becomes y|1 > > Contrary to what I posted in the PR, I am disabling the second > transformation here. It can be done later (the x86 target partially does it

Re: [PATCH] New switch optimization pass (PR tree-optimization/54742)

2013-05-16 Thread Richard Biener
On Thu, May 16, 2013 at 5:38 AM, Jeff Law wrote: > On 05/15/2013 12:28 PM, Steve Ellcey wrote: >> >> Here is a patch that adds a flag to gimple_duplicate_sese_region to tell >> it whether or not to update the dominator information. I had to add the >> same flag to copy_bbs to make it all work. H

Re: cfgexpand.c patch for [was new port: msp430-elf]

2013-05-16 Thread Richard Biener
On Wed, May 15, 2013 at 7:24 PM, Mike Stump wrote: > On May 15, 2013, at 1:27 AM, Richard Biener > wrote: >> My question is, if you end up with >> >> (truncate:PSI (reg:SI 27)) >> >> and then constant propagate 0x7fff to reg:SI 27, what does simplify-rtx.c >> do here? Truncate to _what_ pr

Re: [PATCH] Don't invalidate string length cache when not needed

2013-05-16 Thread Richard Biener
On Wed, May 15, 2013 at 7:20 PM, Jakub Jelinek wrote: > On Wed, May 15, 2013 at 06:59:09PM +0200, Marek Polacek wrote: >> This is a strlen opt patch that better optimizes attached testcase; >> there's just no need to call strlen again, as we're not changing >> the length of the string. Unfortunat

Re: PR c++/56782 - Regression with empty pack expansions

2013-05-16 Thread Dodji Seketeli
Jason Merrill writes: > I thought I approved this on IRC; please apply it to trunk and 4.8. Applied to both branches, thanks. -- Dodji