From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Problem compiling latest CVS with gcc-2.95.3 Date: Tue, 11 Mar 2003 11:14:43 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20030308091124.GA29733@tuba.home> <20030308094052.GB29733@tuba.home> <20030308224427.GA25823@tuba.home> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: multipart/mixed; boundary="Multipart_Tue_Mar_11_11:14:43_2003-1" Return-path: In-Reply-To: <20030308224427.GA25823@tuba.home> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Martin Langer Cc: papadako@csd.uoc.gr, alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Tue_Mar_11_11:14:43_2003-1 Content-Type: text/plain; charset=US-ASCII At Sat, 8 Mar 2003 23:44:27 +0100, Martin Langer wrote: > > On Sat, Mar 08, 2003 at 10:40:52AM +0100, Martin Langer wrote: > > On Sat, Mar 08, 2003 at 10:11:24AM +0100, Martin Langer wrote: > > > On Sat, Mar 08, 2003 at 10:51:29AM +0200, Panagiotis Papadakos wrote: > > > > > > > cc1: Invalid option `-falign-functions=4' > > > Removing that option really helps in my case. Don't know if it should be > really applied to the CVS tree. IIRC, the -falign-xxx is a new option and the older compiler had -malign-xxx instead. could you check the attached patch whether it works? Takashi --Multipart_Tue_Mar_11_11:14:43_2003-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="config-fix.dif" Content-Transfer-Encoding: 7bit Index: alsa-driver/configure.in =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-driver/configure.in,v retrieving revision 1.99 diff -u -r1.99 configure.in --- alsa-driver/configure.in 10 Mar 2003 13:02:39 -0000 1.99 +++ alsa-driver/configure.in 10 Mar 2003 16:29:24 -0000 @@ -335,8 +335,7 @@ fprintf(file, "i386"); #elif defined(CONFIG_M486) fprintf(file, "i486"); -#elif defined(CONFIG_M586) || defined(CONFIG_MWINCHIPC6) || defined(CONFIG_MWINCHIP2)\ - || defined(CONFIG_MWINCHIP3D) || defined(CONFIG_MCYRIXIII) +#elif defined(CONFIG_M586) fprintf(file, "i586"); #elif defined(CONFIG_M586TSC) fprintf(file, "i586tsc"); @@ -434,11 +433,19 @@ if $CC -march=athlon -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then c_opts="-march=athlon" else - c_opts="-march=i686 -malign-functions=4" + if $CC -falign-functions=0 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then + c_opts="-march=i686 -falign-functions=4" + else + c_opts="-march=i686 -malign-functions=4" + fi fi ;; crusoe) - c_opts="-march=i686 -malign-functions=0 -malign-jumps=0 -malign-loops=0" + if $CC -falign-functions=0 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then + c_opts="-march=i686 -falign-functions=0 -falign-jumps=0 -falign-loops=0" + else + c_opts="-march=i686 -malign-functions=0 -malign-jumps=0 -malign-loops=0" + fi ;; mcyrixiii) if $CC -march=c3 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then @@ -573,7 +580,7 @@ dnl set ia32 (X86) case "$processor" in - i?86*|k?|crusoe) + i?86*|k?|crusoe|mcyrixiii|mwinchip) if $CC -mpreferred-stack-boundary=2 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then c_opts="-mpreferred-stack-boundary=2 $c_opts" CONFIG_X86=y --Multipart_Tue_Mar_11_11:14:43_2003-1-- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf