Bug 21475 - [4.0/4.1 regression] ICE with german locale in "is used uninitialized" warning
Summary: [4.0/4.1 regression] ICE with german locale in "is used uninitialized" warning
Status: RESOLVED DUPLICATE of bug 21364
Alias: None
Product: gcc
Classification: Unclassified
Component: translation (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.1
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic, ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-05-09 18:32 UTC by hanno
Modified: 2005-06-08 13:22 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-06-08 13:18:42


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hanno 2005-05-09 18:32:31 UTC
If I try to compile the kernel, it fails at xfs with the following error: 
 
  CC      fs/xfs/xfs_ialloc_btree.o 
fs/xfs/xfs_ialloc_btree.c: In Funktion »xfs_inobt_insrec«: 
 
fs/xfs/xfs_ialloc_btree.c:557: interner Compiler-Fehler: Speicherzugriffsfehler 
Bitte senden Sie einen vollständigen Fehlerbericht auf Englisch ein; 
bearbeiten Sie die Quellen zunächst mit einem Präprozessor, wenn es 
dienlich ist. 
Fehler in der deutschen Übersetzung sind an de@li.org zu melden. 
 
Strange thing: If I set LC_ALL to "C", it compiles fine. Only fails if LC_ALL 
is set to de_DE. 
Kernel is 2.6.12-rc3-mm3, with rc3 I get the same error. 
Distribution is Gentoo Linux, same error with 4.0.0 and the cvs-branch-update 
that came in today.
Comment 1 Andrew Pinski 2005-05-09 21:39:55 UTC
Could you also send an email to de@li.org since this is a bug in the translation?
Comment 2 Volker Reichelt 2005-06-08 13:18:41 UTC
Confirmed.

The problem can be demonstrated with the following code snippet:

===================
int foo()
{
    int i;
    return i;
}
===================

Compiling the above with "-O -Wall" and LC_ALL=C yields the warning

  bug.c: In function 'foo':
  bug.c:4: warning: 'i' is used uninitialized in this function

With LC_ALL=de_DE I get an ICE.
The following lines in the de.po file look suspicious:

  #: tree-ssa.c:1379
  msgid "%H%qD is used uninitialized in this function"
  msgstr "%J%qD wird in dieser Funktion uninitialisiert verwendet"

Looks like we want "%H%qD" instead of "%J%qD" in the translation.
This affects the 4.0 branch and mainline.
Comment 3 Volker Reichelt 2005-06-08 13:22:04 UTC
It's a dupe.


*** This bug has been marked as a duplicate of 21364 ***
Comment 4 Andrew Pinski 2005-06-08 13:22:22 UTC

*** This bug has been marked as a duplicate of 21364 ***

*** This bug has been marked as a duplicate of 21364 ***