public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40723]  New: Optimizer Causes Undefined References
@ 2009-07-12  0:12 mckelvey at maskull dot com
  2009-07-12  0:14 ` [Bug c++/40723] " mckelvey at maskull dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mckelvey at maskull dot com @ 2009-07-12  0:12 UTC (permalink / raw)
  To: gcc-bugs

Valid code that links fine without optimization gets undefined references at
-O3. The references are to such as vtable, L8185, WinMain, etc.

Full log attached. I await direction as to what to provide to help solve this.
Temps will be fairly large, and I don't know how to approach a smaller test
case.

(Compile error in log has been separately reported.)

Cygwin and svn update are recent.


uname -a
CYGWIN_NT-5.1 MCKELVEY-XP 1.7.0(0.210/5/3) 2009-06-18 12:51 i686 Cygwin

g++ -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /cygdrive/e/Home/cvsroot/gcc/configure --verbose
--enable-threads --disable-nls --enable-checking=release
--disable-win32-registry --enable-languages=c,c++
Thread model: posix
gcc version 4.5.0 20090705 (experimental) (GCC) 

BUILDING:
alias CONFIGURECVS='/cygdrive/e/Home/cvsroot/gcc/configure     --verbose
--enable-threads --disable-nls --enable-checking=release    
--disable-win32-registry --enable-languages=c,c++ 2>&1 | tee clog'

alias BUILD='nice make CFLAGS='\'''\'' BOOT_CFLAGS='\'''\'' LIBCFLAGS='\''-g
-O'\''     CXXFLAGS='\''-O'\'' LIBCXXFLAGS='\''-g -O'\''     bootstrap 2>&1 |
tee log'


-- 
           Summary: Optimizer Causes Undefined References
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mckelvey at maskull dot com
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40723


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

* [Bug c++/40723] Optimizer Causes Undefined References
  2009-07-12  0:12 [Bug c++/40723] New: Optimizer Causes Undefined References mckelvey at maskull dot com
@ 2009-07-12  0:14 ` mckelvey at maskull dot com
  2009-07-12  0:16 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mckelvey at maskull dot com @ 2009-07-12  0:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from mckelvey at maskull dot com  2009-07-12 00:13 -------
Created an attachment (id=18178)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18178&action=view)
Build that shows errors


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40723


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

* [Bug c++/40723] Optimizer Causes Undefined References
  2009-07-12  0:12 [Bug c++/40723] New: Optimizer Causes Undefined References mckelvey at maskull dot com
  2009-07-12  0:14 ` [Bug c++/40723] " mckelvey at maskull dot com
@ 2009-07-12  0:16 ` pinskia at gcc dot gnu dot org
  2009-10-17 19:02 ` mckelvey at maskull dot com
  2009-10-17 19:24 ` manu at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-07-12  0:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-07-12 00:15 -------
this looks like a different problem, that is an error is causing gcc to leave
behind a .o file which is invalid ...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40723


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

* [Bug c++/40723] Optimizer Causes Undefined References
  2009-07-12  0:12 [Bug c++/40723] New: Optimizer Causes Undefined References mckelvey at maskull dot com
  2009-07-12  0:14 ` [Bug c++/40723] " mckelvey at maskull dot com
  2009-07-12  0:16 ` pinskia at gcc dot gnu dot org
@ 2009-10-17 19:02 ` mckelvey at maskull dot com
  2009-10-17 19:24 ` manu at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: mckelvey at maskull dot com @ 2009-10-17 19:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mckelvey at maskull dot com  2009-10-17 19:02 -------
Latest from subversion, bug no longer occurs. I think we can close.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40723


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

* [Bug c++/40723] Optimizer Causes Undefined References
  2009-07-12  0:12 [Bug c++/40723] New: Optimizer Causes Undefined References mckelvey at maskull dot com
                   ` (2 preceding siblings ...)
  2009-10-17 19:02 ` mckelvey at maskull dot com
@ 2009-10-17 19:24 ` manu at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu dot org @ 2009-10-17 19:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from manu at gcc dot gnu dot org  2009-10-17 19:24 -------
The reporter cannot reproduce this anymore, no testcase available. Closed as
WORKSFORME. Please reopen if you find a testcase or it fails again.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40723


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

end of thread, other threads:[~2009-10-17 19:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-12  0:12 [Bug c++/40723] New: Optimizer Causes Undefined References mckelvey at maskull dot com
2009-07-12  0:14 ` [Bug c++/40723] " mckelvey at maskull dot com
2009-07-12  0:16 ` pinskia at gcc dot gnu dot org
2009-10-17 19:02 ` mckelvey at maskull dot com
2009-10-17 19:24 ` manu 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).