public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* error in gfc_simplify_expr
@ 2009-06-08 18:11 Revital1 Eres
  2009-06-08 20:07 ` Tobias Burnus
  0 siblings, 1 reply; 2+ messages in thread
From: Revital1 Eres @ 2009-06-08 18:11 UTC (permalink / raw)
  To: gcc


Hello,

I get the following error while bootstrap  trunk -r148275 on ppc.

Thanks,
Revital

/home/eres/mainline_45/build/./prev-gcc/xgcc
-B/home/eres/mainline_45/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-linux-gnu/bin/
-B/usr/local/powerpc64-unknown-linux-gnu/bin/
-B/usr/local/powerpc64-unknown-linux-gnu/lib/
-isystem /usr/local/powerpc64-unknown-linux-gnu/include
-isystem /usr/local/powerpc64-unknown-linux-gnu/sys-include    -c  -O3
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -Ifortran
-I../../gcc/gcc -I../../gcc/gcc/fortran -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I/home/eres/mainline_45/build/./gmp
-I/home/eres/mainline_45/gcc/gmp -I/home/eres/mainline_45/build/./mpfr
-I/home/eres/mainline_45/gcc/mpfr  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber    ../../gcc/gcc/fortran/expr.c -o fortran/expr.o
cc1: warnings being treated as errors
../../gcc/gcc/fortran/expr.c: In function גgfc_simplify_exprג:
../../gcc/gcc/fortran/expr.c:1660:8: error: גstartג may be used
uninitialized in this function
../../gcc/gcc/fortran/expr.c:1655:15: error: גendג may be used
uninitialized in this function
make[3]: *** [fortran/expr.o] Error 1
make[3]: Leaving directory `/home/eres/mainline_45/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/home/eres/mainline_45/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/eres/mainline_45/build'
make: *** [bootstrap] Error 2

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

* Re: error in gfc_simplify_expr
  2009-06-08 18:11 error in gfc_simplify_expr Revital1 Eres
@ 2009-06-08 20:07 ` Tobias Burnus
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Burnus @ 2009-06-08 20:07 UTC (permalink / raw)
  To: Revital1 Eres; +Cc: gcc

Hello,

Revital1 Eres wrote:
> I get the following error while bootstrap  trunk -r148275 on ppc.

Worked with r148271 on x86-64-linux.

> -I../libdecnumber    ../../gcc/gcc/fortran/expr.c -o fortran/expr.o
> cc1: warnings being treated as errors
> ../../gcc/gcc/fortran/expr.c: In function גgfc_simplify_exprג:
> ../../gcc/gcc/fortran/expr.c:1660:8: error: גstartג may be used
> uninitialized in this function

The code is new but seems to be OK:

  1657            if (p->ref && p->ref->u.ss.start)
  1658              {
  1659                gfc_extract_int (p->ref->u.ss.start, &start);
  1660                start--;  /* Convert from one-based to zero-based.

I don't see why "start" should be uninitialized here.

Tobias

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

end of thread, other threads:[~2009-06-08 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-08 18:11 error in gfc_simplify_expr Revital1 Eres
2009-06-08 20:07 ` Tobias Burnus

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).