From 8d535dab41846796712adabc2beb260f26ad457e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 22 Oct 2015 16:00:38 +0000 Subject: [PATCH] msp430.opt: Add -msilicon-errata and -msilicon-errata-warn. * config/msp430/msp430.opt: Add -msilicon-errata and -msilicon-errata-warn. * config/msp430/msp430.h (ASM_SPEC): Pass new options on to assembler. * doc/invoke.texi: Document new options. From-SVN: r229177 --- gcc/ChangeLog | 8 ++++++++ gcc/config/msp430/msp430.h | 2 ++ gcc/config/msp430/msp430.opt | 8 ++++++++ gcc/doc/invoke.texi | 11 +++++++++++ 4 files changed, 29 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9383e1c1c92..08d26a9367c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2015-10-22 Nick Clifton + + * config/msp430/msp430.opt: Add -msilicon-errata and + -msilicon-errata-warn. + * config/msp430/msp430.h (ASM_SPEC): Pass new options on to + assembler. + * doc/invoke.texi: Document new options. + 2015-10-22 Richard Biener PR tree-optimization/58497 diff --git a/gcc/config/msp430/msp430.h b/gcc/config/msp430/msp430.h index 2c5d99b9953..340aabda6ad 100644 --- a/gcc/config/msp430/msp430.h +++ b/gcc/config/msp430/msp430.h @@ -56,6 +56,8 @@ extern bool msp430x; "%{mrelax=-mQ} " /* Pass the relax option on to the assembler. */ \ "%{mlarge:-ml} " /* Tell the assembler if we are building for the LARGE pointer model. */ \ "%{!msim:-md} %{msim:%{mlarge:-md}} " /* Copy data from ROM to RAM if necessary. */ \ + "%{msilicon-errata=*:-msilicon-errata=%*} " /* Pass on -msilicon-errata. */ \ + "%{msilicon-errata-warn=*:-msilicon-errata-warn=%*} " /* Pass on -msilicon-errata-warn. */ \ "%{ffunction-sections:-gdwarf-sections} " /* If function sections are being created then create DWARF line number sections as well. */ /* Enable linker section garbage collection by default, unless we diff --git a/gcc/config/msp430/msp430.opt b/gcc/config/msp430/msp430.opt index aa1b39ed4bc..269c834271c 100644 --- a/gcc/config/msp430/msp430.opt +++ b/gcc/config/msp430/msp430.opt @@ -80,3 +80,11 @@ Enum(msp430_regions) String(lower) Value(LOWER) EnumValue Enum(msp430_regions) String(upper) Value(UPPER) + +msilicon-errata= +Target Joined RejectNegative Report ToLower +Passes on a request to the assembler to enable fixes for various silicon errata + +msilicon-errata-warn= +Target Joined RejectNegative Report ToLower +Passes on a request to the assembler to warn about various silicon errata diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index cd8254464b4..67ca5f1d9b7 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -841,6 +841,7 @@ Objective-C and Objective-C++ Dialects}. @emph{MSP430 Options} @gccoptlist{-msim -masm-hex -mmcu= -mcpu= -mlarge -msmall -mrelax @gol -mcode-region= -mdata-region= @gol +-msilicon-errata= -msilicon-errata-warn= @gol -mhwmult= -minrt} @emph{NDS32 Options} @@ -18449,6 +18450,16 @@ like the corresponding attribute. The fourth possible value - linker script and how it assigns the standard sections (.text, .data etc) to the memory regions. +@item -msilicon-errata= +@opindex msilicon-errata +This option passes on a request to assembler to enable the fixes for +the names silicon errata. + +@item -msilicon-errata-warn= +@opindex msilicon-errata-warn +This option passes on a request to the assembler to enable warning +messages when a silicon errata might need to be applied. + @end table @node NDS32 Options -- 2.30.2