public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/63451] New: bad location for the condition in for-loops
@ 2014-10-03 12:44 manu at gcc dot gnu.org
2015-02-09 18:58 ` [Bug middle-end/63451] " pinskia at gcc dot gnu.org
2024-04-10 23:16 ` [Bug c/63451] " pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: manu at gcc dot gnu.org @ 2014-10-03 12:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63451
Bug ID: 63451
Summary: bad location for the condition in for-loops
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: manu at gcc dot gnu.org
int
f (int i, int j)
{
unsigned int c = 0;
if (i < j)
{
unsigned int n;
for (unsigned int i = 0;
i < n; i++)
{
c++;
}
}
return c;
}
$ cc1 -O1 -Wall -std=c99 test.c
test.c:8:7: warning: ‘n’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
for (unsigned int i = 0;
^
>From gcc-bugs-return-463182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 03 12:44:29 2014
Return-Path: <gcc-bugs-return-463182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31873 invoked by alias); 3 Oct 2014 12:44:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 31614 invoked by uid 48); 3 Oct 2014 12:44:24 -0000
From: "fxcoudert at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/59888] ld: illegal text-relocation to '_compute' ... on darwin1(2|3).
Date: Fri, 03 Oct 2014 12:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fxcoudert at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-59888-4-0964S48zl1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59888-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59888-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-10/txt/msg00203.txt.bz2
Content-length: 701
https://gcc.gnu.org/bugzilla/show_bug.cgi?idY888
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu.org
--- Comment #5 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Reduced testcase, still failing with -shared on darwin14:
module foo
contains
subroutine bar
use, intrinsic :: iso_c_binding
call gee(c_funloc(gee))
end subroutine
subroutine gee(f)
use, intrinsic :: iso_c_binding
type(c_funptr) :: f
end subroutine
end module foo
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/63451] bad location for the condition in for-loops
2014-10-03 12:44 [Bug middle-end/63451] New: bad location for the condition in for-loops manu at gcc dot gnu.org
@ 2015-02-09 18:58 ` pinskia at gcc dot gnu.org
2024-04-10 23:16 ` [Bug c/63451] " pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-02-09 18:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63451
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-02-09
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/63451] bad location for the condition in for-loops
2014-10-03 12:44 [Bug middle-end/63451] New: bad location for the condition in for-loops manu at gcc dot gnu.org
2015-02-09 18:58 ` [Bug middle-end/63451] " pinskia at gcc dot gnu.org
@ 2024-04-10 23:16 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-10 23:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63451
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |11.0
Status|NEW |RESOLVED
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed by r11-3302-g3696a50beeb73f . That is it was a front-end issue where the
location was not correct until then.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-10 23:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-03 12:44 [Bug middle-end/63451] New: bad location for the condition in for-loops manu at gcc dot gnu.org
2015-02-09 18:58 ` [Bug middle-end/63451] " pinskia at gcc dot gnu.org
2024-04-10 23:16 ` [Bug c/63451] " pinskia at gcc dot gnu.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).