Commit d9d7a26c by Eric Botcazou Committed by Eric Botcazou

lang.opt (feliminate-unused-debug-types): Delete.

	* gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
	* gcc-interface/misc.c (gnat_handle_option): Remove special handling
	code for -feliminate-unused-debug-types
	(gnat_post_options): Likewise.

From-SVN: r171886
parent 4cb12a90
2011-04-02 Eric Botcazou <ebotcazou@adacore.com> 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
* gcc-interface/misc.c (gnat_handle_option): Remove special handling
code for -feliminate-unused-debug-types
(gnat_post_options): Likewise.
2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
distinct copy. distinct copy.
......
; Options for the Ada front end. ; Options for the Ada front end.
; Copyright (C) 2003, 2007, 2008, 2010 Free Software Foundation, Inc. ; Copyright (C) 2003, 2007, 2008, 2010, 2011 Free Software Foundation, Inc.
; ;
; This file is part of GCC. ; This file is part of GCC.
; ;
...@@ -94,12 +94,6 @@ nostdlib ...@@ -94,12 +94,6 @@ nostdlib
Ada Ada
; Don't look for object files ; Don't look for object files
feliminate-unused-debug-types
Ada
; Effect documented for C - intercepted for Ada to force the associated flag
; not to be set by default, as it currently eliminates unreferenced parallel
; types we need for encoding descriptions to the debugger.
fRTS= fRTS=
Ada Joined RejectNegative Ada Joined RejectNegative
; Selects the runtime ; Selects the runtime
......
...@@ -125,14 +125,6 @@ gnat_handle_option (size_t scode, const char *arg ATTRIBUTE_UNUSED, int value, ...@@ -125,14 +125,6 @@ gnat_handle_option (size_t scode, const char *arg ATTRIBUTE_UNUSED, int value,
/* These are used in the GCC Makefile. */ /* These are used in the GCC Makefile. */
break; break;
case OPT_feliminate_unused_debug_types:
/* We arrange for post_option to be able to only set the corresponding
flag to 1 when explicitly requested by the user. We expect the
default flag value to be either 0 or positive, and expose a positive
-f as a negative value to post_option. */
flag_eliminate_unused_debug_types = -value;
break;
case OPT_gant: case OPT_gant:
warning (0, "%<-gnat%> misspelled as %<-gant%>"); warning (0, "%<-gnat%> misspelled as %<-gant%>");
...@@ -232,8 +224,7 @@ enum stack_check_type flag_stack_check = NO_STACK_CHECK; ...@@ -232,8 +224,7 @@ enum stack_check_type flag_stack_check = NO_STACK_CHECK;
static bool static bool
gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED) gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED)
{ {
/* Excess precision other than "fast" requires front-end /* Excess precision other than "fast" requires front-end support. */
support. */
if (flag_excess_precision_cmdline == EXCESS_PRECISION_STANDARD if (flag_excess_precision_cmdline == EXCESS_PRECISION_STANDARD
&& TARGET_FLT_EVAL_METHOD_NON_DEFAULT) && TARGET_FLT_EVAL_METHOD_NON_DEFAULT)
sorry ("-fexcess-precision=standard for Ada"); sorry ("-fexcess-precision=standard for Ada");
...@@ -245,14 +236,6 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED) ...@@ -245,14 +236,6 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED)
/* No psABI change warnings for Ada. */ /* No psABI change warnings for Ada. */
warn_psabi = 0; warn_psabi = 0;
/* Force eliminate_unused_debug_types to 0 unless an explicit positive
-f has been passed. This forces the default to 0 for Ada, which might
differ from the common default. */
if (flag_eliminate_unused_debug_types < 0)
flag_eliminate_unused_debug_types = 1;
else
flag_eliminate_unused_debug_types = 0;
optimize = global_options.x_optimize; optimize = global_options.x_optimize;
optimize_size = global_options.x_optimize_size; optimize_size = global_options.x_optimize_size;
flag_compare_debug = global_options.x_flag_compare_debug; flag_compare_debug = global_options.x_flag_compare_debug;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment