Re: On pull request workflows for the GNU toolchain

2024-09-23 Thread Eric Gallager via Gcc
On Mon, Sep 23, 2024 at 8:09 AM Thomas Koenig via Gcc wrote: > > [For the fortran people: Discussion on gcc@] > > Just a general remark. > > There are people, such as myself, who regularly mess up > their git repositories because they have no mental model > of what git is doing (case in point: The

Re: Update bootstrap requirement to C++14?

2024-09-14 Thread Eric Gallager via Gcc
On Sat, Sep 14, 2024 at 11:53 AM Jason Merrill via Gcc wrote: > > We moved to a bootstrap requirement of C++11 in GCC 11, 8 years after > support was stable in GCC 4.8. > > It is now 8 years since C++14 was the default mode in GCC 6 (and 9 years > since support was complete in GCC 5); perhaps it's

Re: #pragma once behavior

2024-09-07 Thread Eric Gallager via Gcc
On Sat, Sep 7, 2024 at 5:34 AM Richard Biener via Gcc wrote: > > > > > Am 07.09.2024 um 07:27 schrieb Jeremy Rifkin : > > > >  > >> > >> This is why I said what is the a same file if you can't rely on inodes > >> working? > > > > I don't have a good answer for such a case. Of course, no matter h

Re: gcc-wwwdocs branch python-formatting created. e1e17c97a8ae35cfb6b2f7428fb52b05f82450d1

2024-08-23 Thread Eric Gallager via Gcc
On Thu, Aug 22, 2024 at 1:27 PM Gerald Pfeifer wrote: > > On Mon, 19 Aug 2024, Eric Gallager via Gcc-cvs-wwwdocs wrote: > > This is an automated email from the git hooks/post-receive script. It was > > generated because a ref change was pushed to the repository containing &g

Re: Simple GCC projects page

2024-08-18 Thread Eric Gallager via Gcc
Simple GCC projects page:1. A few references are > > made to the java front-end. > > Indeed, and this is something we (specifically Eric) addressed, together > with various other issues on this page. > > > Under code cleanliness, the bullet for enormous files lists f

Re: gnatlink vs. -mthumb -march=armv7-a+simd -mfloat-abi=hard

2024-06-26 Thread Eric Botcazou via Gcc
I checked this with the > following spec file: But you wouldn't have a problem if it was, would you? What happens if the '+' is changed to another character in the line passed to the driver. -- Eric Botcazou

Re: gnatlink vs. -mthumb -march=armv7-a+simd -mfloat-abi=hard

2024-06-25 Thread Eric Botcazou via Gcc
racter is not matched by '*' or some such. -- Eric Botcazou

Re: SARIF support in GCC: wiki page and BZ keyword

2024-06-21 Thread Eric Gallager via Gcc
> Hi, thanks for creating these. Since "SARIF" is a keyword, what component should bugs using it generally go under? Thanks, Eric > Dave >

Re: GSoC Timeline Review

2024-04-03 Thread Eric Feng via Gcc
exploring alternative approaches. Overall, I hope you find the experience as enriching as I did should you work on this project! Please feel free to reach out with any questions and I’ll be more than happy to help where I can. Best, Eric On Tue, Apr 2, 2024 at 10:35 AM Martin Jambor wrote: > Hell

Re: [RFC] add regenerate Makefile target

2024-03-20 Thread Eric Gallager via Gcc
On Tue, Mar 19, 2024 at 2:10 PM Tom Tromey wrote: > > > not sure if the current autoregen.py is in sync with that? > > I'm curious why "autoreconf -f" is insufficient. > It seems to me that this should work. `autoreconf -f` works fine in individual subdirectories, the problem is that the top-leve

Re: [RFC] add regenerate Makefile target

2024-03-15 Thread Eric Gallager via Gcc
On Fri, Mar 15, 2024 at 4:53 AM Christophe Lyon via Gcc wrote: > > On Thu, 14 Mar 2024 at 19:10, Simon Marchi wrote: > > > > > > > > On 2024-03-13 04:02, Christophe Lyon via Gdb wrote: > > > Hi! > > > > > > After recent discussions on IRC and on the lists about maintainer-mode > > > and various p

Re: GNU Tools Cauldron 2024

2024-03-06 Thread Eric Gallager via Gcc
On Tue, Mar 5, 2024 at 11:01 PM Bradley M. Kuhn via Gcc wrote: > > Jeremy, David, Carlos, and the GCC Community, > > Jeremy Bennett wrote yesterday: > > We are starting to put together the plans for this year's Cauldron. We > > have a suggested date of 13-15 September, the weekend before LPC. > >

Expected warning maybe-uninitialized does not appear using g++13.2.0?

2023-12-20 Thread Eric Batchelor
Hello, I unintentionally stumbled upon some strange behaviour that occurred due to a typo. I reproduced the behaviour where an object (std::string in my case) can be passed to a function by reference, uninitialized, WITHOUT a compiler warning. Changing the code to pass the object by value DOES

Re: Deprecating -fgnu-tm support for GCC 14 and removing it for GCC 15

2023-12-17 Thread Eric Gallager
Personally, since GCC is in stage 3 now, I would push that schedule back a release and move deprecation to GCC 15, and then only remove it for GCC 16 if no one objects, but then again I don't actually use -fgnu-tm myself, so I wouldn't be too upset if the faster schedule is chosen instead. Eric Gallager

Re: Enable top-level recursive 'autoreconf'

2023-10-19 Thread Eric Gallager
On Thu, Oct 19, 2023 at 6:43 AM Thomas Schwinge wrote: > > Hi! > > On 2023-10-19T11:57:33+0200, Andreas Schwab wrote: > > On Okt 19 2023, Thomas Schwinge wrote: > >> On 2023-10-18T15:42:18+0100, R jd <3246251196r...@gmail.com> wrote: > >>> I guess I can ask, why there is not a recursive approach

Re: gcc 13.2 is missing warnings?

2023-10-19 Thread Eric Gallager
> You will get the warnings with -pedantic. > > > > Martin > > > > Am Donnerstag, dem 19.10.2023 um 07:39 -0400 schrieb Eric Sokolowsky via > > Gcc: > > > I am using gcc 13.2 on Fedora 38. Consider the following program. > > > > > > #

Re: gcc 13.2 is missing warnings?

2023-10-19 Thread Eric Sokolowsky via Gcc
Thank you for your message. Indeed, the -pedantic flag gives me the warning I expect. -O (as suggested in another response) does not. Eric On Thu, Oct 19, 2023 at 7:49 AM Martin Uecker wrote: > > > > > GCC supports this as an extension. > > Mixing declarations and code is a

gcc 13.2 is missing warnings?

2023-10-19 Thread Eric Sokolowsky via Gcc
mplain about the declaration of variables (a, b, and c) within the case statements. When I run "gcc -Wall t.c" I get no warnings. When I run "g++ -Wall t.c" I get warnings and errors as expected. I do get warnings when using MinGW on Windows (gcc version 6.3 specifically). Did something change in 13.2? Eric

Re: [PATCH] analyzer: implement symbolic value support for CPython plugin's refcnt checker [PR107646]

2023-09-10 Thread Eric Feng via Gcc
On Thu, Sep 7, 2023 at 1:28 PM David Malcolm wrote: > On Mon, 2023-09-04 at 22:13 -0400, Eric Feng wrote: > > > Hi Dave, > > Hi Eric, thanks for the patch. > > > > > Recently I've been working on symbolic value support for the reference > > count chec

[PATCH] analyzer: implement symbolic value support for CPython plugin's refcnt checker [PR107646]

2023-09-04 Thread Eric Feng via Gcc
Hi Dave, Recently I've been working on symbolic value support for the reference count checker. I've attached a patch for it below; let me know it looks OK for trunk. Thanks! Best, Eric --- This patch enhances the reference count checker in the CPython plugin by adding support fo

Re: [PATCH] analyzer: implement reference count checking for CPython plugin [PR107646]

2023-09-01 Thread Eric Feng via Gcc
Thank you for the patch! On Fri, Sep 1, 2023 at 10:51 AM David Malcolm wrote: > > On Fri, 2023-09-01 at 04:49 +0200, Hans-Peter Nilsson wrote: > > (Looks like this was committed as r14-3580-g597b9ec69bca8a) > > > > > Cc: gcc@gcc.gnu.org, gcc-patc...@gcc.gnu.org, Eric F

Re: [PATCH] analyzer: implement reference count checking for CPython plugin [PR107646]

2023-08-31 Thread Eric Feng via Gcc
On Thu, Aug 31, 2023 at 4:19 PM David Malcolm wrote: > > On Thu, 2023-08-31 at 15:09 -0400, Eric Feng wrote: > > On Thu, Aug 31, 2023 at 1:01 PM David Malcolm > > wrote: > > > > > > On Wed, 2023-08-30 at 18:15 -0400, Eric Feng wrote: > > [...] > >

Re: [PATCH] analyzer: implement reference count checking for CPython plugin [PR107646]

2023-08-31 Thread Eric Feng via Gcc
On Thu, Aug 31, 2023 at 1:01 PM David Malcolm wrote: > > On Wed, 2023-08-30 at 18:15 -0400, Eric Feng wrote: > > On Tue, Aug 29, 2023 at 5:14 PM David Malcolm > > wrote: > > > > > > On Tue, 2023-08-29 at 13:28 -0400, Eric Feng wrote: > > > > Addi

Re: [PATCH] analyzer: implement reference count checking for CPython plugin [PR107646]

2023-08-30 Thread Eric Feng via Gcc
On Tue, Aug 29, 2023 at 5:14 PM David Malcolm wrote: > > On Tue, 2023-08-29 at 13:28 -0400, Eric Feng wrote: > > Additionally, by using the old model and the pointer per your > > suggestion, > > we are able to find the representative tree and emit a more accurate > >

[PATCH] analyzer: implement reference count checking for CPython plugin [PR107646]

2023-08-29 Thread Eric Feng via Gcc
. I've attached the patch for this (on top of the previous one) below. If it also looks good, I can merge it with the last patch and push it in at the same time. Best, Eric --- gcc/analyzer/region-model.cc | 3 +- gcc/analyzer/region-model.h | 7 ++-- .../g

Re: [PATCH] analyzer: implement reference count checking for CPython plugin [PR107646]

2023-08-28 Thread Eric Feng via Gcc
On Tue, Aug 29, 2023 at 12:32 AM Eric Feng wrote: > > Hi Dave, > > Thanks for the feedback. I've addressed the changes you mentioned in > addition to adding more test cases. I've also taken this chance to > split the test files according to known function subclasses, a

[PATCH] analyzer: implement reference count checking for CPython plugin [PR107646]

2023-08-28 Thread Eric Feng via Gcc
e analyzer, I've done a bootstrap and regtested the patch as well. Does it look OK for trunk? Best, Eric --- This patch introduces initial support for reference count checking of PyObjects in relation to the Python/C API for the CPython plugin. Additionally, the core analyzer underwent several m

Update on CPython Extension Module -fanalyzer plugin development

2023-08-25 Thread Eric Feng via Gcc
e necessary, but I haven't delved too deeply into this yet, so my suspicion could be off. Additionally, I think it would be helpful to show users what the ob_refcnt looks like in each event as well. I'll keep you updated on both these points and welcome any feedba

Re: Update on CPython Extension Module -fanalyzer plugin development

2023-08-24 Thread Eric Feng via Gcc
On Wed, Aug 23, 2023 at 7:16 PM David Malcolm wrote: > > On Wed, 2023-08-23 at 17:15 -0400, Eric Feng wrote: > > On Mon, Aug 21, 2023 at 11:04 AM David Malcolm > > wrote: > > > > > > On Mon, 2023-08-21 at 10:05 -0400, Eric Feng wrote: > > > > Hi D

Re: Update on CPython Extension Module -fanalyzer plugin development

2023-08-23 Thread Eric Feng via Gcc
On Mon, Aug 21, 2023 at 11:04 AM David Malcolm wrote: > > On Mon, 2023-08-21 at 10:05 -0400, Eric Feng wrote: > > Hi Dave, > > > > Just wanted to give you and everyone else a short update on how > > reference count checking is going — we can now observe the refcn

Re: Update on CPython Extension Module -fanalyzer plugin development

2023-08-21 Thread Eric Feng via Gcc
; | | | | | | | (4) here | I will fix up and refactor the logic for counting the actual ref count before coming back and refining the diagnostic to give much more detailed information. Best, Eric On Wed, Aug 16, 2023 at 9:47 PM Eric Feng wrote

Re: Update on CPython Extension Module -fanalyzer plugin development

2023-08-16 Thread Eric Feng via Gcc
Hi Dave, Thanks for the feedback! On Wed, Aug 16, 2023 at 5:29 PM David Malcolm wrote: > > On Wed, 2023-08-16 at 15:17 -0400, Eric Feng via Gcc wrote: > > Hi everyone, > > [fixing typo in my email address] > > Hi Eric, thanks for the update, and the WIP patch. > >

Update on CPython Extension Module -fanalyzer plugin development

2023-08-16 Thread Eric Feng via Gcc
o address the refinements necessary mentioned above. For those interested, I've attached a WIP patch that highlights the specific changes mentioned above. Best, Eric gcc/analyzer/ChangeLog: * region-model.cc (region_model::pop_frame): New callback * mec

Re: [COMMITTED] analyzer: More features for CPython analyzer plugin [PR107646]

2023-08-11 Thread Eric Feng via Gcc
g blocks of 8 spaces with tabs (which is a requirement in check_GNU_style). In combination, this works for everything except for header files for some reason, but I'll defer that battle to another day. On Fri, Aug 11, 2023 at 1:47 PM Eric Feng wrote: > > Thanks for the feedback! I'

[COMMITTED] analyzer: More features for CPython analyzer plugin [PR107646]

2023-08-11 Thread Eric Feng via Gcc
after rebase, the patch has now been pushed. Best, Eric --- This patch adds known function subclasses for Python/C API functions PyList_New, PyLong_FromLong, and PyList_Append. It also adds new optional parameters for region_model::get_or_create_region_for_heap_alloc, allowing for the newly allo

[PATCH v2] analyzer: More features for CPython analyzer plugin [PR107646]

2023-08-09 Thread Eric Feng via Gcc
gic in the revision and the only changes within the analyzer core are changing variable names, is it OK for trunk. In the mean time, the revised patch is currently going through bootstrap and regtest process. Best, Eric --- This patch adds known function subclasses for Python/C API functions

[PATCH] WIP for dg-require-python-h [PR107646]

2023-08-08 Thread Eric Feng via Gcc
dg-require-python-h. Best, Eric > > > > > > > > > Maybe someone else on the list can see a less hackish way to get > > > > this > > > > to work? > > &

Re: Update and Questions on CPython Extension Module -fanalyzer plugin development

2023-08-07 Thread Eric Feng via Gcc
On Fri, Aug 4, 2023 at 6:46 PM David Malcolm wrote: > > On Fri, 2023-08-04 at 18:42 -0400, David Malcolm wrote: > > On Fri, 2023-08-04 at 16:48 -0400, Eric Feng wrote: > > > On Fri, Aug 4, 2023 at 11:39 AM David Malcolm > > > wrote: > > > > > >

Re: Update and Questions on CPython Extension Module -fanalyzer plugin development

2023-08-04 Thread Eric Feng via Gcc
On Fri, Aug 4, 2023 at 11:39 AM David Malcolm wrote: > > On Fri, 2023-08-04 at 11:02 -0400, Eric Feng wrote: > > Hi Dave, > > > > Tests related to our plugin which depend on Python-specific > > definitions have been run by including /* { dg-options "-fan

Re: Update and Questions on CPython Extension Module -fanalyzer plugin development

2023-08-04 Thread Eric Feng via Gcc
e in gil.h? Best, Eric On Tue, Aug 1, 2023 at 1:06 PM David Malcolm wrote: > > On Tue, 2023-08-01 at 09:57 -0400, Eric Feng wrote: > > > > > > My guess is that you were trying to do it from the > > > PLUGIN_ANALYZER_INIT > > > hook rather than from the

Re: Update and Questions on CPython Extension Module -fanalyzer plugin development

2023-08-01 Thread Eric Feng via Gcc
ER_INIT hook and not from the plugin_init function. After following your suggestion, the callbacks are getting registered as expected. I submitted a patch to review for this feature on gcc-patches; please let me know if it looks OK. Best, Eric

Re: Update and Questions on CPython Extension Module -fanalyzer plugin development

2023-07-30 Thread Eric Feng via Gcc
tation fault when trying to call the lookup functions within translation_unit at the time of plugin initialization, even though the translation unit is stored correctly. So it seems like the solution may not be quite so simple. I'm currently investigating this issue, but if there's an obvious solution that I might be missing or any general suggestions, please let me know! Thanks as always, Eric

Re: Update and Questions on CPython Extension Module -fanalyzer plugin development

2023-07-27 Thread Eric Feng via Gcc
achine isn't transitioning the pointer from "start" to "assumed- > non-null". Such state machine states inhibit state-merging, and so > this might solve your state-merging problem. > > I think we need a way to call malloc_state_machine::on_allocator_call > from outside of sm-malloc.cc. See region_model::on_realloc_with_move > for an example of how to do something similar. > Thank you for the suggestion — this worked great and has solved the issue! Best, Eric

Update and Questions on CPython Extension Module -fanalyzer plugin development

2023-07-24 Thread Eric Feng via Gcc
ations. For instance: PyObject* foo() { PyObject item = PyLong_FromLong(10); PyObject list = PyList_New(5); PyList_Append(list, item); return list; } The above scenario is simulated as expected. I will continue to search for a solution, but any suggestions would be highly appreciated. Thank you! Best, Eric

Re: Warning specifically for a returning noreturn

2023-07-05 Thread Eric Gallager via Gcc
On Wed, Jul 5, 2023 at 7:28 AM Jonathan Wakely via Gcc wrote: > > On Wed, 5 Jul 2023 at 12:01, Julian Waters via Gcc wrote: > > > > I see, thanks Andrew. > > > > Anyone else have opinions on this besides Liu or Andrew? The responses have > > been surprisingly quiet thus far > > IMHO all warnings

Re: Query status of GSoC project: CPyChecker

2023-06-28 Thread Eric Feng via Gcc
check out the repo at https://github.com/efric/gcc-cpython-analyzer for details on the project and to follow along and help out where you are interested. Best, Eric On Tue, Jun 27, 2023 at 6:03 AM Steven Sun wrote: > > Hi Eric, I am Steven (now) from the CPython team. > > How is

Re: On inform diagnostics in plugins, support scripts for gdb and modeling creation of PyObjects for static analysis

2023-06-07 Thread Eric Feng via Gcc
ich tree is the PyObject RECORD_TYPE before the frontend is > cleaned up (in on_finish_translation_unit). Sounds good, I will look into that. Thanks for the suggestion! Best, Eric On Wed, Jun 7, 2023 at 5:55 PM David Malcolm wrote: > > On Wed, 2023-06-07 at 16:21 -0400, Eric Feng wrote: &g

On inform diagnostics in plugins, support scripts for gdb and modeling creation of PyObjects for static analysis

2023-06-07 Thread Eric Feng via Gcc
Please let me know if this approach makes sense and if so where I could look into to get the required information. Thanks all. Best, Eric

Re: When do I need -fnon-call-exceptions?

2023-06-07 Thread Eric Botcazou via Gcc
zation if -fno-delete-dead-exceptions is not specified). -- Eric Botcazou

Re: More C type errors by default for GCC 14

2023-05-15 Thread Eric Gallager via Gcc
On 5/15/23, Richard Earnshaw (lists) via Gcc wrote: > On 10/05/2023 03:38, Eli Zaretskii via Gcc wrote: >>> From: Arsen Arsenović >>> Cc: Eli Zaretskii , Jakub Jelinek , >>> jwakely@gmail.com, gcc@gcc.gnu.org >>> Date: Tue, 09 May 2023 22:21:03 +0200 >>> The concern is using the good w

Re: More C type errors by default for GCC 14

2023-05-10 Thread Eric Gallager via Gcc
On 5/9/23, Jonathan Wakely via Gcc wrote: > On Tue, 9 May 2023 at 23:38, Joel Sherrill wrote: >> We are currently using gcc 12 and specifying C11. To experiment with >> these stricter warnings and slowly address them, would we need to build >> with a newer C version? > > No, the proposed changes

Re: Probe emission in fstack-clash-protection

2023-05-03 Thread Eric Botcazou via Gcc
s not on x86[_64]/Linux where you *cannot* probe below the stack pointer. -- Eric Botcazou

Re: [PATCH v3] sockaddr.3type: POSIX Issue 8 will solve strict-aliasing issues with these types

2023-04-21 Thread Eric Blake via Gcc
On Fri, Apr 21, 2023 at 10:27:18PM +0200, Alejandro Colomar wrote: > Link: <https://austingroupbugs.net/view.php?id=1641> > Reported-by: Bastien Roucariès > Reported-by: Alejandro Colomar > Reviewed-by: Eric Blake > Cc: glibc > Cc: GCC > Cc: Stefan Puiu > Cc:

Re: [PATCH] sockaddr.3type: Document that sockaddr_storage is the API to be used

2023-04-21 Thread Eric Blake via Gcc
oids the UB). > +without invoking Undefined Behavior (UB). > +POSIX Issue 8 will fix this by requiring that implementations > +make sure that these structures > +can be safely used as they were designed. > .SH NOTES > .I socklen_t > is also defined in > > > I guess this is simple enough that it should work as documentation. It seems fine from my perspective. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org

Re: gcc with the new WIN32 threads fails to compile libstdc++

2023-04-10 Thread Eric Botcazou via Gcc
> I'm assuming the problem also extends to the other __gthr_win32 routines as > well, __gthr_win32_create just happens to be the first symbol it cannot > find. > > Is there a way to fix this issue? How did you configure the compiler and what version of MinGW64 do you use? -- Eric Botcazou

Re: [PATCH] sockaddr.3type: Document that sockaddr_storage is the API to be used

2023-04-06 Thread Eric Blake via Gcc
On Wed, Apr 05, 2023 at 02:42:04AM +0200, Alejandro Colomar wrote: > Hi Eric, > > I'm going to reply both your emails here so that GCC is CCed, and they can > suggest better stuff. I'm worried about sending something to POSIX without > enough eyes checking it. So

Re: Re: GSoC: want to take part in `Extend the static analysis pass for CPython Extension`

2023-04-04 Thread Eric Feng via Gcc
Thanks Martin! Sounds good; I submitted my proposal unchanged for now (i.e assuming an independent project), but as Dave mentioned in another thread, it may be divided into several logical components, perhaps with certain features extended, to be suited for collaboration. Best, Eric On Mon

Re: Re: GSoC: want to take part in `Extend the static analysis pass for CPython Extension`

2023-04-03 Thread Eric Feng via Gcc
these smaller tasks first to be more efficient in tackling the more involved tasks anyways. It would also be easy to divvy these tasks up as well. Best, Eric

Re: [GSoC] Interest and initial proposal for project on reimplementing cpychecker as -fanalyzer plugin

2023-04-03 Thread Eric Feng via Gcc
Thanks for bringing this to my attention Dave! I’m happy to collaborate on this project with Steven. I will reply in more detail in the other thread. Best, Eric On Sun, Apr 2, 2023 at 7:28 PM David Malcolm wrote: > > On Sat, 2023-04-01 at 19:49 -0400, Eric Feng wrote: > > > For

Re: [GSoC] Interest and initial proposal for project on reimplementing cpychecker as -fanalyzer plugin

2023-04-01 Thread Eric Feng via Gcc
checking, errors in exception handling, and verification of PyMethodDef tables ___ Thank you! Best, Eric On Tue, Mar 28, 2023 at 3:14 PM David Malcolm wrote: > > On Tue, 2023-03-28 at 08:08 -0400, Eric Feng wrote: > > My apologies. Forgot to CC the mailing list in my previous e-

Humor in GCC

2023-04-01 Thread Eric Gallager via Gcc
: gdb has a song: https://www.gnu.org/music/gdb-song.en.html Perhaps GCC could have a song as well? Anyways, just some fun food for thought on this day of foolishness; please don't take these suggestions too seriously (unless you want to). Happy hacking! Eric Gallager

Re: [PATCH] sockaddr.3type: Document that sockaddr_storage is the API to be used

2023-03-30 Thread Eric Blake via Gcc
er > that aliasing it is safe (suggesting a unnamed union, or other compiler > magic). > > Link: <https://www.austingroupbugs.net/view.php?id=1641> > Reported-by: Bastien Roucariès > Reported-by: Alejandro Colomar > Cc: glibc > Cc: GCC > Cc: Eric Blake > Cc: Stef

Re: [GSoC] Interest and initial proposal for project on reimplementing cpychecker as -fanalyzer plugin

2023-03-28 Thread Eric Feng via Gcc
ou clarify by giving an example of what the new attributes you had in mind might look like and how they would help (for example with respect to reference counting semantics)? Incidentally, I forgot to mention in my previous email but I believe the 350-hour option is the one that is more appropriate fo

[GSoC] Interest and initial proposal for project on reimplementing cpychecker as -fanalyzer plugin

2023-03-25 Thread Eric Feng via Gcc
nd solve them on behalf of the compiler. This project is still in its early stages, but the idea is to delegate type inference functionalities to a generic library given some information instead of having to write your own constraint solver. ___ Thank you for reviewing my proposal! Best, Eric Feng

Re: POWER __builtin_add_overflow/__builtin_mul_overflow with u64

2023-02-14 Thread Eric Botcazou via Gcc
> rs6000 indeed doesn't implement {,u}{add,sub,mul}v4_optab for > any mode and thus leaves it to the generic code. https://gcc.gnu.org/pipermail/gcc-patches/2016-October/460209.html -- Eric Botcazou

Re: [PATCH] sockaddr.3type: BUGS: Document that libc should be fixed using a union

2023-02-06 Thread Eric Blake via Gcc
he Austin Group on your behalf to get the POSIX wording improved, I think it would work better if you initiate a bug report rather than having me do it: https://www.austingroupbugs.net/main_page.php -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org

Re: testsuite under wine

2022-12-23 Thread Eric Pouech
, but I'll catch up to you guys eventually :) So at least we know for sure that this particular instance of extra characters is coming from Wine. Maybe Wine can be smart enough to only translate \n into \r\n instead of translating \r\n into \r\r\n. Jacek / Eric, comments here? I'm happy t

Re: Possible regression in DF analysis

2022-12-13 Thread Eric Botcazou via Gcc
not cover the basic block containing insn 14 and 15? -- Eric Botcazou

Re: Possible regression in DF analysis

2022-12-08 Thread Eric Botcazou via Gcc
:DI 34) > (pc))) "bad_cc.c":12:10 15 {condjump} > (expr_list:REG_DEAD (reg:CC 66 cc) > (int_list:REG_BR_PROB 365072228 (nil))) > -> 34) > > Please observe the REG_DEAD note on the both jump instructions. Passes that consume REG_DEAD/REG_UNUSED notes need to recompute them explicitly, they are not updated on the fly. -- Eric Botcazou

Re: GCC trunk bootstrap failure on i686-w64-mingw32

2022-10-29 Thread Eric Botcazou via Gcc
> So what could be causing it? An oversight in https://gcc.gnu.org/pipermail/gcc-cvs/2022-August/370830.html has broken --disable-sjlj-exceptions. That's now fixed. -- Eric Botcazou

Re: New/improved warning option for padding bytes

2022-08-21 Thread Eric Gallager via Gcc
On Fri, Aug 19, 2022 at 6:13 AM Jonas Rahlf via Gcc wrote: > > As a firmware developer I would appreciate a warning option about padding > bytes, but only for such cases where you can reduce the number of padding > bytes by rearranging the fields. > > The current -Wpadded warns about all padding b

Re: remove intl/ directory?

2022-06-23 Thread Eric Gallager via Gcc
On Thu, Jun 23, 2022 at 12:25 AM Bruno Haible wrote: > > Iain Sandoe wrote: > > Yes ( > > # We can use an in-tree build of libintl. > > if test -f ifelse([$1],,[../gettext-runtime],[$1])/uninstalled-config.sh; > > then > > > > relative_builddir='ifelse([$1],,[${top_builddir}/..],[$1]/..)/gett

Re: Build of any gcc breaks on my sparc / illumos env

2022-06-21 Thread Eric Botcazou
recommended combination with recent versions of the compiler, but Solaris ld must be recent enough, otherwise building for sparc-sun-solaris2.11 probably does not work indeed. -- Eric Botcazou

Re: remove intl/ directory?

2022-06-20 Thread Eric Gallager via Gcc
rogram (deprecated since 2010) is > no longer available. Instead of including the intl sources in your > package, we suggest making the libintl library an optional prerequisite > of your package. This will simplify the build system of your package. > - Accordingly,

Re: New "Diving into GCC internals" section in newbies guide

2022-06-12 Thread Eric Gallager via Gcc
On Sun, Jun 12, 2022 at 12:38 PM David Malcolm via Gcc wrote: > > On Sat, 2022-06-11 at 02:35 +0200, Eric Botcazou wrote: > > > Hope this is helpful; please let me know if you see any mistakes, > > > or if > > > there's room for improvement > > > >

Re: New "Diving into GCC internals" section in newbies guide

2022-06-10 Thread Eric Botcazou via Gcc
> Hope this is helpful; please let me know if you see any mistakes, or if > there's room for improvement Nice work! In the "inside cc1" chapter, I think that IR is usually meant for "Intermediate Representation" rather than "Internal Representation" in this context. -- Eric Botcazou

Re: [RFC] Support for nonzero attribute

2022-06-08 Thread Eric Gallager via Gcc
On Wed, Jun 8, 2022 at 5:00 PM Miika wrote: > > On Wednesday, June 8th, 2022 at 8:42 PM, Eric Gallager > wrote: > > Could you take a look at bug 78155 too? There was a request to add > > something like this in that bug: > > https://gcc.gnu.org/bugzilla/show_bug.cg

Re: DWARF question about size of a variable

2022-06-08 Thread Eric Botcazou via Gcc
ormation available. If you try to debug at an optimization level higher than -Og, your mileage may vary and depend on various factors; that's apparently an example where the debug info is slightly less damaged at -O3 on x86 than on PowerPC, but there are probably cases where this will be

Re: [RFC] Support for nonzero attribute

2022-06-08 Thread Eric Gallager via Gcc
On Sun, Jun 5, 2022 at 4:10 PM Miika via Gcc wrote: > > Based on Jakub's and Yair's comments I created a new attribute "inrange". > Inrage takes three arguments, pos min and max. > Pos being the argument position in the function, and min and max defines the > range of valid integer. Both min and m

Re: How to regenerate aclocal.m4?

2022-05-02 Thread Eric Gallager via Gcc
you use with aclocal (or whatever the relative path to config is from your current working directory). Eric

Re: No type checking in ctype builtins

2022-04-28 Thread Eric Gallager via Gcc
On Wed, Apr 27, 2022 at 12:20 PM Jonathan Wakely via Gcc wrote: > > On Wed, 27 Apr 2022 at 16:29, Andrea Monaco via Gcc wrote: > > > > > > This program > > > > #include > > > > int main () > > { > > char *s; > > isspace (s); > > } > > > > compiles with no warning in gcc 8.3.0, ev

Re: qual_union_type help

2022-02-23 Thread Eric Botcazou via Gcc
r it in an object (SUBSTITUTE_PLACEHOLDER_IN_EXPR). You can presumably do it through the gimplification hook. -- Eric Botcazou

Re: qual_union_type help

2022-02-23 Thread Eric Botcazou via Gcc
the discriminant since it is assigned in the CONSTRUCTOR, so the gimplifier is indeed presumably not wired to eliminate them on its own. -- Eric Botcazou

Re: [ANNOUNCEMENT] Mass rename of C++ .c files to .cc suffix is going to happen on Jan 17 evening UTC TZ

2022-01-18 Thread Eric Botcazou via Gcc
> Release managers. They certainly have authority on the timing, but not on the contents. > Working on that right now, sorry.. OK, thanks in advance. -- Eric Botcazou

Re: [ANNOUNCEMENT] Mass rename of C++ .c files to .cc suffix is going to happen on Jan 17 evening UTC TZ

2022-01-18 Thread Eric Botcazou via Gcc
wrong and should be reverted ASAP. -- Eric Botcazou

Re: git hooks: too strict check

2022-01-14 Thread Eric Gallager via Gcc
On Fri, Jan 14, 2022 at 11:14 AM Michael Matz via Gcc wrote: > > Hello, > > On Fri, 14 Jan 2022, Martin Liška wrote: > > > Hello. > > > > I'm working on a testsuite clean-up where some of the files are wrongly > > named. > > More precisely, so files have .cc extension and should use .C. However

Re: Help with an ABI peculiarity

2022-01-11 Thread Eric Gallager via Gcc
On Mon, Jan 10, 2022 at 8:28 AM Iain Sandoe wrote: > > Hi Florian, > > > On 10 Jan 2022, at 08:38, Florian Weimer wrote: > > > > * Jeff Law via Gcc: > > > >> Most targets these days use registers for parameter passing and > >> obviously we can run out of registers on all of them. The key > >> pr

Re: reordering of trapping operations and volatile

2022-01-08 Thread Eric Botcazou
osing these hours is to debug the code at -O0. -- Eric Botcazou

Re: reordering of trapping operations and volatile

2022-01-08 Thread Eric Botcazou
> Yes, although I think potentially trapping ops > are not moved before calls (as this would be > incorrect). So do you think it would be feasable > to prevent this for volatile too? Feasible probably, but why would this be desirable in C? It's not Java! -- Eric Botcazou

Re: atomic_load

2021-11-26 Thread Eric Botcazou
entence is again a blatant overstatement but I agree that the alignment caveat ought to be documented. Please suggest a wording to that effect and post a patch onto the gcc-patches@ ML. Thanks in advance. -- Eric Botcazou

Re: Generating GCC Documentation

2021-11-11 Thread Eric Gallager via Gcc
On Wed, Nov 10, 2021 at 9:26 AM Joel Sherrill wrote: > > Thanks for the quick reply. > > On Wed, Nov 10, 2021 at 8:20 AM Jonathan Wakely wrote: > > > > On Wed, 10 Nov 2021 at 14:08, Joel Sherrill wrote: > > > > > > Hi > > > > > > It's been a while since I tried this and it appears things have > >

Re: Can gcc itself be tested with ubsan? If so, how?

2021-09-28 Thread Eric Gallager via Gcc
On Tue, Sep 28, 2021 at 2:48 AM Toon Moene wrote: > > On 9/28/21 8:35 AM, Erick Ochoa via Gcc wrote: > > >> Can ubsan be used on the compiler itself? > > I regularly build the compiler(s) natively with ubsan enabled, see for > instance: > > https://gcc.gnu.org/pipermail/gcc-testresults/2021-Septem

Re: [FYI] bugzilla cleanup

2021-09-18 Thread Eric Gallager via Gcc
On Thu, Sep 16, 2021 at 11:45 AM Martin Sebor via Gcc wrote: > > On 9/14/21 2:10 AM, Andrew Pinski via Gcc wrote: > > Hi all, > >I am doing some bugzilla cleanup. This includes disabling some > > components and some versions for new bugs. > > So far I have disabled versions before GCC 4 becau

Listing deprecated targets in changes.html

2021-09-13 Thread Eric Gallager via Gcc
deprecations on the changes page ASAP, so that people can have time to prepare for the impending deprecations. Thanks, Eric Gallager

Re: gcc plugin on MacOS failure

2021-07-23 Thread Eric Gallager via Gcc
On Thu, Jul 22, 2021 at 4:18 PM Iain Sandoe via Gcc wrote: > > > > > On 22 Jul 2021, at 20:41, Andrew Pinski via Gcc wrote: > > > > On Thu, Jul 22, 2021 at 7:37 AM Marc wrote: > >> > > >> I have a gcc plugin (for afl++, > >> https://github.com/AFLplusplus/AFLplusplus) that works fine when > >> c

Re: Bootstrap failure of GCC 11.1.1 on x86_64-w64-mingw32

2021-07-08 Thread Eric Botcazou
> Maybe it was the EH format changes or dwarf5 stuff backported, CCing > Eric. Indeed, the latter, the HAVE_LD_BROKEN_PE_DWARF5 kludge is incomplete. -- Eric Botcazou

Re: Update to GCC copyright assignment policy

2021-06-01 Thread Eric Gallager via Gcc
in the years since its last release, but regardless of those, are the legal difficulties at least now out of the way? Thanks, Eric Gallager

Freenode changing ownership

2021-05-19 Thread Eric Gallager via Gcc
as well? Of course, that would require coming up with a new name for the one being migrated from Freenode, so that it doesn't clash with the existing GCC channel on OFTC... Anyways, just something to consider; let me know if the community decides anything. Thanks, Eric Gallager

Re: Signedness of boolean types (and Ada)

2021-05-18 Thread Eric Botcazou
, build_int_cst (TREE_TYPE (*expr_p), 1)); -- Eric Botcazou

Re: Issue with pointer types marked with scalar_storage_order

2021-05-06 Thread Eric Botcazou
It's presumably a 1- line change in the reverse_storage_order_for_component_p predicate. -- Eric Botcazou

  1   2   3   4   5   6   7   8   9   10   >