-Wanalyzer-malloc-leak false positives

2023-03-29 Thread Alejandro Colomar via Gcc
Hi! With both GCC 12.2.0 (Debian), and GCC 13.0.1 20230315 (built from source), I can reproduce these false positives. The reproducer program is a small program that checks a password against a hardcoded string, and conditionally prints "validated". I wrote it precisely to demonstrate how [[gnu:

Re: -Wanalyzer-malloc-leak false positives

2023-03-29 Thread David Malcolm via Gcc
On Wed, 2023-03-29 at 15:20 +0200, Alejandro Colomar via Gcc wrote: > Hi! > > With both GCC 12.2.0 (Debian), and GCC 13.0.1 20230315 (built from > source), > I can reproduce these false positives. > > The reproducer program is a small program that checks a password > against a > hardcoded string,

Re: -Wanalyzer-malloc-leak false positives

2023-03-29 Thread Alejandro Colomar via Gcc
Hi David, On 3/29/23 15:32, David Malcolm wrote: >> $ cat pass.c >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> > > [...snip...] > > I very briefly tried to reproduce this myself, but I suspect we've got > different headers. I'm on Debian Sid with

Re: -Wanalyzer-malloc-leak false positives

2023-03-29 Thread Alejandro Colomar via Gcc
On 3/29/23 15:41, Alejandro Colomar wrote: >>> Should I report this in bugzilla? >> Yes please. > Will do. > >> Please can you attach the preprocessed source [1] to the >> bug report(s) so that we're looking at the same code. Reported: -- <

Re: GSoC 2023

2023-03-29 Thread Martin Jambor
Hello, we are delighted you found contributing to GCC interesting. On Mon, Mar 27 2023, Igor Putovny via Gcc wrote: > Dear all, > > I am a student of computer science and I was thinking about applying for > Google Summer of Code 2023. Naturally, I wanted to reach out to you before > applying for

Re: GSoC Rust : Metadata exports for Rust frontend

2023-03-29 Thread Martin Jambor
Hello, we are delighted you found contributing to GCC interesting. On Mon, Mar 27 2023, Omkar Mohanty via Gcc wrote: > Hello GCC developers, > > I am Omkar Mohanty, currently an undergrad in CS. I have contributed to a > number of open Source organizations for the past one year and I have one > y

Re: GSoC Project - Bypass Assembler for LTO Object Files

2023-03-29 Thread Martin Jambor
Hello, we are delighted you found contributing to GCC interesting. On Tue, Mar 28 2023, Hathik H via Gcc wrote: > Dear Jan Hubicka, > > My name is Hathik , and I'm a student . I'm writing to express my interest > in the GCC LTO , and to ask for your guidance as I prepare my application. > > I hav

Re: Open source contribution for Rust Front-End (GSoC)

2023-03-29 Thread Martin Jambor
Hello, we are delighted you found contributing to GCC interesting. On Wed, Mar 29 2023, Deepanshu Joshi via Gcc wrote: > Hello, > Myself Deepanshu Joshi, pursuing Bachelors in Computer Science. I would > like to display my interest towards the Rust Front End project. Currently I > am working on m

Re: Clarification on newlib version for building AMDGCN offloading backend

2023-03-29 Thread Wileam Yonatan Phan via Gcc
Hi Andrew, I just built GCC 12.2.0 with AMDGCN offloading successfully with Spack! However, when I tried to test it with an OpenACC test code that I have, I encountered the following error message: wyp@basecamp:~/work/testcodes/f90-acc-ddot$ gfortran -fopenacc -foffload=amdgcn-unknown-amdhsa="-

RE: FYI - International Microwave Symposium 2023

2023-03-29 Thread Sasha Grace
Hi, Can I share Counts & Cost for review? Regards, Sasha From: Sasha Grace Sent: 23 March 2023 12:59 PM To: 'gcc@gcc.gnu.org' Subject: RE: FYI - International Microwave Symposium 2023 Hi, Any update on my previous email? If YES, please reply back as "Send Counts and Pricing". Regards S

Re: GSoC Separate Host Process Offloading

2023-03-29 Thread Thomas Schwinge
Hi Adi! On 2023-03-28T20:39:04+, "Prasad, Adi via Gcc" wrote: > I’m Adi Prasad, a 2nd year Computing student at Imperial College London, > interested in doing the Separate Host Process Offloading GSoC project this > summer. Greak, and welcome to GCC! :-) > First off, I’m aware I’m gettin

[GSoC] A bunch of questions about sm-malloc behavior, and proposition of a GSoC subject.

2023-03-29 Thread Benjamin Priour via Gcc
Hi David, I've been playing around with sm-malloc on C++ samples. I've noticed double delete don't go under -Wanalyzer-double-free but within -Wanalyzer-use-after-free scope. With the reproducer ... > struct A {}; > > int main() { > A* a = new A(); > delete a; > delete a; > return

Re: [GSoC] A bunch of questions about sm-malloc behavior, and proposition of a GSoC subject.

2023-03-29 Thread David Malcolm via Gcc
On Thu, 2023-03-30 at 00:50 +0200, Benjamin Priour wrote: > Hi David, > > I've been playing around with sm-malloc on C++ samples. Note that the analyzer doesn't properly work yet on C++; see: https://gcc.gnu.org/bugzilla/showdependencytree.cgi?id=97110 I'm hoping to address much of this in GCC

Re: [GSoC] Conflicted Built-in Trait Name

2023-03-29 Thread François Dumont via Gcc
Hi Do not hesitate to dig into library doc. Especially this page: https://gcc.gnu.org/onlinedocs/gcc-8.1.0/libstdc++/manual/manual/test.html You can also find it in your git clone in /libstdc++-v3/doc/html. You'll see also how to run test in different std modes like --std=c++98 to catch the k