public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/29797]  New: Miscompiles bit test / set in OpenOffice
@ 2006-11-10 12:59 rguenth at gcc dot gnu dot org
  2006-11-10 13:01 ` [Bug target/29797] " rguenth at gcc dot gnu dot org
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-11-10 12:59 UTC (permalink / raw)
  To: gcc-bugs

extern "C" void abort(void);
unsigned bar(void) { return 32768;}
void foobar (unsigned u) { if (u != (32768 | 65536)) abort (); }
const char *name (void) { return "QPopupMenu"; }
int main()
{
  unsigned nStyle = bar ();
  const char *pClassName = name ();
  if (__builtin_strcmp ("QPopupMenu", pClassName) == 0)
   {
    bool is_enabled = bool (nStyle & 1);
    if (nStyle & 32768)
      nStyle |= 65536;
    foobar(nStyle);
   }
  return 0;
}

is miscompiled at -O1 and -O2 on ppc32 (ppc64 is ok).


-- 
           Summary: Miscompiles bit test / set in OpenOffice
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: blocker
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org
GCC target triplet: powerpc32-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29797


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2006-12-01  1:07 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-10 12:59 [Bug target/29797] New: Miscompiles bit test / set in OpenOffice rguenth at gcc dot gnu dot org
2006-11-10 13:01 ` [Bug target/29797] " rguenth at gcc dot gnu dot org
2006-11-10 13:11 ` rguenth at gcc dot gnu dot org
2006-11-10 13:28 ` [Bug rtl-optimization/29797] " rguenth at gcc dot gnu dot org
2006-11-10 14:35 ` rguenth at gcc dot gnu dot org
2006-11-10 15:01 ` ebotcazou at gcc dot gnu dot org
2006-11-10 15:45 ` rguenth at gcc dot gnu dot org
2006-11-10 15:47 ` matz at gcc dot gnu dot org
2006-11-10 15:52 ` matz at gcc dot gnu dot org
2006-11-10 16:27 ` schwab at suse dot de
2006-11-10 16:48 ` matz at gcc dot gnu dot org
2006-11-10 17:28 ` pinskia at gcc dot gnu dot org
2006-11-10 17:31 ` [Bug rtl-optimization/29797] [4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
2006-11-10 19:42 ` roger at eyesopen dot com
2006-11-11 12:17 ` rguenth at gcc dot gnu dot org
2006-11-11 14:30 ` rguenth at gcc dot gnu dot org
2006-11-11 20:11 ` pinskia at gcc dot gnu dot org
2006-11-12  8:10 ` pinskia at gcc dot gnu dot org
2006-11-12 21:35 ` mmitchel at gcc dot gnu dot org
2006-11-13  0:42 ` sayle at gcc dot gnu dot org
2006-11-15  7:41 ` [Bug rtl-optimization/29797] [4.1/4.2 " rguenth at gcc dot gnu dot org
2006-11-15  8:12 ` rguenth at gcc dot gnu dot org
2006-11-15  8:38 ` rguenth at gcc dot gnu dot org
2006-11-15  8:38 ` rguenth at gcc dot gnu dot org
2006-12-01  1:07 ` chaoyingfu at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).