summaryrefslogtreecommitdiff
path: root/gcc/config/avr
diff options
context:
space:
mode:
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-09 11:37:11 +0000
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-09 11:37:11 +0000
commitfec084449eaf22a42507a586c525243be2f9677c (patch)
treeba9c018ddbe5cf730a08e684c7c5f433b1b9d939 /gcc/config/avr
parentf479daa6e8a79ae32ba343050bc093af66df7173 (diff)
downloadgcc-fec084449eaf22a42507a586c525243be2f9677c.tar.gz
PR target/65296
* config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a device specs file if "device-specs%s" didn't resolve to a path. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/avr')
-rw-r--r--gcc/config/avr/driver-avr.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/config/avr/driver-avr.c b/gcc/config/avr/driver-avr.c
index 4890a39b489..75d7e6f6791 100644
--- a/gcc/config/avr/driver-avr.c
+++ b/gcc/config/avr/driver-avr.c
@@ -80,6 +80,19 @@ avr_devicespecs_file (int argc, const char **argv)
return X_NODEVLIB;
case 1:
+ if (0 == strcmp ("device-specs", argv[0]))
+ {
+ /* FIXME: This means "device-specs%s" from avr.h:DRIVER_SELF_SPECS
+ has not been resolved to a path. That case can occur when the
+ c++ testsuite is run from the build directory. DejaGNU's
+ libgloss.exp:get_multilibs runs $compiler without -B, i.e.runs
+ xgcc without specifying a prefix. Without any prefix, there is
+ no means to find out where the specs files might be located.
+ get_multilibs runs xgcc --print-multi-lib, hence we don't actually
+ need information form a specs file and may skip it here. */
+ return X_NODEVLIB;
+ }
+
mmcu = AVR_MMCU_DEFAULT;
break;