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]

[PR/17973] part 2


This patch fixes the enabling of -fdump-rtl-gcse2 when only -fdump-rtl-gcse is specified. It has always been latent for tree dumps, but the new long options for RTL dumps exposed this bug.

Ok for mainline?

Paolo

diff -u -r1.34 tree-dump.c
--- tree-dump.c 17 Sep 2004 21:54:37 -0000      1.34
+++ tree-dump.c 19 Sep 2004 21:31:28 -0000
@@ -929,7 +929,8 @@
   int flags;

   option_value = skip_leading_substring (arg, dfi->swtch);
-  if (!option_value)
+  if (!option_value
+      || (*option_value != '\0' && *option_value != '-'))
     return 0;

ptr = option_value;


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