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

                 Key: STDCXX-480
                 URL: https://issues.apache.org/jira/browse/STDCXX-480
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
            Reporter: Martin Sebor


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 "t.S" 
# 1 "/usr/include/assert.h" 1
#ident  "@(#)assert.h   1.10    04/05/18 SMI"   
# 20 "/usr/include/assert.h" 
# 22 "/usr/include/assert.h" 
# 28 "/usr/include/assert.h" 
extern void _assert();
# 34 "/usr/include/assert.h" 
# 51 "/usr/include/assert.h" 
# 53 "/usr/include/assert.h" 
# 60 "/usr/include/assert.h" 
# 2 "t.S" 2


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to