diff options
author | mef <mef@pkgsrc.org> | 2014-08-29 04:26:46 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2014-08-29 04:26:46 +0000 |
commit | fa8b9855f705814cb4470d82a37ec12767a9e4d7 (patch) | |
tree | 96b6f395c0ac79f5b8b3100f57345944083146f5 /cross/avr-gcc/patches | |
parent | 575f73e9b99c54cdf15aa6f8438b5a3b95296728 (diff) | |
download | pkgsrc-fa8b9855f705814cb4470d82a37ec12767a9e4d7.tar.gz |
PR pkg/48890 was proposed. Thanks. But this commit is slightly
different from the PR (When submitting patch to pkgsrc with
adding more patches, submitter should do cvs add
patches/patch-hoge, before creating the pkgsrc patch, thanks).
I belive both simulavr and avr-libc will be packaged fine with this.
(upstream)
4.7.3 to 4.8.3 -- From grepping 'avr' from NEWS file:
--------------
On AVR, the configure option --with-avrlibc supported since GCC 4.7.2
is turned on per default for all non-RTEMS configurations. This option
arranges for a better integration of [3]AVR Libc with avr-gcc. For
technical details, see [4]PR54461. To turn off the option in non-RTEMS
configurations, use --with-avrlibc=no. If the compiler is configured
for RTEMS, the option is always turned off.
* Support has been added for the AVR-specific configure option
--with-avrlibc=yes in order to arrange for better integration of
[3]AVR-Libc. This configure option is supported in avr-gcc 4.7.2
and newer and will only take effect in non-RTEMS configurations. If
avr-gcc is configured for RTEMS, the option will be ignored which
is the same as specifying --with-avrlibc=no. See [4]PR54461 for
more technical details.
3. http://www.nongnu.org/avr-libc/
4. http://gcc.gnu.org/PR54461
#include <avr/io.h> /* Port Definitions from AVR-LibC */
* [297]14064 [avr-elf] -fdata-sections triggers ICE
* [302]16884 [avr-elf] [fweb related] bug while initializing
4.5.3 to 4.7.3
--------------
For the changes for 4.7, see following page.
http://gcc.gnu.org/gcc-4.7/changes.html
(Picking up AVR related topic from above info):
The AVR port's libgcc has been improved and its multilib
structure has been enhanced. As a result, all objects
contributing to an application must either be compiled with
GCC versions up to 4.6.x or with GCC versions 4.7.1 or
later. If the compiler is used with AVR Libc, you need a
version that supports the new layout, i.e. implements #35407.
The AVR port's -mshort-calls command-line option has been
deprecated. It will be removed in the GCC 4.8 release. See
-mrelax for a replacement.
The AVR port only references startup code that clears .bss and
the common section resp. initializes the .data and .rodata
section provided respective sections (or subsections thereof)
are not empty, see PR18145.
Applications that put all static storage objects into
non-standard sections and / or define all static storage
objects in assembler modules, must reference __do_clear_bss
resp. __do_copy_data by hand or undefine the symbol(s) by
means of -Wl,-u,__do_clear_bss resp. -Wl,-u,__do_copy_data.
Diffstat (limited to 'cross/avr-gcc/patches')
-rw-r--r-- | cross/avr-gcc/patches/patch-gcc_config_avr_driver-avr_c | 42 | ||||
-rw-r--r-- | cross/avr-gcc/patches/patch-libiberty_Makefile.in | 16 |
2 files changed, 0 insertions, 58 deletions
diff --git a/cross/avr-gcc/patches/patch-gcc_config_avr_driver-avr_c b/cross/avr-gcc/patches/patch-gcc_config_avr_driver-avr_c deleted file mode 100644 index b256947d199..00000000000 --- a/cross/avr-gcc/patches/patch-gcc_config_avr_driver-avr_c +++ /dev/null @@ -1,42 +0,0 @@ -$NetBSD: patch-gcc_config_avr_driver-avr_c,v 1.1 2013/08/07 03:11:35 mef Exp $ - -gcc-4.5.3/gcc/config/avr/driver-avr.c:58:5: error: non-void function 'avr_device_to_arch' should return a value [-Wreturn-type] - ---- gcc/config/avr/driver-avr.c.orig 2009-06-24 04:14:11.000000000 +0900 -+++ gcc/config/avr/driver-avr.c 2013-07-04 17:47:24.000000000 +0900 -@@ -55,7 +55,7 @@ const char * - 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 @@ avr_device_to_data_start (int argc, cons - char data_section_start_str[16]; - - if (0 == argc) -- return; -+ return NULL; - - avr_set_current_device (argv[0]); - -@@ -93,7 +93,7 @@ const char * - 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 @@ const char * - avr_device_to_devicelib (int argc, const char **argv) - { - if (0 == argc) -- return; -+ return NULL; - - avr_set_current_device (argv[0]); - diff --git a/cross/avr-gcc/patches/patch-libiberty_Makefile.in b/cross/avr-gcc/patches/patch-libiberty_Makefile.in deleted file mode 100644 index cc5cdf23984..00000000000 --- a/cross/avr-gcc/patches/patch-libiberty_Makefile.in +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-libiberty_Makefile.in,v 1.1 2013/08/07 03:11:35 mef Exp $ - -To avoid duplication (conflict) with other cross tool-chain, -just not install libiberty.a - ---- libiberty/Makefile.in.orig 2010-03-02 15:09:56.000000000 +0900 -+++ libiberty/Makefile.in 2013-07-04 12:01:10.000000000 +0900 -@@ -321,7 +321,7 @@ libiberty.html : $(srcdir)/libiberty.tex - @MAINT@ echo stamp > stamp-functions - - INSTALL_DEST = @INSTALL_DEST@ --install: install_to_$(INSTALL_DEST) install-subdir -+install: - - # This is tricky. Even though CC in the Makefile contains - # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the |