public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31772] New: Program compilation problem
@ 2007-05-01 14:32 rui dot c dot a dot g at gmail dot com
2007-05-01 14:36 ` [Bug middle-end/31772] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: rui dot c dot a dot g at gmail dot com @ 2007-05-01 14:32 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]
When I try compile a small program I get an error.
rcg@home:~> gcc -Wall prog.c -O2 -S
prog.c: In function main:
prog.c:21: error: Attempt to delete prologue/epilogue insn:
(insn/f 92 91 93 0 (set (mem:SI (plus:SI (reg/f:SI 6 bp)
(const_int -16 [0xfffffff0])) [0 S4 A8])
(reg:SI 2 cx)) -1 (nil)
(nil))
prog.c:21: internal compiler error: in propagate_one_insn, at flow.c:1699
file contents (prog.c)
#include <stdio.h>
int main()
{
int x[4];
int y[4];
int n;
for(n=0;n<5;n++)
x[n]=10;
for(n=0;n<5;n++)
y[n]=20;
printf("n: %d\n",n);
for(n=0;n<4;n++)
printf("%d | %d\n",x[n],y[n]);
return 0;
}
--
Summary: Program compilation problem
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rui dot c dot a dot g at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31772
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/31772] Program compilation problem
2007-05-01 14:32 [Bug c/31772] New: Program compilation problem rui dot c dot a dot g at gmail dot com
@ 2007-05-01 14:36 ` pinskia at gcc dot gnu dot org
2007-05-01 16:01 ` bangerth at dealii dot org
2007-12-02 21:28 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-01 14:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-01 15:36 -------
> When I try compile a small program I get an error.
small undefined code at that :).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31772
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/31772] Program compilation problem
2007-05-01 14:32 [Bug c/31772] New: Program compilation problem rui dot c dot a dot g at gmail dot com
2007-05-01 14:36 ` [Bug middle-end/31772] " pinskia at gcc dot gnu dot org
@ 2007-05-01 16:01 ` bangerth at dealii dot org
2007-12-02 21:28 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2007-05-01 16:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from bangerth at dealii dot org 2007-05-01 17:01 -------
> int x[4];
> for(n=0;n<5;n++)
> x[n]=10;
You're asking for trouble here.
That said, we shouldn't produce a compiler error. I can't seem to reproduce
this, what platform is this on?
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31772
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/31772] Program compilation problem
2007-05-01 14:32 [Bug c/31772] New: Program compilation problem rui dot c dot a dot g at gmail dot com
2007-05-01 14:36 ` [Bug middle-end/31772] " pinskia at gcc dot gnu dot org
2007-05-01 16:01 ` bangerth at dealii dot org
@ 2007-12-02 21:28 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-02 21:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-12-02 21:28 -------
This is fixed for sure on the trunk for 4.3 by removing flow.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31772
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-02 21:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-01 14:32 [Bug c/31772] New: Program compilation problem rui dot c dot a dot g at gmail dot com
2007-05-01 14:36 ` [Bug middle-end/31772] " pinskia at gcc dot gnu dot org
2007-05-01 16:01 ` bangerth at dealii dot org
2007-12-02 21:28 ` pinskia 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).