-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Backport GC4 new dump feature to GC3 #131
base: gcos4gnucobol-3.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2788,6 +2788,8 @@ cobc_def_dump_opts (const char *opt, const int on) | |
} else { | ||
cb_flag_dump = COB_DUMP_NONE; | ||
} | ||
if (cb_flag_dump) | ||
cb_flag_symbols = 1; | ||
return; | ||
} | ||
|
||
|
@@ -2823,6 +2825,8 @@ cobc_def_dump_opts (const char *opt, const int on) | |
} else { | ||
cb_flag_dump ^= dump_to_set; | ||
} | ||
if (cb_flag_dump) | ||
cb_flag_symbols = 1; | ||
cobc_free (p); | ||
} | ||
|
||
|
@@ -3256,6 +3260,7 @@ process_command_line (const int argc, char **argv) | |
cb_flag_c_line_directives = 1; | ||
cb_flag_c_labels = 1; | ||
#endif | ||
cb_flag_symbols = 1; | ||
#ifdef COB_DEBUG_FLAGS | ||
COBC_ADD_STR (cobc_cflags, " ", cobc_debug_flags, NULL); | ||
#endif | ||
|
@@ -3267,6 +3272,7 @@ process_command_line (const int argc, char **argv) | |
cb_flag_stack_extended = 1; | ||
cb_flag_stack_check = 1; | ||
cb_flag_memory_check = CB_MEMCHK_ALL; | ||
cb_flag_symbols = 1; | ||
cobc_wants_debug = 1; | ||
break; | ||
|
||
|
@@ -4198,6 +4204,9 @@ process_command_line (const int argc, char **argv) | |
cb_flag_trace = 1; | ||
cb_flag_source_location = 1; | ||
} | ||
if (cb_flag_trace) { | ||
cb_flag_symbols = 1; | ||
} | ||
|
||
/* If C debug, never strip output */ | ||
if (cb_source_debugging) { | ||
|
@@ -8937,6 +8946,8 @@ finish_setup_compiler_env (void) | |
|
||
if (getenv ("COBC_GEN_DUMP_COMMENTS")) { | ||
cb_wants_dump_comments = 1; | ||
/* Disable "new" symbol table if requesting dump comments */ | ||
cb_flag_symbols = 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please leave |
||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add
|| cb_flag_dump != COB_DUMP_NONE
here, then you can remove it fromcobc_def_dump_opts ()
completely