Bug 48898 - i386/netware.c:i386_nlm_maybe_mangle_decl_assembler_name: ‘cvt’ undeclared
Summary: i386/netware.c:i386_nlm_maybe_mangle_decl_assembler_name: ‘cvt’ undeclared
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.7.0
: P3 normal
Target Milestone: 4.7.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks: 47093
  Show dependency treegraph
 
Reported: 2011-05-06 00:12 UTC by Jorn Wolfgang Rennecke
Modified: 2011-05-06 10:08 UTC (History)
4 users (show)

See Also:
Host:
Target: i586-netware --with-ld
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jorn Wolfgang Rennecke 2011-05-06 00:12:29 UTC
gcc -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include -I/opt/cfarm/mpc/include  -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber    -I. -I. -I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include -I/opt/cfarm/mpc/include  -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber   \
                ../../../gcc/gcc/config/i386/netware.c
../../../gcc/gcc/config/i386/netware.c: In function ‘i386_nlm_maybe_mangle_decl_assembler_name’:
../../../gcc/gcc/config/i386/netware.c:163:13: error: ‘cvt’ undeclared (first use in this function)
../../../gcc/gcc/config/i386/netware.c:163:13: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [netware.o] Error 1
Comment 1 Uroš Bizjak 2011-05-06 06:46:57 UTC
Typo, can you please try this patch:

Index: netware.c
===================================================================
--- netware.c	(revision 173469)
+++ netware.c	(working copy)
@@ -160,7 +160,7 @@
     }
   else if ((ccvt & IX86_CALLCVT_FASTCALL) != 0)
     new_id = gen_stdcall_or_fastcall_decoration (decl, id, FASTCALL_PREFIX);
-  else if ((cvt & IX86_CALLCVT_REGPARM) != 0
+  else if ((ccvt & IX86_CALLCVT_REGPARM) != 0
 	   && (new_id = lookup_attribute ("regparm", type_attributes)))
     new_id = gen_regparm_prefix (decl, id,
 		  TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (new_id))));
Comment 2 Uroš Bizjak 2011-05-06 06:52:03 UTC
Introduced by [1].

[1] http://gcc.gnu.org/viewcvs?view=revision&revision=172268
Comment 3 Jorn Wolfgang Rennecke 2011-05-06 08:46:50 UTC
(In reply to comment #1)
> Typo, can you please try this patch:
> 
> Index: netware.c
> ===================================================================
> --- netware.c    (revision 173469)
> +++ netware.c    (working copy)
> @@ -160,7 +160,7 @@
>      }
>    else if ((ccvt & IX86_CALLCVT_FASTCALL) != 0)
>      new_id = gen_stdcall_or_fastcall_decoration (decl, id, FASTCALL_PREFIX);
> -  else if ((cvt & IX86_CALLCVT_REGPARM) != 0
> +  else if ((ccvt & IX86_CALLCVT_REGPARM) != 0
>         && (new_id = lookup_attribute ("regparm", type_attributes)))
>      new_id = gen_regparm_prefix (decl, id,
>            TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (new_id))));

Yes, that allows me to finish the build of "all-gcc".
Comment 4 uros 2011-05-06 10:07:37 UTC
Author: uros
Date: Fri May  6 10:07:35 2011
New Revision: 173475

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173475
Log:
	PR target/48898
	* config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
	Fix typo in "ccvt" variable name.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/netware.c
Comment 5 Uroš Bizjak 2011-05-06 10:08:45 UTC
Fixed.