www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 2068] New: GDC does not use specs files

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2068

           Summary: GDC does not use specs files
           Product: DGCC aka GDC
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn users.sf.net
        ReportedBy: e-t172 akegroup.org


When using specs files, GDC ignores the "cc1d" part. It should not.

Steps to reproduce:

Write a specs file with the following contents:

*cc1d:
-do -you -hear -me

Then execute:

gdc -specs specsfile -c test.d

Expected result:

$ gdc -specs specsfile -c test.d
cc1d: error: unrecognized command line option "-you"
cc1d: error: unrecognized command line option "-hear"
cc1d: error: unrecognized command line option "-me"
$

Actual result:

$ gdc -specs specsfile -c test.d
$ 

Tested with GDC r217, GCC 4.1.2, on a x86_64 Debian GNU/Linux system.


-- 
May 05 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2068


dvdfrdmn users.sf.net changed:

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





The g++ driver supports a "cc1plus" spec, so it makes sense to support
something similar in gdc.

Fixed in release 0.25 / rel 221


-- 
May 10 2008