public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][ARM] (cleanup) remove arn_builtin_macro_redefined overwrite
@ 2016-01-21 10:22 Christian Bruel
  2016-01-22 10:14 ` Kyrill Tkachov
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Bruel @ 2016-01-21 10:22 UTC (permalink / raw)
  To: kyrylo.tkachov; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

A tiny patch to cleanup the cpp_opts->warn_builtin_macro_redefined 
setting in arm_pragma_target_parse. Removes this hack obsoleted by the 
use of NODE_CONDITIONAL for pr target/69180.

regtested for arm-linux-gnueabi -mfpu=vfp, -mfpu=neon,-mfpu=neon-fp-armv8




[-- Attachment #2: warn-over.patch --]
[-- Type: text/x-patch, Size: 1135 bytes --]

2016-01-21  Christian Bruel  <christian.bruel@st.com>

	* config/arm/arm-c.c (arm_pragma_target_parse)
	Remove warn_builtin_macro_redefined overwrite.

Index: gcc/config/arm/arm-c.c
===================================================================
--- gcc/config/arm/arm-c.c	(revision 232669)
+++ gcc/config/arm/arm-c.c	(working copy)
@@ -238,11 +238,8 @@ arm_pragma_target_parse (tree args, tree pop_targe
 	 compiler predefined macros.  */
       cpp_options *cpp_opts = cpp_get_options (parse_in);
       unsigned char saved_warn_unused_macros = cpp_opts->warn_unused_macros;
-      unsigned char saved_warn_builtin_macro_redefined
-	= cpp_opts->warn_builtin_macro_redefined;
 
       cpp_opts->warn_unused_macros = 0;
-      cpp_opts->warn_builtin_macro_redefined = 0;
 
       /* Update macros.  */
       gcc_assert (cur_opt->x_target_flags == target_flags);
@@ -261,7 +258,6 @@ arm_pragma_target_parse (tree args, tree pop_targe
 
       arm_cpu_builtins (parse_in);
 
-      cpp_opts->warn_builtin_macro_redefined = saved_warn_builtin_macro_redefined;
       cpp_opts->warn_unused_macros = saved_warn_unused_macros;
     }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][ARM] (cleanup) remove arn_builtin_macro_redefined overwrite
  2016-01-21 10:22 [PATCH][ARM] (cleanup) remove arn_builtin_macro_redefined overwrite Christian Bruel
@ 2016-01-22 10:14 ` Kyrill Tkachov
  0 siblings, 0 replies; 2+ messages in thread
From: Kyrill Tkachov @ 2016-01-22 10:14 UTC (permalink / raw)
  To: Christian Bruel; +Cc: gcc-patches


On 21/01/16 10:22, Christian Bruel wrote:
> A tiny patch to cleanup the cpp_opts->warn_builtin_macro_redefined setting in arm_pragma_target_parse. Removes this hack obsoleted by the use of NODE_CONDITIONAL for pr target/69180.
>
> regtested for arm-linux-gnueabi -mfpu=vfp, -mfpu=neon,-mfpu=neon-fp-armv8
>
>
>

Ok.

Thanks,
Kyrill

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-22 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-21 10:22 [PATCH][ARM] (cleanup) remove arn_builtin_macro_redefined overwrite Christian Bruel
2016-01-22 10:14 ` Kyrill Tkachov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).