Re: How to determine source location of pragma?

2016-01-11 Thread Manuel López-Ibáñez
On 11/01/16 01:08, Vanush Vaswani wrote: I am new to GCC internals. I'm trying to create a plugin to operate on pragmas. Currently have this working using c_register_pragma with a callback. The callback performs pragma_lex and is able to retrieve the string token of the pragma based on this

Re: [PATHCH] Disable inline asm for in-tree mpfr (PR69134)

2016-01-11 Thread Richard Biener
On January 11, 2016 7:21:59 PM GMT+01:00, Bernd Schmidt wrote: >On 01/05/2016 07:43 PM, Richard Biener wrote: >> IIRC the logic at some point at least used host CPU detection to >> select asm. That's undesirable if you want to run binaries on >> different hosts. Not sure

[Bug target/67462] [6 Regression] FAIL: gcc.dg/ifcvt-3.c scan-rtl-dump ce1 "3 true changes made"

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67462 --- Comment #8 from Jakub Jelinek --- Author: jakub Date: Mon Jan 11 19:07:31 2016 New Revision: 232242 URL: https://gcc.gnu.org/viewcvs?rev=232242=gcc=rev Log: PR target/67462 * gcc.dg/ifcvt-3.c: Only compile on lp64 targets,

Re: ipa vrp implementation in gcc

2016-01-11 Thread Jan Hubicka
> On Mon, Jan 11, 2016 at 1:38 AM, Kugan > wrote: > > Hi All, > > > > I am looking at implementing a ipa vrp pass. Jan Hubicka also talks > > about this in 2013 GNU Cauldron as one of the optimization he would like > > to see in gcc. So my question is, is any

Re: [PATCH] Avoid VRP from propagating (ab) SSA_NAMEs into conditions (PR tree-optimization/69214)

2016-01-11 Thread Richard Biener
On January 11, 2016 6:40:28 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >As the testcase shows, simplify_cond_using_ranges has one place where >it can extend range of SSA_NAME_OCCURS_IN_ABNORMAL_PHI ssa names and >cause SSA corruption by that. > >Fixed by only optimizing that if

[Bug go/68980] [6 regression] ps -o cmd in gotest isn't portable

2016-01-11 Thread ian at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68980 --- Comment #4 from ian at gcc dot gnu.org --- Author: ian Date: Mon Jan 11 17:55:39 2016 New Revision: 232234 URL: https://gcc.gnu.org/viewcvs?rev=232234=gcc=rev Log: PR 68980 libgo/testsuite: portable ps usage in gotest

[Bug tree-optimization/69207] [6 Regression] gcc.target/aarch64/vldN_1.c ICEs at -O3

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69207 --- Comment #6 from Jakub Jelinek --- Author: jakub Date: Mon Jan 11 17:55:38 2016 New Revision: 232233 URL: https://gcc.gnu.org/viewcvs?rev=232233=gcc=rev Log: PR tree-optimization/69207 * tree-vect-slp.c

libgo patch committed: Make ps use more portable

2016-01-11 Thread Ian Lance Taylor
This patch from Andrew Wilkins makes the use of ps in the libgo testsuite more portable. This should fix GCC PR 68980. Committed to mainline. Ian Index: libgo/testsuite/gotest === --- libgo/testsuite/gotest (revision 231693)

[Bug tree-optimization/69214] [4.9/5 Regression] ICE (segfault) at -Os on x86_64-linux-gnu in "fail_abnormal_edge_coalesce"

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69214 Jakub Jelinek changed: What|Removed |Added Known to work||6.0 Summary|[4.9/5/6

[Bug c/69229] New: missing type information in diagnostics about type mismatch in conditional expressions

2016-01-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69229 Bug ID: 69229 Summary: missing type information in diagnostics about type mismatch in conditional expressions Product: gcc Version: 6.0 Status: UNCONFIRMED

[Bug c++/69211] [6 Regression] g++ ICE on x86_64-linux-gnu (verify_gimple failed)

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69211 --- Comment #4 from Jakub Jelinek --- Author: jakub Date: Mon Jan 11 17:59:22 2016 New Revision: 232237 URL: https://gcc.gnu.org/viewcvs?rev=232237=gcc=rev Log: PR c++/69211 * cp-gimplify.c (cp_fold): If COMPOUND_EXPR or

Re: [PATCH] PR c++/68795: fix uninitialized close_paren_loc in cp_parser_postfix_expression (v2)

2016-01-11 Thread David Malcolm
On Mon, 2016-01-11 at 16:51 +0100, Bernd Schmidt wrote: > On 12/18/2015 08:05 PM, David Malcolm wrote: > > On Thu, 2015-12-17 at 19:21 +0100, Bernd Schmidt wrote: > >> On 12/17/2015 07:32 PM, David Malcolm wrote: > >>> + if (close_paren_loc) > >> > >> close_paren_loc !=

Re: [patch] libsanitizer

2016-01-11 Thread Jakub Jelinek
On Mon, Jan 11, 2016 at 07:37:30PM +0100, Andreas Tobler wrote: > @@ -104,6 +104,10 @@ > AC_CHECK_LIB(rt, shm_open, >[link_sanitizer_common="-lrt $link_sanitizer_common"]) > > +# Do a configure time check for -ldl > +AC_CHECK_LIB(dl, dlsym, > + [link_sanitizer_common="-lrt

Re: [PR tree-optimization/64946] Push integer type conversion to ABS_EXPR argument when possible.

2016-01-11 Thread Richard Biener
On January 11, 2016 5:36:33 PM GMT+01:00, Bernd Schmidt wrote: >On 01/11/2016 05:33 PM, Matthew Wahab wrote: >> >> The case I'm trying to fix has (short)abs((int)short_var). I'd >thought >> that if >> abs(short_var) was undefined because the result couldn't be >represented

[Bug ipa/68930] Aggregate replacements not applied to inline function bodies.

2016-01-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68930 --- Comment #8 from Jan Hubicka --- The information is consumed by ipcp_transform_function, so you can take a look. It is stored in ipcp_get_transformation_summary I think it is just matter of not freeing it (assuming it is freed after cloning

[PING][PATCH 5/6] [DJGPP] gcc/config/i386: update DJGPP configuration related files

2016-01-11 Thread Andris Pavenis
I posted last version of patch where I took review comments into account month ago: https://gcc.gnu.org/ml/gcc-patches/2015-12/msg01328.html Andris

[Bug c++/68795] [6 Regression] Use of uninitialised value of size 8 in cp_parser_postfix_expression (parser.c:6831)

2016-01-11 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68795 --- Comment #5 from David Malcolm --- Author: dmalcolm Date: Mon Jan 11 18:03:15 2016 New Revision: 232238 URL: https://gcc.gnu.org/viewcvs?rev=232238=gcc=rev Log: PR c++/68795: fix uninitialized close_paren_loc in cp_parser_postfix_expression

[Bug c++/68795] [6 Regression] Use of uninitialised value of size 8 in cp_parser_postfix_expression (parser.c:6831)

2016-01-11 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68795 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

Re: ivopts vs. garbage collection

2016-01-11 Thread Michael Matz
Hi, On Fri, 8 Jan 2016, Richard Biener wrote: > > The only solution here is for ivopts to keep a pointer to the array, > > not a pointer to some location near, but outside of the array. > > Yes, the solution is to make IVOPTs not do this (eventually controlled > by a parameter because clearly

Re: ivopts vs. garbage collection

2016-01-11 Thread Ian Lance Taylor
On Mon, Jan 11, 2016 at 10:00 AM, Michael Matz wrote: > > On Fri, 8 Jan 2016, Richard Biener wrote: > >> > The only solution here is for ivopts to keep a pointer to the array, >> > not a pointer to some location near, but outside of the array. >> >> Yes, the solution is to make

Re: [PATCH] Fix up fold_convert{,ible_p}

2016-01-11 Thread Richard Biener
On January 11, 2016 6:15:48 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >Related to the PR69207 changes, the problem there has been that >fold_convertible_p allowed conversion from a vector type to same sized >integral type, and fold_convert used NOP_EXPR in that case. But,

[Bug tree-optimization/69214] [4.9/5/6 Regression] ICE (segfault) at -Os on x86_64-linux-gnu in "fail_abnormal_edge_coalesce"

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69214 --- Comment #6 from Jakub Jelinek --- Author: jakub Date: Mon Jan 11 17:56:39 2016 New Revision: 232235 URL: https://gcc.gnu.org/viewcvs?rev=232235=gcc=rev Log: PR tree-optimization/69214 * tree-vrp.c

[Bug go/68980] [6 regression] ps -o cmd in gotest isn't portable

2016-01-11 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68980 Ian Lance Taylor changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [C++ PATCH] Fix delayed folding caused ICE (PR c++/69211)

2016-01-11 Thread Jason Merrill
OK. Jason

[Bug c/69229] missing type information in diagnostics about type mismatch in conditional expressions

2016-01-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69229 --- Comment #1 from Martin Sebor --- Created attachment 37307 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37307=edit Prototype patch.

Re: [PATCH], PowerPC IEEE 128-bit fp, #11-rev3 (enable libgcc conversions)

2016-01-11 Thread Michael Meissner
I fixed the #ifdef to use __NO_FPRS__ (thanks for the heads up on that). I also believe I fixed the various formatting issues. These two patches build on a big endian power7 host and little endian power8 host with no regressions in the testsuite (the gcc patch is included here, but it hasn't

[Bug target/69071] [6 Regression] ICE: in decompose, at rtl.h:2107 with -g

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69071 --- Comment #2 from Jakub Jelinek --- Author: jakub Date: Mon Jan 11 19:06:34 2016 New Revision: 232241 URL: https://gcc.gnu.org/viewcvs?rev=232241=gcc=rev Log: PR target/69071 * lra-eliminations.c (move_plus_up): Only move plus

[Bug target/69071] [6 Regression] ICE: in decompose, at rtl.h:2107 with -g

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69071 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/48891] std functions conflicts with C functions when building with c++0x support (and using namespace std)

2016-01-11 Thread adhemerval.zanella at linaro dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48891 Adhemerval Zanella changed: What|Removed |Added CC||adhemerval.zanella at linaro dot o

[Bug target/67462] [6 Regression] FAIL: gcc.dg/ifcvt-3.c scan-rtl-dump ce1 "3 true changes made"

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67462 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/69231] rtx_cost of subreg is bad for <= wordmode integral subregs of > wordmode integral pseudos

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69231 Bug 69231 depends on bug 67462, which changed state. Bug 67462 Summary: [6 Regression] FAIL: gcc.dg/ifcvt-3.c scan-rtl-dump ce1 "3 true changes made" https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67462 What|Removed

[Bug target/69231] rtx_cost of subreg is bad for <= wordmode integral subregs of > wordmode integral pseudos

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69231 Jakub Jelinek changed: What|Removed |Added CC||uros at gcc dot gnu.org Target

[Bug middle-end/69230] valid -Wmaybe-uninitialized suppressed by -O2

2016-01-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69230 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

Re: ivopts vs. garbage collection

2016-01-11 Thread Richard Biener
On January 11, 2016 8:35:25 PM GMT+01:00, Michael Matz wrote: >Hi, > >On Mon, 11 Jan 2016, Ian Lance Taylor wrote: > >> > Well, that's a hack. A solution is to design something that works >> > generally for garbage collected languages with such requirements >> > instead of

Re: ivopts vs. garbage collection

2016-01-11 Thread Michael Matz
Hi, On Mon, 11 Jan 2016, Ian Lance Taylor wrote: > > Well, that's a hack. A solution is to design something that works > > generally for garbage collected languages with such requirements > > instead of arbitrarily limiting transformations here and there. It > > could be something like the

[Bug tree-optimization/69232] New: floop-unroll-and-jam, at graphite_transform_loops with isl

2016-01-11 Thread nickpapior at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69232 Bug ID: 69232 Summary: floop-unroll-and-jam, at graphite_transform_loops with isl Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/69230] valid -Wmaybe-uninitialized suppressed by -O2

2016-01-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69230 Martin Sebor changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug target/69231] New: rtx_cost of subreg is bad for <= wordmode integral subregs of > wordmode integral pseudos

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69231 Bug ID: 69231 Summary: rtx_cost of subreg is bad for <= wordmode integral subregs of > wordmode integral pseudos Product: gcc Version: 6.0 Status: UNCONFIRMED

[Bug tree-optimization/69155] [6 Regression] ICE (segfault in gimple_stmt_nonnegative_warnv_p)

2016-01-11 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69155 --- Comment #7 from rsandifo at gcc dot gnu.org --- (In reply to Richard Biener from comment #6) > (In reply to Jakub Jelinek from comment #4) > > (In reply to Richard Biener from comment #2) > > > I think we have a dup/related bug where we run

Re: [PATCH configure,config.gcc] Fix for PR69153 to allow config.gcc to set target_header_dir

2016-01-11 Thread Michael Meissner
On Sun, Jan 10, 2016 at 05:10:29PM -0600, Peter Bergner wrote: > On Sun, 2016-01-10 at 19:28 +, Bernd Edlinger wrote: > > Hi Peter, > > > > > @@ -4167,6 +4167,7 @@ > > > -d "/opt/$with_advance_toolchain/bin/." -a \ > > > -d

Re: [patch] libsanitizer

2016-01-11 Thread Andreas Tobler
On 11.01.16 19:57, Jakub Jelinek wrote: On Mon, Jan 11, 2016 at 07:37:30PM +0100, Andreas Tobler wrote: @@ -104,6 +104,10 @@ AC_CHECK_LIB(rt, shm_open, [link_sanitizer_common="-lrt $link_sanitizer_common"]) +# Do a configure time check for -ldl +AC_CHECK_LIB(dl, dlsym, +

[Bug middle-end/69230] New: valid -Wmaybe-uninitialized suppressed by -O2

2016-01-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69230 Bug ID: 69230 Summary: valid -Wmaybe-uninitialized suppressed by -O2 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

Re: C++ patch ping

2016-01-11 Thread Nathan Sidwell
On 01/09/16 02:41, Jakub Jelinek wrote: Hi! I'd like to ping the PR c++/66808, PR c++/69000 http://gcc.gnu.org/ml/gcc-patches/2015-12/msg02019.html patch, fixing ICE with GNU __thread vars in templates. Can't you unconditionally clear DECL_TEMPLATE_INFO regardless of local_p? if

<    1   2   3   4