diff options
author | YamaArashi <shadow962@live.com> | 2016-04-26 23:09:38 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-26 23:09:38 -0700 |
commit | 9e5f6a79618cb7df0b7d3816472b530c3b7d9c1a (patch) | |
tree | d4129be768dc1d47e6f69eec0839f691f605ff9d | |
parent | 3dbf26f9f0cf35271dd29652d6430ca962c7166b (diff) |
remove dead code
-rwxr-xr-x | gcc/flags.h | 5 | ||||
-rwxr-xr-x | gcc/toplev.c | 60 | ||||
-rwxr-xr-x | gcc/toplev.h | 5 | ||||
-rwxr-xr-x | gcc/varasm.c | 49 |
4 files changed, 0 insertions, 119 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index 874f626..737efb5 100755 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -277,11 +277,6 @@ extern int flag_syntax_only; extern int flag_gen_aux_info; -/* Nonzero means make the text shared if supported. */ - -extern int flag_shared_data; - - /* flag_on_branch_count_reg means try to replace add-1,compare,branch tupple by a cheaper branch, on a count register. */ extern int flag_branch_on_count_reg; diff --git a/gcc/toplev.c b/gcc/toplev.c index cd26cc9..adb18fb 100755 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -472,10 +472,6 @@ int flag_gen_offset_info = 0; static char *offset_info_file_name; /* END CYGNUS LOCAL */ -/* Nonzero means make the text shared if supported. */ - -int flag_shared_data; - /* Nonzero means generate extra code for exception handling and enable exception handling. */ @@ -651,8 +647,6 @@ lang_independent_options f_options[] = "Emit static const variables even if they are not used" }, {"syntax-only", &flag_syntax_only, 1, "Check for syntax errors, then stop" }, - {"shared-data", &flag_shared_data, 1, - "Mark data as shared rather than private" }, {"caller-saves", &flag_caller_saves, 1, "Enable saving registers around function calls" }, {"pcc-struct-return", &flag_pcc_struct_return, 1, @@ -1810,60 +1804,6 @@ strip_off_ending(char *name, int len) } } -/* Output a quoted string. */ - -void -output_quoted_string(FILE *asm_file, char *string) -{ -#ifdef OUTPUT_QUOTED_STRING - OUTPUT_QUOTED_STRING(asm_file, string); -#else - char c; - - putc('\"', asm_file); - while ((c = *string++) != 0) - { - if (c == '\"' || c == '\\') - putc('\\', asm_file); - putc(c, asm_file); - } - putc('\"', asm_file); -#endif -} - -/* Output a file name in the form wanted by System V. */ - -void -output_file_directive(FILE *asm_file, char *input_name) -{ - int len = strlen(input_name); - char *na = input_name + len; - - /* NA gets INPUT_NAME sans directory names. */ - while (na > input_name) - { - if (na[-1] == '/') - break; -#ifdef DIR_SEPARATOR - if (na[-1] == DIR_SEPARATOR) - break; -#endif - na--; - } - -#ifdef ASM_OUTPUT_MAIN_SOURCE_FILENAME - ASM_OUTPUT_MAIN_SOURCE_FILENAME(asm_file, na); -#else -#ifdef ASM_OUTPUT_SOURCE_FILENAME - ASM_OUTPUT_SOURCE_FILENAME(asm_file, na); -#else - fprintf(asm_file, "\t.file\t"); - output_quoted_string(asm_file, na); - fputc('\n', asm_file); -#endif -#endif -} - /* Routine to open a dump file. */ static void open_dump_file(char *suffix, char *function_name) diff --git a/gcc/toplev.h b/gcc/toplev.h index ba5602a..62b0d5f 100755 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -76,11 +76,6 @@ extern int push_float_handler (jmp_buf, jmp_buf); extern void pop_float_handler (int, jmp_buf); #endif -#ifdef BUFSIZ -extern void output_quoted_string (FILE *, char *); -extern void output_file_directive (FILE *, char *); -#endif - extern void fancy_abort (void) ATTRIBUTE_NORETURN; extern void do_abort (void) ATTRIBUTE_NORETURN; diff --git a/gcc/varasm.c b/gcc/varasm.c index c62cae0..3f51b3a 100755 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -196,15 +196,6 @@ data_section () { if (in_section != in_data) { - if (flag_shared_data) - { -#ifdef SHARED_SECTION_ASM_OP - fprintf (asm_out_file, "%s\n", SHARED_SECTION_ASM_OP); -#else - fprintf (asm_out_file, "%s\n", DATA_SECTION_ASM_OP); -#endif - } - else fprintf (asm_out_file, "%s\n", DATA_SECTION_ASM_OP); in_section = in_data; @@ -315,11 +306,6 @@ bss_section () { if (in_section != in_bss) { -#ifdef SHARED_BSS_SECTION_ASM_OP - if (flag_shared_data) - fprintf (asm_out_file, "%s\n", SHARED_BSS_SECTION_ASM_OP); - else -#endif fprintf (asm_out_file, "%s\n", BSS_SECTION_ASM_OP); in_section = in_bss; @@ -1087,30 +1073,6 @@ asm_emit_uninitialised (decl, name, size, rounded) destination = asm_dest_common; #endif - if (flag_shared_data) - { - switch (destination) - { -#ifdef ASM_OUTPUT_SHARED_BSS - case asm_dest_bss: - ASM_OUTPUT_SHARED_BSS (asm_out_file, decl, name, size, rounded); - return; -#endif -#ifdef ASM_OUTPUT_SHARED_COMMON - case asm_dest_common: - ASM_OUTPUT_SHARED_COMMON (asm_out_file, name, size, rounded); - return; -#endif -#ifdef ASM_OUTPUT_SHARED_LOCAL - case asm_dest_local: - ASM_OUTPUT_SHARED_LOCAL (asm_out_file, name, size, rounded); - return; -#endif - default: - break; - } - } - if (flag_data_sections) { switch (destination) @@ -1351,12 +1313,6 @@ assemble_variable (decl, top_level, at_end, dont_output_data) while we are doing our final traversal of the chain of file-scope declarations. */ -#if 0 /* ??? We should either delete this or add a comment describing what - it was intended to do and why we shouldn't delete it. */ - if (flag_shared_data) - data_section (); -#endif - asm_emit_uninitialised (decl, name, size, rounded); goto finish; @@ -1590,11 +1546,6 @@ assemble_static_space (size) char *namestring; rtx x; -#if 0 - if (flag_shared_data) - data_section (); -#endif - ASM_GENERATE_INTERNAL_LABEL (name, "LF", const_labelno); ++const_labelno; |