Commit 8330537b by Richard Biener Committed by Richard Biener

re PR middle-end/60797 (gcc hangs with error: only weak aliases are supported in…

re PR middle-end/60797 (gcc hangs with error: only weak aliases are supported in this configuration)

2014-04-11  Richard Biener  <rguenther@suse.de>

	PR middle-end/60797
	* varasm.c (assemble_alias): Avoid endless error reporting
	recursion by setting TREE_ASM_WRITTEN.

	* gcc.dg/pr60797.c: New testcase.

From-SVN: r209299
parent 3c91f126
2014-04-11 Richard Biener <rguenther@suse.de>
PR middle-end/60797
* varasm.c (assemble_alias): Avoid endless error reporting
recursion by setting TREE_ASM_WRITTEN.
2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.md: Add a splitter for NOT rtx.
......
2014-04-11 Richard Biener <rguenther@suse.de>
PR middle-end/60797
* gcc.dg/pr60797.c: New testcase.
2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gcc.target/s390/htm-nofloat-1.c: Rename to ...
......
/* { dg-do compile } */
/* { dg-skip-if "" { alias } } */
extern int foo __attribute__((alias("bar"))); /* { dg-error "supported" } */
int main()
{
return 0;
}
......@@ -5665,6 +5665,7 @@ assemble_alias (tree decl, tree target)
# if !defined(ASM_OUTPUT_WEAK_ALIAS) && !defined (ASM_WEAKEN_DECL)
error_at (DECL_SOURCE_LOCATION (decl),
"alias definitions not supported in this configuration");
TREE_ASM_WRITTEN (decl) = 1;
return;
# else
if (!DECL_WEAK (decl))
......@@ -5675,6 +5676,7 @@ assemble_alias (tree decl, tree target)
else
error_at (DECL_SOURCE_LOCATION (decl),
"only weak aliases are supported in this configuration");
TREE_ASM_WRITTEN (decl) = 1;
return;
}
# endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment