public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11702] New: Failure to emit code for inlined function in space
@ 2003-07-29  5:33 gcc-bugzilla at gcc dot gnu dot org
  2003-07-29 11:54 ` [Bug c++/11702] [3.4 Regression] [unit-at-a-time] " pinskia at physics dot uc dot edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-07-29  5:33 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=11702

           Summary: Failure to emit code for inlined function in space
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: snyder at fnal dot gov
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


Thanks for the fix for c++/11530.
That patch fixed the test case i had earlier.
However, with that patch, i see a new failure, as shown in the example
below.  Here, we don't get code emitted for the right() function
when we compile with -O3.
Note that it works ok if right() is at global scope, rather than
in namespace NS.

$ g++ -o x -O3 x.cc
/tmp/cc4Tsvn2.o: In function `main':
/tmp/cc4Tsvn2.o(.text+0x1a): undefined reference to `NS::right()'
collect2: ld returned 1 exit status
$

Environment:
System: Linux karma 2.4.19-emp_2419p5a829i #1 Tue Sep 3 17:42:17 EST 2002 i686 i686 i386 GNU/Linux
Architecture: i686

	<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long --enable-languages=c,c++,f77

How-To-Repeat:

Compile and link:

--------------------------
namespace NS
{
  inline int right() {}
}
int foo (int (*pf) ()) { return pf(); }

int main()
{
  return foo (NS::right);
}
--------------------------
------- Additional Comments From snyder at fnal dot gov  2003-07-29 05:32 -------
Fix:
	<how to correct or work around the problem, if known (multiple lines)>


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

* [Bug c++/11702] [3.4 Regression] [unit-at-a-time] Failure to emit code for inlined function in space
  2003-07-29  5:33 [Bug c++/11702] New: Failure to emit code for inlined function in space gcc-bugzilla at gcc dot gnu dot org
@ 2003-07-29 11:54 ` pinskia at physics dot uc dot edu
  2003-07-31  4:52 ` pinskia at physics dot uc dot edu
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-29 11:54 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=11702


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |hubicka at gcc dot gnu dot
                   |dot org                     |org
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
           Priority|P3                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-29 11:54:10
               date|                            |
            Summary|Failure to emit code for    |[3.4 Regression] [unit-at-a-
                   |inlined function in space   |time] Failure to emit code
                   |                            |for inlined function in
                   |                            |space
   Target Milestone|---                         |3.4


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-29 11:54 -------
I can confirm this on the mainline (20030729, Tue Jul 29 04:04:20 UTC 2003).
Another one caused by unit-at-a-time so assigning to Jan.


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

* [Bug c++/11702] [3.4 Regression] [unit-at-a-time] Failure to emit code for inlined function in space
  2003-07-29  5:33 [Bug c++/11702] New: Failure to emit code for inlined function in space gcc-bugzilla at gcc dot gnu dot org
  2003-07-29 11:54 ` [Bug c++/11702] [3.4 Regression] [unit-at-a-time] " pinskia at physics dot uc dot edu
@ 2003-07-31  4:52 ` pinskia at physics dot uc dot edu
  2003-07-31  5:24 ` pinskia at physics dot uc dot edu
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-31  4:52 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=11702


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-31 04:52 -------
Fixed on the mainline (20030730). Will submit a testcase.


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

* [Bug c++/11702] [3.4 Regression] [unit-at-a-time] Failure to emit code for inlined function in space
  2003-07-29  5:33 [Bug c++/11702] New: Failure to emit code for inlined function in space gcc-bugzilla at gcc dot gnu dot org
  2003-07-29 11:54 ` [Bug c++/11702] [3.4 Regression] [unit-at-a-time] " pinskia at physics dot uc dot edu
  2003-07-31  4:52 ` pinskia at physics dot uc dot edu
@ 2003-07-31  5:24 ` pinskia at physics dot uc dot edu
  2003-07-31  5:28 ` pinskia at physics dot uc dot edu
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-31  5:24 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=11702


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-31 05:24 -------
Forgot to test with -O3 sorry, this is not fixed.


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

* [Bug c++/11702] [3.4 Regression] [unit-at-a-time] Failure to emit code for inlined function in space
  2003-07-29  5:33 [Bug c++/11702] New: Failure to emit code for inlined function in space gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2003-07-31  5:24 ` pinskia at physics dot uc dot edu
@ 2003-07-31  5:28 ` pinskia at physics dot uc dot edu
  2003-08-04  1:09 ` pinskia at physics dot uc dot edu
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-31  5:28 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=11702


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-07-29 11:54:10         |2003-07-31 05:28:18
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-31 05:28 -------
Not fixed in 20030731 either.


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

* [Bug c++/11702] [3.4 Regression] [unit-at-a-time] Failure to emit code for inlined function in space
  2003-07-29  5:33 [Bug c++/11702] New: Failure to emit code for inlined function in space gcc-bugzilla at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2003-07-31  5:28 ` pinskia at physics dot uc dot edu
@ 2003-08-04  1:09 ` pinskia at physics dot uc dot edu
  2003-08-12  0:15 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-04  1:09 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=11702


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED


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

* [Bug c++/11702] [3.4 Regression] [unit-at-a-time] Failure to emit code for inlined function in space
  2003-07-29  5:33 [Bug c++/11702] New: Failure to emit code for inlined function in space gcc-bugzilla at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2003-08-04  1:09 ` pinskia at physics dot uc dot edu
@ 2003-08-12  0:15 ` pinskia at gcc dot gnu dot org
  2003-08-17  8:07 ` cvs-commit at gcc dot gnu dot org
  2003-08-17  8:17 ` hubicka at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-12  0:15 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=11702


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |poschmid at lbl dot gov


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-12 00:15 -------
*** Bug 11888 has been marked as a duplicate of this bug. ***


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

* [Bug c++/11702] [3.4 Regression] [unit-at-a-time] Failure to emit code for inlined function in space
  2003-07-29  5:33 [Bug c++/11702] New: Failure to emit code for inlined function in space gcc-bugzilla at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2003-08-12  0:15 ` pinskia at gcc dot gnu dot org
@ 2003-08-17  8:07 ` cvs-commit at gcc dot gnu dot org
  2003-08-17  8:17 ` hubicka at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-08-17  8:07 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=11702



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-08-17 08:07 -------
Subject: Bug 11702

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hubicka@gcc.gnu.org	2003-08-17 08:07:27

Modified files:
	gcc/cp         : ChangeLog semantics.c 

Log message:
	PR C++/11702
	* semantics.c (finish_id_expression): Mark all functions as used.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3604&r2=1.3605
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.346&r2=1.347


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

* [Bug c++/11702] [3.4 Regression] [unit-at-a-time] Failure to emit code for inlined function in space
  2003-07-29  5:33 [Bug c++/11702] New: Failure to emit code for inlined function in space gcc-bugzilla at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2003-08-17  8:07 ` cvs-commit at gcc dot gnu dot org
@ 2003-08-17  8:17 ` hubicka at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2003-08-17  8:17 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=11702


hubicka at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From hubicka at gcc dot gnu dot org  2003-08-17 08:17 -------
fixed by my patch


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

end of thread, other threads:[~2003-08-17  8:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-29  5:33 [Bug c++/11702] New: Failure to emit code for inlined function in space gcc-bugzilla at gcc dot gnu dot org
2003-07-29 11:54 ` [Bug c++/11702] [3.4 Regression] [unit-at-a-time] " pinskia at physics dot uc dot edu
2003-07-31  4:52 ` pinskia at physics dot uc dot edu
2003-07-31  5:24 ` pinskia at physics dot uc dot edu
2003-07-31  5:28 ` pinskia at physics dot uc dot edu
2003-08-04  1:09 ` pinskia at physics dot uc dot edu
2003-08-12  0:15 ` pinskia at gcc dot gnu dot org
2003-08-17  8:07 ` cvs-commit at gcc dot gnu dot org
2003-08-17  8:17 ` hubicka 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).