Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-480

[Sun C++ 5.9] -xM outputs full preprocessed output for .S files

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • External
    • None

    Description

      Compiling a .S file with Sun C++ 5.8 produces a listing of dependencies suitable for inclusion in makefiles. Sun C++ 5.9 unexpectedly produces the full preprocessed output instead:

      $ CC -V -xM t.S
      CC: Sun C++ 5.8 Patch 121017-08 2006/12/06
      cpp: Software Generation Utilities (SGU) SunOS/SVR4
      t.o: t.S
      t.o: /usr/include/assert.h

      $ CC -V -xM t.S | sed "/^ *$/d"
      CC: Sun C++ 5.9 SunOS_sparc 2007/05/03
      cpp: Software Generation Utilities (SGU) SunOS/SVR4

      1. 1 "t.S"
      2. 1 "/usr/include/assert.h" 1
        #ident "@(#)assert.h 1.10 04/05/18 SMI"
      3. 20 "/usr/include/assert.h"
      4. 22 "/usr/include/assert.h"
      5. 28 "/usr/include/assert.h"
        extern void _assert();
      6. 34 "/usr/include/assert.h"
      7. 51 "/usr/include/assert.h"
      8. 53 "/usr/include/assert.h"
      9. 60 "/usr/include/assert.h"
      10. 2 "t.S" 2

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sebor Martin Sebor

              Dates

                Created:
                Updated:

                Slack

                  Issue deployment