Bug 176961 - [patch] devel/avr-gcc fix build with clang
[patch] devel/avr-gcc fix build with clang
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Joerg Wunsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-14 16:30 UTC by Pawel Pekala
Modified: 2013-03-29 21:30 UTC (History)
0 users

See Also:


Attachments
file.diff (1.14 KB, patch)
2013-03-14 16:30 UTC, Pawel Pekala
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Pekala freebsd_committer 2013-03-14 16:30:00 UTC
Add simple patch to fix build with clang compiler.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer 2013-03-14 16:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->joerg

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter freebsd_committer 2013-03-29 21:20:45 UTC
Author: pawel
Date: Fri Mar 29 21:20:37 2013
New Revision: 315574
URL: http://svnweb.freebsd.org/changeset/ports/315574

Log:
  Fix build with clang
  
  PR:		ports/176961
  Submitted by:	myself
  Approved by:	maintainer timeout

Added:
  head/devel/avr-gcc/files/patch-gcc-config-avr-driver-avr.c   (contents, props changed)

Added: head/devel/avr-gcc/files/patch-gcc-config-avr-driver-avr.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/avr-gcc/files/patch-gcc-config-avr-driver-avr.c	Fri Mar 29 21:20:37 2013	(r315574)
@@ -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]);
+ 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer 2013-03-29 21:21:16 UTC
State Changed
From-To: open->closed

Committed. Thanks!