public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/46334] New: C++ compiler gets g++ switch even if it isn't g++
@ 2010-11-06 16:45 jay.krell at cornell dot edu
  2010-11-07 23:08 ` [Bug other/46334] " jay.krell at cornell dot edu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jay.krell at cornell dot edu @ 2010-11-06 16:45 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: C++ compiler gets g++ switch even if it isn't g++
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jay.krell@cornell.edu


if C compiler is gcc and C++ compiler is not g++, C++ compiler gets g++ flags
(maybe redirect to autoconf?)

export CXX=/usr/bin/CC
gcc-4.5.1/configure -enable-build-with-cxx


 /usr/bin/CC -c  -g -DIN_GCC   -W -Wall -Wwrite-strings
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.5/gcc
-I../../gcc-4.5/gcc/. -I../../gcc-4.5/gcc/../include
-I../../gcc-4.5/gcc/../libcpp/include
-I/home/jkrell/dev2/cm3/m3-sys/m3cc/SOLsun/./gmp
-I/home/jkrell/dev2/cm3/m3-sys/m3cc/gcc-4.5/gmp 
-I../../gcc-4.5/gcc/../libdecnumber -I../../gcc-4.5/gcc/../libdecnumber/dpd
-I../libdecnumber   -I/usr/include/libelf  ../../gcc-4.5/gcc/df-core.c -o
df-core.o
CC: Warning: Option -W passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -Wwrite-strings passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -Wmissing-format-attribute passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -pedantic passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -Wno-long-long passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -Wno-variadic-macros passed to ld, if ld is invoked,
ignored otherwise
CC: Warning: Option -Wno-overlength-strings passed to ld, if ld is invoked,
ignored otherwise
/usr/bin/CC -c  -g -DIN_GCC   -W -Wall -Wwrite-strings
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros


seems a bit off.

I'm trying now with CXX=CC, CC=cc.
The autoconf log is looking better.


 - Jay


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

end of thread, other threads:[~2010-11-08  1:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-06 16:45 [Bug other/46334] New: C++ compiler gets g++ switch even if it isn't g++ jay.krell at cornell dot edu
2010-11-07 23:08 ` [Bug other/46334] " jay.krell at cornell dot edu
2010-11-07 23:09 ` jay.krell at cornell dot edu
2010-11-07 23:10 ` jay.krell at cornell dot edu
2010-11-08  1:10 ` jay.krell at cornell dot edu

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