aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2012-03-26 20:23:36 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2012-03-26 20:23:36 +0000
commit61f7e33daa9d7c62a8a45e97ac80556ed0f87564 (patch)
tree036cfefb127b04e81472afe9fe82a897921032e0 /gcc/varasm.c
parent6710b3a49c7a9603737f1d0373070b122a752839 (diff)
* varasm.c (assemble_external): #if 0 out the new assert from the
previous commit, it breaks the Java and Go front ends. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@185825 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 26f22ddcb1c..0c04de47974 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -2170,6 +2170,10 @@ assemble_external (tree decl ATTRIBUTE_UNUSED)
If it's not, we should not be calling this function. */
gcc_assert (asm_out_file);
+ /* In a perfect world, the following condition would be true.
+ Sadly, the Java and Go front ends emit assembly *from the front end*,
+ bypassing the call graph. See PR52739. Fix before GCC 4.8. */
+#if 0
/* This function should only be called if we are expanding, or have
expanded, to RTL.
Ideally, only final.c would be calling this function, but it is
@@ -2177,6 +2181,7 @@ assemble_external (tree decl ATTRIBUTE_UNUSED)
for further discussion. */
gcc_assert (cgraph_state == CGRAPH_STATE_EXPANSION
|| cgraph_state == CGRAPH_STATE_FINISHED);
+#endif
if (!DECL_P (decl) || !DECL_EXTERNAL (decl) || !TREE_PUBLIC (decl))
return;