From e3da34115b54ee6d47c7458a82dd5367b928ee29 Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Wed, 8 Jan 2020 09:46:07 +0000 Subject: [PATCH] backport: Add -nodevicespecs option for avr. Backport from 2020-01-08 trunk r279995. Add -nodevicespecs option for avr. PR target/93182 * config/avr/avr.opt (-nodevicespecs): New driver option. * config/avr/driver-avr.c (avr_devicespecs_file): Only issue "-specs=device-specs/..." if that option is not set. * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document. From-SVN: r279996 --- gcc/ChangeLog | 12 ++++++++++++ gcc/config/avr/avr.opt | 4 ++++ gcc/config/avr/driver-avr.c | 8 ++++---- gcc/doc/invoke.texi | 9 ++++++++- 4 files changed, 28 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8118f90bae3a..70fff31239bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2020-01-08 Georg-Johann Lay + + Backport from 2020-01-08 trunk r279995. + + Add -nodevicespecs option for avr. + + PR target/93182 + * config/avr/avr.opt (-nodevicespecs): New driver option. + * config/avr/driver-avr.c (avr_devicespecs_file): Only issue + "-specs=device-specs/..." if that option is not set. + * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document. + 2020-01-06 John David Anglin * config/pa/pa.md: Revert change to use ordered_comparison_operator diff --git a/gcc/config/avr/avr.opt b/gcc/config/avr/avr.opt index 3fc83a2fdb16..702400d45975 100644 --- a/gcc/config/avr/avr.opt +++ b/gcc/config/avr/avr.opt @@ -118,3 +118,7 @@ Assume that all data in static storage can be accessed by LDS / STS. This optio nodevicelib Driver Target Report RejectNegative Do not link against the device-specific library lib.a. + +nodevicespecs +Driver Target Report RejectNegative +Do not use the device-specific specs file device-specs/specs-. diff --git a/gcc/config/avr/driver-avr.c b/gcc/config/avr/driver-avr.c index 7b9e712be6be..d804ed2cd58a 100644 --- a/gcc/config/avr/driver-avr.c +++ b/gcc/config/avr/driver-avr.c @@ -26,8 +26,8 @@ along with GCC; see the file COPYING3. If not see #include "diagnostic.h" #include "tm.h" -// Remove -nodevicelib from the command line if not needed -#define X_NODEVLIB "%.a}. +@item -nodevicespecs +@opindex nodevicespecs +Don't add @option{-specs=device-specs/specs-} to the compiler driver's +command line. The user takes responsibility for supplying the sub-processes +like compiler proper, assembler and linker with appropriate command line +options. + @item -Waddr-space-convert @opindex Waddr-space-convert @opindex Wno-addr-space-convert -- 2.47.2