re PR target/65296 ([avr] fix various issues with specs file generation)
authorSivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
Fri, 17 Apr 2015 13:54:16 +0000 (13:54 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Fri, 17 Apr 2015 13:54:16 +0000 (13:54 +0000)
PR target/65296
* config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
to new AVR-LibC file layout (bug #44574).
(*avrlibc_devicelib): Same.
* config/avr/avr-mcus.def: Adjust comments.
* config/avr/avr.opt (nodevicelib): Adjust help.

From-SVN: r222179

gcc/ChangeLog
gcc/config/avr/avr-mcus.def
gcc/config/avr/avr.opt
gcc/config/avr/gen-avr-mmcu-specs.c

index b900410a21f24eeed9d8969a0c0d1daad21039d9..275e4e07580929517378efc16420c213d4a3eddc 100644 (file)
@@ -1,3 +1,12 @@
+2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
+
+       PR target/65296
+       * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
+       to new AVR-LibC file layout (bug #44574).
+       (*avrlibc_devicelib): Same.
+       * config/avr/avr-mcus.def: Adjust comments.
+       * config/avr/avr.opt (nodevicelib): Adjust help.
+
 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
 
        * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
index ce4b78261008b7ef09543822fe893e2eaea3385d..821f5973ee27da0c7ce3880ed0d3a3a8680cc415 100644 (file)
@@ -44,8 +44,8 @@
                      used by DRIVER_SELF_SPECS and gen-avr-mmcu-specs.c for
                      - the name of the device specific specs file
                        in -specs=device-specs/spec-<NAME>
-                     - the name of the startup file dev/<NAME>/crt1.o
-                     - the name of the device library dev/<NAME>/libdev.a
+                     - the name of the startup file crt<NAME>.o
+                     - to link the device library by means of -l<NAME>
 
        ARCH          Specifies the multilib variant together with AVR_SHORT_SP
 
index 5de5f90439df1f20e0380409b5c7d8c2ee13f842..7e32ce5a350fdc4613811fe0fa5237f487660fa3 100644 (file)
@@ -97,4 +97,4 @@ Allow to use truncation instead of rounding towards 0 for fractional int types
 
 nodevicelib
 Driver Target Report RejectNegative
-Do not link against the device-specific library libdev.a
+Do not link against the device-specific library lib<MCU>.a
index 3594d8a77126dc443f3e056c1173b0621f569c26..eda8d86c02eefcc12f14a063b0cda937cf2d05f3 100644 (file)
@@ -171,11 +171,11 @@ print_mcu (const avr_mcu_t *mcu)
   if (is_device)
     {
       fprintf (f, "*avrlibc_startfile:\n");
-      fprintf (f, "\tdev/%s/crt1.o%%s", mcu->name);
+      fprintf (f, "\tcrt%s.o%%s", mcu->name);
       fprintf (f, "\n\n");
 
       fprintf (f, "*avrlibc_devicelib:\n");
-      fprintf (f, "\t%%{!nodevicelib:dev/%s/libdev.a%%s}", mcu->name);
+      fprintf (f, "\t%%{!nodevicelib:-l%s}", mcu->name);
       fprintf (f, "\n\n");
     }
 #endif  // WITH_AVRLIBC