Re: [RESEND-2][PATCH] Allow printing of escaped curly braces in assembler directives with operands

2012-07-20 Thread Hans-Peter Nilsson
On Wed, 18 Jul 2012, Siddhesh Poyarekar wrote: > Hi, > > Resending. I did not get any responses the last two times and I too > forgot about it. Can someone please review this? This is *not* an approver-review. > An assembler directive with an operand is filtered through > output_asm_insn (or asm

[PATCH][MIPS] Improve Octeon Pop instruction usage

2012-07-20 Thread Pinski, Andrew
Hi, The Octeon pop instruction does not take into account the upper 32bits of the 64bit register, so its usage can be optimized when there is a truncation right before the instruction. This patch implements this small optimization. OK? Bootstrapped and tested on MIPS64-linux-gnu (Octeon) wit

Re: [Patch, Fortran] Add parsing support for assumed-rank array

2012-07-20 Thread Andreas Schwab
Tobias Burnus writes: > + if (e->rank != class_ts.u.derived->components->as->rank) > + class_array_data_assign (&parmse->pre, ctree, parmse->expr, > + TREE_TYPE (parmse->expr)); ../../gcc/gcc/fortran/trans-expr.c: In function ‘gfc_conv_derived_to_cl

Yet another gcc.c-torture/execute/20101011-1.c DO_TEST 0

2012-07-20 Thread Hans-Peter Nilsson
The #elif defined ... #define DO_TEST 0 exceptions are accumulating. Maybe the DO_TEST = 1 case should be the exception... Committed. gcc/testsuite: * gcc.c-torture/execute/20101011-1.c (DO_TEST): Define as 0 for CRIS. Index: gcc.c-torture/execute/20101011-1.c

Re: [patch] fixes for power4 scheduler description

2012-07-20 Thread Pat Haugen
On 07/20/2012 03:34 PM, David Edelsohn wrote: Looks good. Check it in after testing. Testing went fine, patch checked in. -Pat

Committed, CRIS: remove unused variables from cris_asm_output_ident

2012-07-20 Thread Hans-Peter Nilsson
Looks like these were left from Steven's ident-cleanup. Steven, for future reference, you might want to use contrib/warn_summary on the build-logs. ;) Incidentally, the magic option to increase diff context for svn is -x -U as in "-x -U5" below, just to show there's not much else in that function.

[Fortran-dev] merge from the trunk

2012-07-20 Thread Tobias Burnus
I have now merged the trunk into the branch (Rev. 189727). Tobias

Re: [patch] fixes for power4 scheduler description

2012-07-20 Thread David Edelsohn
On Thu, Jul 19, 2012 at 2:43 PM, Pat Haugen wrote: > Update form stores are cracked into a store and addi, and the store is dual > issued to the LSU/FXU. So based on this info I would think it should look > like the following (untested). > > @@ -141,12 +141,10 @@ (define_insn_reservation "power4-

Re: [PATCH] ARM: exclude fixed_regs for stack-alignment save/restore

2012-07-20 Thread Roland McGrath
ping?

Re: [Patch, Fortran] Add parsing support for assumed-rank array

2012-07-20 Thread Tobias Burnus
Igor Zamyatin wrote: I have now committed the attached version as Rev. 189700! This seems to cause following fails at least on i686: I have now committed as obvious (Rev. 189725) a patch to solve the issue for assumed_rank_12.f90; I have also a patch for the other issue (assumed_rank_6.f90),

Re: [Patch, fortran] PR44354 implied-do-loop array constructors using the induction variable in the bounds

2012-07-20 Thread Mikael Morin
On 20/07/2012 20:16, Mikael Morin wrote: > I have started a regression test. > OK for trunk if it passes? > Unfortunately, it fails with errors like: /home/mik/gcc4x/src/gcc/testsuite/gfortran.dg/char_pack_1.f90:55.10: do i = i + 1, nv 1 Warning: AC-IMPLIED-DO initial expression re

[PATCH MIPS] Improve unaligned 32bits load on MIPS64

2012-07-20 Thread Pinski, Andrew
Hi, Currently doing a 32bit unaligned load on MIPS64, produces 4 byte loads, this can be improved to using lwl/lwr instead. The problem is the code in mips_expand_ext_as_unaligned_load that handles this case does handle the case where the register is DImode but the width is 32. This patch fi

[Patch, ARM] Cleanup in arm_expand_epilogue

2012-07-20 Thread Greta Yorsh
The variable floats_from_frame in function arm_expand_epilogue became unused after removal of FPA support. This patch cleans it up and simplifies the initialization of num_regs variable. Ok for trunk? Thanks, Greta ChangeLog gcc/ 2012-07-20 Greta Yorsh * config/arm/arm.c (arm_expan

[Patch,ARM] unwind in epilogue ignore dwarf info

2012-07-20 Thread Greta Yorsh
The final pass of gcc uses dwarf information to generate unwind tables and directives (e.g., with command line option -fexceptions). Dwarf information generated for epilogues should be ignored when generating unwind info, because the ARM ABI only allows unwind at procedure boundaries. This patch ad

[Patch, fortran] PR44354 implied-do-loop array constructors using the induction variable in the bounds

2012-07-20 Thread Mikael Morin
Hello, these patches fix the handling of the following (invalid) code: I=5 print *,(/(i,i=1,I)/) end The first patch adds a diagnostic as ifort and Nag do. There was a concern in the PR whether we should accept it or not. I followed Tobias' suggestion: warning by default, error

RE: [PATCH, i386]: AMD btver2 enablement

2012-07-20 Thread Kumar, Venkataramanan
Hi Jakub, Thanks for reviewing the patch. > Seems the only difference from btver1 are the cache sizes, right? That > looks very expensive way of adding another cache size, we can only have > 32 different schedulings as PROCESSOR_* is used as a bitmask. > For -march=native, it is either no change

Re: [Dwarf Patch] Implement split debug info proposal (issue 6305113)

2012-07-20 Thread saugustine
On 2012/07/20 00:37:15, Cary wrote: http://codereview.appspot.com/6305113/diff/3001/gcc/dwarf2out.c File gcc/dwarf2out.c (right): http://codereview.appspot.com/6305113/diff/3001/gcc/dwarf2out.c#newcode8517 gcc/dwarf2out.c:8517: Should use SKELETON_COMP_DIE_ABBREV here instead of 1. http://

Re: [PATCH, i386]: AMD btver2 enablement

2012-07-20 Thread Jakub Jelinek
On Fri, Jul 20, 2012 at 11:39:32AM -0500, venkataramanan.ku...@amd.com wrote: > Below patch does the basic enablement for next generation AMD low power > btver2 core. > It defines -march=btver2 and -mtune=btver2, and lets -march=native correctly > recognizes btver2. At the moment the tuning is mos

Re: [PATCH, ARM] Tweak gcc.c-torture/execute/20101011-1.c to test division-by-zero trapping on ARM

2012-07-20 Thread Richard Earnshaw
On 20/07/12 17:52, Julian Brown wrote: > On Fri, 20 Jul 2012 17:24:36 +0100 > Richard Earnshaw wrote: > >> On 20/07/12 11:35, Julian Brown wrote: >>> Hi, >>> >>> On several architectures, the test >>> gcc.c-torture/execute/20101011-1.c tests the raising of a signal >>> when a division by zero occ

Re: [PATCH, ARM] Tweak gcc.c-torture/execute/20101011-1.c to test division-by-zero trapping on ARM

2012-07-20 Thread Julian Brown
On Fri, 20 Jul 2012 17:24:36 +0100 Richard Earnshaw wrote: > On 20/07/12 11:35, Julian Brown wrote: > > Hi, > > > > On several architectures, the test > > gcc.c-torture/execute/20101011-1.c tests the raising of a signal > > when a division by zero occurs, but at present the test is simply > > sk

[PATCH, i386]: AMD btver2 enablement

2012-07-20 Thread venkataramanan.kumar
Hi Maintainers, Below patch does the basic enablement for next generation AMD low power btver2 core. It defines -march=btver2 and -mtune=btver2, and lets -march=native correctly recognizes btver2. At the moment the tuning is mostly a copy of btver1. The patch passed bootstrap and the x86 tests.

Re: [PATCH, ARM] Tweak gcc.c-torture/execute/20101011-1.c to test division-by-zero trapping on ARM

2012-07-20 Thread Richard Earnshaw
On 20/07/12 11:35, Julian Brown wrote: > Hi, > > On several architectures, the test gcc.c-torture/execute/20101011-1.c > tests the raising of a signal when a division by zero occurs, but at > present the test is simply skipped on ARM. We can make the test > slightly more useful by using the EABI-p

Re: [PATCH, ARM] Tweak gcc.c-torture/execute/20101011-1.c to test division-by-zero trapping on ARM

2012-07-20 Thread Mike Stump
On Jul 20, 2012, at 3:35 AM, Julian Brown wrote: > On several architectures, the test gcc.c-torture/execute/20101011-1.c > tests the raising of a signal when a division by zero occurs, but at > present the test is simply skipped on ARM. We can make the test > slightly more useful by using the EABI-

Re: [C++ PATCH] Fix a regression from build_cplus_array_type recent change (PR c++/54038)

2012-07-20 Thread Jason Merrill
On 07/20/2012 09:26 AM, Jakub Jelinek wrote: As detailed in the PR, I believe we should only add c into m's variant chain if m's element type is the main variant of c's element type. We want c to get onto the appropriate variant chain even if it isn't m's, so I'm applying this patch instead.

Re: [Patch, ARM][2/2] Create tune for Cortex-A15.

2012-07-20 Thread Richard Earnshaw
On 20/07/12 16:05, Greta Yorsh wrote: > This patch creates a new tune_param structure for Cortex-A15. The new tune > is identical to the generic cortex tune used for Cortex-A15 before this > patch, except the field prefer_ldrd_strd is set to true. This field will be > used by subsequent patches, in

Re: [Patch, ARM][1/2] Add prefer_ldrd_strd field to tune

2012-07-20 Thread Richard Earnshaw
On 20/07/12 15:59, Greta Yorsh wrote: > Add a new field to tune_params structure to indicate whether LDRD/STRD > instructions are preferred over POP/PUSH/STM/LDM. Set the new field to false > for all existing tunes. Subsequent patches will set it to true for > Cortex-A15 and use it to determine whi

[Patch, ARM][2/2] Create tune for Cortex-A15.

2012-07-20 Thread Greta Yorsh
This patch creates a new tune_param structure for Cortex-A15. The new tune is identical to the generic cortex tune used for Cortex-A15 before this patch, except the field prefer_ldrd_strd is set to true. This field will be used by subsequent patches, in particular for prologue/epilogue. Ok for tru

[Patch, ARM][1/2] Add prefer_ldrd_strd field to tune

2012-07-20 Thread Greta Yorsh
Add a new field to tune_params structure to indicate whether LDRD/STRD instructions are preferred over POP/PUSH/STM/LDM. Set the new field to false for all existing tunes. Subsequent patches will set it to true for Cortex-A15 and use it to determine which instructions to emit, in particular for pro

Re: Commit: ARM: Document -munaligned-access

2012-07-20 Thread Hans-Peter Nilsson
> From: nick clifton > Date: Fri, 20 Jul 2012 09:18:52 +0200 > "approved - please apply". Thanks! I see the last sentence could do with better punctuation, so I added the obvious comma. Installed as follows. Index: changes.html =

[C++ PATCH] Fix a regression from build_cplus_array_type recent change (PR c++/54038)

2012-07-20 Thread Jakub Jelinek
Hi! As detailed in the PR, I believe we should only add c into m's variant chain if m's element type is the main variant of c's element type. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.7? 2012-07-20 Jakub Jelinek PR c++/54038 * tree.c (build_cplus_a

Re: [Patch, Fortran] Allow assumed-shape arrays with BIND(C) for TS29113

2012-07-20 Thread Mikael Morin
On 20/07/2012 12:09, Tobias Burnus wrote: > But if you prefer, I can now also lump all Bind(C) changes of TS29113 > together into a big patch. > No thanks. Patch is OK. Mikael

[PATCH] Walk over local decls instead of referenced vars where appropriate

2012-07-20 Thread Richard Guenther
referenced vars can contain things we won't expand and shouldn't be used to drive codegen (well, my goal is still to drop referenced vars and solely use local decls everywhere, eventually adding a way to do the UID -> decl lookup there). Bootstrapped and tested on x86_64-unknown-linux-gnu, instal

[PATCH, ARM] Tuning for Cortex-M processors

2012-07-20 Thread Julian Brown
Hi, This patch provides some mild performance tuning for Cortex-M series processors -- originally measured on a Cortex-M4 device (circa March 2011, on a 4.5-based branch), but making the changes for all Cortex-M devices -- using the possibly-unwarranted assumption that other Cortex-M devices are l

[Test] Fix for PRPR53981

2012-07-20 Thread Anna Tikhonova
Hi all, I've fixed test which was failing on Android NDK testsuite/ChangeLog: 2012-07-20 Anna Tikhonova * gcc.dg/20020201-1.c: Include . Patch attached. Ok for trunk & 4.7? 20020201-1.p Description: Binary data

Re: Diagnostics from GCC_DRIVER_HOST_INITIALIZATION

2012-07-20 Thread Ryan Mansfield
On 12-07-19 06:06 PM, Gabriel Dos Reis wrote: On Thu, Jul 19, 2012 at 4:13 PM, Ryan Mansfield wrote: GCC_DRIVER_HOST_INITIALIZATION happens before diagnostic_initialize, this can cause crashes if it call diagnostics such as warning, or fatal_error are used in the macro. One example would be in

Re: Commit: ARM: Document -munaligned-access

2012-07-20 Thread Ryan Mansfield
On 12-07-19 05:33 PM, Hans-Peter Nilsson wrote: Maybe something like: Index: changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v retrieving revision 1.113 diff -p -u -r1.113 changes.html --- changes.html

[PATCH] Fix PR54031

2012-07-20 Thread Richard Guenther
This fixes PR54031. While technically the source is invalid (a pointer is not aligned as it should) it wasn't my plan to exploit this with the get_object_alignment change. In fact it is CCPs wrongdoing that it uses get_object_alignment_1 instead of get_pointer_alignemnt_1 when looking at a point

[PATCH, ARM] Tweak gcc.c-torture/execute/20101011-1.c to test division-by-zero trapping on ARM

2012-07-20 Thread Julian Brown
Hi, On several architectures, the test gcc.c-torture/execute/20101011-1.c tests the raising of a signal when a division by zero occurs, but at present the test is simply skipped on ARM. We can make the test slightly more useful by using the EABI-provided ability to define a division-by-zero handli

Re: [Fortran-dev][Patch, Fortran] C_F_Pointer cleanup

2012-07-20 Thread Richard Guenther
On Fri, Jul 20, 2012 at 12:17 PM, Tobias Burnus wrote: > On 07/20/2012 11:52 AM, Mikael Morin wrote >> >> OK. > > > Thanks for the review. > > >> I guess the division will be dropped too (the middle-end does the >> reverse multiplication implicitly in the pointer arithmetic). >> I wonder which one

[Patch, Fortran] assumed-rank some bound intrinsics support, fix failures and improve diagnostcs

2012-07-20 Thread Tobias Burnus
Dear all, this patch is a cleanup follow up to the assumed-rank patch. Changes: * Fix pattern matching for the dump. for some reason, the DTYPE differes between i686 and x86-64. * There was a proper check missing that assumed-rank arrays may not have a codimension. (There are now checks in arra

Re: [Fortran-dev][Patch, Fortran] C_F_Pointer cleanup

2012-07-20 Thread Tobias Burnus
On 07/20/2012 11:52 AM, Mikael Morin wrote OK. Thanks for the review. I guess the division will be dropped too (the middle-end does the reverse multiplication implicitly in the pointer arithmetic). I wonder which one is faster (the casts in the second version are certainly not nice for the mi

[PATCH, ARM] Don't pull in unwinder for 64-bit division routines

2012-07-20 Thread Julian Brown
Hi, This (old!) patch avoids uselessly pulling in the unwinder for 64-bit division routines. I last posted it here: http://gcc.gnu.org/ml/gcc-patches/2009-10/msg01618.html Other people have noticed the same issue, e.g.: http://gcc.gnu.org/ml/gcc-help/2011-03/msg00187.html Note that we take spe

Re: [Patch, Fortran] Allow assumed-shape arrays with BIND(C) for TS29113

2012-07-20 Thread Tobias Burnus
On 07/20/2012 11:55 AM, Mikael Morin wrote: On 18/07/2012 17:17, Tobias Burnus wrote: +either assumed size or explicit shape. Deferred shape is already +covered by the pointer/allocatable attribute. */ Don't we need to fix the pointer/allocatable diagnostics as well the

Re: [Patch, Fortran] Allow assumed-shape arrays with BIND(C) for TS29113

2012-07-20 Thread Mikael Morin
On 18/07/2012 17:17, Tobias Burnus wrote: > This patch was written on top of the big assumed-shape patch.* However, > it should also work by itself. > > Bootstrapped and regtested on x86-64-linux. > OK for the trunk? > > Tobias > > * http://gcc.gnu.org/ml/fortran/2012-07/msg00052.html > 2012-07

[PATCH] Followup referenced vars TLC

2012-07-20 Thread Richard Guenther
This removes one odd piece in add_local_variables: FOR_EACH_LOCAL_DECL (callee, ix, var) -if (TREE_STATIC (var) && !TREE_ASM_WRITTEN (var)) - { - if (!check_var_ann - || (var_ann (var) && add_referenced_var (var))) - add_local_decl (caller, var); - } -

Re: [Fortran-dev][Patch, Fortran] C_F_Pointer cleanup

2012-07-20 Thread Mikael Morin
On 15/07/2012 08:23, Tobias Burnus wrote: > Dear all, > > that's a follow up cleanup to the patch, which has just been merged. > Most parts should be really obvious and nice, however, the offset part > isn't. As the offset is not part of the descriptor defined at DTS > 29113:2012's "8.2 C descript

[v3] libstdc++/54025

2012-07-20 Thread Paolo Carlini
Hi, tested x86_64-linux, committed (see audit trail for details) Thanks, Paolo. / 2012-07-20 Chip Salzenberg Jonathan Wakely PR libstdc++/54025 * include/std/chrono (duration<>::duration): Fix per C++11. * testsuite/20_util/durat

Re: [PATCH] Avoid duplicate -Wnonnull warnings (PR c++/28656)

2012-07-20 Thread Richard Guenther
On Fri, Jul 20, 2012 at 11:04 AM, Jakub Jelinek wrote: > On Fri, Jul 20, 2012 at 10:37:32AM +0200, Richard Guenther wrote: >> On Thu, Jul 19, 2012 at 6:53 PM, Jakub Jelinek wrote: >> Hum. How hard would it be to merge the attributes? > > IMHO hard and ugly. The thing is that you probably can do

Re: [patch] More cleanups for CFG dumping

2012-07-20 Thread Richard Guenther
On Fri, Jul 20, 2012 at 11:02 AM, Steven Bosscher wrote: > On Thu, Jul 19, 2012 at 11:09 AM, Richard Guenther > wrote: >> Hmm, pp_flush looks like a lot more expensive compared to pp_newline >> for example in >> >> @@ -74,7 +74,7 @@ maybe_init_pretty_print (FILE *file) >> static void >> newline

Re: [PATCH] Avoid duplicate -Wnonnull warnings (PR c++/28656)

2012-07-20 Thread Jakub Jelinek
On Fri, Jul 20, 2012 at 10:37:32AM +0200, Richard Guenther wrote: > On Thu, Jul 19, 2012 at 6:53 PM, Jakub Jelinek wrote: > Hum. How hard would it be to merge the attributes? IMHO hard and ugly. The thing is that you probably can do some hacks easily in handle_nonnull_attribute, so that multipl

Re: [patch] More cleanups for CFG dumping

2012-07-20 Thread Steven Bosscher
On Thu, Jul 19, 2012 at 11:09 AM, Richard Guenther wrote: > Hmm, pp_flush looks like a lot more expensive compared to pp_newline > for example in > > @@ -74,7 +74,7 @@ maybe_init_pretty_print (FILE *file) > static void > newline_and_indent (pretty_printer *buffer, int spc) > { > - pp_newline (

Re: [PATCH 0/4] [RFC] Reduce the representation size of optabs

2012-07-20 Thread Richard Guenther
On Thu, Jul 19, 2012 at 8:24 PM, Richard Henderson wrote: > While adding multiple new optabs over the past week or three, it > occurred to me that (1) there are lots of places to update all in > sync and (2) the representation size of optabs is huge. > > The first issue is somewhat trivially accom

Re: [PATCH] Avoid duplicate -Wnonnull warnings (PR c++/28656)

2012-07-20 Thread Richard Guenther
On Thu, Jul 19, 2012 at 6:53 PM, Jakub Jelinek wrote: > Hi! > > On the following testcase we emit various (correct) -Wnonnull warnings > more than once, sometimes many times. The problem on the reported memcpy > testcase is that glibc uses __attribute__((nonnull (1, 2))) and gcc > uses __attribut

Re: [PATCH] Re-work get_object_alignment (again)

2012-07-20 Thread Richard Guenther
On Thu, 19 Jul 2012, Markus Trippelsdorf wrote: > On 2012.07.17 at 15:10 +0200, Richard Guenther wrote: > > Comments welcome, of course. > > This patch apparently miscompiles the Linux kernel, which just > hangs during early boot: > > ... > SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0,

Re: [PATCH][MIPS] NetLogic XLP scheduling

2012-07-20 Thread Richard Sandiford
Chung-Lin Tang writes: > 2012-07-20 Chung-Lin Tang > Maxim Kuvyrkov > NetLogic Microsystems Inc. > > * config/mips/mips.c (mips_issue_rate): Handle XLP. > * config/mips/xlp.md: New file. OK, thanks. Richard

Re: [PATCH][MIPS] NetLogic XLP scheduling

2012-07-20 Thread Richard Sandiford
Maxim Kuvyrkov writes: > 2012-07-13 Maxim Kuvyrkov > > * config/mips/mips.md (define_attr sync_*): Move before "type". > (define_attr "type"): New values "atomic" and "syncloop". > * config/mips/sync.md (atomic_exchange, atomic_fetch_add): > Set "type" attribute. >

Re: Commit: ARM: Document -munaligned-access

2012-07-20 Thread nick clifton
Hi H-P, *cough* Sounds like a call for a note in changes.html, to warn people that they have to turn on the alignment feature in their startup code (for whatever OS) for their ARMv6-or-later targets, if they have not already done so. What a good idea :-) Maybe something like: Index: chan

Re: [Patch, Fortran] Add parsing support for assumed-rank array

2012-07-20 Thread Igor Zamyatin
On x86_64 the same happens. Also I modified list of failing tests - now it is correct On Fri, Jul 20, 2012 at 11:43 AM, Igor Zamyatin wrote: >> >> Tobias Burnus wrote: >>> I will now regtest everything, read through the whole patch - your >>> part and mine, update the ChangeLog and commit it tomo

Re: [Patch, Fortran] Add parsing support for assumed-rank array

2012-07-20 Thread Igor Zamyatin
> > Tobias Burnus wrote: >> I will now regtest everything, read through the whole patch - your >> part and mine, update the ChangeLog and commit it tomorrow. > > I have now committed the attached version as Rev. 189700! > > Thanks agai for the review! > > Tobias > This seems to cause following fai

Re: [Patch/RFC] SEH exceptions for Win64

2012-07-20 Thread Tristan Gingold
On Jul 19, 2012, at 6:54 PM, Eric Botcazou wrote: >> I did a manual build and testing for x86_64-pc-mingw32 and I will run a >> full bootstrap and regression run on GNU/Linux. >> >> Tristan. >> >> libstdc++-v3/ >> * libsupc++/eh_personality.cc (__gxx_personality_seh0): New function. >>

Re: [PATCH][MIPS] NetLogic XLP scheduling

2012-07-20 Thread Chung-Lin Tang
On 2012/7/20 12:27 PM, Maxim Kuvyrkov wrote: > Attached is a stand-alone patch that adds handling of "syncloop" and "atomic" > type attributes. > > Tested by building cross-toolchain mips64-linux-gnu including GLIBC. OK to > apply? > > -- > Maxim Kuvyrkov > CodeSourcery / Mentor Graphics And