public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
@ 2011-01-06 14:44 zsojka at seznam dot cz
2011-01-06 16:02 ` [Bug tree-optimization/47190] " hubicka at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-06 14:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Summary: [4.5/4.6 Regression] ICE: in
function_and_variable_visibility, at ipa.c:934 with
static weakref variable
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
This might be a known problem, but bugzilla search didn't return any results
----- testcase.c -----
static int i __attribute__ ((weakref));
----------------------
Compiler output:
$ gcc testcase.c
testcase.c:1:1: internal compiler error: in function_and_variable_visibility,
at ipa.c:934
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
(gdb) bt
#0 fancy_abort (file=0x11b8518
"/usr/portage/distfiles/svn-src/gcc/trunk/gcc/ipa.c", line=934,
function=0x11b86e0 "function_and_variable_visibility") at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/diagnostic.c:892
#1 0x0000000000b1c477 in function_and_variable_visibility (whole_program=0
'\000')
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/ipa.c:933
#2 0x00000000007f1e56 in execute_one_pass (pass=0x163cd00) at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/passes.c:1553
#3 0x00000000007f258a in execute_ipa_pass_list (pass=0x163cd00)
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/passes.c:1920
#4 0x0000000000af9d81 in ipa_passes () at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/cgraphunit.c:1722
#5 cgraph_optimize () at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/cgraphunit.c:1794
#6 0x0000000000af9fda in cgraph_finalize_compilation_unit ()
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/cgraphunit.c:1042
#7 0x0000000000509d6c in c_write_global_declarations () at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/c-decl.c:9843
#8 0x00000000008db9e6 in compile_file (argc=12, argv=0x7fffffffdaf8)
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/toplev.c:591
#9 do_compile (argc=12, argv=0x7fffffffdaf8) at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/toplev.c:1874
#10 toplev_main (argc=12, argv=0x7fffffffdaf8) at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/toplev.c:1937
#11 0x00007ffff6586bbd in __libc_start_main () from /lib/libc.so.6
#12 0x00000000004f0955 in _start ()
Tested revisions:
r168535 - crash
4.5 r168062 - crash
4.4 r168062 - OK
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
@ 2011-01-06 16:02 ` hubicka at gcc dot gnu.org
2011-01-14 14:28 ` rguenth at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-06 16:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.01.06 15:50:01
CC| |hubicka at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-06 15:50:01 UTC ---
Hmm, this is ICE on invalid. Weakref should be coupled with alias attribute.
I guess finish function and variable attributes should output errors and drop
the attribute.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
2011-01-06 16:02 ` [Bug tree-optimization/47190] " hubicka at gcc dot gnu.org
@ 2011-01-14 14:28 ` rguenth at gcc dot gnu.org
2011-01-19 20:53 ` jakub at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-14 14:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.5.3
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
2011-01-06 16:02 ` [Bug tree-optimization/47190] " hubicka at gcc dot gnu.org
2011-01-14 14:28 ` rguenth at gcc dot gnu.org
@ 2011-01-19 20:53 ` jakub at gcc dot gnu.org
2011-01-22 16:24 ` hubicka at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-19 20:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
CC| |jakub at gcc dot gnu.org
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
` (2 preceding siblings ...)
2011-01-19 20:53 ` jakub at gcc dot gnu.org
@ 2011-01-22 16:24 ` hubicka at gcc dot gnu.org
2011-01-26 14:40 ` hubicka at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-22 16:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot |hubicka at gcc dot gnu.org
|gnu.org |
--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-22 15:52:07 UTC ---
Testing patch...
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
` (3 preceding siblings ...)
2011-01-22 16:24 ` hubicka at gcc dot gnu.org
@ 2011-01-26 14:40 ` hubicka at gcc dot gnu.org
2011-01-26 14:56 ` hjl.tools at gmail dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-26 14:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-26 14:03:58 UTC ---
Author: hubicka
Date: Wed Jan 26 14:03:54 2011
New Revision: 169288
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169288
Log:
PR tree-optimization/47190
* cgraphunit.c (process_common_attributes): New function.
(process_function_and_variable_attributes): Use it.
* gcc.dg/attr-weakref-3.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/attr-weakref-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/testsuite/ChangeLog
--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-26 14:19:55 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
` (4 preceding siblings ...)
2011-01-26 14:40 ` hubicka at gcc dot gnu.org
@ 2011-01-26 14:56 ` hjl.tools at gmail dot com
2011-01-26 15:10 ` [Bug tree-optimization/47190] [4.5 " hubicka at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-26 14:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-26 14:45:49 UTC ---
Any plan for backport? If not, we should reset target milestone.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
` (5 preceding siblings ...)
2011-01-26 14:56 ` hjl.tools at gmail dot com
@ 2011-01-26 15:10 ` hubicka at gcc dot gnu.org
2011-02-02 18:03 ` dnovillo at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-26 15:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.5/4.6 Regression] ICE: |[4.5 Regression] ICE: in
|in |function_and_variable_visib
|function_and_variable_visib |ility, at ipa.c:934 with
|ility, at ipa.c:934 with |static weakref variable
|static weakref variable |
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-26 14:55:55 UTC ---
I am surprised that this ICEs at 4.5, too, since I was under impression that
the sanity check was introduced in 4.6 timeframe.
Anyway, backporting is easy, so I will commit it to 4.5 branch if it is
approved for so.
Removing 4.6 from regression list.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
` (6 preceding siblings ...)
2011-01-26 15:10 ` [Bug tree-optimization/47190] [4.5 " hubicka at gcc dot gnu.org
@ 2011-02-02 18:03 ` dnovillo at gcc dot gnu.org
2011-04-28 15:27 ` rguenth at gcc dot gnu.org
2012-07-02 9:49 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: dnovillo at gcc dot gnu.org @ 2011-02-02 18:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
--- Comment #7 from Diego Novillo <dnovillo at gcc dot gnu.org> 2011-02-02 17:52:55 UTC ---
Author: dnovillo
Date: Wed Feb 2 17:52:42 2011
New Revision: 169617
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169617
Log:
PR tree-optimization/47190
* cgraphunit.c (process_common_attributes): New function.
(process_function_and_variable_attributes): Use it.
* gcc.dg/attr-weakref-3.c: New testcase.
Added:
branches/google/integration/gcc/testsuite/gcc.dg/attr-weakref-3.c
Modified:
branches/google/integration/gcc/ChangeLog
branches/google/integration/gcc/cgraphunit.c
branches/google/integration/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
` (7 preceding siblings ...)
2011-02-02 18:03 ` dnovillo at gcc dot gnu.org
@ 2011-04-28 15:27 ` rguenth at gcc dot gnu.org
2012-07-02 9:49 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-28 15:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.3 |4.5.4
--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-28 14:51:38 UTC ---
GCC 4.5.3 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/47190] [4.5 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
` (8 preceding siblings ...)
2011-04-28 15:27 ` rguenth at gcc dot gnu.org
@ 2012-07-02 9:49 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 9:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Known to work| |4.6.0
Resolution| |FIXED
Target Milestone|4.5.4 |4.6.0
Known to fail|4.6.0 |
--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-02 09:48:52 UTC ---
Fixed on the 4.6 branch.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-07-02 9:49 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06 14:44 [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable zsojka at seznam dot cz
2011-01-06 16:02 ` [Bug tree-optimization/47190] " hubicka at gcc dot gnu.org
2011-01-14 14:28 ` rguenth at gcc dot gnu.org
2011-01-19 20:53 ` jakub at gcc dot gnu.org
2011-01-22 16:24 ` hubicka at gcc dot gnu.org
2011-01-26 14:40 ` hubicka at gcc dot gnu.org
2011-01-26 14:56 ` hjl.tools at gmail dot com
2011-01-26 15:10 ` [Bug tree-optimization/47190] [4.5 " hubicka at gcc dot gnu.org
2011-02-02 18:03 ` dnovillo at gcc dot gnu.org
2011-04-28 15:27 ` rguenth at gcc dot gnu.org
2012-07-02 9:49 ` rguenth 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).