[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c
Chris Lattner
lattner at cs.uiuc.edu
Wed Apr 21 13:58:02 PDT 2004
Changes in directory llvm-gcc/gcc:
llvm-expand.c updated: 1.32 -> 1.33
---
Log message:
Give a *MUCH* nicer error message when we run across a nested function
---
Diffs of the changes: (+6 -0)
Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.32 llvm-gcc/gcc/llvm-expand.c:1.33
--- llvm-gcc/gcc/llvm-expand.c:1.32 Mon Mar 29 15:08:39 2004
+++ llvm-gcc/gcc/llvm-expand.c Wed Apr 21 13:57:57 2004
@@ -2553,9 +2553,15 @@
}
} else if (TREE_CODE (decl) == LABEL_DECL
&& C_DECLARED_LABEL_FLAG (decl)) {
+ error("nested functions are not supported!");
+ exit(1);
LLVM_TODO_TREE(decl);
declare_nonlocal_label (decl);
} else if (lang_expand_decl_stmt) {
+ if (TREE_CODE(decl) == FUNCTION_DECL) {
+ error("nested functions are not supported!");
+ exit(1);
+ }
LLVM_TODO_TREE(t);
(*lang_expand_decl_stmt) (t);
}
More information about the llvm-commits
mailing list