public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53633] New: __attribute__((naked)) should disable -Wreturn-type
@ 2012-06-11 11:53 Bernhard.Rosenkranzer at linaro dot org
  2012-06-11 18:23 ` [Bug target/53633] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bernhard.Rosenkranzer at linaro dot org @ 2012-06-11 11:53 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53633
           Summary: __attribute__((naked)) should disable -Wreturn-type
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Bernhard.Rosenkranzer@linaro.org


This code:

__attribute__((naked))
int test() {
  asm("mov r0, #1");
}

triggers a "control reaches end of non-void function" warning (or error, if
-Werror is used).

IMO this warning should be omitted, given __attribute__((naked)) is meant to
tell the compiler that asm code inside takes care of everything.


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

end of thread, other threads:[~2012-11-28  3:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-11 11:53 [Bug c/53633] New: __attribute__((naked)) should disable -Wreturn-type Bernhard.Rosenkranzer at linaro dot org
2012-06-11 18:23 ` [Bug target/53633] " pinskia at gcc dot gnu.org
2012-07-21 20:06 ` sandra at codesourcery dot com
2012-07-25 18:08 ` sandra at gcc dot gnu.org
2012-11-28  3:34 ` ramana 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).