Opened 4 years ago

Last modified 4 years ago

#306 new defect

g++ -v fails

Reported by: komh Owned by:
Priority: normal Milestone: libc-0.7
Component: gcc Version: 0.6.5
Severity: normal Keywords:
Cc:

Description

Hi/2.

g++ -v requires a input file and return an error status. Due to this, configure test for this fails, and libtool cannot generate DLLs for C++. However gcc -v works as expected.

gcc -v :

Reading specs from F:/lang/gcc/usr/lib/gcc-lib/i386-pc-os2-emx/3.3.5/specs
Configured with: D:/CODING/LIBC/0.6/src/gcc/configure --enable-clh --enable-threads=os2 --enable-shared=libgcc,bfd,opcodes -enable-nls --without-included-gettext --with-local-prefix=D:/CODING/LIBC/0.6TOOLS/x86.os2/gcc/staged --prefix=/gcc --with-gnu-as -disable-libgcj --enable-languages=c,c++
Thread model: os2
gcc version 3.3.5 (Bird Build 2012-03-23 03:21 (csd5))

g++ -v:

Reading specs from F:/lang/gcc/usr/lib/gcc-lib/i386-pc-os2-emx/3.3.5/specs Configured with: D:/CODING/LIBC/0.6/src/gcc/configure -enable-clh --enable-threads=os2 --enable-shared=libgcc,bfd,opcodes -enable-nls --without-included-gettext --with-local-prefix=D:/CODING/LIBC/0.6/TOOLS/x86.os2/gcc/staged --prefix=/gcc --with-gnu-as -disable-libgcj --enable-languages=c,c++
Thread model: os2
gcc version 3.3.5 (Bird Build 2012-03-23 03:21 (csd5))
g++.exe: no input files, try "g++.exe --help"

Attachments (1)

g++v.diff (340 bytes) - added by komh 4 years ago.
patch for g++ -v

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by komh

patch for g++ -v

comment:1 Changed 4 years ago by komh

This occurs if GCCOPT is set. For examples, GCCOPT=-pipe.

comment:2 Changed 4 years ago by diver

I tested this with gcc 4.9.2 and there it works. Does it really make sense to work on this old compiler at all? I personally doubt.

Note: See TracTickets for help on using tickets.