public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/10320: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined
@ 2003-05-15  5:31 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-05-15  5:31 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, pinskia

Synopsis: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu May 15 05:30:59 2003
State-Changed-Why:
    Confirmed. Indeed a regression from 3.3

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10320


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

* Re: c/10320: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined
@ 2003-04-06 17:26 Andrew Pinski
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Pinski @ 2003-04-06 17:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/10320; it has been noted by GNATS.

From: Andrew Pinski <pinskia@physics.uc.edu>
To: Diego Novillo <dnovillo@redhat.com>
Cc: Andrew Pinski <pinskia@physics.uc.edu>, gcc-gnats@gcc.gnu.org
Subject: Re: c/10320: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined
Date: Sun, 6 Apr 2003 13:19:56 -0400

 This is not a bug report against ssa-branch but against 3.4 which has  
 the problem.
 And causing me not able to bootstrap with that compiler in the first  
 stage.
 There is another problem in the second stage for ssa-branch if I use  
 the `apple's 3.1 (1175)' as the first stage compiler which I will send  
 you about later.
 
 Thanks,
 Andrew Pinski
 
 On Sunday, Apr 6, 2003, at 13:13 US/Eastern, Diego Novillo wrote:
 
 > On Sun, 06 Apr 2003, pinskia@physics.uc.edu wrote:
 >
 >> compile and link and run (try at least) the following source:
 >> static inline void temp();
 >> int main()
 >> {
 >>         temp();
 >>         return 0;
 >> }
 >> static void temp(){}
 >>
 > Hmm, I can't reproduce this on ssa-branch (PPC/Linux):
 >
 > ----------------------------------------------------------------------- 
 > ------
 >  ./cc1 -fpreprocessed a.i -quiet -dumpbase a.c -auxbase a -O2 -version  
 > -o a.s
 > GNU C version 3.5-tree-ssa 20030302 (experimental)  
 > (powerpc-unknown-linux-gnu)
 >         compiled by GNU C version 3.5-tree-ssa 20030302 (experimental).
 > GGC heuristics: --param ggc-min-expand=38 --param  
 > ggc-min-heapsize=15614
 >  as --traditional-format -mppc -V -Qy -o a.o a.s
 > GNU assembler version 2.10.91 (ppc-yellowdog-linux) using BFD version  
 > 2.10.0.33
 >  ./collect2 -V -Qy -m elf32ppclinux -dynamic-linker /lib/ld.so.1 -o a  
 > /usr/lib/crt1.o /usr/lib/crti.o ./crtbegin.o -L.  
 > -L/home/dnovillo/clean-tree-ssa/native.ppc/lib/gcc-lib/powerpc- 
 > unknown-linux-gnu/3.5-tree-ssa  
 > -L/home/dnovillo/clean-tree-ssa/native.ppc/lib/gcc-lib/powerpc- 
 > unknown-linux-gnu/3.5-tree-ssa/../../.. a.o
 > -lgcc -lgcc_eh -lc -lgcc -lgcc_eh ./crtsavres.o ./crtend.o  
 > /usr/lib/crtn.o
 > GNU ld version 2.10.91 (with BFD 2.10.0.33)
 >   Supported emulations:
 >    elf32ppclinux
 >    elf32ppc
 >    elf32ppcsim
 > ----------------------------------------------------------------------- 
 > ------
 >
 > Can you send me the bootstrap failure message you get on Darwin?
 >
 >
 > Diego.
 >
 >
 


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

* Re: c/10320: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined
@ 2003-04-06 17:16 Diego Novillo
  0 siblings, 0 replies; 4+ messages in thread
From: Diego Novillo @ 2003-04-06 17:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/10320; it has been noted by GNATS.

From: Diego Novillo <dnovillo@redhat.com>
To: pinskia@physics.uc.edu
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/10320: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined
Date: Sun, 6 Apr 2003 13:13:29 -0400

 On Sun, 06 Apr 2003, pinskia@physics.uc.edu wrote:
 
 > compile and link and run (try at least) the following source:
 > static inline void temp();
 > int main()
 > {
 >         temp();
 >         return 0;
 > }
 > static void temp(){}
 >
 Hmm, I can't reproduce this on ssa-branch (PPC/Linux):
 
 -----------------------------------------------------------------------------
  ./cc1 -fpreprocessed a.i -quiet -dumpbase a.c -auxbase a -O2 -version -o a.s
 GNU C version 3.5-tree-ssa 20030302 (experimental) (powerpc-unknown-linux-gnu)
         compiled by GNU C version 3.5-tree-ssa 20030302 (experimental).
 GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15614
  as --traditional-format -mppc -V -Qy -o a.o a.s
 GNU assembler version 2.10.91 (ppc-yellowdog-linux) using BFD version 2.10.0.33
  ./collect2 -V -Qy -m elf32ppclinux -dynamic-linker /lib/ld.so.1 -o a /usr/lib/crt1.o /usr/lib/crti.o ./crtbegin.o -L. -L/home/dnovillo/clean-tree-ssa/native.ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/3.5-tree-ssa -L/home/dnovillo/clean-tree-ssa/native.ppc/lib/gcc-lib/powerpc-unknown-linux-gnu/3.5-tree-ssa/../../.. a.o
 -lgcc -lgcc_eh -lc -lgcc -lgcc_eh ./crtsavres.o ./crtend.o /usr/lib/crtn.o
 GNU ld version 2.10.91 (with BFD 2.10.0.33)
   Supported emulations:
    elf32ppclinux
    elf32ppc
    elf32ppcsim
 -----------------------------------------------------------------------------
 
 Can you send me the bootstrap failure message you get on Darwin?
 
 
 Diego.


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

* c/10320: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined
@ 2003-04-06 16:46 pinskia
  0 siblings, 0 replies; 4+ messages in thread
From: pinskia @ 2003-04-06 16:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10320
>Category:       c
>Synopsis:       [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 06 16:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Pinski
>Release:        gcc version 3.4 20030406 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu and powerpc-apple-darwin6.4, it should not matter.
>Description:
If a function that is declared inline is defined without inline after where it is called, the function is not inlined and is not emited.
Note with -funit-at-a-time or -finline-functions, it works.
It does not work at -O0, -O1, or -O2 or -O3 -fno-unit-at-a-time -fno-inline-functions.

Note this causes ssa-branch bootstrap failure on powerpc-apple-darwin6.4.
Note this also works right with `gcc version 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2)' and `Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420 (prerelease)' and `gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)' so this is regression.
>How-To-Repeat:
compile and link and run (try at least) the following source:
static inline void temp();
int main()
{
        temp();
        return 0;
}
static void temp(){}
>Fix:
Do not know.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-05-15  5:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-15  5:31 c/10320: [3.4 regression] gcc 3.4 gets rid of static inline function that does not get inlined bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-04-06 17:26 Andrew Pinski
2003-04-06 17:16 Diego Novillo
2003-04-06 16:46 pinskia

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).