You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/07/09 20:42:04 UTC

[jira] Created: (STDCXX-480) [Sun C++ 5.9] -xM outputs full preprocessed output for .S files

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


[jira] Commented: (STDCXX-480) [Sun C++ 5.9] -xM outputs full preprocessed output for .S files

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511241 ] 

Martin Sebor commented on STDCXX-480:
-------------------------------------

-------- Original Message --------
Subject: Re: (Incident Review ID: 1009625) Sun C++ 5.9 -xM outputs full preprocessed output for .S files
Date: Mon, 09 Jul 2007 12:57:49 -0700 (MST)
From: Steve Clamage <St...@Sun.COM>
To: sebor@roguewave.com

Hi Martin Sebor,

Thank you for reporting this issue.

We have determined that this report is a new bug and entered the bug into our internal bug tracking system under Bug Id: 6578364.

You can monitor this bug on the Java Bug Database at
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6578364.

It may take a day or two before your bug shows up in this external database.  If you are a member of the Sun Developer Network (SDN), there are two additional options once the bug is visible.

1. Voting for the bug
   Click http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6578364.

2. Adding the report to your Bug Watch list.
   You will receive an email notification when this bug is updated.
   Click http://bugs.sun.com/bugdatabase/addBugWatch.do?bug_id=6578364.

The Sun Developer Network (http://developers.sun.com) is a free service that Sun offers.  To join, visit https://softwarereg.sun.com/registration/developer/en_US/new_user.

For a limited time, SDN members can obtain fully licensed Java IDEs for web and enterprise development.  More information is at http://developers.sun.com/prodtech/javatools/free/.

Regards,
Steve

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: This message, including any attachments, is for the intended
recipient(s) only.  If you are not the intended recipient(s), please
reply to the sender, delete this message, and refrain from disclosing,
copying, or distributing this message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--------------- Previous Messages ----------------


--------------------- Report ---------------------

      category : c++
   subcategory : preproc
       release : studio12
          type : bug
      synopsis : Sun C++ 5.9 -xM outputs full preprocessed output for .S files
 customer name : Martin Sebor
 customer mail : sebor@roguewave.com
        sdn id : 
      language : en
       company : Rogue Wave Software
      hardware : sun4
            os : solaris_10
        bug id : 6578364
  date created : Mon Jul 09 13:49:09 MST 2007
date evaluated : Mon Jul 09 12:54:14 MST 2007
   description : 
FULL PRODUCT VERSION :
Sun C+ 5.9

ADDITIONAL OS VERSION INFORMATION :
Solaris 10

A DESCRIPTION OF THE PROBLEM :
  From https://issues.apache.org/jira/browse/STDCXX-480

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:

$ cat t.S
#include <assert.h>

$ 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


REGRESSION.  Last worked in version studio11

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile any .S file.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Same as with Sun C++ 5.8 and prior:

t.o: t.S
t.o: /usr/include/assert.h

ACTUAL -
Full preprocessed output:

# 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


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
#include <assert.h>

---------- END SOURCE ----------

Release Regression From : studio11
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.


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