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:
parent
3c91f126f4
commit
8330537b5b
@ -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.
|
||||
|
@ -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 ...
|
||||
|
8
gcc/testsuite/gcc.dg/pr60797.c
Normal file
8
gcc/testsuite/gcc.dg/pr60797.c
Normal 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;
|
||||
}
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user