Received: (at 13202) by debbugs.gnu.org; 17 Dec 2012 20:33:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 17 15:33:14 2012 Received: from localhost ([127.0.0.1]:47611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TkhNC-0003cL-Bm for submit <at> debbugs.gnu.org; Mon, 17 Dec 2012 15:33:14 -0500 Received: from mail-vb0-f44.google.com ([209.85.212.44]:63112) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <noloader@HIDDEN>) id 1TkhN9-0003cD-Nu for 13202 <at> debbugs.gnu.org; Mon, 17 Dec 2012 15:33:12 -0500 Received: by mail-vb0-f44.google.com with SMTP id fc26so9587744vbb.3 for <13202 <at> debbugs.gnu.org>; Mon, 17 Dec 2012 12:31:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=LoUvh3yltibwv747NJSBu+aLNrERONSlGSBULmFNCsM=; b=KSvDl/RxedE/ZtJu4mcf02992BcQbph8FK1Yg4ftBUSzxtuntsvd58ajhGGy0Zq3Xn flEBA9cGVgKFzkiSGi6+2vod/bkaiVhNrpgC+HUfMoiWSBlJcvKV7pj9zTDYvfihWZix kdcYcUuv3d35drt2B+REcg0+gEZCEjYnCCt+nFL7+/ZPrYJoX9jtIskZGX+hPiKq181k nbJIuvb8g5imHnPUPfmtr6r8fZcoeWBNAegjKDHqjkC34248jmFnt5MH3CRHkjEih9Uw OSzp12ideIjuPVNiraHZtD7++iLbT3oUEuqJ3ZDfJ/rH8TBBjJzqtCS20ffHFO5tHI8t Llcg== MIME-Version: 1.0 Received: by 10.52.99.106 with SMTP id ep10mr22877197vdb.53.1355776314884; Mon, 17 Dec 2012 12:31:54 -0800 (PST) Received: by 10.220.230.71 with HTTP; Mon, 17 Dec 2012 12:31:54 -0800 (PST) In-Reply-To: <50CED2C2.6080404@HIDDEN> References: <50CE6A25.8060703@HIDDEN> <50CED2C2.6080404@HIDDEN> Date: Mon, 17 Dec 2012 15:31:54 -0500 Message-ID: <CAH8yC8m2g1HwnLKz1y7B080PTSxXfzoEWDxGs6vFJoOSOwjckQ@HIDDEN> Subject: Re: bug#13202: Make Microsoft Visual C recognize the .S file extension From: Jeffrey Walton <noloader@HIDDEN> To: Peter Rosin <peda@HIDDEN> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 13202 Cc: 13202 <at> debbugs.gnu.org, Automake List <automake@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: noloader@HIDDEN List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: 0.1 (/) On Mon, Dec 17, 2012 at 3:07 AM, Peter Rosin <peda@HIDDEN> wrote: > Hi Rheinl=C3=A4nder! > > On 2012-12-17 01:41, Rheinl=C3=A4nder wrote: >> Hi, >> >> here is a suggestion how to make MSVC (cl.exe) recognize the standard >> extension for assembly code in C projects: Just add the compiler >> switch /Tc before the file inquestion, or use /TC toforce all files >> mentioned on the command line to be treated as C code. > > Interesting! This may not work under MASM64 since inline ASM is not supported on x64. Jeff
bug-libtool@HIDDEN
:bug#13202
; Package libtool
.
Full text available.Received: (at 13202) by debbugs.gnu.org; 17 Dec 2012 11:35:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 17 06:35:23 2012 Received: from localhost ([127.0.0.1]:46721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TkYyg-0004Oo-Tf for submit <at> debbugs.gnu.org; Mon, 17 Dec 2012 06:35:23 -0500 Received: from mail.lysator.liu.se ([130.236.254.3]:34635) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <peda@HIDDEN>) id 1TkYyd-0004Oe-1n for 13202 <at> debbugs.gnu.org; Mon, 17 Dec 2012 06:35:20 -0500 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 4475F40017; Mon, 17 Dec 2012 12:34:03 +0100 (CET) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id AAB8A4000F; Mon, 17 Dec 2012 12:34:02 +0100 (CET) Message-ID: <50CF032A.9070505@HIDDEN> Date: Mon, 17 Dec 2012 12:34:02 +0100 From: Peter Rosin <peda@HIDDEN> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: =?UTF-8?B?UmhlaW5sw6RuZGVy?= <jrheinlaender@HIDDEN> Subject: Re: bug#13202: Make Microsoft Visual C recognize the .S file extension References: <50CE6A25.8060703@HIDDEN> <50CED2C2.6080404@HIDDEN> <50CEF3E3.5030008@HIDDEN> In-Reply-To: <50CEF3E3.5030008@HIDDEN> Content-Type: text/plain; charset=UTF-8 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13202 Cc: 13202 <at> debbugs.gnu.org, Automake List <automake@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: 0.8 (/) Hi Jan, Please keep replies on list. On 2012-12-17 11:28, Rheinl=C3=A4nder wrote: > Hello Peter, >=20 >> However, I can't get assembly to actually work with -Tc or -TC (see >> below), so what am I doing wrong? >> >=20 > OK, I looked a bit more deeply in it and discovered that my .S file is > actually a C file wrapper for an assembly include... The files are from > the CLN library, I attached them. >=20 > My real problem is not to compile the assembly code (I have set > -DNO_ASM anyway) but that the MSVC make breaks on the .S extension. > Though looking at it again maybe I should suggest instead to the CLN > folks to rename their file to .cc since it is a C file anyway. Ok, except it isn't really a C file. It's assembly intended to be preprocessed by the C preprocessor (as is indicated by the .S extension). I think the preprocessor will reduce the source to very little in case NO_ASM is defined (but you didn't attach enough files for me to tell for sure). I therefore think the 'compile' script I referred to earlier may handle your case; it will preprocess the .S file and feed the remaining few bits to ml which in turn will do nothing, hopefully. But maybe ml will miss an END directive? Or something? Untested... Cheers, Peter
bug-libtool@HIDDEN
:bug#13202
; Package libtool
.
Full text available.Received: (at 13202) by debbugs.gnu.org; 17 Dec 2012 08:08:57 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 17 03:08:57 2012 Received: from localhost ([127.0.0.1]:46279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TkVkr-00073d-FU for submit <at> debbugs.gnu.org; Mon, 17 Dec 2012 03:08:57 -0500 Received: from mail.lysator.liu.se ([130.236.254.3]:43860) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <peda@HIDDEN>) id 1TkVkk-00073O-CE for 13202 <at> debbugs.gnu.org; Mon, 17 Dec 2012 03:08:51 -0500 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id A708A40012; Mon, 17 Dec 2012 09:07:31 +0100 (CET) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 4D29D4000F; Mon, 17 Dec 2012 09:07:31 +0100 (CET) Message-ID: <50CED2C2.6080404@HIDDEN> Date: Mon, 17 Dec 2012 09:07:30 +0100 From: Peter Rosin <peda@HIDDEN> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Rheinl=E4nder?= <jrheinlaender@HIDDEN> Subject: Re: bug#13202: Make Microsoft Visual C recognize the .S file extension References: <50CE6A25.8060703@HIDDEN> In-Reply-To: <50CE6A25.8060703@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13202 Cc: Automake List <automake@HIDDEN>, 13202 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: 0.8 (/) Hi Rheinl=E4nder! On 2012-12-17 01:41, Rheinl=E4nder wrote: > Hi, >=20 > here is a suggestion how to make MSVC (cl.exe) recognize the standard > extension for assembly code in C projects: Just add the compiler > switch /Tc before the file inquestion, or use /TC toforce all files > mentioned on the command line to be treated as C code. Interesting! This is best added to the 'compile' script which is "owned" by Automake, so I have added a CC. At one point I posted a hacked version of 'compile' to the libffi list, but it relied on a separate preprocessing step, followed by directly invoking the assembler (ml.exe). See the attachment in http://sourceware.org/ml/libffi-discuss/2012/msg00144.html It seems very nice to get rid of the extra preprocessing step. However, I can't get assembly to actually work with -Tc or -TC (see below), so what am I doing wrong? Cheers, Peter $ cat asm.S # stupid asm file generated from a trivial C file ; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40= 219.01 TITLE c:\home\peda\src\junk\asm.c .686P .XMM include listing.inc .model flat INCLUDELIB LIBCMT INCLUDELIB OLDNAMES PUBLIC _main ; Function compile flags: /Odtp _TEXT SEGMENT _main PROC ; File c:\cygwin\home\peda\src\junk\asm.c ; Line 2 push ebp mov ebp, esp ; Line 3 xor eax, eax ; Line 4 pop ebp ret 0 _main ENDP _TEXT ENDS END $ ml -c asm.S # assembly input is sane! Microsoft (R) Macro Assembler Version 10.00.40219.01 Copyright (C) Microsoft Corporation. All rights reserved. Assembling: asm.S $ cl -c -Tcasm.S # but cl -Tc fails miserably... Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for= 80x86 Copyright (C) Microsoft Corporation. All rights reserved. asm.S asm.S(1) : error C2061: syntax error : identifier 'generated' asm.S(1) : error C2059: syntax error : ';' asm.S(1) : error C2061: syntax error : identifier 'Microsoft' asm.S(1) : error C2059: syntax error : ';' asm.S(1) : error C2061: syntax error : identifier 'Optimizing' asm.S(1) : error C2059: syntax error : ';' asm.S(1) : error C2061: syntax error : identifier 'Version' asm.S(1) : error C2059: syntax error : ';' asm.S(1) : error C2059: syntax error : 'constant' asm.S(3) : error C2017: illegal escape sequence asm.S(3) : error C2017: illegal escape sequence asm.S(3) : error C2017: illegal escape sequence asm.S(3) : error C2017: illegal escape sequence asm.S(3) : error C2017: illegal escape sequence asm.S(3) : error C2017: illegal escape sequence asm.S(4) : error C2059: syntax error : 'bad suffix on number' asm.S(13) : error C2061: syntax error : identifier 'compile' asm.S(13) : error C2059: syntax error : ';' asm.S(13) : error C2143: syntax error : missing '{' before ':' asm.S(13) : error C2059: syntax error : ':' asm.S(16) : error C2061: syntax error : identifier 'c' asm.S(16) : error C2059: syntax error : ';' asm.S(16) : error C2059: syntax error : ':' asm.S(16) : error C2017: illegal escape sequence asm.S(16) : error C2017: illegal escape sequence asm.S(16) : error C2017: illegal escape sequence asm.S(16) : error C2017: illegal escape sequence asm.S(16) : error C2017: illegal escape sequence asm.S(16) : error C2017: illegal escape sequence asm.S(17) : error C2143: syntax error : missing '{' before 'constant' asm.S(17) : error C2059: syntax error : '<Unknown>' asm.S(20) : error C2143: syntax error : missing '{' before 'constant' asm.S(20) : error C2059: syntax error : '<Unknown>' asm.S(22) : error C2143: syntax error : missing '{' before 'constant' asm.S(22) : error C2059: syntax error : '<Unknown>'
bug-libtool@HIDDEN
:bug#13202
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 17 Dec 2012 00:42:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 16 19:42:46 2012 Received: from localhost ([127.0.0.1]:45836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TkOn7-00050u-Cn for submit <at> debbugs.gnu.org; Sun, 16 Dec 2012 19:42:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55282) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <jrheinlaender@HIDDEN>) id 1TkOn5-00050m-Jv for submit <at> debbugs.gnu.org; Sun, 16 Dec 2012 19:42:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <jrheinlaender@HIDDEN>) id 1TkOlt-0000yM-EA for submit <at> debbugs.gnu.org; Sun, 16 Dec 2012 19:41:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE, HTML_OBFUSCATE_05_10, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:60252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <jrheinlaender@HIDDEN>) id 1TkOlt-0000yG-B3 for submit <at> debbugs.gnu.org; Sun, 16 Dec 2012 19:41:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <jrheinlaender@HIDDEN>) id 1TkOlr-0007u4-1b for bug-libtool@HIDDEN; Sun, 16 Dec 2012 19:41:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <jrheinlaender@HIDDEN>) id 1TkOlo-0000y1-Gn for bug-libtool@HIDDEN; Sun, 16 Dec 2012 19:41:26 -0500 Received: from mout.gmx.net ([212.227.15.19]:56876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <jrheinlaender@HIDDEN>) id 1TkOlo-0000xt-71 for bug-libtool@HIDDEN; Sun, 16 Dec 2012 19:41:24 -0500 Received: from mailout-de.gmx.net ([10.1.76.71]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MJqSQ-1TjIqE14zs-0017HZ for <bug-libtool@HIDDEN>; Mon, 17 Dec 2012 01:41:22 +0100 Received: (qmail invoked by alias); 17 Dec 2012 00:41:20 -0000 Received: from unknown (EHLO [10.233.233.136]) [164.215.108.39] by mail.gmx.net (mp071) with SMTP; 17 Dec 2012 01:41:20 +0100 X-Authenticated: #2211516 X-Provags-ID: V01U2FsdGVkX19gGOtVz3tgOPOrCmyPn2G5rfU7bIO+I7Ta5C/gjY LNKJoMbHE/JFUI Message-ID: <50CE6A25.8060703@HIDDEN> Date: Mon, 17 Dec 2012 05:11:09 +0430 From: =?ISO-8859-15?Q?Rheinl=E4nder?= <jrheinlaender@HIDDEN> User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: bug-libtool@HIDDEN Subject: Make Microsoft Visual C recognize the .S file extension Content-Type: multipart/alternative; boundary="------------070908020005020506090406" X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -4.7 (----) This is a multi-part message in MIME format. --------------070908020005020506090406 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Hi, here is a suggestion how to make MSVC (cl.exe) recognize the standard extension for assembly code in C projects: Just add the compiler switch /Tc before the file inquestion, or use /TC toforce all files mentioned on the command line to be treated as C code. Regards, Jan Rheinländer --------------070908020005020506090406 Content-Type: text/html; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15"> </head> <body bgcolor="#FFFFFF" text="#000000"> <font size="+1">Hi,<br> <br> <font size="+1">here is a suggestion how to make MSVC (cl.exe) re<font size="+1">cognize the standard extension for assembly code in C projects: Just add the compiler switch /Tc before the file in<font size="+1"> <font size="+1">question, or use /TC to<font size="+1"> for<font size="+1">ce all files mentioned on the command line to be treated as C code.<br> <br> <font size="+1"><font size="+1"><font size="+1">Regards,<br> <font size="+1"> Jan Rheinländer<br> <br> </font></font></font></font></font></font></font></font></font></font></font> </body> </html> --------------070908020005020506090406--
Rheinländer <jrheinlaender@HIDDEN>
:bug-libtool@HIDDEN
.
Full text available.bug-libtool@HIDDEN
:bug#13202
; Package libtool
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.