Bug 48776

Summary: inappropriate "candidate for 'no-return'" messages with -O2 and "C/ObjC" compile
Product: [Retired] Red Hat Raw Hide Reporter: j. alan eldridge <alane>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: dkl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-16 17:32:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description j. alan eldridge 2001-07-11 18:38:11 UTC
This breaks the compile of Gnome's soup-0.2.1 on gcc-2.96-93. I haven't 
checked prior versions of gcc.

Messages only occur with -O2 or higher, and only on "C" or "Objective-C" 
compile. C++ compiles are not affected (this has got to be a hint).

[alane@wwweasel alane]$ cat urk.c
extern int is_projectile;
extern void do_distance(), do_quantity();

void urk() {
  if (is_projectile) {
  } else {

[alane@wwweasel alane]$ gcc -Wmissing-noreturn -O2 -c urk.c
urk.c: In function `urk':
urk.c:10: warning: function might be possible candidate for attribute 
[alane@wwweasel alane]$ mv urk.c urk.cc
[alane@wwweasel alane]$ gcc -Wmissing-noreturn -O2 -c urk.cc
[alane@wwweasel alane]$ mv urk.cc urk.m
[alane@wwweasel alane]$ gcc -Wmissing-noreturn -O2 -c urk.m
urk.m: In function `urk':
urk.m:10: warning: function might be possible candidate for attribute 
[alane@wwweasel alane]$

Comment 1 David Lawrence 2008-09-16 17:32:09 UTC
Red Hat Rawhide is no longer a valid product in Bugzilla. If this bug still occurs for you, please move this to the Fedora product with version 'devel'.