Re: [Update] devel/avr/gcc: 5.4.0 -> 8.4.0

2021-09-07 Thread Paco Esteban
Hi,

On Mon, 06 Sep 2021, Martin Reindl wrote:

> On Thu, Aug 05, 2021 at 07:54:35AM +0200, Martin Reindl wrote:
> > On Thu, Dec 03, 2020 at 02:44:22PM +0100, Manuel Giraud wrote:
> > > Hi,
> > > 
> > > Here is an update of avr/gcc. I was able to build current qmk_firmware
> > > (https://qmk.fm/) for my keyboard (with 5.4.0, it was not building since
> > > august 2019).
> > 
> > Taking this diff, here is an update to 8.5.0. Tested with ethersex.de for a
> > 644PU which does not work with the current avr-gcc.
> > 
> > Also compile tested:
> > devel/arduino
> > devel/avr/gdb
> > devel/avr/libc (and ethersex runs this)
> > devel/simulavr
> > 
> > Comments? OKs?
> 
> Friendly ping to get this commited before 7.0?

Tested it on amd64.  Builds fine and regression tests crash, but they
did also on the previous version too.

I was able to build an old project of mine for an atmega168p no problem.
Unfortunately I have none lying around to flash it and test it.

FWIW, ok paco@

-- 
Paco Esteban.
0x5818130B8A6DBC03



Re: [Update] devel/avr/gcc: 5.4.0 -> 8.4.0

2021-09-06 Thread Martin Reindl
On Thu, Aug 05, 2021 at 07:54:35AM +0200, Martin Reindl wrote:
> On Thu, Dec 03, 2020 at 02:44:22PM +0100, Manuel Giraud wrote:
> > Hi,
> > 
> > Here is an update of avr/gcc. I was able to build current qmk_firmware
> > (https://qmk.fm/) for my keyboard (with 5.4.0, it was not building since
> > august 2019).
> 
> Taking this diff, here is an update to 8.5.0. Tested with ethersex.de for a
> 644PU which does not work with the current avr-gcc.
> 
> Also compile tested:
> devel/arduino
> devel/avr/gdb
> devel/avr/libc (and ethersex runs this)
> devel/simulavr
> 
> Comments? OKs?

Friendly ping to get this commited before 7.0?

-m



Re: [Update] devel/avr/gcc: 5.4.0 -> 8.4.0

2021-08-04 Thread Martin Reindl
On Thu, Dec 03, 2020 at 02:44:22PM +0100, Manuel Giraud wrote:
> Hi,
> 
> Here is an update of avr/gcc. I was able to build current qmk_firmware
> (https://qmk.fm/) for my keyboard (with 5.4.0, it was not building since
> august 2019).

Taking this diff, here is an update to 8.5.0. Tested with ethersex.de for a
644PU which does not work with the current avr-gcc.

Also compile tested:
devel/arduino
devel/avr/gdb
devel/avr/libc (and ethersex runs this)
devel/simulavr

Comments? OKs?

-m

Index: Makefile
===
RCS file: /cvs/ports/devel/avr/gcc/Makefile,v
retrieving revision 1.36
diff -u -p -u -p -r1.36 Makefile
--- Makefile9 Jan 2021 21:41:16 -   1.36
+++ Makefile5 Aug 2021 05:51:54 -
@@ -2,12 +2,9 @@
 
 COMMENT=   Atmel AVR 8-bit RISC microcontrollers' XGCC #'
 
-V= 5.4.0
-REVISION=  3
+V= 8.5.0
 DISTNAME = gcc-$V
 PKGNAME=   avr-gcc-${V}
-SHARED_LIBS +=  cc1plugin 0.0 # 0.0
-SHARED_LIBS +=  cc1   0.0 # 0.0
 
 # GPLv3
 PERMIT_PACKAGE=Yes
@@ -17,7 +14,7 @@ WANTLIB=  c gmp mpfr ${COMPILER_LIBCXX} 
 COMPILER = base-clang ports-gcc base-gcc
 
 MASTER_SITES=  ${MASTER_SITE_GCC:=releases/gcc-$(V)/}
-EXTRACT_SUFX=  .tar.bz2
+EXTRACT_SUFX=  .tar.xz
 DIST_SUBDIR=   gcc
 
 .if ${MACHINE_ARCH} == "powerpc64"
Index: distinfo
===
RCS file: /cvs/ports/devel/avr/gcc/distinfo,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 distinfo
--- distinfo7 Sep 2018 20:11:08 -   1.7
+++ distinfo5 Aug 2021 05:51:54 -
@@ -1,2 +1,2 @@
-SHA256 (gcc/gcc-5.4.0.tar.bz2) = YI33bewtNN5lWCSdivTL7iHs7dvLWA1mb3paWDyjMDo=
-SIZE (gcc/gcc-5.4.0.tar.bz2) = 95661481
+SHA256 (gcc/gcc-8.5.0.tar.xz) = 0wiEGlEbuDCmEAOXsAQtskzhH2Qtq26m7kSELlMl7VA=
+SIZE (gcc/gcc-8.5.0.tar.xz) = 63841008
Index: patches/patch-contrib_texi2pod_pl
===
RCS file: patches/patch-contrib_texi2pod_pl
diff -N patches/patch-contrib_texi2pod_pl
--- patches/patch-contrib_texi2pod_pl   16 Apr 2019 15:35:30 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,14 +0,0 @@
-$OpenBSD: patch-contrib_texi2pod_pl,v 1.1 2019/04/16 15:35:30 naddy Exp $
-
-Index: contrib/texi2pod.pl
 contrib/texi2pod.pl.orig
-+++ contrib/texi2pod.pl
-@@ -316,7 +316,7 @@ while(<$inf>) {
-   @columns = ();
-   for $column (split (/\s*\@tab\s*/, $1)) {
-   # @strong{...} is used a @headitem work-alike
--  $column =~ s/^\@strong{(.*)}$/$1/;
-+  $column =~ s/^\@strong\{(.*)\}$/$1/;
-   push @columns, $column;
-   }
-   $_ = "\n=item ".join (" : ", @columns)."\n";
Index: patches/patch-gcc_auto-profile_c
===
RCS file: patches/patch-gcc_auto-profile_c
diff -N patches/patch-gcc_auto-profile_c
--- patches/patch-gcc_auto-profile_c13 Sep 2018 11:13:00 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,21 +0,0 @@
-$OpenBSD: patch-gcc_auto-profile_c,v 1.1 2018/09/13 11:13:00 jasper Exp $
-
-fix build with libc++
-https://svnweb.freebsd.org/ports/head/devel/avr-gcc/files/patch-libc%2B%2B?revision=435893=markup
-
-Index: gcc/auto-profile.c
 gcc/auto-profile.c.orig
-+++ gcc/auto-profile.c
-@@ -19,11 +19,9 @@ along with GCC; see the file COPYING3.  If not see
- .  */
- 
- #include "config.h"
--#include "system.h"
--
--#include 
- #include 
- #include 
-+#include "system.h"
- 
- #include "coretypes.h"
- #include "hash-set.h"
Index: patches/patch-gcc_graphite-isl-ast-to-gimple_c
===
RCS file: patches/patch-gcc_graphite-isl-ast-to-gimple_c
diff -N patches/patch-gcc_graphite-isl-ast-to-gimple_c
--- patches/patch-gcc_graphite-isl-ast-to-gimple_c  13 Sep 2018 11:13:00 
-  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,24 +0,0 @@
-$OpenBSD: patch-gcc_graphite-isl-ast-to-gimple_c,v 1.1 2018/09/13 11:13:00 
jasper Exp $
-
-fix build with libc++
-https://svnweb.freebsd.org/ports/head/devel/avr-gcc/files/patch-libc%2B%2B?revision=435893=markup
-
-Index: gcc/graphite-isl-ast-to-gimple.c
 gcc/graphite-isl-ast-to-gimple.c.orig
-+++ gcc/graphite-isl-ast-to-gimple.c
-@@ -38,6 +38,7 @@ extern "C" {
- #endif
- #endif
- 
-+#include 
- #include "system.h"
- #include "coretypes.h"
- #include "hash-set.h"
-@@ -75,7 +76,6 @@ extern "C" {
- #include "tree-scalar-evolution.h"
- #include "gimple-ssa.h"
- #include "tree-into-ssa.h"
--#include 
- 
- #ifdef HAVE_isl
- #include "graphite-poly.h"
Index: patches/patch-gcc_system_h
===
RCS file: patches/patch-gcc_system_h
diff -N patches/patch-gcc_system_h
--- patches/patch-gcc_system_h  13 Sep 2018 11:13:00 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 

[Update] devel/avr/gcc: 5.4.0 -> 8.4.0

2020-12-03 Thread Manuel Giraud
Hi,

Here is an update of avr/gcc. I was able to build current qmk_firmware
(https://qmk.fm/) for my keyboard (with 5.4.0, it was not building since
august 2019).

Index: Makefile
===
RCS file: /cvs/ports/devel/avr/gcc/Makefile,v
retrieving revision 1.35
diff -u -p -r1.35 Makefile
--- Makefile20 Mar 2020 16:44:22 -  1.35
+++ Makefile3 Dec 2020 13:31:46 -
@@ -2,8 +2,8 @@
 
 COMMENT=   Atmel AVR 8-bit RISC microcontrollers' XGCC #'
 
-V= 5.4.0
-REVISION=  3
+V= 8.4.0
+REVISION=  0
 DISTNAME = gcc-$V
 PKGNAME=   avr-gcc-${V}
 SHARED_LIBS +=  cc1plugin 0.0 # 0.0
@@ -17,7 +17,7 @@ WANTLIB=  c gmp mpfr ${COMPILER_LIBCXX} 
 COMPILER = base-clang ports-gcc base-gcc
 
 MASTER_SITES=  ${MASTER_SITE_GCC:=releases/gcc-$(V)/}
-EXTRACT_SUFX=  .tar.bz2
+EXTRACT_SUFX=  .tar.xz
 DIST_SUBDIR=   gcc
 
 BUILD_DEPENDS+=devel/autoconf/2.13 \
Index: distinfo
===
RCS file: /cvs/ports/devel/avr/gcc/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo7 Sep 2018 20:11:08 -   1.7
+++ distinfo3 Dec 2020 13:31:46 -
@@ -1,2 +1,2 @@
-SHA256 (gcc/gcc-5.4.0.tar.bz2) = YI33bewtNN5lWCSdivTL7iHs7dvLWA1mb3paWDyjMDo=
-SIZE (gcc/gcc-5.4.0.tar.bz2) = 95661481
+SHA256 (gcc/gcc-8.4.0.tar.xz) = 4wpuUtEOHyftVRBK0jPDC9HpnPtf+YqwItyUHt0bLdQ=
+SIZE (gcc/gcc-8.4.0.tar.xz) = 63713440
Index: patches/patch-contrib_texi2pod_pl
===
RCS file: patches/patch-contrib_texi2pod_pl
diff -N patches/patch-contrib_texi2pod_pl
--- patches/patch-contrib_texi2pod_pl   16 Apr 2019 15:35:30 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,14 +0,0 @@
-$OpenBSD: patch-contrib_texi2pod_pl,v 1.1 2019/04/16 15:35:30 naddy Exp $
-
-Index: contrib/texi2pod.pl
 contrib/texi2pod.pl.orig
-+++ contrib/texi2pod.pl
-@@ -316,7 +316,7 @@ while(<$inf>) {
-   @columns = ();
-   for $column (split (/\s*\@tab\s*/, $1)) {
-   # @strong{...} is used a @headitem work-alike
--  $column =~ s/^\@strong{(.*)}$/$1/;
-+  $column =~ s/^\@strong\{(.*)\}$/$1/;
-   push @columns, $column;
-   }
-   $_ = "\n=item ".join (" : ", @columns)."\n";
Index: patches/patch-gcc_auto-profile_c
===
RCS file: patches/patch-gcc_auto-profile_c
diff -N patches/patch-gcc_auto-profile_c
--- patches/patch-gcc_auto-profile_c13 Sep 2018 11:13:00 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,21 +0,0 @@
-$OpenBSD: patch-gcc_auto-profile_c,v 1.1 2018/09/13 11:13:00 jasper Exp $
-
-fix build with libc++
-https://svnweb.freebsd.org/ports/head/devel/avr-gcc/files/patch-libc%2B%2B?revision=435893=markup
-
-Index: gcc/auto-profile.c
 gcc/auto-profile.c.orig
-+++ gcc/auto-profile.c
-@@ -19,11 +19,9 @@ along with GCC; see the file COPYING3.  If not see
- .  */
- 
- #include "config.h"
--#include "system.h"
--
--#include 
- #include 
- #include 
-+#include "system.h"
- 
- #include "coretypes.h"
- #include "hash-set.h"
Index: patches/patch-gcc_graphite-isl-ast-to-gimple_c
===
RCS file: patches/patch-gcc_graphite-isl-ast-to-gimple_c
diff -N patches/patch-gcc_graphite-isl-ast-to-gimple_c
--- patches/patch-gcc_graphite-isl-ast-to-gimple_c  13 Sep 2018 11:13:00 
-  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,24 +0,0 @@
-$OpenBSD: patch-gcc_graphite-isl-ast-to-gimple_c,v 1.1 2018/09/13 11:13:00 
jasper Exp $
-
-fix build with libc++
-https://svnweb.freebsd.org/ports/head/devel/avr-gcc/files/patch-libc%2B%2B?revision=435893=markup
-
-Index: gcc/graphite-isl-ast-to-gimple.c
 gcc/graphite-isl-ast-to-gimple.c.orig
-+++ gcc/graphite-isl-ast-to-gimple.c
-@@ -38,6 +38,7 @@ extern "C" {
- #endif
- #endif
- 
-+#include 
- #include "system.h"
- #include "coretypes.h"
- #include "hash-set.h"
-@@ -75,7 +76,6 @@ extern "C" {
- #include "tree-scalar-evolution.h"
- #include "gimple-ssa.h"
- #include "tree-into-ssa.h"
--#include 
- 
- #ifdef HAVE_isl
- #include "graphite-poly.h"
Index: patches/patch-gcc_system_h
===
RCS file: patches/patch-gcc_system_h
diff -N patches/patch-gcc_system_h
--- patches/patch-gcc_system_h  13 Sep 2018 11:13:00 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,16 +0,0 @@
-$OpenBSD: patch-gcc_system_h,v 1.1 2018/09/13 11:13:00 jasper Exp $
-
-fix build with libc++
-https://svnweb.freebsd.org/ports/head/devel/avr-gcc/files/patch-libc%2B%2B?revision=435893=markup
-
-Index: gcc/system.h
 gcc/system.h.orig
-+++ gcc/system.h
-@@ -217,6 +217,7 @@ extern int errno;
- #ifdef __cplusplus
- # include 
- # include 
-+# include 
- # include 
- #endif