public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/18371] New: array subscript out of range
@ 2004-11-08  8:41 dcb314 at hotmail dot com
  2004-11-08 12:40 ` [Bug target/18371] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dcb314 at hotmail dot com @ 2004-11-08  8:41 UTC (permalink / raw)
  To: gcc-bugs

Hello there,

I just tried to compile gcc 343 with the Intel C 8.1 compiler.
The Intel compiler said

../../src/gcc-3.4.3/gcc/config/i386/i386.c(10626): warning #175: subscript out
of range
../../src/gcc-3.4.3/gcc/config/i386/i386.c(10629): warning #175: subscript out
of range

The source code is

	long l[3];

	/* ... */

	+ ((((HOST_WIDE_INT) l[3]) << 31) << 1),
	/* ... */
	parts[1] = immed_double_const (l[2], l[3], DImode);

In fact, l[ 3] does not exist. Suggest code re-work.

-- 
           Summary: array subscript out of range
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18371


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-03-16 15:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-08  8:41 [Bug bootstrap/18371] New: array subscript out of range dcb314 at hotmail dot com
2004-11-08 12:40 ` [Bug target/18371] " pinskia at gcc dot gnu dot org
2004-12-17  7:30 ` [Bug target/18371] [3.4/4.0 Regression] " ebotcazou at gcc dot gnu dot org
2004-12-17  7:32 ` ebotcazou at gcc dot gnu dot org
2004-12-18  1:29 ` [Bug target/18371] [3.4/4.0 Regression] array subscript out of range in gcc sources steven at gcc dot gnu dot org
2004-12-20 12:44 ` [Bug target/18371] [3.4 " pinskia at gcc dot gnu dot org
2004-12-20 15:02 ` steven at gcc dot gnu dot org
2005-02-14 15:47 ` dcb314 at hotmail dot com
2005-02-28 15:37 ` cvs-commit at gcc dot gnu dot org
2005-03-16 15:24 ` cvs-commit at gcc dot gnu dot org
2005-03-16 15:30 ` 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).