This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] [Bug optimization/15230] Disable -fweb for GNAT


Hi there,

at <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15230> you'll find
a lengthy description that current compilers cannot bootstrap gnat,
at least on i686-linux-gnu. It appears that enabling "-fweb" by the
following patch

  2004-04-17  Paolo Bonzini  <bonzini@gnu.org>

	* opts.c (decode_options): Do not enable flag_rename_registers
	and flag_web at -O3.
	* toplev.c (flag_rename_registers): Initialize
	flag_rename_registers and flag_web to
	AUTODETECT_FLAG_VAR_TRACKING.
	(default_debug_hooks): New global.
	(process_options): Initialize default_debug_hooks.  Warn if
	-fvar-tracking specified but not supported by the current
	debug format.  Do not run var tracking at -O0 or if not
	supported by the current debug format, even if
	-fvar-tracking was given.  If -fno-rename-registers
	is not specified, always run register renaming if var
	tracking is supported by the default debugging information
	format for the target, and we are at -O1 or higher; similarly
	for -fweb, but only at -O2 or higher.
	* doc/invoke.texi (Optimize Options): Document this.

broke this. First I thought to disable -fweb again, but that pessimized
performance of other languages quite a lot, so I just stuck it into
gcc's lang-specs for Ada.

Is the following patch OK to apply?

TIA, cheers.

l8er
manfred


gcc/ada/ChangeLog:

2004-05-12  Manfred Hollstein  <mh@suse.com>

	* lang-specs.h: Add -fno-web to specs.

diff -rup -x CVS -x RCS -x '*.o' -x '*.info*' -x '*.html*' -x '*.elc' -x '*.dvi' -x '*.orig' -x '*~' -x version.el gcc-20040510.orig/gcc/ada/lang-specs.h gcc-20040510/gcc/ada/lang-specs.h
--- gcc-20040510.orig/gcc/ada/lang-specs.h	2004-05-03 16:04:17.000000000 +0200
+++ gcc-20040510/gcc/ada/lang-specs.h	2004-05-11 21:17:52.000000000 +0200
@@ -37,6 +37,7 @@
  gnat1 %{I*} %{k8:-gnatk8} %{w:-gnatws} %1 %{!Q:-quiet} %{nostdinc*}\
     %{nostdlib*}\
     -dumpbase %{.adb:%b.adb}%{.ads:%b.ads}%{!.adb:%{!.ads:%b.ada}}\
+    -fno-web\
     %{g*} %{O*} %{W*} %{w} %{p} %{pg:-p} %{m*} %{a} %{f*} %{d*}\
     %{!S:%{o*:%w%*-gnatO}} \
     %i %{S:%W{o*}%{!o*:-o %b.s}} \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]