]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-opts.c (c_common_post_options): For -freestanding...
authorRichard Biener <rguenther@suse.de>
Tue, 6 May 2014 10:48:55 +0000 (10:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 6 May 2014 10:48:55 +0000 (10:48 +0000)
2014-05-06  Richard Biener  <rguenther@suse.de>

c-family/
* c-opts.c (c_common_post_options): For -freestanding,
-fno-hosted and -fno-builtin disable pattern recognition
if not enabled explicitely.

From-SVN: r210102

gcc/c-family/ChangeLog
gcc/c-family/c-opts.c

index 78a939a54ff3d182dcc0ad70b4c1058dc5fc3073..865a2d65b0856a0cc79a1514b908a155a4366e9d 100644 (file)
@@ -1,3 +1,9 @@
+2014-05-06  Richard Biener  <rguenther@suse.de>
+
+       * c-opts.c (c_common_post_options): For -freestanding,
+       -fno-hosted and -fno-builtin disable pattern recognition
+       if not enabled explicitely.
+
 2014-04-10  Jakub Jelinek  <jakub@redhat.com>
 
        Backport from mainline
index 8077b788018c71948ebdd72c25cefa2e22358ac7..5ee7024efa9f853fbdb3ef82b0757a13404cb273 100644 (file)
@@ -840,6 +840,12 @@ c_common_post_options (const char **pfilename)
   if (flag_objc_exceptions && !flag_objc_sjlj_exceptions)
     flag_exceptions = 1;
 
+  /* If -ffreestanding, -fno-hosted or -fno-builtin then disable
+     pattern recognition.  */
+  if (!global_options_set.x_flag_tree_loop_distribute_patterns
+      && flag_no_builtin)
+    flag_tree_loop_distribute_patterns = 0;
+
   /* -Woverlength-strings is off by default, but is enabled by -Wpedantic.
      It is never enabled in C++, as the minimum limit is not normative
      in that standard.  */