[Bug gas/13224] New: gcc 4.6.1 compilation issue on config/obj-elf.c : "clone" function with the default config -Werror=shadow,

2011-09-26 Thread dark_footix at yahoo dot fr
http://sourceware.org/bugzilla/show_bug.cgi?id=13224

 Bug #: 13224
   Summary: gcc 4.6.1 compilation issue on config/obj-elf.c :
"clone" function with the default config
-Werror=shadow,
   Product: binutils
   Version: 2.21
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassig...@sources.redhat.com
ReportedBy: dark_foo...@yahoo.fr
Classification: Unclassified


mipsel-unknown-linux-uclibc-gcc -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd
-I./config -I./../include -I./.. -I./../bfd -I./../intl
-DLOCALEDIR="\"//share/locale\""  -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Werror -g -O2 -MT obj-elf.o -MD -MP -MF
.deps/obj-elf.Tpo -c -o obj-elf.o `test -f 'config/obj-elf.c' || echo
'./'`config/obj-elf.c
config/obj-elf.c: In function ‘obj_elf_parse_section_letters’:
config/obj-elf.c:744:68: erreur: declaration of ‘clone’ shadows a global
declaration [-Werror=shadow]
config/obj-elf.c: In function ‘obj_elf_section’:
config/obj-elf.c:981:16: erreur: declaration of ‘clone’ shadows a global
declaration [-Werror=shadow]
cc1: all warnings being treated as errors

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


Re: binutils-2.21.53 bugs

2011-09-26 Thread Tristan Gingold
Hi,

first thank you for this extensive review.

I think that currently we always use i18n macro _("xx") for all our strings - 
or we are supposed to.
As you have noticed, this is sometimes useless, particularly when the string is 
not subject to
translation.

Maintainers, must we not use _() macro for non-translatable string ?

I don't know if there was such a rule, but this is not clear at least to me.

Tristan.

On Sep 24, 2011, at 9:08 PM, Jorma Karvonen wrote:

> Hi,
> 
> I have picked some errors from the source code or from the
> binutils.pot file. I'm sure there will be more bugs, if I have browsed
> the whole source code for binutils (missing translations).
> 
> Best regards,
> 
> Jorma Karvonen
> 
> #: addr2line.c:271
> #, c-format
> msgid " at "
> 
> Is this "at" an address or a function or something? It is difficult to
> translate due to missing context.
> 
> #: addr2line.c:296
> #, c-format
> msgid " (inlined by) "
> 
> by who ? Missing context here too.
> 
> ar.c:1024
>bfd_fatal ("could not create temporary file whilst writing archive");
> 
> should be:
>bfd_fatal (_("could not create temporary file whilst writing archive"));
> 
> , I think.
> 
> The following three should be:
> 
> bucomm.c:228
>case BFD_ENDIAN_BIG: return _("big endian");
> bucomm.c:229
>case BFD_ENDIAN_LITTLE: return _("little endian");
> bucomm.c:230
>default: return _("endianness unknown");
> 
> , I think.
> 
> The following should be:
> 
> bucomm.c:251
>  printf (_("%s\n (header %s, data %s)\n"), p->name,
> 
> , I think.
> 
> I wonder, if setlocale could be used here:
> 
> bucomm.c:430
> const char *ctime_result = (const char *) ctime (&when);
> 
> /* POSIX format:  skip weekday and seconds from ctime output.  */
> sprintf (timebuf, "%.12s %.4s", ctime_result + 4, ctime_result + 20);
> 
> The following shoud maybe be:
> 
> coffdump.c:130
>  printf (_("size %d "), p->size);
> coffdump.c:135
>  printf (_("section definition at %x size %x\n"),
> coffdump.c:141
>  /* Pointer is pointing to coff_pointer_type */
>  printf (_("pointer to"));
> coffdump.c:146
>  /* a coff_type array */
>  printf (_("array [%d] of"), p->u.array.dim);
> coffdump.c:151
>  printf (_("function returning"));
> coffdump.c:155
>  printf (_("arguments"));
> coffdump.c:159
>  printf (_("code"));
> coffdump.c:165
>  printf (_("structure definition"));
> coffdump.c:171
>   printf (_("structure ref to UNKNOWN struct"));
> coffdump.c:173
>   printf (_("structure ref to %s"), p->u.aenumref.ref->name);
> coffdump.c:176
>  printf (_("enum ref to %s"), p->u.astructref.ref->name);
> coffdump.c:179
>  printf (_("enum definition"));
> coffdump.c:252
>  printf (_("Stack offset %x"), p->offset);
> coffdump.c:255
>  printf (_("Memory section %s+%x"), p->section->name, p->offset);
> coffdump.c:258
>  printf (_("Register %d"), p->offset);
> coffdump.c:261
>  printf (_("Struct Member offset %x"), p->offset);
> coffdump.c:264
>  printf (_("Enum Member offset %x"), p->offset);
> coffdump.c:267
>  printf (_("Undefined symbol"));
> coffdump.c:334
>  printf (_("List of symbols"));
> coffdump.c:341
>  printf (_("Symbol  %s, tag %d, number %d"), p->name, p->tag, p->number);
> coffdump.c:345
>  printf (_("Type"));
> coffdump.c:350
>  printf (_("Where"));
> coffdump.c:354
>  printf (_("Visible"));
> coffdump.c:369
>  printf (_("List of blocks"));
>  printf (" %" BFD_VMA_FMT "x ",(bfd_vma) (uintptr_t) p);
> coffdump.c:384
>  /* number of symbols */
> printf (_("vars %d"), p->nvars);
> coffdump.c:385
> printf (_("blocks"));
> coffdump.c:403
>  printf (_("List of source files"));
> coffdump.c:409
>  printf (_("Source file %s"), p->name);
> coffdump.c:423
>  /* nrelocs is the number of the coff_reloc structs in a coff_section */
>  printf (_("section %s %d %d address %x size %x number %d nrelocs %d"),
> coffdump.c:446
>  printf (_("Coff dump"));
> coffdump.c:448
>  printf (_("#sources %d"), ptr->nsources);
> 
> sysdump.c:66
>return _("*undefined*");
> sysdump.c:503
>  printf (_("GOT A %x\n"), c);
> sysdump.c:503
>  printf (_("WANTED %x!!\n"), x);
> sysdump.c:539
>  tab (1, _("SYMBOL INFO"));
> sysdump.c:557
>  tab (1, _("DERIVED TYPE"));
> sysdump.c:614
>  tab (1, _("MODULE***\n"));
> 
> dlltool.c:1266
>  printf (_("VERSION %d.%d\n"), major, minor);
> dlltool.c:1314
>  inform (_("run: %s %s"), what, args);
> 
> dllwrap.c:417
>  warn (_("wait: %s"), strerror (errno));
> 
> dwarf.c:132
>  error (_("Wrong size in print_dwarf_vma"));
> dwarf.c:356,360,364
>  printf (_("(%s"),  <-- PLS, REMOVE THIS
> 
> In the following should be "UNKNOWN", not "UNKNOW":
> dwarf.c:370
>  printf (_("UNKNOW DW_LNE_HP_SFC opcode (%u)\n"), opc);
> dwarf.c:1075
>  printf (_("size: %s "),
> dwarf.c:1098
>  printf ("DW_OP_GNU_push_tls_address ");
>  printf (_("o

Re: binutils-2.21.53 bugs

2011-09-26 Thread Nick Clifton

Hi Tristan,


I think that currently we always use i18n macro _("xx") for all our strings - 
or we are supposed to.
As you have noticed, this is sometimes useless, particularly when the string is 
not subject to
translation.

Maintainers, must we not use _() macro for non-translatable string ?

I don't know if there was such a rule, but this is not clear at least to me.


Actually there is a rule, or at least a guidance:

http://www.gnu.org/prep/standards/standards.html#Internationalization

  Using GNU gettext involves putting a call to the
  gettext macro around each string that might need
  translation—like this:

  printf (gettext ("Processing file `%s'..."));

Ie, "gettext()" or its abbreviation "_()" should only be used for 
strings that might need translation.  Where translation is unnecessary, 
it should not be used.


Cheers
  Nick


___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


Re: binutils-2.21.53 bugs

2011-09-26 Thread Tristan Gingold

On Sep 26, 2011, at 5:42 PM, Nick Clifton wrote:

> Hi Tristan,
> 
>> I think that currently we always use i18n macro _("xx") for all our strings 
>> - or we are supposed to.
>> As you have noticed, this is sometimes useless, particularly when the string 
>> is not subject to
>> translation.
>> 
>> Maintainers, must we not use _() macro for non-translatable string ?
>> 
>> I don't know if there was such a rule, but this is not clear at least to me.
> 
> Actually there is a rule, or at least a guidance:
> 
> http://www.gnu.org/prep/standards/standards.html#Internationalization
> 
>  Using GNU gettext involves putting a call to the
>  gettext macro around each string that might need
>  translation—like this:
> 
>  printf (gettext ("Processing file `%s'..."));
> 
> Ie, "gettext()" or its abbreviation "_()" should only be used for strings 
> that might need translation.  Where translation is unnecessary, it should not 
> be used.
> 

Ok, thanks.  I should read standards.texi more often.
I will propose a patch to fix many of them.

Tristan.


___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


binutils 2.16.1a contains directory 2.16.1

2011-09-26 Thread Björn Stenberg
It would be nice if the filename matched the content.

It seems this is solved with a symlink on ftp.gnu.org for most other versions, 
but not 2.16.1.

Possibly the same issue applies to 2.15.

-- 
Björn

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils