Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 405410 Details for
Bug 552620
GCC 4.8.4 on amd64 seems to generate wrong code (minimum test case available)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
C snippet that reproduces the problem
test.c (text/x-csrc), 418 bytes, created by
Ole Christensen
on 2015-06-20 12:18:51 UTC
(
hide
)
Description:
C snippet that reproduces the problem
Filename:
MIME Type:
Creator:
Ole Christensen
Created:
2015-06-20 12:18:51 UTC
Size:
418 bytes
patch
obsolete
>int g = 0; >int * volatile gp = &g; > >extern int write (int, const void *, unsigned count); > >void >func (void) >{ > int *lp = &g; > > *lp = 0; > // uncomment this to make the program run Ok > //printf ("func: %d\n", *lp); > > *gp = 1; >} > >int >main (void) >{ > unsigned long *p = (unsigned long *) &g; > > func (); > > if (((int) *p) == 1) > write (1, "Ok\n", 3); > else > write (1, "ERROR\n", 6); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 552620
: 405410 |
405412