public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/33507] New: Erroneous warning with __attribute__((noreturn)) function
@ 2007-09-20 6:46 eric dot paire at st dot com
2007-09-20 6:49 ` [Bug c/33507] " eric dot paire at st dot com
2007-09-20 9:26 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: eric dot paire at st dot com @ 2007-09-20 6:46 UTC (permalink / raw)
To: gcc-bugs
A function declared with __attribute__((noreturn)) ending with __asm__
statement should not warn "'noreturn' funtion does return", as the parser can
not understand what is within the last __asm__ statement.
--
Summary: Erroneous warning with __attribute__((noreturn))
function
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: eric dot paire at st dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33507
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/33507] Erroneous warning with __attribute__((noreturn)) function
2007-09-20 6:46 [Bug c/33507] New: Erroneous warning with __attribute__((noreturn)) function eric dot paire at st dot com
@ 2007-09-20 6:49 ` eric dot paire at st dot com
2007-09-20 9:26 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: eric dot paire at st dot com @ 2007-09-20 6:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from eric dot paire at st dot com 2007-09-20 06:49 -------
Created an attachment (id=14225)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14225&action=view)
A simple source file showing the problem
Compile it with "gcc -c foo.c" and the warning is displayed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33507
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/33507] Erroneous warning with __attribute__((noreturn)) function
2007-09-20 6:46 [Bug c/33507] New: Erroneous warning with __attribute__((noreturn)) function eric dot paire at st dot com
2007-09-20 6:49 ` [Bug c/33507] " eric dot paire at st dot com
@ 2007-09-20 9:26 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-20 9:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-09-20 09:25 -------
No, inline-asm currently cannot change control flow. So this is invalid.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33507
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-20 9:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-20 6:46 [Bug c/33507] New: Erroneous warning with __attribute__((noreturn)) function eric dot paire at st dot com
2007-09-20 6:49 ` [Bug c/33507] " eric dot paire at st dot com
2007-09-20 9:26 ` 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).