public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/31049] New: G++ 4.1.1 forgets to allocate memory (skips part of user code) @ 2007-03-05 17:16 satyaakam at yahoo dot co dot in 2007-03-05 17:17 ` [Bug c++/31049] " satyaakam at yahoo dot co dot in ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: satyaakam at yahoo dot co dot in @ 2007-03-05 17:16 UTC (permalink / raw) To: gcc-bugs Hi, We have problems using gcc 4.1.1. we are trying to compile a code in file case17.cpp (see attached in testcase area). The problem is that compiler forgets to call malloc and forgets to check the return value and it also forgets to initialize pointer called color. That is we do not see the following lines reflected in the assembly output: char **const colorTable = (char **)std::malloc(ncolors*sizeof*colorTable), **volatile color=colorTable; if(colorTable); else { return *oldct = 0; } -- Summary: G++ 4.1.1 forgets to allocate memory (skips part of user code) Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: satyaakam at yahoo dot co dot in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31049 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/31049] G++ 4.1.1 forgets to allocate memory (skips part of user code) 2007-03-05 17:16 [Bug c++/31049] New: G++ 4.1.1 forgets to allocate memory (skips part of user code) satyaakam at yahoo dot co dot in @ 2007-03-05 17:17 ` satyaakam at yahoo dot co dot in 2007-03-05 17:52 ` tbm at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: satyaakam at yahoo dot co dot in @ 2007-03-05 17:17 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from satyaakam at yahoo dot co dot in 2007-03-05 17:17 ------- Created an attachment (id=13147) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13147&action=view) case17 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31049 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/31049] G++ 4.1.1 forgets to allocate memory (skips part of user code) 2007-03-05 17:16 [Bug c++/31049] New: G++ 4.1.1 forgets to allocate memory (skips part of user code) satyaakam at yahoo dot co dot in 2007-03-05 17:17 ` [Bug c++/31049] " satyaakam at yahoo dot co dot in @ 2007-03-05 17:52 ` tbm at gcc dot gnu dot org 2007-03-06 10:50 ` rguenth at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tbm at gcc dot gnu dot org @ 2007-03-05 17:52 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from tbm at gcc dot gnu dot org 2007-03-05 17:51 ------- *** Bug 31048 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31049 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/31049] G++ 4.1.1 forgets to allocate memory (skips part of user code) 2007-03-05 17:16 [Bug c++/31049] New: G++ 4.1.1 forgets to allocate memory (skips part of user code) satyaakam at yahoo dot co dot in 2007-03-05 17:17 ` [Bug c++/31049] " satyaakam at yahoo dot co dot in 2007-03-05 17:52 ` tbm at gcc dot gnu dot org @ 2007-03-06 10:50 ` rguenth at gcc dot gnu dot org 2007-03-07 18:07 ` satyaakam at yahoo dot co dot in 2007-04-09 12:00 ` reichelt at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu dot org @ 2007-03-06 10:50 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from rguenth at gcc dot gnu dot org 2007-03-06 10:50 ------- Stock 4.1.1 ICEs for me on the testcase, but 4.1.2 looks fine - can you provide the wrong assembly you are seeing? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31049 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/31049] G++ 4.1.1 forgets to allocate memory (skips part of user code) 2007-03-05 17:16 [Bug c++/31049] New: G++ 4.1.1 forgets to allocate memory (skips part of user code) satyaakam at yahoo dot co dot in ` (2 preceding siblings ...) 2007-03-06 10:50 ` rguenth at gcc dot gnu dot org @ 2007-03-07 18:07 ` satyaakam at yahoo dot co dot in 2007-04-09 12:00 ` reichelt at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: satyaakam at yahoo dot co dot in @ 2007-03-07 18:07 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from satyaakam at yahoo dot co dot in 2007-03-07 18:07 ------- Created an attachment (id=13164) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13164&action=view) assembly code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31049 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/31049] G++ 4.1.1 forgets to allocate memory (skips part of user code) 2007-03-05 17:16 [Bug c++/31049] New: G++ 4.1.1 forgets to allocate memory (skips part of user code) satyaakam at yahoo dot co dot in ` (3 preceding siblings ...) 2007-03-07 18:07 ` satyaakam at yahoo dot co dot in @ 2007-04-09 12:00 ` reichelt at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: reichelt at gcc dot gnu dot org @ 2007-04-09 12:00 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from reichelt at gcc dot gnu dot org 2007-04-09 13:00 ------- This is a duplicate of PR 29106 which was present in GCC 4.0.3, 4.1.0, and 4.1.1. It's fixed in GCC 4.0.4 and 4.1.2, though. *** This bug has been marked as a duplicate of 29106 *** -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31049 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-04-09 12:00 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-03-05 17:16 [Bug c++/31049] New: G++ 4.1.1 forgets to allocate memory (skips part of user code) satyaakam at yahoo dot co dot in 2007-03-05 17:17 ` [Bug c++/31049] " satyaakam at yahoo dot co dot in 2007-03-05 17:52 ` tbm at gcc dot gnu dot org 2007-03-06 10:50 ` rguenth at gcc dot gnu dot org 2007-03-07 18:07 ` satyaakam at yahoo dot co dot in 2007-04-09 12:00 ` reichelt at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).