[ ant-contrib-Bugs-1715475 ] CC, aCC, and xlC compilers don't bid on assembly files (.s)
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1715475, was opened at 2007-05-09 06:25 Message generated for change (Comment added) made by darius42 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1715475&group_id=36177 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: cpptasks Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: darius42 (darius42) Assigned to: Curt Arnold (carnold) Summary: CC, aCC, and xlC compilers don't bid on assembly files (.s) Initial Comment: The CC (Sun), aCC (HP), and xlC (IBM) compiler adapters do not bid on assembly files. Instead, they defer to the sourceExtensions defined in the GccCompatibleCCompiler definition (which doesn't include '.s'). In addition, since these compiler adapters are bidding based on the GccCompatibleCCompiler definition, they are bidding on Fortran source files (.f, .for), even though the underlying compilers can't deal with them. Attached is a proposed patch which moves the sourceExtension and headerExtension definitions into the derived adapters for each of the compilers in question, along with the start of a testsuite for each compiler (currently just verifying which files they bid on). ---------------------------------------------------------------------- >Comment By: darius42 (darius42) Date: 2007-05-09 06:38 Message: Logged In: YES user_id=1140024 Originator: YES I have a couple of open questions associated with the attached patch: 1) The behavior of the Forte CC compiler changed with Forte 6.1 (Sunpro 5.2). Prior to Forte 6.1, the .c++ extension was not supported (and the compiler would reject it as an unknown file type). With 6.1 and later, the .c++ extension is supported. So should the Forte adapter bid on .c++ files (since they are currently supported) or not (since some compiler versions won't be able to handle them). 2) The test suite only verifies that all of the files that are explicitly supported are bid on, it doesn't test the behavior for files that it shouldn't bid on. Is there a recommended process for testing that unrecognized extensions won't be bid on? 3) Based on some experiments, it looks like the extension comparison is case-insensitive (for all platforms), however at least some of the compilers I tested were case-sensitive in their handling of extensions (for example, the Forte compiler will accept a .cpp extension, but will reject a .CPP extension). Should CC-tasks file matching be case-sensitive or case-insensitive? Or should it be determined by the compiler (Windows compilers will probably be case-insensitive, while some Unix compilers will be case-sensitive). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1715475&group_id=36177 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/