[google] Add option to emit mapping between module/function id and function name (issue8211043)

2013-03-30 Thread Teresa Johnson
This patch restores part of r196176, which was subsequently reverted due to issues with the other part of that patch that dealt with module info updates. This patch restores the option -femit-function-names to emit to stderr the mapping from module name/function id to function assembler name. This

Re: [var-template] Accept variable template declaration

2013-03-30 Thread Jason Merrill
On 03/29/2013 10:56 PM, Gabriel Dos Reis wrote: int wanted = num_template_headers_for_class (ctx); I think you want to add one to wanted if decl is a primary template. Jason

[Patch, libgfortran] [4.6/4.7/4.8/4.9 Regression] Namelist read fails with designators containing embedded spaces

2013-03-30 Thread Jerry DeLisle
Hi all, The attached patch fixes this PR by removing a spurious call to next_char which threw off the parsing sequence. In addition, I audited the file for other tests of EOF and corrected the error handling. This eliminated some wrong error messages or undefined error messages when an EOF is en

Re: [patch] Remove unused code from dse.c.

2013-03-30 Thread Lawrence Crowl
On 3/29/13, Jeff Law wrote: > More correctly, it's been dead since an Oct 2008 patch from > Richard Henderson which introduced set_mem_attrs_for_spill which > effectively provides the alias analysis code with the information > it needs to disambiguate stack slots from everything else without > the

Re: *ping* Re: [Patch, Fortran, 4.9] Minor FINAL preparation patch

2013-03-30 Thread Thomas Koenig
Hi Tobias, *** PING *** The patch is rather simple and almost three weeks old ... Even if it is mostly a no-op patch (as long as FINAL is disabled), I'd like to get it out of my tree. The patch is fine, as far as I can see. OK for trunk. Thomas

Re: [PATCH] PR55033: Fix

2013-03-30 Thread David Edelsohn
Alan, How can we make progress to get this patch committed on trunk, 4.8 and 4.7? Thanks, David

[Fortran-dev] Merged trunk into the branch

2013-03-30 Thread Tobias Burnus
I have merged the trunk into Fortran-dev merge. I have not yet regtested, but I hope that there are not too many (new) failures. Committed as Rev., merging r189741 (from July) to r197268. The Fortran-dev branch contains the array-descriptor update work. The first part of the update is almost d

Re: [Fortran, RFC patch] Document naming and argument passing convention

2013-03-30 Thread Janne Blomqvist
On Sat, Mar 30, 2013 at 9:50 PM, Tobias Burnus wrote: > Janne Blomqvist wrote: >> +For procedures and variables declared in the specification space of a >> +module, the name is formed by @code{__}, followed by the lower-cased >> +module name, @code{_MOD_}, and the lower-cased Fortran name. Note t

*ping* Re: [Patch, Fortran, 4.9] Minor FINAL preparation patch

2013-03-30 Thread Tobias Burnus
*** PING *** The patch is rather simple and almost three weeks old ... Even if it is mostly a no-op patch (as long as FINAL is disabled), I'd like to get it out of my tree. Tobias On March 27, 2013 10:53, Tobias Burnus wrote: ** PING ** And an updated patch. Changes: - Updated isym handling

[wwwdocs] Remove mirrors-us.seosue.com from mirrors.html

2013-03-30 Thread Gerald Pfeifer
It looks like this site does not mirror gcc.gnu.org any more, so I am thusly removing it from the GCC mirrors list. Gerald Index: mirrors.html === RCS file: /cvs/gcc/wwwdocs/htdocs/mirrors.html,v retrieving revision 1.219 diff -u -3

Re: [Fortran, RFC patch] Document naming and argument passing convention

2013-03-30 Thread Tobias Burnus
Janne Blomqvist wrote: Thanks for the patch! Comments below: +For logical types, please note that the Fortran standard only guarantees +interoperability between C99's @code{_Bool} and Fortran's @code{C_Bool}-kind +logicals and C99 defines that @code{true} has the value 1 and @code{false} +the va

Re: [Fortran, RFC patch] Document naming and argument passing convention

2013-03-30 Thread Janne Blomqvist
On Fri, Mar 29, 2013 at 8:42 PM, Tobias Burnus wrote: > Ups - I attached the wrong patch (same file name, wrong directory). > Hopefully, this one is the correct one. > > Tobias > > Am 29.03.2013 19:40, schrieb Tobias Burnus: > >> Dear all, >> >> the attached patch attempts to document gfortran's n

[wwwdocs] x86-64.org seems/is gone

2013-03-30 Thread Gerald Pfeifer
...remove the link we still have there. Applied. Gerald Index: news.html === RCS file: /cvs/gcc/wwwdocs/htdocs/news.html,v retrieving revision 1.135 diff -u -3 -p -r1.135 news.html --- news.html 17 Feb 2013 12:47:44 - 1.1

Re: [wwwdocs] Two more broken links in readings.html

2013-03-30 Thread minux
Hi, the link for "CompactRISC CR16CP Architecture" on that page is also broken. As TI says document for CR16 is only available to existing customers, i'm afraid we have to remove that link.

[wwwdocs] Two more broken links in readings.html

2013-03-30 Thread Gerald Pfeifer
For these two, I could not identify a natural replacement, so just removed them for now. Gerald Index: readings.html === RCS file: /cvs/gcc/wwwdocs/htdocs/readings.html,v retrieving revision 1.225 retrieving revision 1.226 diff -u -3

[PATCH][10/10] -fuse-caller-save - Add test-case

2013-03-30 Thread Tom de Vries
Richard, This patch series adds analysis of register usage of functions for usage by IRA. The original post is here ( http://gcc.gnu.org/ml/gcc-patches/2013-01/msg01234.html ). This patch adds a test-case for -fuse-caller-save. Since the test-case has different output for mips16 and micromips, n

[PATCH][09/10] -fuse-caller-save - Add documentation

2013-03-30 Thread Tom de Vries
Vladimir, This patch adds the documentation of -fuse-caller-save. Thanks, -Tom 2013-03-30 Radovan Obradovic Tom de Vries * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save to gccoptlist. (@item -fuse-caller-save): New item. diff --gi

[PATCH][08/10] -fuse-caller-save - Enable by default at O2 and higher

2013-03-30 Thread Tom de Vries
Vladimir, This patch enables the -fuse-caller-save optimization by default. Thanks, -Tom 2013-03-30 Radovan Obradovic Tom de Vries * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with OPT_fuse_caller_save. diff --git a/gcc/opts.c b/gcc/opts.c ind

[PATCH][07/10] -fuse-caller-save - Use collected register usage information

2013-03-30 Thread Tom de Vries
Paolo, This patch series adds analysis of register usage of functions for usage by IRA. The original post is here ( http://gcc.gnu.org/ml/gcc-patches/2013-01/msg01234.html ). This patch uses the information of which registers are clobbered by a call in IRA and df-scan. Bootstrapped and reg-teste

[PATCH][06/10] -fuse-caller-save - Collect register usage information

2013-03-30 Thread Tom de Vries
Vladimir, This patch adds analysis in pass_final to track which hard registers are set or clobbered by the function body, and stores that information in a struct cgraph_node. Thanks, -Tom 2013-03-30 Radovan Obradovic Tom de Vries * cgraph.h (struct cgraph_node): Add f

[PATCH][05/10] -fuse-caller-save - Implement TARGET_FN_OTHER_HARD_REG_USAGE hook for ARM

2013-03-30 Thread Tom de Vries
Richard, This patch series adds analysis of register usage of functions for usage by IRA. The original post is here ( http://gcc.gnu.org/ml/gcc-patches/2013-01/msg01234.html ). This patch implements the target hook TARGET_FN_OTHER_HARD_REG_USAGE for ARM. The target hook TARGET_FN_OTHER_HARD_REG_U

[PATCH][04/10] -fuse-caller-save - Add TARGET_FN_OTHER_HARD_REG_USAGE hook

2013-03-30 Thread Tom de Vries
Vladimir, This patch adds a TARGET_FN_OTHER_HARD_REG_USAGE hook. The hook is used to list hard registers that are set or clobbered by a call to a function, but are not listed as such in the function body, such as f.i. registers clobbered by veneers inserted by the linker. Thanks, -Tom 2013-03

[PATCH][03/10] -fuse-caller-save - Add implicit parameter to find_all_hard_reg_sets

2013-03-30 Thread Tom de Vries
Vladimir, This patch adds an implicit parameter to find_all_hard_reg_sets. Thanks, -Tom 2013-03-30 Radovan Obradovic Tom de Vries * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and handle. * rtl.h (find_all_hard_reg_sets): Add bool p

[PATCH][02/10] -fuse-caller-save - Add new reg-note REG_CALL_DECL

2013-03-30 Thread Tom de Vries
Vladimir, This patch addes the REG_CALL_DECL reg-note. Using the reg-note we are able to easily link call_insns to their corresponding declaration, even after the calls may have been split into an insn (set register to function address) and a call_insn (call register), which can happen for f.i. s

[PATCH][01/10] -fuse-caller-save - Add command line option

2013-03-30 Thread Tom de Vries
Vladimir, This patch adds the -fuse-caller-save command line option. Thanks, -Tom 2013-03-30 Radovan Obradovic Tom de Vries * common.opt (fuse-caller-save): New option. diff --git a/gcc/common.opt b/gcc/common.opt index bdbd3b6..d29b0a0 100644 --- a/gcc/common.opt +++

Re: SLP for vectors

2013-03-30 Thread Marc Glisse
On Tue, 29 Jan 2013, Richard Biener wrote: So yes, handling BIT_FIELD_REF in the vectorizer looks like the correct way to do - but mind that you should constrain the BIT_FIELD_REFs you allow (I suppose in the end that's properly done by other part of the analysis). Does that mean adding someth

Re: [PATCH][IRA] Analysis of register usage of functions for usage by IRA.

2013-03-30 Thread Tom de Vries
On 29/03/13 13:54, Tom de Vries wrote: > I split the patch up into 10 patches, to facilitate further review: > ... > 0001-Add-command-line-option.patch > 0002-Add-new-reg-note-REG_CALL_DECL.patch > 0003-Add-implicit-parameter-to-find_all_hard_reg_sets.patch > 0004-Add-TARGET_FN_OTHER_HARD_REG_USAGE

[patch][doc] document JUMP_TABLE_DATA

2013-03-30 Thread Steven Bosscher
Hello, Where necessary, replace jump_insn with jump_table_data or add jump_table_data to lists documenting insns flags. Add documentation for the jump_table_data object. Committed as obvious. Ciao! Steven JUMP_TABLE_DATA_doc.diff Description: Binary data

[PATCH] Add script to contrib to format email body and patch for submission

2013-03-30 Thread Tom de Vries
Ian, this patch adds a script to contrib that formats an email body and a patch for submission to gcc-patches. This email was generated using the script, in the following way: ... #!/bin/bash cat compose-body-patch.header \ <(./contrib/compose-body-patch.py \ <(cat compose-body-patch

Re: [rtl, i386] vec_merge simplification

2013-03-30 Thread Marc Glisse
On Wed, 27 Mar 2013, Eric Botcazou wrote: OK, modulo a few nits: Thanks, here is a version taking into account all your comments, and which still passes bootstrap+testsuite on x86_64-linux-gnu. I am not completely sure if there is a point checking !side_effects_p (op1) after rtx_equal_p (op

Re: [patch] Stop using JUMP_INSN for jump table data

2013-03-30 Thread Jeff Law
On 03/30/2013 07:10 AM, Steven Bosscher wrote: Right, the PA "explodes" table jumps to individual jumps in pa_reorg(). Yup. One of the many things I'd like to forget. Unlike other jumps on the PA, we can't nullify the delay slot to save space. The jump must always be 2 instructions. So we

[wwwdocs] comeaucomputing.com is gone

2013-03-30 Thread Gerald Pfeifer
...and this adjust the gcc.gnu.org site accordingly. Applied. Jonathan, you have another link at http://gcc.gnu.org/onlinedocs/libstdc++/manual/appendix_contributing.html How about reducing that section in size and refer to http://gcc.gnu.org/contribute.html ? Gerald Index: faq.html ==

Re: [patch] Stop using JUMP_INSN for jump table data

2013-03-30 Thread Steven Bosscher
On Sat, Mar 30, 2013 at 2:02 PM, Jeff Law wrote: > OK. Thanks for the quick review! > Note that on at least one target, the jump table data is actual code (PA). > I don't think it makes a difference at this stage, but please keep that in > mind as you continue this work. Right, the PA "explodes

[wwwdocs] projects/tree-ssa/index.html -- remove broken link

2013-03-30 Thread Gerald Pfeifer
This now redirects to the linux.com main page (which shows the relevance of even adjust "permanent redirects"). Refer to the proceedings on gcc.gnu.org instead. Gerald Index: index.html === RCS file: /cvs/gcc/wwwdocs/htdocs/projects

Re: [patch] Stop using JUMP_INSN for jump table data

2013-03-30 Thread Jeff Law
On 03/29/2013 05:15 PM, Steven Bosscher wrote: Hello, GCC uses fake JUMP_INSNs as placeholders for jump table data. These JUMP_INSNs have an ADDR_VEC or ADDR_DIFF_VEC as PATTERN, but they are not real instructions and they are not inside basic blocks. This results in special-casing JUMP_P insns

[wwwdocs] Remove i960 from readings.html

2013-03-30 Thread Gerald Pfeifer
So, on the plus side, Intel's webmaster added a redirect from the old http://edc.intel.com/Platforms/Previous/Processors/i960/ to a new address. On the funny side, that new address is bizzarely long: http://www.intel.com/content/www/us/en/intelligent-systems/previous-generation/intel-i960-high-pe

Re: [RTL] Canonicalize commutative operations more

2013-03-30 Thread Marc Glisse
On Wed, 27 Mar 2013, Eric Botcazou wrote: This patch passes bootstrap+testsuite on x86_64-linux-gnu. Using the opposite arbitrary order in compare_commutative_operands_precedence (exchange x and y in the line with GET_CODE) passes as well. The simplify-rtx bit is because I get an infinite recurs

Re: [ping] Re: [patch] [libffi] do not install libffi library, headers and documentation

2013-03-30 Thread Matthias Klose
Am 26.03.2013 21:48, schrieb Anthony Green: > For what it's worth, this patch is fine by me. I had originally > proposed that GCC not install these bits. now applied on trunk and the 4.8 branch. > As far as maintainers go, I thought that I was once listed in the > MAINTAINERS file. Feel free to

Re: [Patch, fortran] Use memcmp for string comparisons a bit more

2013-03-30 Thread Thomas Koenig
Hi Tobias, Somehow the commas and parentheses look odd. Shouldn't that be, e.g., "or (for kind=4 strings) the ..."? I committed as rev 197261 and 197262, with a slightly better worded ChangeLog entry :-) The wording is now If the strings compared have constant and equal leng