This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gprof won't build with cc on DU4


On Apr  5, 2000, Ian Lance Taylor <ian@zembu.com> wrote:

> In your original message, you didn't mention why the Digital Unix
> compiler failed.  What is the actual problem here?  The N_ macro
> should normally just return its argument.

The problem is that it returns the argument enclosed in parentheses:

cc: Warning: /home/lsd/oliva/src/egcs/gprof/gprof.c, line 59: In the initializer for copyright[0], "("@(#) Copyright (c) 1983 Regents of the University of California.
 All rights reserved.
")" has a larger data size than "signed char".  Assignment may result in data loss.
 N_("@(#) Copyright (c) 1983 Regents of the University of California.\n\
-^
cc: Warning: /home/lsd/oliva/src/egcs/gprof/gprof.c, line 59: In the initializer for copyright[0], "("@(#) Copyright (c) 1983 Regents of the University of California.
 All rights reserved.
")" of type "pointer to signed char", is being converted to "signed char".
 N_("@(#) Copyright (c) 1983 Regents of the University of California.\n\
-^
cc: Error: /home/lsd/oliva/src/egcs/gprof/gprof.c, line 59: In the static initialization, the address cannot be converted to the destination type.
 N_("@(#) Copyright (c) 1983 Regents of the University of California.\n\
-^

In fact, compiling:

char foo[] = ("bar");

fails similarly, but:

char foo[] = "bar";

works.

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]