Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2013 16:24:56 GMT
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176961: [patch] devel/avr-gcc fix build with clang
Message-ID:  <201303141624.r2EGOu3W031369@red.freebsd.org>
Resent-Message-ID: <201303141630.r2EGU0Ya097466@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303141624.r2EGOu3W031369>