diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2020-01-08 09:41:59 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2020-01-08 09:41:59 +0000 |
commit | e3e131c9bb937c2a0b8c0ac606da181d9f771746 (patch) | |
tree | 195388d187f32b227bbf92f6f227ab567e86ffa5 /gcc | |
parent | f30dd607669212de135dec1f1d8a93b8954c327c (diff) | |
download | gcc-e3e131c9bb937c2a0b8c0ac606da181d9f771746.zip gcc-e3e131c9bb937c2a0b8c0ac606da181d9f771746.tar.gz gcc-e3e131c9bb937c2a0b8c0ac606da181d9f771746.tar.bz2 |
Add -nodevicespecs option for avr.
gcc/
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: r279995
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/config/avr/avr.opt | 4 | ||||
-rw-r--r-- | gcc/config/avr/driver-avr.c | 8 |
3 files changed, 19 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 12bf61f..005e2aa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,16 @@ 2020-01-08 Georg-Johann Lay <avr@gjlay.de> - Implement 64-bit double functions. + 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-08 Georg-Johann Lay <avr@gjlay.de> + + Implement 64-bit double functions for avr. PR target/92055 * config.gcc (tm_defines) [target=avr]: Support --with-libf7, diff --git a/gcc/config/avr/avr.opt b/gcc/config/avr/avr.opt index c56abca..fac3114 100644 --- a/gcc/config/avr/avr.opt +++ b/gcc/config/avr/avr.opt @@ -127,6 +127,10 @@ nodevicelib Driver Target Report RejectNegative Do not link against the device-specific library lib<MCU>.a. +nodevicespecs +Driver Target Report RejectNegative +Do not use the device-specific specs file device-specs/specs-<MCU>. + Enum Name(avr_bits_e) Type(int) Available BITS selections: diff --git a/gcc/config/avr/driver-avr.c b/gcc/config/avr/driver-avr.c index 9cb3093..8438904 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 "%<nodevicelib" +// Remove -nodevicelib and -nodevicespecs from the command line if not needed. +#define X_NODEVLIB "%<nodevicelib %<nodevicespecs" static const char dir_separator_str[] = { DIR_SEPARATOR, 0 }; @@ -102,8 +102,8 @@ avr_devicespecs_file (int argc, const char **argv) return X_NODEVLIB; } - return concat ("-specs=device-specs", dir_separator_str, "specs-", - mmcu, "%s" + return concat ("%{!nodevicespecs:-specs=device-specs", dir_separator_str, + "specs-", mmcu, "%s} %<nodevicespecs" #if defined (WITH_AVRLIBC) " %{mmcu=avr*:" X_NODEVLIB "} %{!mmcu=*:" X_NODEVLIB "}", #else |