Mercurial > hg > CbC > CbC_gcc
diff gcc/config/avr/driver-avr.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/config/avr/driver-avr.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/config/avr/driver-avr.c Thu Oct 25 07:37:49 2018 +0900 @@ -1,5 +1,5 @@ /* Subroutines for the gcc driver. - Copyright (C) 2009-2017 Free Software Foundation, Inc. + Copyright (C) 2009-2018 Free Software Foundation, Inc. Contributed by Georg-Johann Lay <avr@gjlay.de> This file is part of GCC. @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ +#define IN_TARGET_CODE 1 + #include "config.h" #include "system.h" #include "coretypes.h" @@ -57,7 +59,7 @@ return X_NODEVLIB; case 1: - if (0 == strcmp ("device-specs", argv[0])) + if (strcmp ("device-specs", argv[0]) == 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 @@ -79,7 +81,7 @@ // Allow specifying the same MCU more than once. for (int i = 2; i < argc; i++) - if (0 != strcmp (mmcu, argv[i])) + if (strcmp (mmcu, argv[i]) != 0) { error ("specified option %qs more than once", "-mmcu"); return X_NODEVLIB;