From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 14 16:30:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9C30798E for ; Thu, 14 Mar 2013 16:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 80F989EA for ; Thu, 14 Mar 2013 16:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2EGU0dk097467 for ; Thu, 14 Mar 2013 16:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2EGU0Ya097466; Thu, 14 Mar 2013 16:30:00 GMT (envelope-from gnats) Resent-Date: Thu, 14 Mar 2013 16:30:00 GMT Resent-Message-Id: <201303141630.r2EGU0Ya097466@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pawel Pekala Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 025CE4ED for ; Thu, 14 Mar 2013 16:24:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D2FAB9A4 for ; Thu, 14 Mar 2013 16:24:56 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2EGOu3u031370 for ; Thu, 14 Mar 2013 16:24:56 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r2EGOu3W031369; Thu, 14 Mar 2013 16:24:56 GMT (envelope-from nobody) Message-Id: <201303141624.r2EGOu3W031369@red.freebsd.org> Date: Thu, 14 Mar 2013 16:24:56 GMT From: Pawel Pekala To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/176961: [patch] devel/avr-gcc fix build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 16:30:00 -0000 >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: