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
This commit is contained in:
Richard Biener 2014-04-11 11:45:44 +00:00 committed by Richard Biener
parent 3c91f126f4
commit 8330537b5b
4 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,8 @@
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 ...

View File

@ -0,0 +1,8 @@
/* { dg-do compile } */
/* { dg-skip-if "" { alias } } */
extern int foo __attribute__((alias("bar"))); /* { dg-error "supported" } */
int main()
{
return 0;
}

View File

@ -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