public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24252]  New: Missing "warning: control reaches end of non-void function" in static function
@ 2005-10-07 10:59 ch12 at os dot inf dot tu-dresden dot de
  2005-10-07 11:12 ` [Bug middle-end/24252] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2006-01-04 12:21 ` bonzini at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: ch12 at os dot inf dot tu-dresden dot de @ 2005-10-07 10:59 UTC (permalink / raw)
  To: gcc-bugs

// gcc 3.4.5 and 4.0.2 produce warning output 
#define STATIC

// no warning
#define STATIC static

STATIC int foo(void)
{
  int i = 47;
  i++;
}

int bar(void)
{
  if (foo()) return 1;
  return 0;
}


-- 
           Summary: Missing "warning: control reaches end of non-void
                    function" in static function
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ch12 at os dot inf dot tu-dresden dot de


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


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

* [Bug middle-end/24252] [3.4/4.0/4.1 Regression] Missing "warning: control reaches end of non-void function" in static function
  2005-10-07 10:59 [Bug c/24252] New: Missing "warning: control reaches end of non-void function" in static function ch12 at os dot inf dot tu-dresden dot de
@ 2005-10-07 11:12 ` pinskia at gcc dot gnu dot org
  2006-01-04 12:21 ` bonzini at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-07 11:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-10-07 11:12 -------
Fixed in 4.1.0 by change a lot of the middle-end so the patch will not be
backported, so closing as fixed.  There is most likely a dup of this bug
somewhere.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c                           |middle-end
           Keywords|                            |diagnostic
      Known to fail|                            |3.4.0 4.0.0
      Known to work|                            |3.3.3 4.1.0
         Resolution|                            |FIXED
            Summary|Missing "warning: control   |[3.4/4.0/4.1 Regression]
                   |reaches end of non-void     |Missing "warning: control
                   |function" in static function|reaches end of non-void
                   |                            |function" in static function
   Target Milestone|---                         |4.1.0


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


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

* [Bug middle-end/24252] [3.4/4.0/4.1 Regression] Missing "warning: control reaches end of non-void function" in static function
  2005-10-07 10:59 [Bug c/24252] New: Missing "warning: control reaches end of non-void function" in static function ch12 at os dot inf dot tu-dresden dot de
  2005-10-07 11:12 ` [Bug middle-end/24252] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2006-01-04 12:21 ` bonzini at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2006-01-04 12:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bonzini at gnu dot org  2006-01-04 12:21 -------
Subject: Bug 24252

Author: bonzini
Date: Wed Jan  4 12:21:27 2006
New Revision: 109325

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109325
Log:
2006-01-04  Paolo Bonzini  <bonzini@gnu.org>

        PR bootstrap/24252

        * Makefile.def (flags_to_pass): Add STAGE1_CFLAGS and STAGE1_LANGUAGES.
        * Makefile.tpl (OBJDUMP): New.
        (EXTRA_HOST_FLAGS): Add it.
        (EXTRA_GCC_FLAGS): Remove flags already specified in flags_to_pass.

        * Makefile.tpl (stage[+id+]-start, stage[+id+]-end): Do not try
        to use symbolic links between directories.  Avoid race conditions
        or make them harmless.
        * configure.in: Do not try to use symbolic links between directories.

        * Makefile.def (LEAN): Pass.
        * Makefile.tpl (LEAN): Define.
        (stage[+id+]-start): Accept that the previous directory does not
        exist, if the bootstrap is lean.
        (stage[+id+]-bubble): Invoke lean bootstrap commands after
        stage[+id+]-start.  Use a makefile variable and an `if' instead of a
        configure substitution.
        ([+compare-target+]): Likewise.
        ([+bootstrap-target+]-lean): New.
        * configure.in: Remove lean bootstrap support from here.

        * Makefile.in: Regenerate.
        * configure: Regenerate.


Modified:
    trunk/ChangeLog
    trunk/Makefile.def
    trunk/Makefile.in
    trunk/Makefile.tpl
    trunk/configure
    trunk/configure.in


-- 


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



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

end of thread, other threads:[~2006-01-04 12:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-07 10:59 [Bug c/24252] New: Missing "warning: control reaches end of non-void function" in static function ch12 at os dot inf dot tu-dresden dot de
2005-10-07 11:12 ` [Bug middle-end/24252] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2006-01-04 12:21 ` bonzini 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).