aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/c-family/c-opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/c-family/c-opts.c')
-rw-r--r--gcc-4.8/gcc/c-family/c-opts.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc-4.8/gcc/c-family/c-opts.c b/gcc-4.8/gcc/c-family/c-opts.c
index 4b6990a60..5fce7b653 100644
--- a/gcc-4.8/gcc/c-family/c-opts.c
+++ b/gcc-4.8/gcc/c-family/c-opts.c
@@ -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. */
@@ -1258,7 +1264,9 @@ c_finish_options (void)
{
size_t i;
- {
+ cb_file_change (parse_in,
+ linemap_add (line_table, LC_RENAME, 0,
+ _("<built-in>"), 0));
/* Make sure all of the builtins about to be declared have
BUILTINS_LOCATION has their source_location. */
source_location builtins_loc = BUILTINS_LOCATION;
@@ -1268,7 +1276,6 @@ c_finish_options (void)
c_cpp_builtins (parse_in);
cpp_stop_forcing_token_locations (parse_in);
- }
/* We're about to send user input to cpplib, so make it warn for
things that we previously (when we sent it internal definitions)