This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[gfortran,patch] Remove spurious "uninitialized" warnings for array descriptor fields
- From: FX Coudert <fxcoudert at gmail dot com>
- To: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 4 Jul 2007 11:13:46 +0200
- Subject: [gfortran,patch] Remove spurious "uninitialized" warnings for array descriptor fields
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:to:message-id:content-type:from:subject:date:x-mailer; b=NxhBc5stpSkblDXssA6K1AjZ+bxpDew8VcSAxxpO+O5MnWZSI0491HqSsNXxwtwDuWMzrPP2GFtxlH9V6CJpIIO26IsKVCxe7FavC8heTbKP0KF9aTOIY/FVEFPhMNLSOg/jiqe1reqlxNB9VQjlFLQ18jNRLlAwkslUP3+xsXs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:to:message-id:content-type:from:subject:date:x-mailer; b=HLvmYXxUxPjzNN59IsngyMSuXk2assexxHT1x2h205zeD1ouSpd5t4Eb+5vK7ZBVlmGbF0Wu/5TB7qVWkn4Qr/iZXRMCW+qcKt3EOkcE3vrbAxRXsI85NCAoJAdOopkxASBJGhzfOY7EIlSkFFACrVa8BTcVV0PpSGpNeBWmTu8=
Attached patch partially fixes PR29459 by marking some internal
variables generated by the front-end for arrays (lbound, ubound,
stride, size and offset) with TREE_NO_WARNING. Since these variables
are not create by the user, emitting warnings about them is only
confusing to the user, and not helpful in any way.
Regtested on x86_64-linux, OK for mainline?
:ADDPATCH fortran:
Attachment:
pr29459.ChangeLog
Description: Binary data
Attachment:
pr29459.diff
Description: Binary data