Compiler support for forbidding certain methods from being called

2025-04-14 Thread Basile Starynkevitch
ng the whole process. > > It would be nice to have compiler support to help with this. I would recommend writing your GCC plugin which would add some problem specific pragmas. Some code from https://github.com/bstarynk/bismon might be improved (by you or your colleagues/interns) to fit into lat

Remove duplication for the handling of attributes between different frontends in GCC

2025-03-19 Thread Basile Starynkevitch
x27;m not sure since this > includes a c-family file in libgccjit)? Certainly yes, once it is properly documented -- Basile STARYNKEVITCH 8 rue de la Faïencerie 92340 Bourg-la-Reine, France http://starynkevitch.net/Basile & https://github.com/bstarynk & https://github.com/RefPerSys/RefPerSys/

GSOC interest in Extend the static analysis pass

2025-03-12 Thread Basile Starynkevitch
hello You could take (and improve/refactor) some obsolete code from https://github.com/bstarynk/bismon and read the below draft report http://www.starynkevitch.net/Basile/bismon-chariot-doc.pdf I am no more working on that code base. My current open source project is https://github.com

Re: Introduction & Interest in GCC Rust Frontend GSoC Project

2025-02-28 Thread Basile Starynkevitch
On Fri, 2025-02-28 at 12:00 +, Sam James wrote: > Basile Starynkevitch writes: > > > Hello Bright Andoh, > > > > > > > > My name is Bright Andoh, and I’m a Computer Engineering student at the > > > University of Alabama. I’m wrapping up my fr

Re: Introduction & Interest in GCC Rust Frontend GSoC Project

2025-02-28 Thread Basile Starynkevitch
On Fri, 2025-02-28 at 12:54 +0100, Basile Starynkevitch wrote: > Hello Bright Andoh, > > > > > My name is Bright Andoh, and I’m a Computer Engineering student at the > > University of Alabama. I’m wrapping up my freshman year and have > > experience working

Introduction & Interest in GCC Rust Frontend GSoC Project

2025-02-28 Thread Basile Starynkevitch
ps://github.com/RefPerSys/RefPerSys/ Thanks -- Basile STARYNKEVITCH 8 rue de la Faïencerie 92340 Bourg-la-Reine, France http://starynkevitch.net/Basile & https://github.com/bstarynk

Interest in Contributing Diagnostic System to GCC

2025-02-03 Thread Basile Starynkevitch
o idea of how to achieve this. Do you want to use machine learning techniques to improve your diagnostic tool mjolnir? Perhaps some code from https://github.com/RefPerSys/RefPerSys/ (a GPL licensed inference engine project) could be useful for your tool? Regards from near Paris in France -- Basile STAR

Using gcc as a sort of scripting language.

2024-12-28 Thread Basile Starynkevitch
and b.c, link them together and execute them. > arg1 is given as first argument to the main() >of the resulting program. > > Best wishes for 2025. PS my open source project is a GPL inference engine on https://github.com/RefPerSys/RefPerSys/ -- Basile STARYNKEVITCH 8 rue de la Faïencerie 92340 Bourg-la-Reine, France http://starynkevitch.net/Basile & https://github.com/bstarynk

Assembly-level peepholes?

2024-10-04 Thread Basile STARYNKEVITCH
ts knowing that old version (4.3). NB. My open source project is an inference engine, see https://github.com/RefPerSys/RefPerSys/ -- Basile STARYNKEVITCH 8 rue de la Faïencerie 92340 Bourg-la-Reine mobile: +33 6 8501 2359 France http://starynkevitch.net/Basile/

About the effect of "O0" on inlining into a function

2024-06-28 Thread Basile Starynkevitch
add such a behavior. (I think that your plugin should be open source) -- Basile STARYNKEVITCH 8 rue de la Faïencerie, 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/ -gives my mobile number +33 6 8501 See/voir: https://github.com/RefPerSys/RefPerSys

Re: More C type errors by default for GCC 14

2023-05-10 Thread Basile Starynkevitch
/ and https://github.com/RefPerSys/RefPerSys ; it is explicitly thought for non-critical use (desktop, teaching, ...). -- Basile Starynkevitch (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/

a small C (naive) program faster with clang than with gcc

2023-04-24 Thread Basile Starynkevitch
Hello all, Consider the naive program (GPLv3+) to solve the cryptaddition `NEUF` + `DEUX` = `ONZE` onhttps://github.com/bstarynk/misc-basile/blob/master/CryptArithm/neuf%2Bdeux%3Donze/naive0.c (commit0d1bd0e <https://github.com/bstarynk/misc-basile/com

Re: No warning about duplicate values in enum

2023-03-13 Thread Basile Starynkevitch
On 3/13/23 14:29, Marek Polacek wrote: On Sat, Mar 11, 2023 at 04:48:14PM +, Jonathan Wakely via Gcc wrote: On Sat, 11 Mar 2023, 12:53 Basile Starynkevitch, wrote: Hello all, Andrea observed that: In gcc 8.3.0, compiling enum test { FIRST = 1, SECOND = 1

No warning about duplicate values in enum

2023-03-11 Thread Basile Starynkevitch
erSys open source inference engine (work in progress) on http://refpersys.org/ -- Basile Starynkevitch 92340 Bourg-la-Reine, France http://starynkevitch.net/Basile/ and http://refpersys.org/

static analysis in GCC (starting from Bismon plugin)

2023-03-01 Thread Basile Starynkevitch
) Cheers PS. My pet open source project is the RefPerSys <http://refpersys.org/> open source inference engine with some code on https://github.com/RefPerSys/RefPerSys (if interested contact me by email to bas...@starynkevitch.net or basile.starynkevi...@cea.fr ...) -- Basile Starynkevi

GCC -ftime-trace

2023-02-11 Thread Basile Starynkevitch
clock_gettime system call. See https://man7.org/linux/man-pages/man2/clock_gettime.2.html It is related to plugin gate functions... Regards. BTW, my pet open source project is http://refpersys.org/ (symbolic inference engine, work in progress). -- Basile Starynkevitch

Re: GSoC: Working on the static analyzer

2022-02-14 Thread Basile Starynkevitch
On 2/14/22 13:59, Basile Starynkevitch wrote: Hello, Mir Immad asked: Should the analyzer warn for code like this "when open fails" (like strchr does when 'strchr' returns NULL) int fd = open("NOFILE", O_RDONLY); write(fd, "a", 1); because

GSoC: Working on the static analyzer

2022-02-14 Thread Basile Starynkevitch
https://frama-c.com/ <https://frama-c.com/> PS. My pet project is http://refpersys.org/ (Soon generating code compiled by GCC). It is not GCC related. -- Basile Starynkevitch (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/

Your GSoc'22 submission for GCC

2021-09-26 Thread Basile Starynkevitch
ficial/ documentation on http://starynkevitch.net/Basile/bismon-doc.pdf <http://starynkevitch.net/Basile/bismon-doc.pdf> (in PDF format, A4 paper) Bismon is probably ending because of lack of funding. You could study its source code and (if your teachers and funding organizations agree) continue th

Re: Exact inform format escape sequence (GCC 10 or GCC 11)

2021-09-14 Thread Basile Starynkevitch
On 9/14/21 11:32 AM, Martin Liška wrote: On 9/10/21 15:05, Basile Starynkevitch wrote: Hello all, In the Bismon static source code analyzer on https://github.com/bstarynk/bismon/ commit ad8b6270691e (funded by http://decoder-project.eu/ ) which contains some GPLv3+ GCC plugin code

Exact inform format escape sequence (GCC 10 or GCC 11)

2021-09-10 Thread Basile Starynkevitch
  405 | inform (UNKNOWN_LOCATION, "Bismon plugin %qs (%s:%d) will handle GCC include-file events with prefix %qs",   | ^~ Where can I read the complete specification of % escape sequences for inform? Thanks Bas

GCC [RFC] Whole Program Devirtualization

2021-08-20 Thread Basile Starynkevitch
...@cea.fr and at home bas...@starynkevitch.net ) The most important thing: limit your ambition at first. Write a document (at least an internal one) stating what you won't do. Cheers -- Basile Starynkevitch (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/

About porting GCC to backends which have a small number of registers. ....

2021-04-11 Thread Basile Starynkevitch
Of course, I am not candidate to do so... Cheers -- Basile Starynkevitch (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/

static analysis above GCC (GSoC 2021)

2021-03-06 Thread Basile Starynkevitch
://refpersys.org/ and I am seeking funding and applications for it. -- Basile Starynkevitch (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/

example GCC plugins?

2020-03-20 Thread Basile Starynkevitch
the GCC MELT <http://starynkevitch.net/Basile/gcc-melt/> guy, and actively contributed, with Jérémie Salvucci, to GCC plugin infrastructure) The plugin I have in mind would embed some Turing complete interpreter with sqlite <https://sqlite.org/> and JSONRPC <https://www.jsonrpc.org

[off-topic] freelancing GCC plugin development activity

2019-10-30 Thread Basile Starynkevitch
privately by email to bas...@starynkevitch.net Thanks for reading. Cheers PS. My resume is here: http://starynkevitch.net/Basile/cv-Basile-Starynkevitch.pdf -- Basile STARYNKEVITCH == http://starynkevitch.net/Basile opinions are mine only - les opinions sont seulement miennes Bourg La Reine

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

2019-04-11 Thread Basile Starynkevitch
On 4/10/19 8:44 PM, David Malcolm wrote: On Wed, 2019-04-10 at 17:53 +0200, Basile Starynkevitch wrote: I don't want to pollute the mailing list archive. My previous email is on https://gcc.gnu.org/ml/gcc/2019-04/msg00133.html so please refer to it. And that previous email mentions

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

2019-04-10 Thread Basile Starynkevitch
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 more context, read the draft report on http://starynkevitch.net/Basile/bismon

Re: Warning for C Parameter Name Mismatch

2019-03-10 Thread Basile Starynkevitch
On 3/10/19 12:54 PM, David Brown wrote: On 10/03/2019 07:11, Basile Starynkevitch wrote: (I am reading the GCC mailing list in digest mode) On 3/9/19 10:58 PM, gcc-digest-h...@gcc.gnu.org wrote: On Fri, 8 Mar 2019, Joel Sherrill wrote: Can gcc report when the parameter name in a C

Re: Warning for C Parameter Name Mismatch

2019-03-09 Thread Basile Starynkevitch
at purpose. How to write such a GCC plugin is a different question, and should be asked as such. Cheers. -- Basile STARYNKEVITCH == http://starynkevitch.net/Basile opinions are mine only - les opinions sont seulement miennes Bourg La Reine, France

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

2018-07-17 Thread Basile Starynkevitch
ant. Regards -- Basile STARYNKEVITCH == http://starynkevitch.net/Basile opinions are mine only - les opinions sont seulement miennes Bourg La Reine, France

Re: backtrace.h not installed with --enable-plugin

2017-06-15 Thread basile
create_state and so forth) So it does not cost much to publish backtrace.h when plugins are enabled (the static libbacktrace library is part of the cc1plus) BTW, on Debian/x86-64 /usr/lib/gcc/x86_64-linux-gnu/6/include/backtrace.h is part of libgcc-6-dev which also provides files /usr/lib/gcc/x86_64-linux-gnu/6/libasan.so etc, which are definitely provided by GCC. Cheers. -- Basile Starynkevitch (France) http://starynkevitch.net/Basile/

backtrace.h not installed with --enable-plugin

2017-06-14 Thread basile
o' I was expecting the installed built tree to contain the backtrace.h from Ian Taylor's libbacktrace. This is not the case. Why? What configure option did I miss? notice that ../gcc-7.1.0/configure --help don't mention backtrace (is that a bug, perhaps at least in the documentation or in ../gcc-7.1.0/configure.ac ?? Or am I misunderstanding something??) Regards -- Basile Starynkevitch (France) http://starynkevitch.net/Basile/

Ann: MELT plugin 1.3 release candidate 2 for GCC 5 or GCC 6

2016-05-11 Thread Basile Starynkevitch
Dear All, It is my pleasure to announce the MELT plugin 1.3 release candidate 2 for GCC 5 & GCC 6 (hosted and usable on Linux preferably). MELT -see http://gcc-melt.org/ for more (or http://starynkevitch.net/Basile/gcc-melt/ which points to the same web pages and resources) - is a do

Ann: MELT plugin 1.3 release candidate 1 for GCC 5 or GCC 6

2016-05-03 Thread Basile Starynkevitch
Hello All, It is my pleasure to announce the MELT plugin 1.3 release candidate 1 for GCC 5 & GCC 6 (hosted on Linux preferably). MELT -see http://gcc-melt.org/ for more (or http://starynkevitch.net/Basile/gcc-melt/ which points to the same web pages and resources) - is a domain spec

stable plugin introspection API ... Where?

2016-02-14 Thread Basile Starynkevitch
stable plugin introspection API? In https://gcc.gnu.org/ml/gcc/2016-02/msg00159.html I (Basile) wrote: > What exact functions (their name, the source files defining them) in the current GCC trunk > are you referring to by your "introspection" word? Last time I checked (a few mon

Re: gengtype: conditional GTY ? (to add before GCC 6 release)

2016-02-12 Thread Basile Starynkevitch
On 02/12/16 14:38, Richard Biener wrote: On Fri, Feb 12, 2016 at 1:23 PM, Basile Starynkevitch wrote: I am tempted to try implementing a conditional GTY, [...] but this makes sense only if such a gengtype patch would go both into GCC 6 and into the next microrelease of GCC 5, i.e. GCC 5.4

gengtype: conditional GTY ? (to add before GCC 6 release)

2016-02-12 Thread Basile Starynkevitch
Opinions are welcome! Regards. PS. The very dirty alternative would be to feed gengtype with different variants of inputs. That is ugly. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La R

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

2016-02-11 Thread Basile Starynkevitch
On 02/11/16 23:13, David Malcolm wrote: 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

gengtype: missing `tag' option (MELT branch)

2016-02-11 Thread Basile Starynkevitch
read 1085612 bytes. ../../gcc-melt-basile/gcc/melt/generated/meltrunsup.h:256: missing `tag' option for type `gimple' ../../gcc-melt-basile/gcc/melt/generated/meltrunsup.h:265: missing `tag' option for type `gimple' ../../gcc-melt-basile/gcc/melt/generated/meltrunsup.h:256: missin

Ann: MELT plugin 1.2.0 for GCC 4.9 & 5.

2015-07-24 Thread Basile Starynkevitch
cros... Runtime features Ported to GCC 4.9 & GCC 5.x types. ### Please report bugs to gcc-m...@googlegroups.com Regards. -- Basile Starynkevitch http://starynkevitch.net/Basile/ France basile starynkevitch.net wo

magic 8 constant (bits / byte maybe?) in GCC JIT memento_of_new_rvalue_from_const ::get_wide_int

2015-07-20 Thread Basile Starynkevitch
s byte? Regards. -- Basile Starynkevitch http://starynkevitch.net/Basile/ France

GCC/JIT and precise garbage collection support?

2015-07-09 Thread Basile Starynkevitch
had such support for garbage collection, the (dying) Java front-end could be resurrected to provide a faster GC than Boehm GC. And GCC based compilers for languages like Go or D which have garbage collection could also profit. (even MELT might take advantage of that). Regards. -- Ba

configure --program-suffix could change gccjit library path?

2015-07-02 Thread Basile Starynkevitch
on of libgccjit? Regards. -- Basile Starynkevitch http://starynkevitch.net/Basile/ France

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

2015-06-19 Thread Basile Starynkevitch
which initialize a gcc_jit_context from a precompiled header... Where should it go? Regards. -- Basile Starynkevitch http://starynkevitch.net/Basile/

FOSDEM talk on GCC MELT (Lisp devroom)

2015-01-30 Thread Basile Starynkevitch
e GCC compiler. About the GCC compiler, see http://gcc.gnu.org/ About MELT, see http://gcc-melt.org/ Regards -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are

Ann: MELT plugin 1.1.3 for GCC 4.8 & 4.9

2014-11-13 Thread Basile Starynkevitch
= Better eval mode. More informative error messages. Documentation generated in several HTML files. ### Please report bugs and comments to gcc-m...@googlegroups.com Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile

Ann: MELT 1.1.2 plugin for GCC 4.8 & 4.9 release (bugfixes)

2014-08-31 Thread Basile Starynkevitch
nd is a macro. tree_chain_to_tuple is a new function. # Please ask questions and give feedback (successes or bug reports) on gcc-m...@googlegroups.com list. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faie

Re: GCC plugins & GGC & explicit gcc_free

2014-08-29 Thread Basile Starynkevitch
tics on edges and to print these at FINISH_UNIT time. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***

GCC plugins & GGC & explicit gcc_free

2014-08-29 Thread Basile Starynkevitch
directly free_edge. If you are interested here is the offending backtrace (with a watchpoint triggered when ggc_free is overwriting, by enable-checking code, some edge still kept in MELT global data thru a GTY-ed variable) 0 in memset of ../sysdeps/x86_64/memset.S:65 1 in ggc_free of /usr/src/La

consistent naming of passes....

2014-08-27 Thread Basile Starynkevitch
ter find the name of the reference pass to insert his own new pass? At the very least it should be documented, and preferably it should be identical to output of -fdump-passes Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8

Ann: MELT 1.1.1 plugin for GCC 4.8 & 4.9

2014-08-11 Thread Basile Starynkevitch
are invited to upgrade. Regards -- Basile Starynkevitch http://starynkevitch.net/Basile Opinions are mine only!

Ann: MELT plugin 1.1 release available for GCC 4.8 & 4.9

2014-07-27 Thread Basile Starynkevitch
p; REGISTER_PLAIN_PRAGMA function. *** Sorting primitives like multiple_sort are fully reentrant, so their compare routine might do a sort itself! *** Remove old option handling, REGISTER_OPTION is removed. Bug and success reports are welcome on gcc-m...@googlegroups.com

Ann: MELT plugin 1.1 release candidate 1 available

2014-07-26 Thread Basile Starynkevitch
in 1.1 in the next few days) Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***

ICE with atomic_store

2014-06-18 Thread Basile Starynkevitch
did not test it on the trunk yet) (For some strange reason, probably on my side, I'm not able to change the password on bugzilla. So I'm reporting that bug here, sorry for the inconvenience). Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestaryn

Re: Gcc plugin for modification of source code ?

2014-06-14 Thread Basile Starynkevitch
epresentation (without modifying any C++ source file) is probably simpler. What exactly do you want to achieve? Are you sure that a source to source transformation is worthwhile -given that you can transform internal GCC representations like Gimples-? Regards -- Basile STARYNKEVITCH

Re: How can I get started as a GCC developer

2014-06-10 Thread Basile Starynkevitch
LT extensions, see http://gcc-melt.org/ for more). Read in particular my latest slides http://gcc-melt.org/gcc-plugin-MELT-LinuxCollabSummit2014.pdf (GCC plugins thru the MELT examples). They give a lot of pointers. Don't forget to read http://www.cse.iitb.ac.in/grc/ Regards. --

Re: Roadmap for 4.9.1, 4.10.0 and onwards?

2014-05-20 Thread Basile Starynkevitch
proved by someone else. So I don't think that the steering committee knows a lot more than you and me. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***

Re: True "no-exceptions" mode?

2014-05-18 Thread Basile Starynkevitch
://gcc-melt.org/ for more) or some plugin (in C++) which would at least check that no exception gimple is going thru. This might be adding a pass which would detect and bark when exception-related gimples are used. Regards -- Basile STARYNKEVITCH http://starynkevitch.ne

slides of talk on "GCC plugins thru the MELT example" (Linux F. Collab. S)

2014-03-29 Thread Basile Starynkevitch
c-melt.org/gcc-plugin-MELT-LinuxCollabSummit2014.pdf There should be useful to anyone interested in GCC plugins or MELT extensions Regards -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bour

Re: Inquireries

2014-03-15 Thread Basile Starynkevitch
from http://gcc.gnu.org/viewcvs/gcc/branches/melt-branch/gcc/obsolete-melt/xtramelt-c-generator.melt Regards -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {ar

Re: GNU C extension: Function Error vs. Success

2014-03-10 Thread Basile Starynkevitch
ments. Regards. PS. Plugins cannot extend the C syntax (except thru attributes, builtins, pragmas). -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***

status of current_pass (notably in gates) .... [possible bug in 4.9]

2014-03-10 Thread Basile Starynkevitch
thing would be to set current_pass in dump_one_pass.... Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***

Re: [RFC] Meta-description for tree and gimple folding

2014-02-28 Thread Basile Starynkevitch
On Thu, 2014-02-27 at 15:34 +0100, Richard Biener wrote: > > I've been hacking on a prototype that generates matching and > simplification code from a meta-description. For what it is worth, MELT has a similar feature. http://gcc-melt.org/ regards -- Basile STARYNKEVITC

Re: proposal to turn on some warnings by default

2014-02-27 Thread Basile Starynkevitch
stions asked by newbies users of GCC (or beginners in C programming) which could have been avoided (or at least noticed) by -Wall BTWX, when I teach some courses and have students use GCC I require them to pass -Wall and to do the necessary to avoid any warnings. Regards. -- Basile STARYNKEVITCH

Re: Help Required on Missing GOTO statements in Gimple/SSA/CFG Pass ...

2014-02-17 Thread Basile Starynkevitch
} BTW, did you consider using MELT http://gcc-melt.org/ to code your GCC extension? -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***

Re: question about gtype-desc.c

2014-02-04 Thread Basile Starynkevitch
ields > > appear. > > > > OK. Found the issue. I had the 2 fields enclosed inside a #if 0 and #endif > > I guess whatever that is reading the fields to create gtype-desc.c does not > understand C/C++ pre-processing, and thus it didn't ignore the fields in >

implementation & optimization of std::function with and without allocator

2014-01-25 Thread Basile Starynkevitch
tion, so probably I am very naive. If someone had time to explain what passes are optimizing this sum function with g++ -std=c++11 -O3 I would be very happy (the handling of lambda-s is really mysterious to me)... Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestary

Re: checking GPL compatibility in MELT meta-plugin

2014-01-23 Thread Basile Starynkevitch
On Thu, 2014-01-23 at 17:42 -0800, Ian Lance Taylor wrote: > On Thu, Jan 23, 2014 at 1:28 PM, Basile Starynkevitch > wrote: > > > > Reminder: IANAL, ie I (Basile) am not a lawyer! But I am a free software > > enthusiast and I like a lot the GPLv3 > > > >

checking GPL compatibility in MELT meta-plugin

2014-01-23 Thread Basile Starynkevitch
Hello All, [GCC list, MELT group, and David Malcolm -python plugin- and Diego Novillo -plugin enthusiast & maintainer] Reminder: IANAL, ie I (Basile) am not a lawyer! But I am a free software enthusiast and I like a lot the GPLv3 As you know, GCC has some technical devices to invite pl

Ann: MELT 1.0.2 plugin for GCC 4.7 & 4.8 (bug-fixing release)

2013-12-17 Thread Basile Starynkevitch
my students at Univ. Pierre et Marie Curie, Paris, France (notably Boris de Finance and others) for reporting the bug. Please report bugs and ask questions on the gcc-melt googlegroup: https://groups.google.com/forum/#!topic/gcc-melt i.e. gcc-m...@googlegroups.com Regards. -- Basile

Re: [RFC] Replace Java with Go in default languages

2013-11-20 Thread Basile Starynkevitch
aps default-enabled (just because I like the language and I trust your work on Go in GCC; the one major thing I miss in Go is dynamic loading à la dlopen). Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la

Re: PLUGIN_HEADER_FILE event for tracing of header inclusions.

2013-11-18 Thread Basile Starynkevitch
On Mon, 2013-11-18 at 13:17 +, Joseph S. Myers wrote: > On Sun, 17 Nov 2013, Basile Starynkevitch wrote: > > > What would be the good way to add such a plugin event to GCC 4.9? > > See the cpp_callbacks structure, used to make diagnostics go through GCC's >

PLUGIN_HEADER_FILE event for tracing of header inclusions.

2013-11-17 Thread Basile Starynkevitch
todependencies for make, etc...) is unhappy (because this requires -I$(srcdir)/../gcc to be added in the Makefile.in of libcpp/) What would be the good way to add such a plugin event to GCC 4.9? Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitc

Ann: MELT 1.0.1 plugin for GCC 4.7 & 4.8

2013-11-07 Thread Basile Starynkevitch
Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***

Ann: MELT 1.0 plugin for GCC 4.7 & 4.8

2013-10-29 Thread Basile Starynkevitch
reports. #### Respectful regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***

Ann.: MELT 1.0 [rc2] plugin (release candidate 2) for GCC 4.7 or better

2013-10-23 Thread Basile Starynkevitch
sses. As usual, many bug fixes... A ticket system is now available on https://sourceforge.net/p/gcc-melt/tickets/ for bug reports. ## Please download it, test it, and report any bugs or successes on gcc-m...@googlegroups.com I hope to release the MELT 1.0 plugin definitive release in a few

Re: GCC 4.8.2 Status Report / plugin related corrections

2013-10-11 Thread Basile Starynkevitch
ed to plugins. The first enables a = in a plugin argument, and the second enable .cc files to gengtype. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opini

MELT-1.0-rc1 plugin release candidate for GCC 4.7, 4.8 or newer

2013-10-03 Thread Basile Starynkevitch
ow Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***

automatic dependencies, adding new files in branch...

2013-10-01 Thread Basile Starynkevitch
c \ gt-melt-runtime.h $(PLUGIN_H) $(TOPLEV_H) $(VERSION_H) \ | melt-runtime.args ls -l melt-runtime.args $(COMPILER) -c $(shell cat melt-runtime.args) $(OUTPUT_OPTION) ### But I cannot figure out easily how to adapt these rules to the new Makefile.in infrastru

where to insert a new Simple IPA [measuring] pass from a plugin ?

2013-09-30 Thread Basile Starynkevitch
p://gcc.gnu.org/ml/gcc/2010-11/msg00638.html -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***

Re: [PATCH 0/6] Convert gimple to a C++ class hierarchy

2013-08-31 Thread Basile Starynkevitch
cessing all of it (i.e. every GTY-ed class declaration), and have our gengtype successor plugin emit appropriate #if in the generated C++ code. Of course having gengtype replaced by a plugin requires such a plugin to be developed and GCC maintainers to have access to some gcc... Cheers -- Bas

Re: Questions about LTO infrastructure and pragma omp target

2013-08-27 Thread Basile Starynkevitch
e plugins are mentioned (and I guess Jakub was talking of linker plugins) I would add that GCC plugins might want to add (and later use) their own arbitrary LTO data in these sections. Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +

Re: New file extension

2013-07-30 Thread Basile Starynkevitch
On Tue, Jul 30, 2013 at 11:51:35AM +, Joseph S. Myers wrote: > On Tue, 30 Jul 2013, Basile Starynkevitch wrote: > > > I think it is a good idea now (except perhaps for the very few source files > > which could still be compiled by a plain C, not C++, compiler; maybe we >

Re: New file extension

2013-07-30 Thread Basile Starynkevitch
onfused). So I am in favor of a massive renaming. (But please do it in one single huge svn commit). Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***

Ann: MELT 0.9.9 plugin release for GCC 4.6, 4.7, 4.8

2013-06-22 Thread Basile Starynkevitch
t : gcc-m...@googlegroup.com (within a day, I will also announce on SourceForge & FreeCode ...) Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***

MELT 0.9.9 rc3 plugin release candidate for GCC 4.6, 4.7, 4.8

2013-06-12 Thread Basile Starynkevitch
successes and bugs on gcc-melt list at googlegroups.com : gcc-m...@googlegroups.com Regards -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***

MELT 0.9.9 rc2 plugin release candidate for GCC 4.6, 4.7, 4.8

2013-06-03 Thread Basile Starynkevitch
probably make this the 0.9.9 release of MELT plugin for GCC 4.6, 4.7, and 4.8 in a couple of days. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions

MELT 0.9.9 rc1 plugin release candidate for GCC 4.6, 4.7, 4.8

2013-06-01 Thread Basile Starynkevitch
ny bug fixes and internal improvements... Emitted C/C++ code contains more checks.. *** * More primitives and functions # Please download and report bugs on gcc-m...@googlegroups.com Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestar

Re: libbacktrace & plugins....

2013-05-20 Thread Basile Starynkevitch
On Mon, May 20, 2013 at 08:43:06AM -0700, Ian Lance Taylor wrote: > On Mon, May 20, 2013 at 7:31 AM, Basile Starynkevitch > wrote: > > > > Currently (for GCC 4.8 at least) when a plugin crashes (ie. SIGSEGV) > > libbacktrace is apparently not able > > to show ba

libbacktrace & plugins....

2013-05-20 Thread Basile Starynkevitch
inside plugins (at least those compiled with -g). Is is reasonably feasible? I'm not familiar with libbacktrace, but (since MELT would be very happy with that) I might perhaps help Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet m

Re: -Og changes on 4.7.3?

2013-05-12 Thread Basile Starynkevitch
personal use it is so much simpler to just build GCC 4.8 and use it. No good reason to stick to a patched GCC 4.7 Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opin

Re: Simple way to pass new #pragma to GIMPLE

2013-04-09 Thread Basile Starynkevitch
better yet a MELT extension (see http://gcc-melt.org/ for more about MELT which is a high-level domain specific language to extend GCC) to add your pragmas. Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6

Re: Obtaining a callsite address.

2013-03-10 Thread Basile Starynkevitch
On Sun, Mar 10, 2013 at 10:54:39PM +1100, Matt Davis wrote: > On Sun, Mar 10, 2013 at 9:35 PM, Basile Starynkevitch > wrote: > > On Sun, Mar 10, 2013 at 01:51:04PM +1100, Matt Davis wrote: > >> I have a GIMPLE_CALL gimple object. I want to get the tree node > >>

Re: Obtaining a callsite address.

2013-03-10 Thread Basile Starynkevitch
ly do you mean by "callsite"). However, the called function can be obtained by gimple_call_fndecl which gives a tree. If using MELT http://gcc-melt.org/ you just use a gimple_call pattern... Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestaryn

Re: Bootstrapping process

2013-02-01 Thread Basile Starynkevitch
ides notably http://gcc-melt.org/GCC-MELT-HiPEAC2012.pdf which might also help. And you can find many other resources on the web too... Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92

Re: gcc : c++11 : full support : eta?

2013-01-24 Thread Basile Starynkevitch
On Thu, Jan 24, 2013 at 09:31:50PM +, Alec Teal wrote: > > It'd be really cool if GCC could compile to LLVM and also parse it. There exist a dragonegg plugin to GCC which uses GCC front-end and LLVM back-end (& middle-end) http://dragonegg.llvm.org/ Cheers -- Basil

Re: gcc : c++11 : full support : eta?

2013-01-24 Thread Basile Starynkevitch
explanations about GCC internals) Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***

Re: hard typdef - proposal - I know it's not in the standard

2013-01-22 Thread Basile Starynkevitch
to extend GCC) dealing with that attribute. This would be a good way to experiment your idea. Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***

Re: Building GCC using C++

2013-01-15 Thread Basile Starynkevitch
On Tue, Jan 15, 2013 at 11:36:53AM +0530, Uday P. Khedker wrote: > > > Basile Starynkevitch wrote, On Tuesday 15 January 2013 11:34 AM: > >My belief is that it is no more possible to configure a recent GCC straight > >(non-cross) compiler without --enable-language=c++ &g

  1   2   3   4   5   6   7   8   9   >