[PATCH] analyzer: fix build error with clang (PR 93543)

2020-02-04 Thread David Malcolm
On Tue, 2020-02-04 at 14:53 +0100, Sebastian Huber wrote: > Hello, > > I tried to build a recent GCC master on FreeBSD 12.1 and it failed > with > a compile error: > > $ clang --version > FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based > on > LLVM 8.0.1) > Target: x86_64-unkn

Re: [PATCH] analyzer: fix build error with clang (PR 93543)

2020-02-04 Thread David Malcolm
On Tue, 2020-02-04 at 16:26 +0100, Jakub Jelinek wrote: > On Tue, Feb 04, 2020 at 09:00:37AM -0500, David Malcolm wrote: > > gcc/analyzer/ChangeLog: > > PR analyzer/93543 > > * engine.cc > > (pod_hash_traits::mark_empty): > > Eliminate reinterpr

C++ constructors and callgraph interaction ("__ct_comp " vs constructor function body)

2020-02-05 Thread David Malcolm
When debugging PR analyzer/93288, I'm compiling this test C++ file: struct a { a(); }; class foo { a b; } c; I see a cgraph_edge from __static_initialization_and_destruction_0 to a "__ct_comp ", which I see is a DECL_COMPLETE_CONSTRUCTOR_P. The "__ct_comp " prints as a "a::a()/2", but its DE

Re: C++ constructors and callgraph interaction ("__ct_comp " vs constructor function body)

2020-02-05 Thread David Malcolm
On Wed, 2020-02-05 at 23:07 -0500, David Malcolm wrote: > When debugging PR analyzer/93288, I'm compiling this test C++ file: > > struct a { > a(); > }; > class foo { > a b; > } c; > > I see a cgraph_edge from __static_initialization_and_destruction_0 to

Re: C++ constructors and callgraph interaction ("__ct_comp " vs constructor function body)

2020-02-06 Thread David Malcolm
On Thu, 2020-02-06 at 13:49 +0100, Martin Jambor wrote: > Hi, > > On Wed, Feb 05 2020, David Malcolm wrote: > > Answering my own question, calling ultimate_alias_target on the > > __ct_comp cgraph_node seems to find the "right" cgraph_node. > > > > Is

Re: GCC GSoC 2020: Call for mentors and project ideas

2020-02-06 Thread David Malcolm
On Mon, 2020-01-27 at 16:30 +0100, Martin Liška wrote: > On 1/15/20 11:45 PM, Martin Jambor wrote: > > Therefore, first and foremost, I would like to ask all (moderately) > > seasoned GCC contributors to consider mentoring a student this year > > and > > ideally also come up with a project that the

Re: GCC GSoC 2020: Call for mentors and project ideas

2020-02-12 Thread David Malcolm
On Thu, 2020-02-06 at 20:58 -0500, David Malcolm wrote: > On Mon, 2020-01-27 at 16:30 +0100, Martin Liška wrote: > > On 1/15/20 11:45 PM, Martin Jambor wrote: > > > Therefore, first and foremost, I would like to ask all > > > (moderately) > > > seasoned GCC

Re: [EXTERNAL] Re: GCC selftest improvements

2020-02-12 Thread David Malcolm
On Thu, 2020-02-13 at 00:49 +, Modi Mo wrote: > Hey all, > > I'm picking this work up from Andrew. Last time it was decided that > the timing wasn't right to upgrade the minimum version to C++11. Is > the timing better now to get this change through? > > I've attached the patch Andrew prepare

Re: [EXTERNAL] Re: GCC selftest improvements

2020-02-25 Thread David Malcolm
On Tue, 2020-02-25 at 19:58 +, Modi Mo wrote: > > On 2/12/20 8:53 PM, David Malcolm wrote: > > The patch will need an update to the docs; search for > > "Tools/packages necessary for building GCC" in > > gcc/doc/install.texi, which currently has some paragraph

Re: Discussion on Removal of Garbage Collector and other GCC Multi threaded Work

2020-02-27 Thread David Malcolm
On Thu, 2020-02-27 at 14:07 -0500, Nicholas Krause wrote: > Greetings All, > > After doing some more research it seems that it may be time to > remove > the garbage collector. I'm > aware of the linkage to precompiled headers but even them I think > its > time due to two reasons: > > 1. The wor

Re: GSoC: some questions about the static analyzer pass

2020-02-27 Thread David Malcolm
ontact with the mental David Malcolm. Can anyone help me please? > Thank you so much. Hi! The code is in the gcc/analyzer subdirectory of the GCC source tree: https://gcc.gnu.org/git/?p=gcc.git;a=tree;f=gcc/analyzer Internal documentation is here: https://gcc.gnu.org/onlinedocs/gccint/Static-

Re: Status of C++11 Move and Using Unique_Ptr

2020-03-01 Thread David Malcolm
On Sun, 2020-03-01 at 15:24 -0500, Nicholas Krause wrote: > Greetings Jeff, > > Sorry if I'm bugging you. [Dropping Jeff from CC since it appears the answer is "yes, you are"] > I've already sent off some work on IPA passes > with a few questions here: > https://gcc.gnu.org/ml/gcc/2020-02/msg0

Re: Re: GSoC: some questions about the static analyzer pass

2020-03-01 Thread David Malcolm
s the links I gave above. Some of it is on github, if that's accessible from China. Try the instructions here for obtaining a git clone of the latest sources: https://gcc.gnu.org/git.html > Thank you very much for your patience! I’m looking forward to your > reply. > >

Re: libgccjit maintenance status

2020-03-05 Thread David Malcolm
On Thu, 2020-03-05 at 19:40 +, Andrea Corallo wrote: > Hi all, > > I'd like to ask about the maintenance status of libgccjit. I'm the maintainer. GCC 10 is currently in stage 4 so making changes may require release-manager signoff. > Personally (in my spare time) I'd like to contribute more

Re: mixing JIT and GCC (with a precompiled header?)?

2015-06-19 Thread David Malcolm
On Sat, 2015-06-20 at 01:56 +0200, Basile Starynkevitch wrote: > Hello all, > > Suppose that I have some header file in C myhead.h, containing notably > > // Boehm's garbage collector, notably defines GC_malloc_atomic & > GC_malloc > #include > struct myintvec_st { >unsig

Re: C++ coding style inconsistencies

2015-06-25 Thread David Malcolm
On Thu, 2015-06-25 at 19:28 +0100, Richard Sandiford wrote: > Sorry in advance for inviting a bikeshed discussion, but while making > the hashing changes that I just committed, I noticed that the C++ification > has been done in a variety of different styles. I ended up having to follow > the "do w

Re: GCC/JIT and precise garbage collection support?

2015-07-09 Thread David Malcolm
On Fri, 2015-07-10 at 00:17 +0200, Basile Starynkevitch wrote: > Hello All, > > (this is triggered by a question on the Ocaml mailing list asking about > SystemZ backend in Ocaml; SystemZ is today a backend for GCC & probably > GCCJIT) > > We might want to support better good garbage collection

Re: GCC/JIT and precise garbage collection support?

2015-07-10 Thread David Malcolm
On Fri, 2015-07-10 at 11:13 +0200, Armin Rigo wrote: > Hi David, hi Basile, > > On 10 July 2015 at 03:53, David Malcolm wrote: > > FWIW PyPy (an implementation of Python) defaults to using true GC, and > > could benefit from GC support in GCC; currently PyPy has a nasty hac

Re: Adding an IPA pass question (pass names)

2015-08-19 Thread David Malcolm
On Wed, 2015-08-19 at 10:27 -0700, Steve Ellcey wrote: > I am trying to create a new IPA pass to scan the routines being compiled > by GCC and I thought I would put it in after the last IPA pass (comdats) > so I tried to register it with: > > opt_pass *p = make_pass_ipa_frame_header_opt (g); >

Re: Moving to git

2015-08-20 Thread David Malcolm
On Thu, 2015-08-20 at 13:57 -0400, Jason Merrill wrote: > I hear that at Cauldron people were generally supportive of switching > over to git as the primary GCC repository, and talked about me being > involved in that transition. Does anyone have more information about > this discussion? > > O

[PATCH][www] svnwrite.html: recommend giving checkin messages a title (was Re: Moving to git)

2015-08-21 Thread David Malcolm
On Thu, 2015-08-20 at 18:37 -0400, Jason Merrill wrote: > On 08/20/2015 06:32 PM, Segher Boessenkool wrote: > > On Thu, Aug 20, 2015 at 03:31:52PM -0400, David Malcolm wrote: > >> If we're going to migrate to git (I hope so), can we also please > >> *slightly* revi

Re: [PATCH][www] svnwrite.html: recommend giving checkin messages a title (was Re: Moving to git)

2015-08-22 Thread David Malcolm
On Sat, 2015-08-22 at 05:55 -0500, Segher Boessenkool wrote: > On Fri, Aug 21, 2015 at 07:54:11PM -0400, David Malcolm wrote: > > > >> In the git world, the first line of the commit message has special > > > >> meaning, being treated as the "title" of t

Re: Acceptance criteria for the git conversion

2015-09-01 Thread David Malcolm
med tag for every r[0-9]+, but that's clearly insane), so presumably we'd want to keep the old SVN web interface around to service those bugzilla URLs? I'd love it if the commits gained readable titles (where they don't already). For example, if I run "git shortlog&qu

Re: Acceptance criteria for the git conversion

2015-09-01 Thread David Malcolm
On Tue, 2015-09-01 at 11:30 -0400, Eric S. Raymond wrote: > Joseph Myers : > > With 227369 revisions I don't think adding git-style summary lines is > > really practical without some very reliable automation to match commits to > > corresponding gcc-patches messages (whose Subject: headers would

Re: incremental compiler project

2015-09-04 Thread David Malcolm
ty > > much abandoned this idea. There are too many mutable tree fields, > > making this a difficult project. Also, threads do not interact well > > with fork, which is currently needed by the code generation approach.) > You should get in contact with David Malcolm as these issues

Re: dejagnu version update?

2015-09-15 Thread David Malcolm
On Tue, 2015-09-15 at 10:39 -0700, Mike Stump wrote: > On Sep 14, 2015, at 3:37 PM, Jeff Law wrote: > >> Maybe GCC-6 can bump the required > >> dejagnu version to allow for getting rid of all these superfluous > >> load_gcc_lib? *blink* :) > > I'd support that as a direction. > > > > Certainly dr

Re: dejagnu version update?

2015-09-16 Thread David Malcolm
On Wed, 2015-09-16 at 10:36 -0600, Jeff Law wrote: > On 09/16/2015 10:25 AM, Ramana Radhakrishnan wrote: > > > > > > On 16/09/15 17:14, Mike Stump wrote: > >> On Sep 16, 2015, at 12:29 AM, Andreas Schwab > >> wrote: > >>> Mike Stump writes: > >>> > The software presently works with 1.4.4 and

Re: GCC XML diagnostics

2015-11-05 Thread David Malcolm
ading the plist file). We don't provide that yet from gcc, but it might be worth thinking about. Hope this is helpful Dave [1] for a talk on static analysis I gave at PyCon 2013; see https://www.youtube.com/watch?v=bblvGKzZfFI&feature=youtu.be&t=898 https://speakerdeck.com/pyconslides/death-by-a-thousand-leaks-by-david-malcolm

Re: Extraneous newline emitted between error messages in GCC 6

2015-12-21 Thread David Malcolm
On Mon, 2015-12-21 at 19:20 +0100, Marek Polacek wrote: > On Mon, Dec 21, 2015 at 01:12:33PM -0500, Patrick Palka wrote: > > GCC 6, compared to GCC 5, now emits an extra newline between error > > messages. Is this intended? > > > > $ cat error.c > > int x = a; > > int y = b; > > $ gcc-5 error.c >

Re: Some real-life feedback on -Wmisleading-indentation

2016-01-11 Thread David Malcolm
On Mon, 2016-01-11 at 15:20 +0800, Gerald Pfeifer wrote: > Compiling Wine with GCC trunk (to become GCC 6) I noticed four > dozen of warnings triggered by -Wmisleading-indentation. > > Some are simply weird formatting, some may be indicative of > real issues -- and I have started to look into the

Re: Help! Regarding Bug 17896

2016-01-25 Thread David Malcolm
On Mon, 2016-01-25 at 21:54 +, Manuel López-Ibáñez wrote: > On 25 January 2016 at 20:17, Mikhail Maltsev wrote: > > As I understand, the bug report suggests that we say "suggest || instead of > > | > > when joining booleans" instead. We now have the API to show fix-it hints, > > so it > > wo

Re: Status of GCC 6 on x86_64 (Debian)

2016-01-26 Thread David Malcolm
On Fri, 2016-01-22 at 08:27 +0100, Matthias Klose wrote: > On 22.01.2016 06:09, Martin Michlmayr wrote: > > In terms of build failures, I reported 520 bugs to Debian. Most of them > > were new GCC errors or warnings (some packages use -Werror and many > > -Werror=format-security). > > > > Here are

Re: Strange diagnostics behavior with patch

2016-01-28 Thread David Malcolm
On Thu, 2016-01-28 at 21:07 +0100, Thomas Koenig wrote: > Hello world, > > the attached patch fixes the regression of PR 60526 by checking for > the presence of a type with the same name as the variable. Types > effectively have their separate namespace because the names of their > symtrees start

Re: Help! Regarding bug 49973

2016-02-03 Thread David Malcolm
On Thu, 2016-02-04 at 02:31 +0530, Prasad Ghangal wrote: > Hi ! > I am new to gcc. I would like to solve bug > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49973 (Bug 49973 - > Column > numbers count special characters as multiple columns ). Can somebody > guide me? > > I tried to debug gcc under

Re: gengtype: missing `tag' option (MELT branch)

2016-02-11 Thread David Malcolm
On Thu, 2016-02-11 at 19:54 +0100, Basile Starynkevitch wrote: > Hello All, > > I am busy merging the GCC trunk branch (i.e. future GCC 6) into the > MELT > branch & plugin. > > I am noticing a strange thing. > > I was able to merge GCC trunk svn rev. 227945 into the MELT branch > (svn > rev.

ANN: gcc-python-plugin 0.15

2016-02-15 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: stable plugin introspection API ... Where?

2016-02-15 Thread David Malcolm
On Mon, 2016-02-15 at 10:27 +0100, Richard Biener wrote: > On Sun, Feb 14, 2016 at 3:50 PM, Basile Starynkevitch > wrote: > > Dear all > > > > In https://gcc.gnu.org/ml/gcc/2016-02/msg00157.html > > > > Richard Biener (richard dot guenther at gmail dot com) is > > mentioning: > > > > > Help wit

Re: Need some help regarding bug Bug 38612

2016-02-16 Thread David Malcolm
On Tue, 2016-02-16 at 12:25 +0530, Prasad Ghangal wrote: > Hi ! > I am trying to fix bug 38612 > (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38612). > As mentioned in comment 4, I am changing warning message in > typeck2.c. TREE_TYPE(datum) gives type as 'X', but I want 'X*' I believe you want

Re: Need suggestion about bug 68425

2016-02-19 Thread David Malcolm
On Thu, 2016-02-18 at 14:28 +, Manuel López-Ibáñez wrote: > On 18/02/16 11:40, Prasad Ghangal wrote: > > Wouldn't it be nice instead of multiple warnings if gcc gives > > single > > warning like : > > > > 68425.c:3:34: warning: excess elements in array initializer (6 > > elements, expected 2)

Re: David Malcolm appointed libcpp and diagnostic messages maintainer

2016-02-22 Thread David Malcolm
On Mon, 2016-02-22 at 11:14 -0500, David Edelsohn wrote: > I am pleased to announce that the GCC Steering Committee has > appointed David Malcolm as libcpp and diagnostic messages maintainer. > > Please join me in congratulating David on his new role. > David, ple

Re: Need suggestion about bug 68425

2016-03-04 Thread David Malcolm
On Wed, 2016-02-24 at 17:56 +0530, Prasad Ghangal wrote: > Thanks Prathamesh and Joseph for your suggestions. > > Here is my updated patch : > > for test cases: > > const int array[5] = {1, 2, 3}; > const int array1[3] = {1, 2, 3, 6}; > const int array2[4] = {1, 2, 3, 6, 89}; > c

Re: [gimplefe] [gsoc16] Gimple Front End Project

2016-03-07 Thread David Malcolm
On Mon, 2016-03-07 at 13:26 +0100, Richard Biener wrote: > On Mon, Mar 7, 2016 at 7:27 AM, Prasad Ghangal < > prasad.ghan...@gmail.com> wrote: > > On 6 March 2016 at 21:13, Richard Biener < > > richard.guent...@gmail.com> wrote: > > > > > > I'll be willing to mentor this. Though I'd rather have u

Re: [gimplefe] [gsoc16] Gimple Front End Project

2016-03-08 Thread David Malcolm
On Tue, 2016-03-08 at 16:56 +0100, Richard Biener wrote: > On March 8, 2016 4:42:41 PM GMT+01:00, "Manuel López-Ibáñez" < > lopeziba...@gmail.com> wrote: > > On 08/03/16 00:24, Trevor Saunders wrote: > > > > ...which suggests that we'd want to use gimple dumps as the > > > > input > > > > format to

Re: [gimplefe] [gsoc16] Gimple Front End Project

2016-03-08 Thread David Malcolm
On Tue, 2016-03-08 at 21:00 +, Manuel López-Ibáñez wrote: > On 8 March 2016 at 16:47, David Malcolm wrote: > > > > Isn't this what -fopt-info does? > > > > https://gcc.gnu.org/onlinedocs/gcc/Developer-Options.html > > > > > > Yes. > >

[PATCH] Hack to make gimple dump parseable as C (was Re: [gimplefe] [gsoc16] Gimple Front End Project)

2016-03-10 Thread David Malcolm
On Thu, 2016-03-10 at 11:50 +0100, Richard Biener wrote: > On Thu, Mar 10, 2016 at 11:46 AM, Richard Biener > wrote: > > On Wed, Mar 9, 2016 at 8:45 PM, Manuel López-Ibáñez > > wrote: > > > On 9 March 2016 at 02:50, Trevor Saunders > > > wrote: > > > > On Tue, Mar 08, 2016 at 05:12:56PM -0500, D

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread David Malcolm
On Mon, 2016-03-14 at 16:31 +0100, Andrey Tarasevich wrote: > Hi, > > I have a source file with 700k lines of code 99% of which are > printf() statements. Compiling this test case crashes GCC 5.3.0 with > segmentation fault. > Can such test case be considered valid Yes. > or source files of siz

Re: Leaking bitmap data in ree.c?

2016-03-21 Thread David Malcolm
On Mon, 2016-03-21 at 11:13 -0600, Jeff Law wrote: > On 03/21/2016 11:15 AM, Trevor Saunders wrote: > > > > > I'll resist the urge for now to apply RAII principles in this > > > code, but > > > that'd probably a much cleaner way to think about the problem in > > > general. > > > > I worked on a c

Re: [gimplefe] [gsoc16] Gimple Front End Project

2016-03-24 Thread David Malcolm
On Thu, 2016-03-24 at 14:31 +0100, Richard Biener wrote: > On Thu, Mar 24, 2016 at 12:27 AM, Prasad Ghangal > wrote: > > Hi! > > > > I have attached my gsoc proposal, please review it. Let me know if > > I > > have missed or misunderstood anything > > Please re-word the Abstract, it is really we

Re: Where to find global var declaration

2016-04-27 Thread David Malcolm
On Wed, 2016-04-27 at 12:34 +0300, Cristina Georgiana Opriceana wrote: > Hello, > > I tried to add a new global declaration of a pointer and I expected > to > see it in varpool nodes, but it does not appear there. > > ustackptr = build_decl (UNKNOWN_LOCATION, > VAR_DE

Re: r235766 incomplete?

2016-05-02 Thread David Malcolm
On Mon, 2016-05-02 at 11:50 -0600, Martin Sebor wrote: > Hi Jan, > > I just noticed the compilation errors in the attached file with > the latest trunk. It seems as though your recent patch below may > be incomplete: > >commit 46e5dccc6f188bd0fd5af4e9778f547ab63c9cae >Author: hubicka >

Re: Please, take '-Wmisleading-indentation' out of -Wall

2016-05-04 Thread David Malcolm
On Wed, 2016-05-04 at 18:15 +0200, Antonio Diaz Diaz wrote: > [Please, CC me. I'm not subscribed to gcc@gcc.gnu.org]. > > First of all, thank you very much for gcc. > > I am not an expert in gcc. Please, forgive any mistakes in this > message. :-) > > After compiling all my projects with gcc-6.1

Re: [gimplefe] Parsing __GIMPLE function body

2016-06-01 Thread David Malcolm
On Wed, 2016-06-01 at 12:49 +0530, Prathamesh Kulkarni wrote: > On 30 May 2016 at 20:45, Prasad Ghangal > wrote: > > Hi, > > > > As David suggested in his rtlfe patch, > > this patch recognizes __GIMPLE keyword and switches to > > c_parser_parse_gimple_body by providing -fgimple option. > > [sni

Re: A warning found during GCC 6.1.0 compilation process (may be a critical error or bug)

2016-06-02 Thread David Malcolm
On Thu, 2016-06-02 at 14:46 -0500, Ethin Probst wrote: [...snip...] > (I've had to redo the > compilation more than once because SSH decided to idle timeout and > make noted the hangup, ending the compilation process immediately due > to there being no TTY to send messages to, even though I'd had t

How to improve the location of a gcc diagnostic

2016-06-23 Thread David Malcolm
A user filed a bug about a bad location in a warning. It was marked as an "easyhack" in bugzilla, and I had a go at fixing it. I though it may be useful for new GCC developers if I document what I did to fix it. FWIW, the bug was PR c/71610 i.e. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=716

Re: [gimplefe] hacking pass manager

2016-07-18 Thread David Malcolm
On Tue, 2016-07-19 at 00:52 +0530, Prasad Ghangal wrote: > On 19 July 2016 at 00:25, Richard Biener > wrote: > > On July 18, 2016 8:28:15 PM GMT+02:00, Prasad Ghangal < > > prasad.ghan...@gmail.com> wrote: > > > On 15 July 2016 at 16:13, Richard Biener < > > > richard.guent...@gmail.com> > > > wro

gcc/libcpp: non-UTF-8 source or execution encodings?

2016-07-19 Thread David Malcolm
libcpp/charset.c has a helpful introductory comment describingcharacter sets, including the source and execution character sets. libcpp appears to attempt to support both UTF-8 and UTF-EBCDIC for the source character set, via: #if HOST_CHARSET == HOST_CHARSET_ASCII #define SOURCE_CHARSET "UTF-8"

Re: gcc/libcpp: non-UTF-8 source or execution encodings?

2016-07-19 Thread David Malcolm
On Tue, 2016-07-19 at 12:24 -0400, David Edelsohn wrote: > On Tue, Jul 19, 2016 at 12:05 PM, David Malcolm > wrote: > > libcpp/charset.c has a helpful introductory comment > > describingcharacter > > sets, including the source and execution character sets. > > &g

Re: gcc/libcpp: non-UTF-8 source or execution encodings?

2016-07-20 Thread David Malcolm
y requirement for a way to stress-test the string-literal location -handling code. Thanks! > On Tue, Jul 19, 2016 at 3:39 PM, David Malcolm > wrote: > > On Tue, 2016-07-19 at 12:24 -0400, David Edelsohn wrote: > > > On Tue, Jul 19, 2016 at 12:05 PM, David Malcolm

Re: Additional BOFs for the GNU Cauldron?

2016-09-02 Thread David Malcolm
On Fri, 2016-09-02 at 11:19 +0200, Richard Biener wrote: > There seems to be plenty of slots available on the 2nd track to > schedule additional BOFs. So I'd gather if there is interest > in discussing > > A) Unit testing (GIMPLE FE, RTL FE, the existing unit-testing), > basically how people

Re: Lessons learned from compiler error/warnings tests

2016-09-09 Thread David Malcolm
On Fri, 2016-09-09 at 14:28 +0200, Florian Weimer wrote: > For compile-time fortify checks (such as the wrappers for type-safe > open/openat), we need to add tests in glibc which examine the > compiler > output for warnings and errors. > > I do not want to add Dejagnu as a dependency to the glib

Re: Unable to access fields of a record type in some cases

2016-09-19 Thread David Malcolm
On Mon, 2016-09-19 at 10:09 +0200, Richard Biener wrote: > On Mon, Sep 19, 2016 at 3:52 AM, Swati Rathi < > swatira...@cse.iitb.ac.in> wrote: > > Hello, > > > > We want to fetch fields of a record type from the formal arguments > > of a > > function. > > For a RECORD_TYPE, we fetch the fields usin

Re: error printing in reversed order ?

2016-10-07 Thread David Malcolm
On Fri, 2016-10-07 at 15:08 -0400, nicolas bouillot wrote: > Hi, > > Was wondering this could be a feature request ? Basically, this could > be a GCC option to print compilation errors in a reversed order, i.e. > the first being printed last. This is because when compiling from the > terminal, it

Re: use of sphinx/rest as source for GNAT doc

2014-05-23 Thread David Malcolm
On Fri, 2014-05-23 at 17:23 +0200, Arnaud Charlet wrote: > At AdaCore, we have switched most of our product documentation the > rest/sphinx format: http://sphinx-doc.org/ > which provides most of the advantages of texinfo (text format, > can generate output in multiple formats, supported by free so

mn10300, invariants on DEP_PRO/DEP_CON and on TARGET_SCHED_ADJUST_COST params

2014-07-08 Thread David Malcolm
[CCing nickc, who wrote the mn10300 hook in question] I'm experimenting with separating out instructions from expressions in RTL; see [1] for more info on that. I noticed that mn10300 has this implementation of a target hook: #define TARGET_SCHED_ADJUST_COST mn10300_adjust_sched_cost Within mn

Re: mn10300, invariants on DEP_PRO/DEP_CON and on TARGET_SCHED_ADJUST_COST params

2014-07-11 Thread David Malcolm
On Fri, 2014-07-11 at 10:13 +1200, Maxim Kuvyrkov wrote: > On Jul 9, 2014, at 8:21 AM, David Malcolm wrote: > > > [CCing nickc, who wrote the mn10300 hook in question] > > > > I'm experimenting with separating out instructions from expressions in > >

Slides from Cauldron talks

2014-07-23 Thread David Malcolm
I didn't see a place to post slides for Cauldron talks, so am posting links to them here. "Just-In-Time compilation using GCC (libgccjit.so)" === HTML slides: http://dmalcolm.fedorapeople.org/presentations/cauldron-2014/jit/ Source code used for ge

Re: Symtab node table introduction and GGC issues

2014-07-24 Thread David Malcolm
ct correct? Back when we introduced the context and the pass_manager (called the "pipeline" in the initial patch submissions), those two classes were GTY-marked, but I reverted the change in r201887 (aka 5d068519b66a37ab391c427d0aac13f66a9b5c4e): Revert my last two changes, r201

Prototype of a --report-bug option

2014-07-29 Thread David Malcolm
of GCC may want to customize such a feature to point at their bug trackers (e.g. at Red Hat we have our own bugzilla instance, with a different set of custom fields). Thoughts? Dave # Copyright 2014 David Malcolm # Copyright 2014 Red Hat, Inc. # # This is free software: you can redistribute

Re: [GNU Tools Cauldron 2014] libgccjit.so

2014-08-06 Thread David Malcolm
On Tue, 2014-08-05 at 03:18 +0530, Prathamesh Kulkarni wrote: > Hi, >Please find attached my notes on "libgccjit.so - An experimental > JIT library using GCC as backend". I would be grateful if you would > review it for me. Looks good to me Dave

Re: [GNU Tools Cauldron 2014] A proposal for type-safe RTL

2014-08-06 Thread David Malcolm
On Tue, 2014-08-05 at 03:20 +0530, Prathamesh Kulkarni wrote: > Hi, > Please find attached my notes on "A proposal on type-safe RTL". > I would be grateful if you would review it for me. > > Thanks, > Prathamesh > > A proposal for type-safe RTL > >

Re: [PATCH] gcc parallel make check

2014-09-10 Thread David Malcolm
On Wed, 2014-09-10 at 11:19 -0700, Mike Stump wrote: > On Sep 9, 2014, at 8:14 AM, VandeVondele Joost > wrote: > > Attached is a further revision of the patch, now dealing with > check-c++. > > So when last I played in this area, I wanted a command line tool that > would bin-pack from the command

Re: Is this a compiler bug?

2014-09-22 Thread David Malcolm
On Sun, 2014-09-21 at 22:15 -0700, Andrew Pinski wrote: > On Sun, Sep 21, 2014 at 8:08 PM, Steve Kargl > wrote: > > On Sun, Sep 21, 2014 at 07:57:45PM -0700, Andrew Pinski wrote: > >> On Sun, Sep 21, 2014 at 6:56 PM, Steve Kargl > >> wrote: > >> > + is a binary operator. 0x3ffe is a hexidecimal-

Re: Is this a compiler bug?

2014-09-22 Thread David Malcolm
On Mon, 2014-09-22 at 16:32 +0200, Jakub Jelinek wrote: > On Mon, Sep 22, 2014 at 10:22:59AM -0400, David Malcolm wrote: > > On Sun, 2014-09-21 at 22:15 -0700, Andrew Pinski wrote: > > > On Sun, Sep 21, 2014 at 8:08 PM, Steve Kargl > > > wrote: > > > > O

ANN: gcc-python-plugin 0.13

2014-09-30 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: plugins header file

2014-10-15 Thread David Malcolm
On Tue, 2014-10-14 at 15:40 -0400, Andrew MacLeod wrote: > On 09/15/2014 02:18 PM, Andrew MacLeod wrote: > > During the re-architecture session at Cauldron, I mentioned the > > possibility of introducing a plugin-headers.h. > > > > This would be a file which plugins could use which would protect t

Re: GCC 5.0 Status Report (2014-11-03), Stage 1 ends Nov 15th

2014-11-03 Thread David Malcolm
On Mon, 2014-11-03 at 10:18 +0100, Jakub Jelinek wrote: > Status > == > > The trunk is scheduled to transition from Stage 1 to Stage 3 at the end > of Saturday, November 15th (use your timezone to your advantage). > > We have been in Stage 1 for almost 7 months now with a fortnight

Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign

2014-11-08 Thread David Malcolm
On Sat, 2014-11-08 at 13:07 +0100, Richard Biener wrote: > On Fri, Nov 7, 2014 at 10:01 PM, Richard Biener > wrote: > > On Fri, Nov 7, 2014 at 4:21 PM, David Malcolm wrote: > >> gcc/ChangeLog.gimple-classes: > >> * tree-ssa-tail-merge.c (sam

Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign

2014-11-10 Thread David Malcolm
On Sat, 2014-11-08 at 14:56 +0100, Jakub Jelinek wrote: > On Sat, Nov 08, 2014 at 01:07:28PM +0100, Richard Biener wrote: > > To be constructive here - the above case is from within a > > GIMPLE_ASSIGN case label > > and thus I'd have expected > > > > case GIMPLE_ASSIGN: > > { > >

Merge of jit branch to svn trunk as r217374

2014-11-11 Thread David Malcolm
I've merged the dmalcolm/jit git branch into svn trunk, as r217374. [1] The git branch is now retired; future bugfixing will happen on svn trunk. I've created a "jit" component within the gcc.gnu.org/bugzilla, within the "gcc" product, with dmalc...@gcc.gnu.org as the default assignee. Please let

Re: libgomp: "GNU OpenMP Runtime Library" (was: [PATCH 1/5] OpenACC 2.0 support for libgomp - OpenACC runtime, NVidia PTX/CUDA plugin (repost))

2014-11-12 Thread David Malcolm
On Wed, 2014-11-12 at 12:33 +0100, Jakub Jelinek wrote: > On Wed, Nov 12, 2014 at 12:18:13PM +0100, Thomas Schwinge wrote: > > On Wed, 12 Nov 2014 11:06:26 +0100, Jakub Jelinek wrote: > > > On Tue, Nov 11, 2014 at 01:53:23PM +, Julian Brown wrote: > > > > --- a/libgomp/configure.ac > > > > +++

Re: libgomp: "GNU OpenMP Runtime Library" (was: [PATCH 1/5] OpenACC 2.0 support for libgomp - OpenACC runtime, NVidia PTX/CUDA plugin (repost))

2014-11-12 Thread David Malcolm
On Wed, 2014-11-12 at 14:47 +0100, Jakub Jelinek wrote: > On Wed, Nov 12, 2014 at 08:33:34AM -0500, David Malcolm wrote: > > Apologies for bikeshedding, and I normally dislike "cute" names, but > > renaming it to > > > >"GNU Offloading and Multi

Re: libgomp: "GNU OpenMP Runtime Library" (was: [PATCH 1/5] OpenACC 2.0 support for libgomp - OpenACC runtime, NVidia PTX/CUDA plugin (repost))

2014-11-12 Thread David Malcolm
On Wed, 2014-11-12 at 21:30 +0100, Jakub Jelinek wrote: > On Wed, Nov 12, 2014 at 03:22:21PM -0500, David Malcolm wrote: > > On Wed, 2014-11-12 at 14:47 +0100, Jakub Jelinek wrote: > > > On Wed, Nov 12, 2014 at 08:33:34AM -0500, David Malcolm wrote: > > > > Apo

Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign

2014-11-12 Thread David Malcolm
On Tue, 2014-11-11 at 11:43 +0100, Richard Biener wrote: > On Tue, Nov 11, 2014 at 8:26 AM, Jakub Jelinek wrote: > > On Mon, Nov 10, 2014 at 05:27:50PM -0500, David Malcolm wrote: > >> On Sat, 2014-11-08 at 14:56 +0100, Jakub Jelinek wrote: > >> > On Sat, Nov 08, 201

Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign

2014-11-12 Thread David Malcolm
On Tue, 2014-11-11 at 08:26 +0100, Jakub Jelinek wrote: > On Mon, Nov 10, 2014 at 05:27:50PM -0500, David Malcolm wrote: > > On Sat, 2014-11-08 at 14:56 +0100, Jakub Jelinek wrote: > > > On Sat, Nov 08, 2014 at 01:07:28PM +0100, Richard Biener wrote: > > > > To be

[PATCH] Add gimple-compat.h (was Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign)

2014-11-14 Thread David Malcolm
On Thu, 2014-11-13 at 11:45 +0100, Richard Biener wrote: > On Thu, Nov 13, 2014 at 2:41 AM, David Malcolm wrote: > > On Tue, 2014-11-11 at 11:43 +0100, Richard Biener wrote: > >> On Tue, Nov 11, 2014 at 8:26 AM, Jakub Jelinek wrote: > >> > On Mon, Nov 10, 2014 at 0

Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign

2014-11-15 Thread David Malcolm
On Thu, 2014-11-13 at 11:45 +0100, Richard Biener wrote: > On Thu, Nov 13, 2014 at 2:41 AM, David Malcolm wrote: > > On Tue, 2014-11-11 at 11:43 +0100, Richard Biener wrote: > >> On Tue, Nov 11, 2014 at 8:26 AM, Jakub Jelinek wrote: > >> > On Mon, Nov 10, 2014 at 0

Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign

2014-11-17 Thread David Malcolm
On Mon, 2014-11-17 at 11:06 +0100, Richard Biener wrote: > On Sat, Nov 15, 2014 at 12:00 PM, David Malcolm wrote: > > On Thu, 2014-11-13 at 11:45 +0100, Richard Biener wrote: > >> On Thu, Nov 13, 2014 at 2:41 AM, David Malcolm wrote: > >> > On Tue, 2014-11-11 at 11:

Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign

2014-11-18 Thread David Malcolm
On Tue, 2014-11-18 at 10:53 +0100, Richard Biener wrote: > On Tue, Nov 18, 2014 at 2:59 AM, David Malcolm wrote: > > On Mon, 2014-11-17 at 11:06 +0100, Richard Biener wrote: > >> On Sat, Nov 15, 2014 at 12:00 PM, David Malcolm > >> wrote: > >> > On Thu, 20

Re: David Malcolm as JIT subsystem maintainer

2014-12-01 Thread David Malcolm
On Wed, 2014-11-26 at 10:17 -0700, Jeff Law wrote: > I'm pleased to announce that David Malcolm been appointed as maintainer > for the GCC JIT subsystem. > > David, please add yourself as the maintainer for that code in the > MAINTAINERS file. I believe you have some p

Re: Rename C files to .c in GCC source

2015-02-02 Thread David Malcolm
On Fri, 2015-01-30 at 23:24 +0100, Kevin Ingwersen (Ingwie Phoenix) wrote: > > Am 30.01.2015 um 22:39 schrieb DJ Delorie : > > > > > > pins...@gmail.com writes: > >> No because they are c++ code so capital C is correct. > > > > However, we should avoid relying on case-sensitive file systems > >

libgccjit documentation now available on gcc.gnu.org

2015-02-06 Thread David Malcolm
The documentation for libgccjit is now visible on the GCC website in HTML form at: https://gcc.gnu.org/onlinedocs/jit/ (and is being built nightly). Thanks to everyone who helped make this happen (Gerald Pfeifer, Joseph Myers, Frank Ch. Eigler, Jeff Law, iirc). The "Show Source" links on each p

Re: #include "gmp.h" in system.h via gcc-plugin.h

2015-02-26 Thread David Malcolm
On Thu, 2015-02-26 at 16:34 +0100, Bert Wesarg wrote: > [ Sending to gcc@, in the hope to get a statement from the GCC > developers finally. ] > > On Fri, Feb 20, 2015 at 2:35 PM, Bert Wesarg > wrote: > > On Fri, Feb 20, 2015 at 1:33 PM, Basile Starynkevitch > > wrote: > >> On Fri, Feb 20, 2015

Re: Obscure crashes due to gcc 4.9 -O2 => -fisolate-erroneous-paths-dereference

2015-02-26 Thread David Malcolm
On Fri, 2015-02-20 at 10:29 -0700, Jeff Law wrote: > On 02/19/15 14:56, Chris Johns wrote: > > On 20/02/2015 8:23 am, Joel Sherrill wrote: > >> > >> On 2/19/2015 2:56 PM, Sandra Loosemore wrote: > >>> Jakub Jelinek wrote: > On Wed, Feb 18, 2015 at 11:21:56AM -0800, Jeff Prothero wrote: > >

Re: #include "gmp.h" in system.h via gcc-plugin.h

2015-02-26 Thread David Malcolm
On Thu, 2015-02-26 at 19:51 +0100, Bert Wesarg wrote: > David. > > On Thu, Feb 26, 2015 at 4:54 PM, David Malcolm wrote: > > On Thu, 2015-02-26 at 16:34 +0100, Bert Wesarg wrote: > >> [ Sending to gcc@, in the hope to get a statement from the GCC > >> developers

[RFC/patch for stage1] Embed compiler dumps into generated .o files (was Re: Obscure crashes due to gcc 4.9 -O2 => -fisolate-erroneous-paths-dereference)

2015-02-27 Thread David Malcolm
On Thu, 2015-02-26 at 11:17 -0500, David Malcolm wrote: > On Fri, 2015-02-20 at 10:29 -0700, Jeff Law wrote: > > On 02/19/15 14:56, Chris Johns wrote: > > > On 20/02/2015 8:23 am, Joel Sherrill wrote: > > >> > > >> On 2/19/2015 2:56 PM, Sandra Lo

Re: SPIR-V and GCC

2015-03-04 Thread David Malcolm
On Wed, 2015-03-04 at 14:36 +, BogDan wrote: > Hello folks, > > > Probably is a little bit too early, but I'd like to ask if there is > any chance to use gcc to produce SPIR-V [1]. > It will be just great if we'll be able to write our shaders in e.g. > C/C++/(any language supported by gcc) a

Re: please document requirements on sphinx

2015-03-04 Thread David Malcolm
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 > requirements > on sphinx, and agree on a common version used to generate that documentation

Re: SPIR-V and GCC

2015-03-04 Thread David Malcolm
On Wed, 2015-03-04 at 16:20 +, BogDan wrote: > On Wednesday, March 4, 2015 5:22 PM, David Malcolm > wrote: > On Wed, 2015-03-04 at 14:36 +, BogDan wrote: > > Hello folks, > > > > > > Probably is a little bit too early, but I'd like to ask if

[PATCH, committed] jit documentation fixes

2015-03-05 Thread David Malcolm
On Thu, 2015-03-05 at 07:37 +0100, Bert Wesarg wrote: > Hi David, > > while reading the very good tutorial at > > https://gcc.gnu.org/onlinedocs/jit/intro/tutorial03.html > > I noticed that the calls to gcc_jit_block_end_with_conditional() > misses the on_true and on_false parameters. Good cat

Re: SPIR-V and GCC

2015-03-05 Thread David Malcolm
On Thu, 2015-03-05 at 12:27 +0100, Xerxes Rånby wrote: > > On Wed, 2015-03-04 at 16:20 +, BogDan wrote: > > > On Wednesday, March 4, 2015 5:22 PM, David Malcolm > > > wrote: > > > On Wed, 2015-03-04 at 14:36 +, BogDan wrote: > > > > Hello

  1   2   3   4   5   6   >