Re: [PATCH] Detect loops in find_comparison_args

2012-07-25 Thread Paolo Bonzini
Il 24/07/2012 22:17, Sandra Loosemore ha scritto: > I was looking to see what needs to be done to un-stick this previously > submitted patch: > > http://gcc.gnu.org/ml/gcc-patches/2012-05/msg01419.html > > Paolo's suggestion was to re-write this to use a "tortoise-and-hare" > algorithm to detect

[SH] PR 54089 - Reorg left shifts

2012-07-25 Thread Oleg Endo
Hello, The attached patch reorganizes the SH left shift patterns. The final generated shift insns don't differ much, but it seems to have some positive side effects on register allocation in some cases. Tested with make -k check RUNTESTFLAGS="--target_board=sh-sim \{-m2/-ml,-m2/-mb,-m2a/-mb,-m2

Re: [Patch/RFC] SEH exceptions for Win64

2012-07-25 Thread Tristan Gingold
Gerald, it is ok ? Tristan. On Jul 19, 2012, at 12:15 PM, Tristan Gingold wrote: > > On Jul 19, 2012, at 11:37 AM, Pedro Alves wrote: > >> On 07/19/2012 08:30 AM, Tristan Gingold wrote: >> >>> No regression on i386 GNU/Linux. >>> Committed. >> >> Nice. Is this NEWS / docs --or wherever rel

VRP PLUS/MINUS_EXPR

2012-07-25 Thread Marc Glisse
Hello, here is a slight improvement to VRP for sum and difference of intervals. There are some things I left because I didn't understand them enough: * range_int_cst_p (&vr0): I thought it was always true by that time, but it isn't obvious * TYPE_PRECISION (expr_type) <= HOST_BITS_PER_DOUBL

Re: [Test] Fix for PRPR53981

2012-07-25 Thread Anna Tikhonova
Thanks! I've removed declarations. New patch attached. testsuite/ChangeLog: 2012-07-20 Anna Tikhonova * gcc.dg/20020201-1.c: Remove declarations for exit, abort, rand, srand. Include . 2012/7/24 Janis Johnson : > On 07/20/2012 05:23 AM, Anna Tikhonova wrote: >> Hi all, >> >> I've f

Re: [PATCH] Fix PR 52631 (VN does not use simplified expression for lookup)

2012-07-25 Thread Richard Guenther
On Tue, Jul 24, 2012 at 5:50 PM, Andrew Pinski wrote: > Hi, > Before tuples was introduced, VN used to lookup the simplified > expression to see if it was available already and use that instead of > the non simplified one. This patch adds the support back to VN to do > exactly that. > > OK? Boo

Re: [PATCH] Fix comment in cgraphunit.c

2012-07-25 Thread Richard Guenther
On Tue, Jul 24, 2012 at 9:27 PM, Marek Polacek wrote: > Ping. Ok. Thanks, Richard. > On Fri, Jul 13, 2012 at 02:00:54PM +0200, Marek Polacek wrote: >> I think the comment at the start of the file is wrong, since >> it speaks about varpool_finalize_variable, but there's no such >> function (not

Re: [4.7 RFT PATCH, i386]: Backport recent LEA improvements to 4.7 branch

2012-07-25 Thread Richard Guenther
On Tue, Jul 24, 2012 at 9:32 PM, Uros Bizjak wrote: > Hello! > > Attached patch backports recent LEA improvements to 4.7 branch. As in regression fixes, or wrong-code fixes? This looks suspiciously not appropriate for 4.7 ... Richard. > The > patch unifies handling of LEA addresses with generi

Re: [patch] un-#ifdef GATHER_STATISTICS

2012-07-25 Thread Richard Guenther
On Tue, Jul 24, 2012 at 7:13 PM, Steven Bosscher wrote: >> AFAIR the qsort is just for getting a stable ordering over two pools to find >> the leaked regsets afterwards, the type of ordering doesn't matter. > > What matters is that the compare function gives a reliable result. You > can't subtract

Re: [PATCH] Intrinsics for PREFETCHW

2012-07-25 Thread Kirill Yukhin
> Please see attached patch that does all this with minimum surgery and > also sets missing SSE prefetch for x86_32 with -mprfchw Thanks, applied! > +++ b/gcc/config/i386/prfchwintrin.h > > +#if !defined _X86INTRIN_H_INCLUDED && !defined _MM3DNOW_H_INCLUDED > +# error "Never use directly; include

Re: [patch] un-#ifdef GATHER_STATISTICS

2012-07-25 Thread Steven Bosscher
On Wed, Jul 25, 2012 at 1:49 PM, Richard Guenther wrote: > Oh, bigger bitmap_head? That's bad ... :/ So much for '#ifdefs are bad' :/ Bigger bitmap_head isn't a problem. A bigger bitmap_element would be bad. For GGC allocated bitmaps, nothing changed (rounding, etc.). If you think it's a prob

Re: [4.7 RFT PATCH, i386]: Backport recent LEA improvements to 4.7 branch

2012-07-25 Thread Uros Bizjak
On Wed, Jul 25, 2012 at 1:45 PM, Richard Guenther wrote: > On Tue, Jul 24, 2012 at 9:32 PM, Uros Bizjak wrote: >> Hello! >> >> Attached patch backports recent LEA improvements to 4.7 branch. > > As in regression fixes, or wrong-code fixes? This looks suspiciously not > appropriate for 4.7 ... I

Re: [PATCH] Intrinsics for PREFETCHW

2012-07-25 Thread Uros Bizjak
On Wed, Jul 25, 2012 at 1:51 PM, Kirill Yukhin wrote: >> Please see attached patch that does all this with minimum surgery and >> also sets missing SSE prefetch for x86_32 with -mprfchw > Thanks, applied! > >> +++ b/gcc/config/i386/prfchwintrin.h >> >> +#if !defined _X86INTRIN_H_INCLUDED && !defin

Re: [PATCH] Intrinsics for PREFETCHW

2012-07-25 Thread Kirill Yukhin
>> Is it OK for trunk? > > OK. Thanks! Checked in. http://gcc.gnu.org/viewcvs?view=revision&revision=189844 Next I think would be rdseed* insns. Thanks, K

[PATCH] Fix typo in comment in basic-block.h

2012-07-25 Thread Dodji Seketeli
This fixes a typo in a comment. Applied to trunk as obvious. gcc/ * basic-block.c: Fix typo in comment. diff --git a/gcc/basic-block.h b/gcc/basic-block.h index 15d34e0..dff06e4 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -108,7 +108,7 @@ struct GTY(()) gimple_bb_info {

Re: VRP PLUS/MINUS_EXPR

2012-07-25 Thread Richard Guenther
On Wed, Jul 25, 2012 at 12:21 PM, Marc Glisse wrote: > Hello, > > here is a slight improvement to VRP for sum and difference of intervals. > There are some things I left because I didn't understand them enough: > > * range_int_cst_p (&vr0): I thought it was always true by that time, but it > isn't

Re: [patch] un-#ifdef GATHER_STATISTICS

2012-07-25 Thread Richard Guenther
On Wed, Jul 25, 2012 at 1:59 PM, Steven Bosscher wrote: > On Wed, Jul 25, 2012 at 1:49 PM, Richard Guenther > wrote: >> Oh, bigger bitmap_head? That's bad ... :/ So much for '#ifdefs are bad' :/ > > Bigger bitmap_head isn't a problem. A bigger bitmap_element would be bad. > > For GGC allocated

Re: [PATCH] PR target/53633; disable return value warnings for naked functions

2012-07-25 Thread nick clifton
Hi Sandra, One suggestion - rather than having architecture specific test files, why not just have a single generic test case with a new dg-require-naked-attribute qualifier. That way the mcore port would be tested as well as the ARM port. Something like this? The code part of the patch is un

[PATCH] Remove FIXUNS_TRUNC_LIKE_FIX_TRUNC

2012-07-25 Thread Richard Henderson
The optabs rewrite removed the special handling for FIXUNS_TRUNC_LIKE_FIX_TRUNC. This was a minor short-hand only used by two targets, and can be replaced by a grand total of two patterns in each. Cross-compiled to vax-linux and v850-elf and committed. r~ * system.h (FIXUNS_TRUNC_LIKE_FI

Re: [PATCH] Intrinsics for PREFETCHW

2012-07-25 Thread Kirill Yukhin
Hi again, Here is second patch which adds support of rdseed[16|32|64] insn. Changelog entry: 2012-07-25 Kirill Yukhin Michael Zolotukhin * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New. (OPTION_MASK_ISA_RDSEED_UNSET): Likewise. (ix86_h

C++ PATCH to remove tf_no_access_control

2012-07-25 Thread Jason Merrill
Now that access control is subject to SFINAE, I was worried that tf_no_access_control might cause wrong overload resolution. On further investigation I think that it wasn't a problem, but it is unnecessary. To preserve the access control checking on default arguments, I changed check_default_

Re: PR 54075 Fix hashtable::reserve

2012-07-25 Thread Jonathan Wakely
(CC gcc-patches) On 25 July 2012 10:26, François Dumont wrote: > Hi > > Here is a patch proposal for PR 54075. I also took the occasion to fix > something that has been delay so far which is usage of std::max to get the > number of buckets to use. The problem of using std::max when using the h

C++ PATCHes for c++/54020, 54086 (minor constexpr issues)

2012-07-25 Thread Jason Merrill
54020 notes that we were accepting a constexpr function that is ill-formed, no diagnostic required, but it would be easy to give a diagnostic for. 54086 suggests that the standard seems to allow constexpr and const together. Tested x86_64-pc-linux-gnu, applying to trunk. commit 92be1e0a23c73

[PATCH] Fix assembly dialect handling in asm_fprintf

2012-07-25 Thread Siddhesh Poyarekar
Hi, While reviewing code to fix a previous patch submission around assembly dialect handling[1], I found that the dialect handling in asm_fprintf is different from that in output_asm_insn and it might be broken too, since encountering a '|' simply leads to skipping all of the string until a '}' is

[PATCH] Fix Ada bootstrap (PR 54092)

2012-07-25 Thread Richard Henderson
That's what I get for assuming front-ends don't touch back-end things like optabs and libcalls... I'm reasonably certain that a better solution would be to move the set_stack_check_libfunc declaration elsewhere and/or totally rearrange that specific interface: c.f. lang_hooks.eh_protect_cleanup_ac

Re: [PATCH] Fix assembly dialect handling in asm_fprintf

2012-07-25 Thread Richard Henderson
On 07/25/2012 08:10 AM, Siddhesh Poyarekar wrote: > 2012-07-25 Siddhesh Poyarekar > > * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New > function to implement assembler dialects. > (output_asm_insn): Use do_assembler_dialects. > (asm_fprintf): Likewise. Ok ...

Re: [PATCH] Fix assembly dialect handling in asm_fprintf

2012-07-25 Thread Siddhesh Poyarekar
On Wed, 25 Jul 2012 08:31:14 -0700, Richard wrote: > > > > * gcc.dg/asm-dialect-1.c: New test case. > > ... except this should go in gcc.target/i386/ without the { target } > qualifier. > Thanks, here's the updated version. Regards, Siddhesh gcc/ChangeLog: 2012-07-25 Siddhesh Poyarekar

Re: [PATCH] Intrinsics for PREFETCHW

2012-07-25 Thread Uros Bizjak
On Wed, Jul 25, 2012 at 4:07 PM, Kirill Yukhin wrote: > Here is second patch which adds support of rdseed[16|32|64] insn. > > Changelog entry: > 2012-07-25 Kirill Yukhin > Michael Zolotukhin > > * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New. >

Re: [PATCH] PR target/53633; disable return value warnings for naked functions

2012-07-25 Thread Richard Henderson
On 07/24/2012 09:40 PM, Sandra Loosemore wrote: > PR target/53633 > > gcc/ > * target.def (warn_func_return): New hook. > * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook. > * doc/tm.texi: Regenerate. > * doc/sourcebuild.texi (Effective-Target Keywords): Doc

Re: [google/gcc-4_7] Add -gfission as alias for -gsplit-dwarf (issue6444043)

2012-07-25 Thread Sterling Augustine
On Tue, Jul 24, 2012 at 5:51 PM, Cary Coutant wrote: > This patch is for the google/gcc-4_7 branch. > > Add -gfission as alias for -gsplit-dwarf. > > Tested by bootstrap and regression testing. > > > * common.opt (-gfission): Alias for -gsplit-dwarf. > (-gno-fission): Alias for -gn

[PATCH] Change IVOPTS and strength reduction to use expmed cost model

2012-07-25 Thread William J. Schmidt
Per Richard Henderson's suggestion (http://gcc.gnu.org/ml/gcc-patches/2012-06/msg01370.html), this patch changes the IVOPTS and straight-line strength reduction passes to make use of data computed by init_expmed. This required adding a new convert_cost array in expmed to store the costs of convert

Re: [PATCH] Fix Ada bootstrap (PR 54092)

2012-07-25 Thread Steven Bosscher
On Wed, Jul 25, 2012 at 5:20 PM, Richard Henderson wrote: > That's what I get for assuming front-ends don't touch back-end things > like optabs and libcalls... That is _almost_ the case. In fact, this is one of the last problems... $ egrep "\"optabs\.h|\"libfuncs\.h|\"expr\.h|\"rtl|\"recog|\"ba

[patch] Tidy up BIT_FIELD_REF handling code

2012-07-25 Thread Eric Botcazou
As documented in tree.def and checked in tree-cfg.c, the second and third operands of BIT_FIELD_REF are INTEGER_CSTs so there is no need to do fancy things on them. The patch also removes the now unused build6 stuff and fixes a buglet in the folder. Tested on x86_64-suse-linux, OK for the main

Re: [PATCH] Change IVOPTS and strength reduction to use expmed cost model

2012-07-25 Thread Richard Henderson
On 07/25/2012 09:13 AM, William J. Schmidt wrote: > Per Richard Henderson's suggestion > (http://gcc.gnu.org/ml/gcc-patches/2012-06/msg01370.html), this patch > changes the IVOPTS and straight-line strength reduction passes to make > use of data computed by init_expmed. This required adding a new

Fix reading real(kind=10) numbers

2012-07-25 Thread Andreas Schwab
This fixes a mixup of kind and size when storing a real(kind=10) number for read, causing a loss of two bytes. Tested on m68k-linux and checked in as obvious. Andreas. * io/list_read.c (list_formatted_read_scalar): Fix copying real value back to temporary. diff --git a/libgfortr

Re: [Patch ARM] Pass --be8 option for big endian targets by default

2012-07-25 Thread Richard Earnshaw
On 24/07/12 23:26, Bharathi Seshadri (bseshadr) wrote: > Hi, > > Attached is a patch that modifies BE8_LINK_SPEC to pass -be8 option to the > linker by default if the target is big endian, and to not pass -be8 option if > -mlittle-endian is used. It also preserves the existing usage whereby -be

Re: [patch] Tidy up BIT_FIELD_REF handling code

2012-07-25 Thread Richard Henderson
On 07/25/2012 09:30 AM, Eric Botcazou wrote: > 2012-07-25 Eric Botcazou > > * expr.c (expand_expr_real_1): Do not expand operand #1 and #2 > of BIT_FIELD_REF for ignored results. > * fold-const.c (fold_ternary_loc) : Check that the > CONSTRUCTOR has vector type before us

Re: [Ada] Lock-free implementation of protected objects

2012-07-25 Thread Richard Henderson
On 07/23/2012 08:13 AM, Geert Bosch wrote: > IIUC, all ports are supposed to implement the atomic built-ins. If they are > not > supported in hardware, there should be a library function for it that uses > locking. > The problem we're trying to address is builds failing because of undefined > re

[Patch, Fortran, committed] Some spell fixes

2012-07-25 Thread Tobias Burnus
Committed as obvious (Rev. 189859). Tobias 2012-07-25 Tobias Burnus * trans-types.c (gfc_real16_is_float128): Fix spelling in a comment. * trans.h (struct gfc_array_info): Ditto. * gfortran.h (gfc_expr): Ditto. * simplify.c (gfc_count): Ditto.

Re: [PATCH] PR target/53633; disable return value warnings for naked functions

2012-07-25 Thread Sandra Loosemore
On 07/25/2012 09:57 AM, Richard Henderson wrote: > > I'll echo Nick's comments about arm asm in a common test. > There's no need to have anything but __asm__(""); there. > > Ok with that change. Thanks! Here's the version I committed. -Sandra 2012-07-25 Sandra Loosemore Paul B

Re: [patch] Fix spurious 'noreturn' function does return warning at -O0 (2)

2012-07-25 Thread Richard Henderson
On 07/18/2012 05:48 AM, Eric Botcazou wrote: > 2012-07-18 Eric Botcazou > > * gimple-low.c (lower_try_catch): New function. > (lower_stmt) : Use it to lower GIMPLE_TRY_CATCH. > : Delete. > : Likewise. > > > 2012-07-18 Eric Botcazou > > * gnat.dg/noreturn5.ad[

Re: RFA: MN10300: Call default_encode_section_info

2012-07-25 Thread Richard Henderson
On 07/05/2012 07:29 AM, Nick Clifton wrote: > static void > -mn10300_encode_section_info (tree decl, rtx rtl, int first ATTRIBUTE_UNUSED) > +mn10300_encode_section_info (tree decl, rtx rtl, int first) > { >rtx symbol; > > @@ -2480,6 +2488,8 @@ > >if (flag_pic) > SYMBOL_REF_FLAG (

Re: [google] Modification of gcov pmu format to reduce gcda size bloat (issue6427063)

2012-07-25 Thread Teresa Johnson
Resending in plain text mode so that it goes through to mailing list... On Wed, Jul 25, 2012 at 11:32 AM, Teresa Johnson wrote: > > > > > On Tue, Jul 24, 2012 at 3:03 PM, Chris Manghane wrote: >> >> This patch modifies pmu-profile to allow gooda_feedback access to >> >> > Needs some more contex

Re: RFA: MN10300: Replace REG_SAVE_BYTES macro with calls to mn10300_get_live_callee_saved_regs

2012-07-25 Thread Richard Henderson
On 06/29/2012 02:03 AM, Nick Clifton wrote: > 2012-06-29 Nick Clifton > > * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete. > (mn10300_get_live_callee_saved_regs): If requested return a count > of the number of bytes in the mask. > (mn10300_expand_prologue): Add argum

[google/gcc-4_7] Output DW_AT_high_pc as constant (issue6453046)

2012-07-25 Thread Cary Coutant
This patch is for the google/gcc-4_7 branch. Backport pending upstream patch to output DW_AT_high_pc as a constant instead of a relocated address. This significantly reduces the number of entries used in the .debug_addr table with -gfission. Tested: Ran regression tests and validate-failures.py.

Re: [google/gcc-4_7] Output DW_AT_high_pc as constant (issue6453046)

2012-07-25 Thread Sterling Augustine
On Wed, Jul 25, 2012 at 11:45 AM, Cary Coutant wrote: > This patch is for the google/gcc-4_7 branch. > > Backport pending upstream patch to output DW_AT_high_pc as a constant > instead of a relocated address. This significantly reduces the number > of entries used in the .debug_addr table with -g

Re: [Dwarf Fission] Implement Fission Proposal (issue6305113)

2012-07-25 Thread Jason Merrill
On 07/18/2012 05:44 PM, Sterling Augustine wrote: +/* Remove an entry from the addr table. Since we have already numbered + all the entries, the best we can do here is null it out. */ This sounds like a design flaw. Since we have everything in memory, there's no reason we shouldn't be abl

Re: [PING] Re: [RFC, ivopts] fix bugs in ivopts address cost computation

2012-07-25 Thread Sandra Loosemore
On 07/17/2012 05:22 AM, Richard Guenther wrote: On Wed, Jul 4, 2012 at 6:35 PM, Sandra Loosemore wrote: Ping? Original post with patch is here: http://gcc.gnu.org/ml/gcc-patches/2012-06/msg00319.html Can you update the patch and numbers based on what Bill did for straight-line strength re

Re: [PATCH] Change IVOPTS and strength reduction to use expmed cost model

2012-07-25 Thread William J. Schmidt
On Wed, 2012-07-25 at 09:59 -0700, Richard Henderson wrote: > On 07/25/2012 09:13 AM, William J. Schmidt wrote: > > Per Richard Henderson's suggestion > > (http://gcc.gnu.org/ml/gcc-patches/2012-06/msg01370.html), this patch > > changes the IVOPTS and straight-line strength reduction passes to make

Re: [PING] Re: [RFC, ivopts] fix bugs in ivopts address cost computation

2012-07-25 Thread William J. Schmidt
On Wed, 2012-07-25 at 13:39 -0600, Sandra Loosemore wrote: > On 07/17/2012 05:22 AM, Richard Guenther wrote: > > On Wed, Jul 4, 2012 at 6:35 PM, Sandra Loosemore > > wrote: > >> > >> Ping? Original post with patch is here: > >> > >> http://gcc.gnu.org/ml/gcc-patches/2012-06/msg00319.html > > > >

[Patch, Fortran] Fix module I/O with assumed-rank arrays

2012-07-25 Thread Tobias Burnus
The following issue was found by Alessandro. (It got triggered by a larger test case, which is required for a larger patch by Alessandro, which is not yet finished.) Accessing the "lower[-1]" is probably not the best idea … Build on x86-64-linux. OK for the trunk? Tobias 2012-07-25 Alessandr

Re: PR 54075 Fix hashtable::reserve

2012-07-25 Thread François Dumont
Attached patch applied to trunk. I am building 4.7 branch to also apply the patch to this branch. 2012-07-25 François Dumont PR libstdc++/54075 * include/bits/hashtable.h (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator, size_type, ...): Remove std::ma

Re: [PATCH] Change IVOPTS and strength reduction to use expmed cost model

2012-07-25 Thread Richard Henderson
On 07/25/2012 12:40 PM, William J. Schmidt wrote: > Thanks for the quick review! Excellent point about the array size. The > attached revised patch follows your suggestion to limit the size. > > I only did this for the new field, as changing all the existing > accessors to inline functions is mo

Re: [Patch, Fortran] Fix module I/O with assumed-rank arrays

2012-07-25 Thread Tobias Burnus
Tobias Burnus wrote: The following issue was found by Alessandro. (It got triggered by a larger test case, which is required for a larger patch by Alessandro, which is not yet finished.) Accessing the "lower[-1]" is probably not the best idea … Build on x86-64-linux. OK for the trunk? I att

[testsuite] fix g++.dg/cpp0x/nullptr21.C to be self-checking

2012-07-25 Thread Janis Johnson
This patch changes test g++.dg/cpp0x/nullptr21.C to be self-checking instead of examining printf output via dg-output. Now it can be run reliably on bare-metal platforms. I couldn't see any indication in the test itself or in the gcc-patches archives to show that the printfs were significant. Ch

[PATCH][Cilkplus] Added LTO support for the Cilk Plus Flag

2012-07-25 Thread Iyer, Balaji V
Hello Everyone, This patch is for the Cilk Plus branch mainly affecting the LTO flag. This patch will allow the flag_enable_cilk to carry through into the LTO code. Also, I added one small case statement for __cilkrts_detach. Thanks, Balaji V. Iyer. Index: gcc/c-family/c.opt ===

[SH] PR 51244 - Add -mzdcbranch option

2012-07-25 Thread Oleg Endo
Hello, This adds a new SH option -mzdcbranch / -mnozdcbranch to tell the compiler whether zero displacement conditional branches are fast on the target CPU. It is enabled by default for SH4* and thus does not change any of the established behavior. Currently this does affect only one pattern (neg

Re: [SH] PR 54089 - Reorg left shifts

2012-07-25 Thread Kaz Kojima
Oleg Endo wrote: > The attached patch reorganizes the SH left shift patterns. The final > generated shift insns don't differ much, but it seems to have some > positive side effects on register allocation in some cases. > > Tested with > make -k check RUNTESTFLAGS="--target_board=sh-sim > \{-m2/

Re: [Dwarf Fission] Implement Fission Proposal (issue6305113)

2012-07-25 Thread Cary Coutant
>> +/* Remove an entry from the addr table. Since we have already numbered >> + all the entries, the best we can do here is null it out. */ > > This sounds like a design flaw. Since we have everything in memory, there's > no reason we shouldn't be able to pack the table appropriately. Why can

Re: [SH] PR 51244 - Add -mzdcbranch option

2012-07-25 Thread Kaz Kojima
Oleg Endo wrote: > This adds a new SH option -mzdcbranch / -mnozdcbranch to tell the > compiler whether zero displacement conditional branches are fast on the > target CPU. It is enabled by default for SH4* and thus does not change > any of the established behavior. > Currently this does affect o

Re: [patch] Move lowering of switches to bit tests to GIMPLE

2012-07-25 Thread Hans-Peter Nilsson
On Tue, 24 Jul 2012, Richard Henderson wrote: > On 07/21/2012 06:10 AM, Oleg Endo wrote: > > I think on SH the cost test in lshift_cheap_p with > > gen_rtx_ASHIFT (word_mode, const1_rtx, reg), speed_p); > > > > will always 'fail', because of sh.c (shiftcosts): > > /* There is no pattern for co

[wwwdocs] Use canonical Bugzilla URL in svn.html

2012-07-25 Thread Gerald Pfeifer
Applied. Gerald Index: htdocs/svn.html === RCS file: /cvs/gcc/wwwdocs/htdocs/svn.html,v retrieving revision 1.175 diff -u -3 -p -r1.175 svn.html --- htdocs/svn.html 18 Jul 2012 01:59:05 - 1.175 +++ htdocs/svn.html 25

Re: [Dwarf Fission] Implement Fission Proposal (issue6305113)

2012-07-25 Thread Sterling Augustine
On Wed, Jul 25, 2012 at 4:00 PM, Cary Coutant wrote: >>> +/* Remove an entry from the addr table. Since we have already numbered >>> + all the entries, the best we can do here is null it out. */ >> >> This sounds like a design flaw. Since we have everything in memory, there's >> no reason we

Re: [Patch/RFC] SEH exceptions for Win64

2012-07-25 Thread Gerald Pfeifer
On Wed, 25 Jul 2012, Tristan Gingold wrote: > it is ok ? Two minor changes, fine to commit with those. 1. Full stop at the end of the sentence. 2. Avoid extra ... pair, rather add this to the existing. Thanks, Gerald

[google/gcc-4_7] Compute dwo_id for Fission (issue6442047)

2012-07-25 Thread Cary Coutant
This patch is for the google/gcc-4_7 branch. Compute a dwo_id and write the DW_AT_GNU_dwo_id attribute to both the skeleton compile unit DIE and the DWO compile unit DIE. Tested: passed regression tests. 2012-07-25 Cary Coutant * gcc/dwarf2out.c (dwo_id_placeholder): Delete.

Re: [RFC] Target-specific limits on vector alignment

2012-07-25 Thread Hans-Peter Nilsson
> From: Ulrich Weigand > Date: Tue, 24 Jul 2012 19:38:15 +0200 > > > I've implemented this as a separate hook, rather than using the existing > > > hooks because there's a strong likelihood of breaking some existing ABIs > > > if I did it another way. > > > > > > There are a couple of tests that

Re: [Dwarf Fission] Implement Fission Proposal (issue6305113)

2012-07-25 Thread Cary Coutant
+ if (dwarf_version >= 4 || dwarf_split_debug_info) >>> >>> Shouldn't -gsplit-debug require -gdwarf-4+ anyway? >> >> Seems better to check explicitly than to rely on an implied relationship. > > I think Jason is right here. Although they are theoretically separate, > there has been no tes

[PATCH/MIPS] Emit stack executable note

2012-07-25 Thread Andrew Pinski
Hi, The Linux kernel already supports non-executable stack since around February 2010. This patch has GCC emit the notes that are associated with non-executable stack. OK? Bootstrapped and tested on mips64-linux-gnu with kernel already supporting the non-executable stack with no regressions.

libgo patch committed: Fix runtime/pprof test

2012-07-25 Thread Ian Lance Taylor
This patch to libgo fixes the runtime/pprof test to pass, and enables it. it cleans up the runtime interface for profiling a little bit. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian diff -r 55f2af449cde libgo/Makefile.am --- a/libgo/Ma

Re: [PATCH] Detect loops in find_comparison_args

2012-07-25 Thread Sandra Loosemore
On 07/25/2012 01:27 AM, Paolo Bonzini wrote: > > What I'm worried about is the extra cost of malloc-ing and free-ing the > pointer set. Perhaps you can skip the pointer set creation in the common > case where find_comparison_args does not iterate? Something like this: > > [snip] I think this v