Mailinglist Archive: opensuse-bugs (7530 mails)
| < Previous | Next > |
[Bug 419260] New: gcc43 miscompiles ruby SVN
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Thu, 21 Aug 2008 10:06:49 -0600 (MDT)
- Message-id: <bug-419260-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=419260
Summary: gcc43 miscompiles ruby SVN
Product: openSUSE 11.0
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Development
AssignedTo: rguenther@xxxxxxxxxx
ReportedBy: matz@xxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: Development
% cat circtest.c
struct seq_elem {
struct seq_elem *next;
struct seq_elem *prev;
};
static struct seq_elem b;
void
__attribute__((noinline))
init (struct seq_elem *a)
{
b.prev = a;
b.next = 0;
a->prev = 0;
a->next = &b;
}
extern void abort (void);
int main(void)
{
struct seq_elem a;
init (&a);
struct seq_elem *ttt = a.next;
ttt->prev->next = ttt->next;
if (ttt == a.next)
abort ();
return 0;
}
% gcc -O2 circtest && ./a.out
Aborted
% gcc -O2 -fno-strict-aliasing && ./a.out
%
aliasing info is wrong, SMT doesn't mayalias some SFTs. Seems to be
a local patch. STABLE still has it.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Summary: gcc43 miscompiles ruby SVN
Product: openSUSE 11.0
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Development
AssignedTo: rguenther@xxxxxxxxxx
ReportedBy: matz@xxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: Development
% cat circtest.c
struct seq_elem {
struct seq_elem *next;
struct seq_elem *prev;
};
static struct seq_elem b;
void
__attribute__((noinline))
init (struct seq_elem *a)
{
b.prev = a;
b.next = 0;
a->prev = 0;
a->next = &b;
}
extern void abort (void);
int main(void)
{
struct seq_elem a;
init (&a);
struct seq_elem *ttt = a.next;
ttt->prev->next = ttt->next;
if (ttt == a.next)
abort ();
return 0;
}
% gcc -O2 circtest && ./a.out
Aborted
% gcc -O2 -fno-strict-aliasing && ./a.out
%
aliasing info is wrong, SMT doesn't mayalias some SFTs. Seems to be
a local patch. STABLE still has it.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |