[PATCH] jit docs: Add "Packaging notes" section

2015-03-13 Thread David Malcolm
On Wed, 2015-03-04 at 11:09 -0500, David Malcolm wrote: > On Tue, 2015-03-03 at 11:49 +0100, Matthias Klose wrote: > > Both gccjit and gnat now use sphinx to build the documentation. While not a > > direct part of the build process, it would be nice to document the > > requi

ANN: gcc-python-plugin 0.14

2015-05-06 Thread David Malcolm
gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the CPython interpreter within GCC, allowing you to write new compiler warnings in Python, generate code visualizations, etc. It ships with "gcc-with-cpychecker", which implements static analysis passes for GCC aimed at finding bugs in

Re: Help Out with Gcc

2018-11-30 Thread David Malcolm
On Fri, 2018-11-30 at 10:04 +, Jonathan Wakely wrote: > On Fri, 30 Nov 2018 at 05:59, nick wrote: > > > > Greetings All, > > > > I assume you get lots of these but I was wondering what's the > > areas where gcc needs help the most these days that are good > > for a new developer to gcc. > >

Re: Regarding projects and begineer guide.

2018-12-05 Thread David Malcolm
On Wed, 2018-12-05 at 22:48 +0530, Durgesh Kumar wrote: > Dear sir/mam > I am durgesh kumar from ABES engineering collenge,ghaziabad,uttar > pradesh,india. > > I am currently in 2nd year of my graduation(Btech CSE ) > > I want to contribute in some of your prestigious project. So i > request you

Re: improve syntax errors

2019-01-03 Thread David Malcolm
On Thu, 2019-01-03 at 15:59 +0100, Daniel Marjamäki wrote: > Hello! > > I have used GCC for decades and would like to contribute a little. :- > ) Hi, and welcome! > I would like to see if I can improve the syntax errors. > > Here is one example code: > > int x = 3) + 0; > > I have created

Re: autovectorization in gcc

2019-01-09 Thread David Malcolm
On Wed, 2019-01-09 at 09:56 +, Jonathan Wakely wrote: > On Wed, 9 Jan 2019 at 09:50, Andrew Haley wrote: > > I don't agree. Sometimes vectorization is critical. It would be > > nice > > to have a warning which would fire if vectorization failed. That > > would > > surely help the OP. > > Dave

Re: autovectorization in gcc

2019-01-09 Thread David Malcolm
On Wed, 2019-01-09 at 11:10 -0500, David Malcolm wrote: > On Wed, 2019-01-09 at 09:56 +, Jonathan Wakely wrote: > > On Wed, 9 Jan 2019 at 09:50, Andrew Haley wrote: > > > I don't agree. Sometimes vectorization is critical. It would be > > > nice > > &

ANN: gcc-python-plugin 0.17

2019-01-23 Thread David Malcolm
gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the CPython interpreter within GCC, allowing you to write new compiler warnings in Python, generate code visualizations, etc. This release adds support for gcc 9 (along with continued support for gcc 4.6, 4.7, 4.8, 4.9, 5, 6, 7, and 8)

GCC 9 Usability Improvements blog post

2019-03-08 Thread David Malcolm
I've written up my GCC 9 work in blog form here: https://developers.redhat.com/blog/2019/03/08/usability-improvements-in-gcc-9/ I'm working on a patch for changes.html, to cover the same material. (sorry about the shameless self-promotion) Dave

Re: How to add %' into gfc_fatal_error

2019-03-11 Thread David Malcolm
On Mon, 2019-03-11 at 15:18 +0100, Martin Liška wrote: > Hi. > > I would like to add %' into __gcc_gfc__ in order to handle: > > ./xgcc -B. /tmp/module.ii -Wformat -c > /home/marxin/Programming/gcc/gcc/fortran/module.c: In function ‘void > dump_module(const char*, int)’: > /home/marxin/Programmin

Re: [RFC] split of i386.c

2019-03-13 Thread David Malcolm
On Tue, 2019-03-12 at 16:08 +0100, Martin Liška wrote: > Hi. > > I've thinking about the file split about quite some time, mainly > in context of PR84402. I would like to discuss if it's fine for > maintainers of the target to make such split and into which logical > components can the file be spl

Re: GSOC

2019-03-26 Thread David Malcolm
On Mon, 2019-03-25 at 19:51 -0400, nick wrote: > Greetings All, > > I would like to take up parallelize compilation using threads or make > c++/c > memory issues not automatically promote. I did ask about this before > but > not get a reply. When someone replies I'm just a little concerned as >

Re: Show name of compiler options when linking

2019-04-04 Thread David Malcolm
On Thu, 2019-04-04 at 10:12 +, Jonathan Wakely wrote: > On Thu, 4 Apr 2019 at 11:10, Jonathan Wakely wrote: > > > > On Thu, 4 Apr 2019 at 10:56, Peter Olsson wrote: > > > > > > Hello, > > > > > > I often want to link to specific compiler options in your online > > > docs > > > but the proble

Re: GCC 8: adding, thru a plugin, an analyzing RTL pass after pro_and_epilogue issue with its reference_pass_name

2019-04-10 Thread David Malcolm
On Wed, 2019-04-10 at 17:53 +0200, Basile Starynkevitch wrote: > Hello All, > > This is work done for the CHARIOT H2020 project (see > https://www.chariotproject.eu/ for more context) in relation with my > BISMON project (see http://github.com/bstarynk/bismon/ for more, and, > if > you want mor

Re: Rust front-end

2019-08-27 Thread David Malcolm
On Fri, 2019-08-23 at 11:10 -0300, Mateus Carmo Martins de Freitas Barbosa wrote: > I'm interested in working on the Rust front-end for GCC. > > So far I've cloned the repository git> > and tried to compile it as described in tF

Re: GCC wwwdocs move to git done

2019-10-09 Thread David Malcolm
On Wed, 2019-10-09 at 09:37 -0400, Christopher Faylor wrote: > On Wed, Oct 09, 2019 at 01:25:30PM +0100, Iain Sandoe wrote: > > Jonathan Wakely wrote: > > > > > On Wed, 9 Oct 2019 at 01:28, Joseph Myers wrote: > > > > I've done the move of GCC wwwdocs to git (using the previously > > > > posted a

Re: GCC wwwdocs move to git done

2019-10-09 Thread David Malcolm
On Wed, 2019-10-09 at 15:06 +, Joseph Myers wrote: > On Tue, 8 Oct 2019, Frank Ch. Eigler wrote: > > > Hi - > > > > Thanks - good job with moving this to git! +1 > > > Note 1: someone with the right access needs to create the > > > symlink > > > /sourceware/git/gcc-wwwdocs.git -> > > > /s

Re: GCC selftest improvements

2019-10-24 Thread David Malcolm
On Thu, 2019-10-24 at 20:50 +, Andrew Dean via gcc wrote: > TLDR: I'd like to propose adding a dependency on a modern unit > testing framework to make it easier to write unit tests within GCC. > Before I spend much more time on it, what sort of buy-in should I > get? Are there any people in par

Re: Commit messages and the move to git

2019-11-05 Thread David Malcolm
On Tue, 2019-11-05 at 11:27 +, Jason Merrill wrote: > On Tue, Nov 5, 2019 at 11:07 AM Jonathan Wakely < > jwakely@gmail.com> wrote: > > On Mon, 4 Nov 2019 at 17:42, Joseph Myers wrote: > > > On Mon, 4 Nov 2019, Segher Boessenkool wrote: > > > > > > > On Mon, Nov 04, 2019 at 04:19:25PM +000

GCC static analysis branch now available on Compiler Explorer

2019-12-10 Thread David Malcolm
For the adventurous/curious, my static analyzer branch of GCC [1] is now available on Compiler Explorer (aka godbolt.org) so you can try it out without building it yourself. [Thanks to Matt Godbolt, Patrick Quist and others at the Compiler Explorer project] On https://godbolt.org/ within the C an

Re: GCC static analysis branch now available on Compiler Explorer

2019-12-10 Thread David Malcolm
On Tue, 2019-12-10 at 11:04 -0500, Marek Polacek wrote: > On Tue, Dec 10, 2019 at 10:46:59AM -0500, David Malcolm wrote: [...] > > Would it make sense to add an "analyzer" component to our bugzilla, > > even though this is still on a branch? (with me as default > >

Re: GCC static analysis branch now available on Compiler Explorer

2019-12-10 Thread David Malcolm
On Tue, 2019-12-10 at 12:11 -0500, David Malcolm wrote: > On Tue, 2019-12-10 at 11:04 -0500, Marek Polacek wrote: > > On Tue, Dec 10, 2019 at 10:46:59AM -0500, David Malcolm wrote: > [...] > > > Would it make sense to add an "analyzer" component to our > >

Re: GCC static analysis branch now available on Compiler Explorer

2019-12-10 Thread David Malcolm
On Tue, 2019-12-10 at 09:36 -0700, Martin Sebor wrote: > On 12/10/19 8:46 AM, David Malcolm wrote: > > For the adventurous/curious, my static analyzer branch of GCC [1] > > is > > now available on Compiler Explorer (aka godbolt.org) so you can try > > it > >

Re: GCC static analysis branch now available on Compiler Explorer

2019-12-11 Thread David Malcolm
On Tue, 2019-12-10 at 13:42 -0700, Jeff Law wrote: > On Tue, 2019-12-10 at 12:51 -0700, Martin Sebor wrote: > > On 12/10/19 10:56 AM, David Malcolm wrote: > > > On Tue, 2019-12-10 at 09:36 -0700, Martin Sebor wrote: > > > > On 12/10/19 8:46 AM, David Malcolm wrote:

Re: Option flag with string arguments

2019-12-19 Thread David Malcolm
On Thu, 2019-12-19 at 16:47 -0500, Erick Ochoa wrote: > Hello, > > I am working on testing an optimization. I am starting to write > tests in the GCC testing suite. However, I want to develop some > fine grain testing for my own sake. > > This optimization I am working on, is a variant of struct

What's the plan for git-only branches?

2019-12-27 Thread David Malcolm
(Sorry if I'm missing a FAQ here, but the discussion about the git conversion has grown very large) I'm wondering what the plan is for the git-only branches currently hosted on the gcc.gnu.org git server. In particular, I'm actively developing stuff in my "dmalcolm/analyzer" branch there, and I'v

Re: Mechanism to get at function information seems not to work

2020-01-03 Thread David Malcolm
On Fri, 2020-01-03 at 23:02 +, Gary Oblock wrote: > I'm having some grief attempting to get at the local definitions > in LTO (more about the options used later.) > > Here's the sequence of code in my optimization (part of attempt > at structure reorganization optimizations.) > > cgraph_nod

Re: [RFC] Further LRA subreg handling issues

2017-01-26 Thread David Malcolm
On Thu, 2017-01-26 at 13:00 +, Matthew Fortune wrote: > Matthew Fortune writes: > ... > > Pseudo 300 is assigned to memory and then LRA produces a simple > > DImode > > load from the assigned stack slot. The only instruction to set > > pseudo > > 300 is: > > > > (insn 247 212 389 3 (set (reg:

gcc-python-plugin moving website

2017-02-09 Thread David Malcolm
The gcc-python-plugin was formerly located here: https://fedorahosted.org/gcc-python-plugin/ However fedorahosted.org is being sunset, as of 2017-02-28: https://communityblog.fedoraproject.org/fedorahosted-sunset-2017-02-28 Given that I already had an unofficial mirror here: https://githu

[wwwdocs, PATCH] C++ terminology: the One Definition Rule in diagnostics

2017-03-14 Thread David Malcolm
Looking at PR ipa/8, which notes that ipa-devirt.c has two trailing spaces in: if (warning_at ( DECL_SOURCE_LOCATION(TYPE_NAME (DECL_CONTEXT (vtable->decl))), OPT_Wodr, "virtual table of type %qD violates " "one definition rule ", DECL_CONTEXT (vtable->decl))) a

Re: Translation breaks IDE

2017-03-17 Thread David Malcolm
On Fri, 2017-03-17 at 12:20 +0100, Richard Biener wrote: > On Fri, Mar 17, 2017 at 9:48 AM, Frédéric Marchal > wrote: > > Hi, > > > > I gave my partial French translation a field trial this week and it > > didn't went > > well. QtCreator can't see error messages any more if they are > > translate

Re: Plugin development under windows

2017-03-27 Thread David Malcolm
On Mon, 2017-03-27 at 11:18 +, Davide Piombo wrote: > Hello, > I'm interested in developing a plugin to parse some custom annotation > in C+= > + code. > I already developed a preliminary version of this plugin under linux > and it= works fine. Excellent. > The final platform target of the p

A "newbies" guide to hacking on GCC (and plugins)

2017-03-28 Thread David Malcolm
I'm a relative newcomer to GCC [1], so I thought it would be a good idea to try to capture some of the "gotchas" and similar information on hacking on GCC in the form of a short guide for new contributors, whilst the experience of learning it is still fresh in my mind. The guide can be read here:

[PATCH] gcc 8: Implement -felide-function-bodies

2017-03-31 Thread David Malcolm
The following patch implements a new function-body-elision optimization, which can dramatically improve performance, especially under certain benchmarks. For example, given this test program... $ cat test.c int factorial (int i) { if (i > 1) return i * factorial (i - 1); else return

Re: [PATCH] gcc 8: Implement -felide-function-bodies

2017-04-01 Thread David Malcolm
On Sat, 2017-04-01 at 18:33 +0200, Gerald Pfeifer wrote: > On Sat, 1 Apr 2017, David Malcolm wrote: > > gcc/ChangeLog: > > * common.opt (felide-function-bodies): New option. > > * gimplify.c (gimplify_body): Implement function-body > > elision. > > Thi

Re: Who broke options.h?

2017-04-25 Thread David Malcolm
On Tue, 2017-04-25 at 06:59 -0700, Steve Kargl wrote: > Someone (other than Richard who seems to have fixed his > bootstrap issue) in the last 3 days has broken bootstrap > on FreeBSD. The generated file gcc/options.h contains > code of the form > > OPT_C = 116, /*

Re: LCOV of current GCC

2017-04-28 Thread David Malcolm
On Fri, 2017-04-28 at 11:38 +0200, Richard Biener wrote: > On Fri, Apr 28, 2017 at 11:07 AM, Martin Liška > wrote: > > Hello. > > > > I've been working on some patches for GCOV and lcov was of my test > > scenarios. > > I'm sending link to static HTML pages made by the tool which are > > recorded

Re: Basic Block Statistics

2017-05-16 Thread David Malcolm
On Tue, 2017-05-16 at 14:24 -0400, Will Hawkins wrote: > Hello everyone! > > I apologize if this is not the right venue to ask this question > and/or > this is a waste of your time. > > I was just wondering if there are statistics that gcc can emit that > includes either a) the average number of

Re: Help with rich_location and GIMPLE stmts

2017-05-16 Thread David Malcolm
On Mon, 2017-05-15 at 15:36 +0200, Martin Liška wrote: > Hi. > > I sent this email to David some time ago, but it should be probably > answered > on gcc mailing list. > I have idea one to improve gcov tool and I'm interested in more > precise locations for gimple > statements. For gcov purpose, w

Re: Doxygen for GCC

2017-06-09 Thread David Malcolm
On Thu, 2017-06-08 at 21:35 -0400, Eric Gallager wrote: > On 6/8/17, Martin Liška wrote: > > On 04/28/2017 02:32 PM, Martin Liška wrote: > > > I'm planning to periodically build it and rsync to a public > > > website. > > > I guess, sometimes it can be handy. > > > > Done that (it's weekly update

GC/GTY and Coverity "resource leaks" (was Re: Daily Coverity analysis on gcc)

2017-06-26 Thread David Malcolm
On Mon, 2017-06-26 at 06:36 -0700, Sylvestre Ledru wrote: > Over the last few weeks, working with Jonathan, I have been running > daily analysis of Coverity (a proprietary static analyzer tool) > It is running on a Debian amd64 with the options: > --with-gnu-as --with-gnu-ld --disable-bootstrap >

Re: GC/GTY and Coverity "resource leaks" (was Re: Daily Coverity analysis on gcc)

2017-06-26 Thread David Malcolm
On Mon, 2017-06-26 at 15:14 -0400, David Malcolm wrote: > On Mon, 2017-06-26 at 06:36 -0700, Sylvestre Ledru wrote: > > Over the last few weeks, working with Jonathan, I have been running > > daily analysis of Coverity (a proprietary static analyzer tool) > > It is running o

Re: whereis PLUGIN_REGISTER_GGC_CACHES? how to migrate it for GCC v6.x?

2017-07-10 Thread David Malcolm
On Sat, 2017-07-08 at 15:50 +0800, Leslie Zhai wrote: > Hi GCC developers, > > There was > > PLUGIN_REGISTER_GGC_CACHES > > pseudo-events for register_callback in GCC v4.x, but how to migrate > it > for GCC v6.x? there is no PLUGIN_REGISTER_GGC_CACHES deprecated log > in > ChangeLog-201X nor

Re: whereis PLUGIN_REGISTER_GGC_CACHES? how to migrate it for GCC v6.x?

2017-07-11 Thread David Malcolm
On Tue, 2017-07-11 at 10:50 +0800, Leslie Zhai wrote: > > 在 2017年07月10日 22:16, David Malcolm 写道: > > On Sat, 2017-07-08 at 15:50 +0800, Leslie Zhai wrote: > > > Hi GCC developers, > > > > > > There was > > > > > > PLUGIN_REGISTER_GGC_C

Re: whereis PLUGIN_REGISTER_GGC_CACHES? how to migrate it for GCC v6.x?

2017-07-26 Thread David Malcolm
On Wed, 2017-07-26 at 15:19 +0800, Leslie Zhai wrote: > > 在 2017年07月11日 21:25, David Malcolm 写道: > > On Tue, 2017-07-11 at 10:50 +0800, Leslie Zhai wrote: > > > 在 2017年07月10日 22:16, David Malcolm 写道: > > > > On Sat, 2017-07-08 at 15:50 +0800, Leslie Zhai w

Re: How to migrate struct rtl_opt_pass to class for GCC v6.x?

2017-08-03 Thread David Malcolm
p todo_after > $10 = 0 > (gdb) > > > 2336 todo_after = pass->execute (cfun); <--- gcc called execute > hook? but why not dragonegg > https://github.com/xiangzhai/dragonegg/blob/gcc-6_3-branch/src/Backen > d.cpp#L2103 > > > > 在 2017年08月03日 11:24, Leslie

Re: tests for GCC internal functions

2017-08-16 Thread David Malcolm
On Wed, 2017-08-16 at 16:51 +0200, Marek Polacek wrote: > On Wed, Aug 16, 2017 at 08:46:20AM -0600, Martin Sebor wrote: > > Is there a setup for writing and running as part of the test > > suite unit tests that exercise internal GCC functions like > > error and warning? I ask because of a couple o

Locating a commit from its ChangeLog entry (was Re: How to migrate ggc_alloc_XXX for GCC v8.x (git-20170816)?)

2017-08-17 Thread David Malcolm
On Thu, 2017-08-17 at 09:52 +0800, Leslie Zhai wrote: > Hi Trevor, > > Thanks for your kind response! > > > 在 2017年08月16日 20:02, Trevor Saunders 写道: > > On Wed, Aug 16, 2017 at 05:32:10PM +0800, Leslie Zhai wrote: > > > Hi GCC developers, > > > > > > GCC v4.6's gengtype will auto-generate Alloc

Re: GCC Buildbot Update - Definition of regression

2017-10-11 Thread David Malcolm
On Wed, 2017-10-11 at 11:18 +0200, Paulo Matos wrote: > > On 11/10/17 11:15, Christophe Lyon wrote: > > > > You can have a look at > > https://git.linaro.org/toolchain/gcc-compare-results.git/ > > where compare_tests is a patched version of the contrib/ script, > > it calls the main perl script (

Re: GCC Buildbot Update - Definition of regression

2017-10-13 Thread David Malcolm
On Wed, 2017-10-11 at 16:17 +0200, Marc Glisse wrote: > On Wed, 11 Oct 2017, David Malcolm wrote: > > > On Wed, 2017-10-11 at 11:18 +0200, Paulo Matos wrote: > > > > > > On 11/10/17 11:15, Christophe Lyon wrote: > > > > > > > > You can have

Using gnu::unique_ptr to avoid manual cleanups (was Re: [PATCH 2/2] use unique_ptr some)

2017-10-17 Thread David Malcolm
On Mon, 2017-07-31 at 19:46 -0400, tbsaunde+...@tbsaunde.org wrote: > From: Trevor Saunders > > gcc/ChangeLog: > > 2017-07-31 Trevor Saunders > > * cse.c (find_comparison_args): Make visited a unique_ptr. > * lto-streamer-out.c (write_global_references): Make data a > uniqu

Re: GCC CI on Power

2017-11-07 Thread David Malcolm
On Mon, 2017-11-06 at 18:46 -0200, Nathália Harumi wrote: > Hi, > My name is Nathália Harumi, I'm a student of The University of > Campinas. > > I'm working on validation projects on OpenPower lab (which is a > partnership > between IBM and The University of Campinas, in Brazil) and we'd like > to

Re: GCC Buildbot Update

2017-12-14 Thread David Malcolm
urrently silent. > > *Regression analysis:* > > This is one of the most important issues to tackle and I have a > solution > in a branch regression-testing : > https://github.com/LinkiTools/gcc-buildbot/tree/regression-testing > > using jamais-vu from David Malcolm to analyze

Re: GCC Buildbot Update

2017-12-15 Thread David Malcolm
On Fri, 2017-12-15 at 10:16 +0100, Paulo Matos wrote: > > On 14/12/17 12:39, David Malcolm wrote: [...] > > It looks like you're capturing the textual output from "jv compare" > > and > > using the exit code. Would you prefer to import "jv" as

jamais-vu can now ignore renumbering of source lines in dg output (Re: GCC Buildbot Update)

2018-01-24 Thread David Malcolm
On Sat, 2017-12-16 at 12:06 +0100, Paulo Matos wrote: > > On 15/12/17 15:29, David Malcolm wrote: > > On Fri, 2017-12-15 at 10:16 +0100, Paulo Matos wrote: > > > > > > On 14/12/17 12:39, David Malcolm wrote: > > > > [...] > > > > > >

Re: jamais-vu can now ignore renumbering of source lines in dg output (Re: GCC Buildbot Update)

2018-01-29 Thread David Malcolm
On Mon, 2018-01-29 at 14:55 +0100, Paulo Matos wrote: > > On 24/01/18 20:20, David Malcolm wrote: > > > > I've added a new feature to jamais-vu (as of > > 77849e2809ca9a049d5683571e27ebe190977fa8): it can now ignore test > > results that merely changed line num

Re: JIT status

2018-02-13 Thread David Malcolm
On Tue, 2018-02-13 at 11:56 +0100, FX wrote: > Hi David, hi GCC team, > > What is the current status of JIT in GCC ? It does not currently work > on macOS, with a bug in libgccjit.so linkage. We can work around it > with a hack of the Make-lang.in (https://raw.githubusercontent.com/Ho > mebrew/for

Re: How big (and fast) is going to be GCC 8?

2018-03-06 Thread David Malcolm
On Tue, 2018-03-06 at 11:14 +0100, Martin Liška wrote: > Hello. > > Many significant changes has landed in mainline and will be released > as GCC 8.1. > I decided to use various GCC configs we have and test how there > configuration differ > in size and also binary size. > > This is first part wh

Blog post about gcc 8 usability improvements

2018-03-15 Thread David Malcolm
Sorry for the shameless self-promotion, but I've written up the work I've done on gcc 8 usability, in blog form, here: https://developers.redhat.com/blog/2018/03/15/gcc-8-usability-improvements/ I'm working on a patch for the website's changes.html, covering the same material. Dave

Re: GSOC Question about the parallelization project

2018-03-20 Thread David Malcolm
On Tue, 2018-03-20 at 14:02 +0100, Richard Biener wrote: > On Mon, Mar 19, 2018 at 9:55 PM, Richard Biener > wrote: > > On March 19, 2018 8:09:32 PM GMT+01:00, Sebastiaan Peters > 7...@hotmail.com> wrote: > > > > The goal should be to extend TU wise parallelism via make to > > > > function > > >

Re: GCC contribution

2018-03-27 Thread David Malcolm
On Tue, 2018-03-27 at 08:12 +, ??? ??? wrote: > Hello, > > My name is Avi Owshanko. > > I'm an experienced programmer (worked for IBM-HRL GC group, and EMC- > Recoverpoint), and I wish to join in the development of GCC. Hi Avi, welcome to GCC development! As initial projects, I consider

Re: style of code examples in changes.html

2018-04-23 Thread David Malcolm
On Mon, 2018-04-16 at 20:34 -0600, Martin Sebor wrote: > Hi David & Gerald, (sorry for the late response; I was offline on vacation last week) > I noticed that the coding examples in the updates I committed > to changes.html use a different formatting style than David's. > I just copied mine from

Re: RFC: bash completion

2018-04-24 Thread David Malcolm
On Tue, 2018-04-24 at 16:45 +0200, Martin Liška wrote: > Hi. > > Some time ago, I investigated quite new feature of clang which > is support of --autocomplete argument. That can be run from bash > completion > script and one gets more precise completion hints: > > http://blog.llvm.org/2017/09/cla

Re: [RFC] Deprecate "implicit int" for main() in C++

2018-04-25 Thread David Malcolm
On Wed, 2018-04-25 at 16:54 +0100, Jonathan Wakely wrote: > On 25/04/18 16:30 +0100, Andrew Haley wrote: > > On 04/25/2018 03:04 PM, Jonathan Wakely wrote: > > > On 25/04/18 14:59 +0100, Andrew Haley wrote: > > > > On 04/25/2018 02:56 PM, Jason Merrill wrote: > > > > > The warning by default seems

ANN: gcc-python-plugin 0.16

2018-05-04 Thread David Malcolm
gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the CPython interpreter within GCC, allowing you to write new compiler warnings in Python, generate code visualizations, etc. This releases adds support for gcc 7 and gcc 8 (along with continued support for gcc 4.6, 4.7, 4.8, 4.9, 5 an

Re: Project Ranger

2018-05-30 Thread David Malcolm
On Tue, 2018-05-29 at 19:53 -0400, Andrew MacLeod wrote: [...snip...] > The code is located on an svn branch *ssa-range*. It is based on > trunk > at revision *259405***circa mid April 2018. Is this svn branch mirrored on gcc's git mirror? I tried to clone it from there, but failed. [...sni

Re: I want to know the information about the function arguments

2018-06-06 Thread David Malcolm
On Wed, 2018-06-06 at 13:04 +0200, Martin Jambor wrote: > Hi, > > On Wed, Jun 06 2018, 冠人 王 via gcc wrote: > > When I modify the gcc source code, sometimes I do not know what > > parameters does the function call. > > For example, > > bool warn_if_unused_value(const tree exp,location_t locus){

Re: LTO and other test failures on trunk

2018-06-11 Thread David Malcolm
On Mon, 2018-06-11 at 12:19 -0600, Martin Sebor wrote: > I've been noticing a number of failures in LTO (and some other) > tests in my x86_64-builds most of which don't appear in results > reported on gcc-testresults (all those on lines that start with > with the '!' below) and that I don't recall

Re: LTO and other test failures on trunk

2018-06-20 Thread David Malcolm
On Mon, 2018-06-18 at 10:22 -0600, Martin Sebor wrote: > David, > > Have you been able to reproduce the jit test failures below on > tor? Is there some information I can get you from my builds to > help you debug it? Thanks for pointing it out. I've started seeing it on my machine. They appear

Re: [PATCH] Add new tests for --completion option.

2018-06-29 Thread David Malcolm
On Fri, 2018-06-29 at 13:19 -0400, Eric Gallager wrote: > On 6/29/18, Martin Liška wrote: > > Hi. > > > > I would like to add some DejaGNU tests for completion option. > > > > Ready for trunk? > > Martin Presumably the point of the DejaGnu tests is: (a) to give us some integration testing, to c

Re: What is the difference between datatype "const_tree" and "tree" ?

2018-07-05 Thread David Malcolm
On Thu, 2018-07-05 at 04:58 +, 冠人 王 via gcc wrote: > In the function emit_side_effect_warnings, I find its inputs are > "location_t loc" and "tree expr". > And, there is a function warn_if_unused_value called by > emit_side_effect_warnings: > emit_side_effect_warnings(location_t loc, tree expr)

Re: Question on -fopt-info-inline

2018-07-05 Thread David Malcolm
On Thu, 2018-07-05 at 13:04 -0600, Jeff Law wrote: > On 07/05/2018 09:27 AM, Qing Zhao wrote: > > > > > On Jul 3, 2018, at 7:19 PM, Jeff Law > > > wrote: > > > > > > On 07/03/2018 12:28 PM, Qing Zhao wrote: > > > > > > > > > > > > > > > > > > > > > > > > In order to co

Re: Good news, bad news on the repository conversion

2018-07-09 Thread David Malcolm
On Mon, 2018-07-09 at 06:16 -0400, Eric S. Raymond wrote: > Janus Weil : > > > The bad news is that my last test run overran the memnory > > > capacity of > > > the 64GB Great Beast. I shall have to find some way of reducing > > > the > > > working set, as 128GB DD4 memory is hideously expensive.

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-17 Thread David Malcolm
On Tue, 2018-07-17 at 19:13 +0200, Basile Starynkevitch wrote: > Hello All, > > > In https://gcc.gnu.org/ml/gcc/2018-07/msg00233.html Martin Liška > wrote: > > > I've recently touched AWK option generate machinery and it's quite > > unpleasant > > to make any adjustments. My question is simple:

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-17 Thread David Malcolm
On Tue, 2018-07-17 at 16:37 -0400, David Niklas wrote: > > Hi. > > > > I've recently touched AWK option generate machinery and it's quite > > unpleasant to make any adjustments. My question is simple: can we > > starting using a scripting language like Python and replace usage > > of > > the AWK s

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-17 Thread David Malcolm
On Tue, 2018-07-17 at 14:49 +0200, Martin Liška wrote: > Hi. > > I've recently touched AWK option generate machinery and it's quite > unpleasant > to make any adjustments. My question is simple: can we starting using > a scripting > language like Python and replace usage of the AWK scripts? It's >

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-18 Thread David Malcolm
On Wed, 2018-07-18 at 11:51 +0200, Richard Biener wrote: > On Tue, Jul 17, 2018 at 2:49 PM Martin Liška wrote: > > > > Hi. > > > > I've recently touched AWK option generate machinery and it's quite > > unpleasant > > to make any adjustments. My question is simple: can we starting > > using a scr

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-28 Thread David Malcolm
On Sat, 2018-07-28 at 10:55 +0100, Ramana Radhakrishnan wrote: > On Fri, Jul 27, 2018 at 3:38 PM, Joseph Myers m> wrote: > > On Fri, 27 Jul 2018, Michael Matz wrote: > > > > > Using any python scripts as part of generally building GCC (i.e. > > > where the > > > generated files aren't prepackaged

Re: c plugin guidance wanted

2018-07-30 Thread David Malcolm
On Sun, 2018-07-29 at 13:41 -0700, Joe Perches wrote: > I would like to implement a gcc plugin that can compress an > __attribute__((format(printf, x, y))) const char array before > storage so that the formats can be size reduced when stored and > expanded appropriately before use. > > As this is

New GCC plugin: gcc-python-plugin

2011-06-21 Thread David Malcolm
I've been working on a new plugin for GCC, which supports embedding Python within GCC, exposing GCC's internal data structures as Python objects and classes. The plugin links against libpython, and (I hope) allows you to invoke arbitrary Python scripts from inside a compile. My aim is to allow pe

Re: New GCC plugin: gcc-python-plugin

2011-06-21 Thread David Malcolm
On Tue, 2011-06-21 at 21:02 +0200, Basile Starynkevitch wrote: > On Tue, 21 Jun 2011 14:33:20 -0400 > David Malcolm wrote: > > It's still at the "experimental proof-of-concept stage"; expect crashes > > and tracebacks (I'm new to the insides of GCC, and I m

Re: New GCC plugin: gcc-python-plugin

2011-06-21 Thread David Malcolm
On Tue, 2011-06-21 at 22:30 +0200, Basile Starynkevitch wrote: > On Tue, 21 Jun 2011 15:34:51 -0400 > David Malcolm wrote: > > I'm aware of MELT - as I understand it, it's a Lisp variant. > > Yes. However, I do have in the works an infix syntax of MELT called >

Re: New GCC plugin: gcc-python-plugin

2011-06-21 Thread David Malcolm
On Tue, 2011-06-21 at 22:31 +0200, Basile Starynkevitch wrote: > On Tue, 21 Jun 2011 15:34:51 -0400 > David Malcolm wrote: > > When I mentioned the garbage collector, I was merely trying to convey > > the early, buggy nature of my code. This is a bug that I need to fix, > &g

A visualization of GCC's passes, as a subway map

2011-07-11 Thread David Malcolm
For fun over the weekend I wrote a python script (using my gcc-python-plugin[1]) to render an SVG diagram of GCC's optimization passes (or, at least, based on my understanding of them). This diagram shows the various GCC optimization passes, arranged vertically, showing child passes via indentatio

Re: A visualization of GCC's passes, as a subway map

2011-07-12 Thread David Malcolm
On Tue, 2011-07-12 at 09:43 +0100, Paulo J. Matos wrote: > On 12/07/11 08:22, Paolo Bonzini wrote: > > On 07/11/2011 07:56 PM, David Malcolm wrote: > >> Hope this is fun/helpful (and that I'm correctly interpreting the data!) > > > > You are, and it shows some

Re: A visualization of GCC's passes, as a subway map

2011-07-12 Thread David Malcolm
On Tue, 2011-07-12 at 11:43 +0800, Mingjie Xing wrote: > 2011/7/12 David Malcolm : > > For fun over the weekend I wrote a python script (using my > > gcc-python-plugin[1]) to render an SVG diagram of GCC's optimization > > passes (or, at least, based on my understand

Re: A visualization of GCC's passes, as a subway map

2011-07-12 Thread David Malcolm
On Tue, 2011-07-12 at 09:15 -0700, Xinliang David Li wrote: > FYI. If you just want text dump of gcc passes and their on|off > settings, option -fdump-passes can be used. This can be enhanced to > dump properties and TODOs. Thanks! I got a bit mystified by: $ gcc -fdump-passes test.c cc1: e

Re: A visualization of GCC's passes, as a subway map

2011-07-12 Thread David Malcolm
On Tue, 2011-07-12 at 08:34 -0500, Joel Sherrill wrote: > On 07/12/2011 02:22 AM, Paolo Bonzini wrote: > > On 07/11/2011 07:56 PM, David Malcolm wrote: > >> Hope this is fun/helpful (and that I'm correctly interpreting the data!) > > You are, and it shows some bugs e

gcc-python-plugin status update: static analysis, and HTML reports

2011-07-15 Thread David Malcolm
I've written up a status update on the gcc-python-plugin on my blog here: http://dmalcolm.livejournal.com/6560.html Summarizing that blog post, I've revamped the internals of how my checker script so that it can detect various kinds of CPython reference count bug, and it can now render bug reports

ANN: gcc-python-plugin 0.5

2011-07-27 Thread David Malcolm
://fedoraproject.org/wiki/Features/GccPythonPlugin Enjoy! Dave Detailed change notes follow Version 0.5 === David Malcolm (7): Override all locale information with LC_ALL=C when running selftests Revamp support for options in selftests Add note about ccache Improvemen

ANN: gcc-python-plugin 0.6

2011-08-02 Thread David Malcolm
gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the CPython interpreter within GCC, allowing you to write new compiler warnings in Python, generate code visualizations, etc. Tarball releases are available at: https://fedorahosted.org/releases/g/c/gcc-python-plugin/ Prebuilt-docum

gcc-python-plugin finds its first bug in itself

2011-08-05 Thread David Malcolm
gcc-python-plugin [1] now provides a gcc-with-cpychecker harness that runs gcc with an additional pass that checks CPython API calls (internally, it's using the gcc python plugin to run a python script that does the work). I tried rebuilding the plugin using make CC=../other-build/gcc-with-cpych

Re: role of dump_file notably for/in plugins?

2011-08-31 Thread David Malcolm
On Wed, 2011-08-31 at 16:28 +0200, Richard Guenther wrote: > On Wed, Aug 31, 2011 at 4:24 PM, Basile Starynkevitch > wrote: > > Hello Folks > > > > What is the intended role of the dump_file [the one known in tree-pass.h > > near line 101] for plugins? > > > > May plugins print their arbitrary thi

Re: adding destroyable objects into Ggc

2011-10-19 Thread David Malcolm
On Wed, 2011-10-19 at 00:45 -0500, Gabriel Dos Reis wrote: > On Wed, Oct 19, 2011 at 12:22 AM, Chiheng Xu wrote: > > > I recommend people interested in automatic dynamic memory management > > to read this book: > > Garbage Collection: Algorithms For Automatic Dynamic Memory > > Management(Richard

ANN: gcc-python-plugin 0.7

2011-11-29 Thread David Malcolm
gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the CPython interpreter within GCC, allowing you to write new compiler warnings in Python, generate code visualizations, etc. It ships with "cpychecker", which implements static analysis passes for GCC aimed at finding bugs in CPython

Working with frontend-specific aspects of GCC from a GCC plugin

2011-11-30 Thread David Malcolm
I maintain gcc-python-plugin [1]. I'm hoping to expose the function decl_as_string() from the C++ frontend from within my plugin. Unfortunately, given that that symbol is defined within gcc/cp/error.c, it is only defined within the C++ frontend: cc1plus. This works OK when my plugin is dynamical

Re: Working with frontend-specific aspects of GCC from a GCC plugin

2011-11-30 Thread David Malcolm
On Wed, 2011-11-30 at 15:06 -0500, David Malcolm wrote: [...snip...] > Any thoughts on how to address this? Are there any other approaches > I've missed? Answering my own question, Dave Korn pointed out in another thread: http://gcc.gnu.org/ml/gcc/2011-01/msg00310.html that one ca

Re: Suspicion of regression in uninitialized value detection

2011-12-06 Thread David Malcolm
On Tue, 2011-12-06 at 16:40 +0100, David Brown wrote: > On 06/12/2011 16:27, Robert Dewar wrote: > > On 12/6/2011 10:18 AM, David Brown wrote: > > > >> Unfortunately, there are no such tools available that compare with gcc > >> and its warnings. > > ... > And there are large, expensive commercial

Access to unused global variable declarations from a plugin

2012-01-05 Thread David Malcolm
I'm working on a GCC plugin which performs static analysis of Python extension code [1] In various places I need access to a VAR_DECL for various globals from C code, many of which potentially aren't used directly within the compilation unit. For example, I may need to reference this global: e

ANN: gcc-python-plugin 0.8

2012-01-10 Thread David Malcolm
gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the CPython interpreter within GCC, allowing you to write new compiler warnings in Python, generate code visualizations, etc. It ships with "gcc-with-cpychecker", which implements static analysis passes for GCC aimed at finding bugs in

<    1   2   3   4   5   6   >