public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/54666] New: when do lto opitimizing with attribute (weak,alias), it will produce wrong code
@ 2012-09-22 2:06 hcj20080469 at 163 dot com
2012-09-24 9:33 ` [Bug middle-end/54666] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hcj20080469 at 163 dot com @ 2012-09-22 2:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54666
Bug #: 54666
Summary: when do lto opitimizing with attribute (weak,alias),
it will produce wrong code
Classification: Unclassified
Product: gcc
Version: lto
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hcj20080469@163.com
gcc version is gcc4.7.1
host,build adn target is x86 i586
test case name: weak_0.c
extern void abort(void);
int foo =0 ;
extern int bar __attribute__ ((weak,alias ("foo")));
int main(void)
{
/* if( &foo != &bar)
{
abort();
}*/
if ( &foo != &bar)
abort();
return 0;
}
when compilating weaK_0.c with fllowing cmmand :
i586-target-linux-gnu-gcc weak_0.c -flto -o weak
run week
expected result: return 0;
actual result: abort();
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/54666] when do lto opitimizing with attribute (weak,alias), it will produce wrong code
2012-09-22 2:06 [Bug c/54666] New: when do lto opitimizing with attribute (weak,alias), it will produce wrong code hcj20080469 at 163 dot com
@ 2012-09-24 9:33 ` rguenth at gcc dot gnu.org
2021-09-22 7:01 ` pinskia at gcc dot gnu.org
2021-09-22 7:02 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-24 9:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54666
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Version|lto |4.7.2
Keywords| |lto, wrong-code
Last reconfirmed| |2012-09-24
Component|c |middle-end
CC| |hubicka at gcc dot gnu.org
Ever Confirmed|0 |1
Known to fail| |4.7.2, 4.8.0
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-24 09:33:02 UTC ---
Confirmed. 4.6.x segfaults for me.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/54666] when do lto opitimizing with attribute (weak,alias), it will produce wrong code
2012-09-22 2:06 [Bug c/54666] New: when do lto opitimizing with attribute (weak,alias), it will produce wrong code hcj20080469 at 163 dot com
2012-09-24 9:33 ` [Bug middle-end/54666] " rguenth at gcc dot gnu.org
@ 2021-09-22 7:01 ` pinskia at gcc dot gnu.org
2021-09-22 7:02 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-22 7:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54666
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This was fixed for GCC 5.1.0. The problem is the same as PR 32219 really.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/54666] when do lto opitimizing with attribute (weak,alias), it will produce wrong code
2012-09-22 2:06 [Bug c/54666] New: when do lto opitimizing with attribute (weak,alias), it will produce wrong code hcj20080469 at 163 dot com
2012-09-24 9:33 ` [Bug middle-end/54666] " rguenth at gcc dot gnu.org
2021-09-22 7:01 ` pinskia at gcc dot gnu.org
@ 2021-09-22 7:02 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-22 7:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54666
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> This was fixed for GCC 5.1.0. The problem is the same as PR 32219 really.
That is the patch which fixes PR 32219 fixed this one.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-09-22 7:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-22 2:06 [Bug c/54666] New: when do lto opitimizing with attribute (weak,alias), it will produce wrong code hcj20080469 at 163 dot com
2012-09-24 9:33 ` [Bug middle-end/54666] " rguenth at gcc dot gnu.org
2021-09-22 7:01 ` pinskia at gcc dot gnu.org
2021-09-22 7:02 ` pinskia at gcc dot gnu.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).