aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gcc.gnu.org>2005-10-04 06:39:17 -0700
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-10-04 06:39:17 -0700
commit11e3f4b6f733c96148bea5747f793f020f4aeadb (patch)
tree106e20fbf3e5761d186df10f3b57e6e715d3c4b7 /gcc/testsuite/gcc.dg
parent46fbb29c2ee1a905f9cad8b5004ff79fcf82bfeb (diff)
downloadgcc-11e3f4b6f733c96148bea5747f793f020f4aeadb.zip
gcc-11e3f4b6f733c96148bea5747f793f020f4aeadb.tar.gz
gcc-11e3f4b6f733c96148bea5747f793f020f4aeadb.tar.bz2
re PR middle-end/23125 (OpenBSD's zic.c causes g++ but not gcc to segfault)
2005-10-04 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/23125 * decl.c (make_rtl_for_nonlocal_decl): Use set_user_assembler_name instead of change_decl_assembler_name. 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/23125 * c-decl.c (finish_decl): Use set_user_assembler_name even for register variables. * varasm.c (make_decl_rtl): If a register variable does not have a set user assmbler name, error out. Decode the asmspec is now name+1 bypassing '*'. 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/23125 * gcc.dg/register-var-3.c: New test. From-SVN: r104942
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/register-var-3.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/register-var-3.c b/gcc/testsuite/gcc.dg/register-var-3.c
new file mode 100644
index 0000000..dc659f5
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/register-var-3.c
@@ -0,0 +1,9 @@
+/* { dg-options "" } */
+/* { dg-do compile } */
+register int r0; /* { dg-error "register name not specified" } */
+register int bp; /* { dg-error "register name not specified" } */
+register int sp; /* { dg-error "register name not specified" } */
+register int r30; /* { dg-error "register name not specified" } */
+register int toc; /* { dg-error "register name not specified" } */
+register int d0; /* { dg-error "register name not specified" } */
+register int a0; /* { dg-error "register name not specified" } */