aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorCatherine Moore <clm@cygnus.com>1998-09-30 08:26:10 +0000
committerCatherine Moore <clm@gcc.gnu.org>1998-09-30 04:26:10 -0400
commit257441dbb0914814e94974604bfdef4faf795184 (patch)
treefcaba56c74f03d7c52a05005527ea9fd92daea1c /gcc
parent789eb4f550993dd5bad8e2189b829777768e411f (diff)
downloadgcc-257441dbb0914814e94974604bfdef4faf795184.zip
gcc-257441dbb0914814e94974604bfdef4faf795184.tar.gz
gcc-257441dbb0914814e94974604bfdef4faf795184.tar.bz2
fix bad patch.
From-SVN: r22665
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/toplev.c15
2 files changed, 11 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 371dfa4..1ba3f40 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Wed Sep 30 10:13:39 1998 Catherine Moore <clm@cygnus.com>
+
+ * toplev.c: Fix last patch.
+
Tue Sep 29 20:03:18 1998 Jim Wilson <wilson@cygnus.com>
* loop.c (get_condition): Fix typo in May 9 change.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 281e3e1..e575bb4 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -892,6 +892,8 @@ lang_independent_options f_options[] =
"Do not generate .size directives" },
{"function-sections", &flag_function_sections, 1,
"place each function into its own section" },
+ {"data-sections", &flag_data_sections, 1,
+ "place data items into their own section" },
{"verbose-asm", &flag_verbose_asm, 1,
"Add extra commentry to assembler output"},
{"gnu-linker", &flag_gnu_linker, 1,
@@ -936,8 +938,6 @@ documented_lang_options[] =
enabled by default. */
{ "-ansi", "Compile just for ANSI C" },
- {"data-sections", &flag_data_sections, 1,
- "place data items into their own section" },
{ "-fallow-single-precision",
"Do not promote floats to double if using -traditional" },
@@ -2707,6 +2707,11 @@ compile_file (name)
warning ("-ffunction-sections not supported for this target.");
flag_function_sections = 0;
}
+ if (flag_data_sections)
+ {
+ warning ("-fdata-sections not supported for this target.");
+ flag_data_sections = 0;
+ }
#endif
if (flag_function_sections
@@ -2815,12 +2820,6 @@ compile_file (name)
for (i = 0, decl = globals; i < len; i++, decl = TREE_CHAIN (decl))
vec[len - i - 1] = decl;
- if (flag_data_sections)
- {
- warning ("-fdata-sections not supported for this target.");
- flag_data_sections = 0;
- }
-
for (i = 0; i < len; i++)
{