public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/28528]  New: [4.0/4.1/4.2 regression] Trouble compiling header files with "-x c++" using g++
@ 2006-07-28 13:42 reichelt at gcc dot gnu dot org
  2006-07-28 14:18 ` [Bug driver/28528] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-28 13:42 UTC (permalink / raw)
  To: gcc-bugs

The g++ driver has problems with *.h files compiled with "-x c++":
  g++ -c -x c++ file.h
yields a precompiled header file.h.gch instead of file.o.
  g++ -S -x c++ file.h
yields an error message:
  cc1plus: error: output filename specified twice

With "-x c" everything works as expected. Also using gcc (and not g++)
with "-x c", "-x c++", "-x c-header", "-x c++-header" works fine.

This is a reression from GCC 3.3.x where using
  g++ -c -x c++ file.h
or
  g++ -S -x c++ file.h
led to the desired results.


-- 
           Summary: [4.0/4.1/4.2 regression] Trouble compiling header files
                    with "-x c++" using g++
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-07-04 15:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-28 13:42 [Bug driver/28528] New: [4.0/4.1/4.2 regression] Trouble compiling header files with "-x c++" using g++ reichelt at gcc dot gnu dot org
2006-07-28 14:18 ` [Bug driver/28528] " pinskia at gcc dot gnu dot org
2006-07-29  5:27 ` pinskia at gcc dot gnu dot org
2006-07-31 23:39 ` mmitchel at gcc dot gnu dot org
2006-08-18  4:07 ` pinskia at gcc dot gnu dot org
2006-08-18  4:48 ` dannysmith at users dot sourceforge dot net
2006-08-18  4:52 ` pinskia at gcc dot gnu dot org
2006-08-21 21:20 ` janis at gcc dot gnu dot org
2006-08-21 23:22 ` geoffk at gcc dot gnu dot org
2006-08-21 23:27 ` [Bug driver/28528] [4.0/4.1/4.2 Regression] C language extensions override -x in C++ driver pinskia at gcc dot gnu dot org
2006-08-21 23:34 ` janis at gcc dot gnu dot org
2006-08-24  0:20 ` patchapp at dberlin dot org
2006-08-25  0:24 ` dannysmith at gcc dot gnu dot org
2006-08-25  0:27 ` [Bug driver/28528] [4.0/4.1 " dannysmith at users dot sourceforge dot net
2007-02-03 18:40 ` gdr at gcc dot gnu dot org
2007-02-03 20:43 ` pinskia at gcc dot gnu dot org
2007-02-14  9:14 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:46 ` [Bug driver/28528] [4.1 " jsm28 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).