public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/2891: extern inline - undefined references
@ 2001-05-21 12:26 Andreas Jaeger
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Jaeger @ 2001-05-21 12:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/2891; it has been noted by GNATS.
From: Andreas Jaeger <aj@suse.de>
To: rohloff@in.tum.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/2891: extern inline - undefined references
Date: 21 May 2001 21:17:53 +0200
rohloff@in.tum.de writes:
[...]
> Define a function "extern inline" compiling without
> "-O1", "-O2" or with "-fno-inline" will result in
> undefined references.
Yes, that's to be expected. Please read the manual, it explains why.
This is not a bug, it's a desired feature.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
^ permalink raw reply [flat|nested] 2+ messages in thread
* c/2891: extern inline - undefined references
@ 2001-05-21 11:56 rohloff
0 siblings, 0 replies; 2+ messages in thread
From: rohloff @ 2001-05-21 11:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 2891
>Category: c
>Synopsis: extern inline - undefined references
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 21 11:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Ingo Rohloff
>Release: unknown-1.0
>Organization:
>Environment:
gcc-2.95.2
>Description:
Define a function "extern inline" compiling without
"-O1", "-O2" or with "-fno-inline" will result in
undefined references.
(This bug is triggered, if you compile a C file
which uses <string.h> and strcpy and use
"-O -fno-inline" as compiler flags)
>How-To-Repeat:
Compile with
"gcc -o t t.c" or
"gcc -O -fno-inline -o t t.c"
-------------t.c-------------------------------------
extern inline void t(int a)
{
int b=a;
}
int main()
{
t(3);
}
------------------------------------------------------
>Fix:
Compile with "gcc -O -o t t.c".
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-21 12:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-21 12:26 c/2891: extern inline - undefined references Andreas Jaeger
-- strict thread matches above, loose matches on Subject: below --
2001-05-21 11:56 rohloff
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).