ports/176961: [patch] devel/avr-gcc fix build with clang
Pawel Pekala
pawel at FreeBSD.org
Thu Mar 14 16:30:00 UTC 2013
>Number: 176961
>Category: ports
>Synopsis: [patch] devel/avr-gcc fix build with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 14 16:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Pawel Pekala
>Release: 10.0-CURRENT
>Organization:
>Environment:
FreeBSD blaviken.slowicza.org 10.0-CURRENT FreeBSD 10.0-CURRENT #9 r248079M: Sat Mar 9 15:03:13 CET 2013 corn at blaviken.slowicza.org:/usr/obj/usr/src/sys/BLAVIKEN64 amd64
>Description:
Add simple patch to fix build with clang compiler.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -urN /usr/ports/devel/avr-gcc/files/patch-gcc-config-avr-driver-avr.c devel/avr-gcc/files/patch-gcc-config-avr-driver-avr.c
--- /usr/ports/devel/avr-gcc/files/patch-gcc-config-avr-driver-avr.c 1970-01-01 01:00:00.000000000 +0100
+++ devel/avr-gcc/files/patch-gcc-config-avr-driver-avr.c 2013-03-14 16:32:02.000000000 +0100
@@ -0,0 +1,38 @@
+--- gcc/config/avr/driver-avr.c.orig 2013-03-14 16:26:36.000000000 +0100
++++ gcc/config/avr/driver-avr.c 2013-03-14 16:28:52.000000000 +0100
+@@ -55,7 +55,7 @@
+ avr_device_to_arch (int argc, const char **argv)
+ {
+ if (0 == argc)
+- return;
++ return NULL;
+
+ avr_set_current_device (argv[0]);
+
+@@ -71,7 +71,7 @@
+ char data_section_start_str[16];
+
+ if (0 == argc)
+- return;
++ return NULL;
+
+ avr_set_current_device (argv[0]);
+
+@@ -93,7 +93,7 @@
+ avr_device_to_startfiles (int argc, const char **argv)
+ {
+ if (0 == argc)
+- return;
++ return NULL;
+
+ avr_set_current_device (argv[0]);
+
+@@ -106,7 +106,7 @@
+ avr_device_to_devicelib (int argc, const char **argv)
+ {
+ if (0 == argc)
+- return;
++ return NULL;
+
+ avr_set_current_device (argv[0]);
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list