Patchwork [3/7] rs6000: Add RS6000_BTM_ALWAYS

login
register
mail settings
Submitter Segher Boessenkool
Date Aug. 15, 2012, 10:29 p.m.
Message ID <09eae18e89f057591140e5b624052f617c37b269.1345067650.git.segher@kernel.crashing.org>
Download mbox | patch
Permalink /patch/177868/
State New
Headers show

Comments

Segher Boessenkool - Aug. 15, 2012, 10:29 p.m.
This adds a builtin flag for "always enabled".  The value 0 works
right now as far as I can see, but that is too tricky and should
be fixed some day.

2012-08-15  Segher Boessenkool <segher@kernel.crashing.org>

gcc/
	* config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
---
 gcc/config/rs6000/rs6000.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
David Edelsohn - Aug. 15, 2012, 11:53 p.m.
On Wed, Aug 15, 2012 at 6:29 PM, Segher Boessenkool
<segher@kernel.crashing.org> wrote:
> This adds a builtin flag for "always enabled".  The value 0 works
> right now as far as I can see, but that is too tricky and should
> be fixed some day.
>
> 2012-08-15  Segher Boessenkool <segher@kernel.crashing.org>
>
> gcc/
>         * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.

This patch is okay.

Thanks, David

Patch

diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index 5644435..5c53f85 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -2302,6 +2302,7 @@  extern int frame_pointer_needed;
 /* Builtin targets.  For now, we reuse the masks for those options that are in
    target flags, and pick two random bits for SPE and paired which aren't in
    target_flags.  */
+#define RS6000_BTM_ALWAYS	0		/* Always enabled.  */
 #define RS6000_BTM_ALTIVEC	MASK_ALTIVEC	/* VMX/altivec vectors.  */
 #define RS6000_BTM_VSX		MASK_VSX	/* VSX (vector/scalar).  */
 #define RS6000_BTM_SPE		MASK_STRING	/* E500 */