public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/12499] New: [tree-ssa] static variables in inline functions not emitted
@ 2003-10-03 9:51 falk at debian dot org
2003-10-03 16:25 ` [Bug optimization/12499] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: falk at debian dot org @ 2003-10-03 9:51 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12499
Summary: [tree-ssa] static variables in inline functions not
emitted
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alphaev68-unknown-linux-gnu
GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu
falk@juist:/tmp% cat test.i
static inline int f() { static int r; return r++; }
int g() { return f(); }
int main() { }
falk@juist:/tmp% gcc -O2 -v test.i
Reading specs from
/usr/local/stow/gcc-tree-ssa-2003.10.01/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/specs
Configured with: ../configure --disable-nls --enable-languages=c++
Thread model: posix
gcc version 3.5-tree-ssa 20030930 (merged 20030923)
/usr/local/stow/gcc-tree-ssa-2003.10.01/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/cc1 -fpreprocessed test.i -quiet -dumpbase test.i -mcpu=ev67 -auxbase test -O2 -version -o /tmp/ccKpbcUh.s
GNU C version 3.5-tree-ssa 20030930 (merged 20030923) (alphaev68-unknown-linux-gnu)
compiled by GNU C version 3.4 20030923 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
as -no-mdebug -o /tmp/ccth2Hci.o /tmp/ccKpbcUh.s
/usr/local/stow/gcc-tree-ssa-2003.10.01/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/collect2 --eh-frame-hdr -m elf64alpha -O3 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/local/stow/gcc-tree-ssa-2003.10.01/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/crtbegin.o -L/usr/local/stow/gcc-tree-ssa-2003.10.01/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa -L/usr/local/stow/gcc-tree-ssa-2003.10.01/bin/../lib/gcc -L/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa -L/usr/local/stow/gcc-tree-ssa-2003.10.01/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../.. -L/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../.. /tmp/ccth2Hci.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /usr/local/stow/gcc-tree-ssa-2003.10.01/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/crtend.o /usr/lib/crtn.o
/tmp/ccth2Hci.o(.text+0x8): In function `g':
: undefined reference to `r.0'
/tmp/ccth2Hci.o(.text+0xc): In function `g':
: undefined reference to `r.0'
/tmp/ccth2Hci.o(.text+0x14): In function `g':
: undefined reference to `r.0'
collect2: ld returned 1 exit status
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/12499] [tree-ssa] static variables in inline functions not emitted
2003-10-03 9:51 [Bug optimization/12499] New: [tree-ssa] static variables in inline functions not emitted falk at debian dot org
@ 2003-10-03 16:25 ` pinskia at gcc dot gnu dot org
2003-10-17 14:30 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-03 16:25 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12499
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-03 16:25 -------
Related to bug 12039 (might be a dup of this bug also).
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/12499] [tree-ssa] static variables in inline functions not emitted
2003-10-03 9:51 [Bug optimization/12499] New: [tree-ssa] static variables in inline functions not emitted falk at debian dot org
2003-10-03 16:25 ` [Bug optimization/12499] " pinskia at gcc dot gnu dot org
@ 2003-10-17 14:30 ` pinskia at gcc dot gnu dot org
2003-10-17 19:36 ` pinskia at gcc dot gnu dot org
2003-10-17 23:03 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 14:30 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12499
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-17 14:25:53
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 14:25 -------
I can confirm this in 20031017.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/12499] [tree-ssa] static variables in inline functions not emitted
2003-10-03 9:51 [Bug optimization/12499] New: [tree-ssa] static variables in inline functions not emitted falk at debian dot org
2003-10-03 16:25 ` [Bug optimization/12499] " pinskia at gcc dot gnu dot org
2003-10-17 14:30 ` pinskia at gcc dot gnu dot org
@ 2003-10-17 19:36 ` pinskia at gcc dot gnu dot org
2003-10-17 23:03 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 19:36 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12499
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Target Milestone|--- |tree-ssa
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 19:20 -------
Most likely fixed by, I will check once I compile the compiler with this patch applied:
Branch: tree-ssa-20020619-branch
Changes by: hubicka@gcc.gnu.org 2003-10-17 18:34:04
Modified files:
gcc : ChangeLog.tree-ssa tree-cfg.c
Log message:
* tree-cfg.c (remove_useless_stmts_and_vars_bind): Fix handling of
static variables.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/12499] [tree-ssa] static variables in inline functions not emitted
2003-10-03 9:51 [Bug optimization/12499] New: [tree-ssa] static variables in inline functions not emitted falk at debian dot org
` (2 preceding siblings ...)
2003-10-17 19:36 ` pinskia at gcc dot gnu dot org
@ 2003-10-17 23:03 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 23:03 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12499
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 22:43 -------
Was fixed by the patch so closing.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-10-17 22:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-03 9:51 [Bug optimization/12499] New: [tree-ssa] static variables in inline functions not emitted falk at debian dot org
2003-10-03 16:25 ` [Bug optimization/12499] " pinskia at gcc dot gnu dot org
2003-10-17 14:30 ` pinskia at gcc dot gnu dot org
2003-10-17 19:36 ` pinskia at gcc dot gnu dot org
2003-10-17 23:03 ` pinskia 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).