https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #21 from David Binderman ---
(In reply to Martin Uecker from comment #16)
> I agree that the C++ should have this warning as well, although it seems
> less important there. This would be an enhancement request for the C++ FE.
See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #20 from Martin Uecker ---
Ah, this is how it works. Thanks!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
Sam James changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #18 from Martin Uecker ---
I think this can be closed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
Sam James changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |muecker at gwdg dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #16 from Martin Uecker ---
I agree that the C++ should have this warning as well, although it seems less
important there. This would be an enhancement request for the C++ FE.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #15 from David Binderman ---
(In reply to Martin Uecker from comment #14)
> I am happy to revise the warning if it is wrong or annoying, but I do not
> understand what C++ has to do with this.
In file gcc/c-family/c.opt, is the new
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #14 from Martin Uecker ---
"I think calloc is available in C++, so the warning is wrong."
I am happy to revise the warning if it is wrong or annoying, but I do not
understand what C++ has to do with this.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #13 from David Binderman ---
I have been trying to get this C++ code to produce the new warning:
#include
struct S
{
int a[ 10];
float * b[ 20];
};
extern void g( S * ps);
void f( int n)
{
S * ps = (S *)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #12 from Martin Uecker ---
I filed a bug for libfortran:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112364
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #11 from Martin Uecker ---
In this case this is by design because the size of an element should be second
argument to calloc. ("The calloc function allocates space for an array of nmemb
objects, each of whose size is size.")
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #10 from David Binderman ---
When this patch was tested, did that include a build of libgfortran ?
I am getting some strange new warnings:
../../../trunk.year/libgfortran/io/async.c:265:24: warning: allocation of
insufficient size
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #9 from CVS Commits ---
The master branch has been updated by Martin Uecker :
https://gcc.gnu.org/g:f432a594fe6d3a0de1330ba69200d158e6248083
commit r14-5084-gf432a594fe6d3a0de1330ba69200d158e6248083
Author: Martin Uecker
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #8 from Sergei Trofimovich ---
(In reply to Martin Uecker from comment #6)
> Created attachment 56491 [details]
> patch
>
> Ok, let's try again...
The change fixes jemalloc and boehm-gc builds for me. Thank you!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
David Binderman changed:
What|Removed |Added
CC||dcb314 at hotmail dot com
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
Martin Uecker changed:
What|Removed |Added
Attachment #56490|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
Martin Uecker changed:
What|Removed |Added
Attachment #56489|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #4 from Martin Uecker ---
Created attachment 56489
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56489=edit
patch
This should fix it. I am running some tests and will commit this.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #3 from Martin Uecker ---
Thanks for reporting. I will fix this.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
Richard Biener changed:
What|Removed |Added
Target Milestone|--- |14.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #2 from Sergei Trofimovich ---
A bit of debugging:
Program received signal SIGSEGV, Segmentation fault.
0x007bfff6 in convert_for_assignment (location=location@entry=263654,
expr_loc=expr_loc@entry=0,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
Sergei Trofimovich changed:
What|Removed |Added
CC||muecker at gwdg dot de
---
22 matches
Mail list logo