summaryrefslogtreecommitdiffstats
path: root/gcc/java/jcf-write.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-02 10:16:56 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-02 10:16:56 +0000
commit14735ef6673f8d57883e00ad81634fb34e1425be (patch)
tree63d9e99b4ef5b204e1fd4363b0464523ddd75abc /gcc/java/jcf-write.c
parentaccd35550b19ae657d2b3ac12ea0716a9646fea8 (diff)
downloadppe42-gcc-14735ef6673f8d57883e00ad81634fb34e1425be.tar.gz
ppe42-gcc-14735ef6673f8d57883e00ad81634fb34e1425be.zip
* jcf-write.c (localvar_alloc): Only emit entry for LocalVariableTable if debug_info_level > DINFO_LEVEL_TERSE. (generate_bytecode_insns): Only call put_linenumber if debug_info_level > DINFO_LEVEL_NONE. * jvspec.c (lang_specific_driver): If no -O* or -g* option is specified, add -g1 (for compatibility wih javac). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24963 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-write.c')
-rw-r--r--gcc/java/jcf-write.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c
index 74a54b60c64..4e43b75d45b 100644
--- a/gcc/java/jcf-write.c
+++ b/gcc/java/jcf-write.c
@@ -29,6 +29,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "obstack.h"
#undef AND
#include "rtl.h"
+#include "flags.h"
#include "java-opcodes.h"
#include "parse.h" /* for BLOCK_EXPR_BODY */
#include "buffer.h"
@@ -525,7 +526,8 @@ localvar_alloc (decl, state)
info->decl = decl;
info->start_label = start_label;
- if (DECL_NAME (decl) != NULL_TREE)
+ if (debug_info_level > DINFO_LEVEL_TERSE
+ && DECL_NAME (decl) != NULL_TREE)
{
/* Generate debugging info. */
info->next = NULL;
@@ -1329,7 +1331,8 @@ generate_bytecode_insns (exp, target, state)
break;
input_filename = EXPR_WFL_FILENAME (exp);
lineno = EXPR_WFL_LINENO (exp);
- if (EXPR_WFL_EMIT_LINE_NOTE (exp) && lineno > 0)
+ if (EXPR_WFL_EMIT_LINE_NOTE (exp) && lineno > 0
+ && debug_info_level > DINFO_LEVEL_NONE)
put_linenumber (lineno, state);
generate_bytecode_insns (body, target, state);
input_filename = saved_input_filename;
OpenPOWER on IntegriCloud