aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@redhat.com>2001-07-31 15:20:05 -0700
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2001-07-31 15:20:05 -0700
commit9d7d836262a3137e04bf23c6073717be26bcc667 (patch)
treec1431312dd508cf15c33d179d6327cc406656347 /gcc/java/class.c
parent6d0f55e6bc86ecc0a8f227ade76ec0d224e6e1ef (diff)
downloadgcc-9d7d836262a3137e04bf23c6073717be26bcc667.zip
gcc-9d7d836262a3137e04bf23c6073717be26bcc667.tar.gz
gcc-9d7d836262a3137e04bf23c6073717be26bcc667.tar.bz2
[multiple changes]
2001-07-18 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (create_interface): Avoid cyclic inheritance report when syntax error encountered during class definition. Fixes PR java/2956 2001-07-17 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.h (INTERFACE_INNER_MODIFIERS): Disallow `private.' * parse.y (check_class_interface_creation): Allow `private' if the enclosing is not an interface. (create_interface): Interface tagged public if the enclosing context is an interface. (create_class): Class tagged public if the enclosing context is an interface. Fixes PR java/2959 2001-07-17 Alexandre Petit-Bianco <apbianco@redhat.com> * class.c (push_class): Set DECL_SIZE to `integer_zero_node.' Fixes PR java/2665 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (java_complete_lsh): Set CAN_COMPLETE_NORMALLY and unset TREE_CONSTANT_OVERFLOW of CASE_EXPR value. Fixes PR java/3602 (http://gcc.gnu.org/ml/gcc-patches/2001-07/msg02297.html ) From-SVN: r44524
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 45bb6df..3b56f53 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -331,6 +331,10 @@ push_class (class_type, class_name)
input_filename = IDENTIFIER_POINTER (source_name);
lineno = 0;
decl = build_decl (TYPE_DECL, class_name, class_type);
+
+ /* dbxout needs a DECL_SIZE if in gstabs mode */
+ DECL_SIZE (decl) = integer_zero_node;
+
input_filename = save_input_filename;
lineno = save_lineno;
signature = identifier_subst (class_name, "L", '.', '/', ";");