Commit b15458be by Richard Biener Committed by Richard Biener

c-opts.c (c_common_post_options): For -freestanding...

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: r210100
parent 3d224d46
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-05-02 Marek Polacek <polacek@redhat.com> 2014-05-02 Marek Polacek <polacek@redhat.com>
* c.opt (Wsizeof-pointer-memaccess): Describe option. * c.opt (Wsizeof-pointer-memaccess): Describe option.
......
...@@ -851,6 +851,12 @@ c_common_post_options (const char **pfilename) ...@@ -851,6 +851,12 @@ c_common_post_options (const char **pfilename)
if (flag_objc_exceptions && !flag_objc_sjlj_exceptions) if (flag_objc_exceptions && !flag_objc_sjlj_exceptions)
flag_exceptions = 1; 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. /* -Woverlength-strings is off by default, but is enabled by -Wpedantic.
It is never enabled in C++, as the minimum limit is not normative It is never enabled in C++, as the minimum limit is not normative
in that standard. */ in that standard. */
......
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