Message ID | Pine.LNX.4.64.1101140006540.6059@digraph.polyomino.org.uk |
---|---|
State | New |
Headers | show |
> -----Original Message----- > From: Joseph Myers [mailto:joseph@codesourcery.com] > Sent: Thursday, January 13, 2011 5:08 PM > To: gcc-patches@gcc.gnu.org > Cc: chertykov@gmail.com; aesok@post.ru; Weddington, Eric > Subject: [08/25] Specs cleanup: AVR <snip> > In particular, it seems inappropriate for AVR to have > specs to accept these options. AVR devices are hardly going to be > hosting POSIX-conforming operating systems, and the -profile spec is > only for cc1; there's nothing to make that option affect linking, so > it's just a useless alias of other profiling options. This patch > removes both the specs in question for AVR. OK to commit? > > 2011-01-13 Joseph Myers <joseph@codesourcery.com> > > * config/avr/avr.h (CPP_SPEC): Don't handle -posix. > (CC1_SPEC): Don't handle -profile. > <patch snipped> Looks good to me. Please commit. Eric Weddington
diff -rupN --exclude=.svn gcc-mainline-7/gcc/config/avr/avr.h gcc-mainline/gcc/config/avr/avr.h --- gcc-mainline-7/gcc/config/avr/avr.h 2010-10-20 15:23:36.000000000 -0700 +++ gcc-mainline/gcc/config/avr/avr.h 2011-01-12 14:14:37.000000000 -0800 @@ -739,9 +739,9 @@ extern const char *avr_device_to_devicel { "device_to_startfile", avr_device_to_startfiles }, \ { "device_to_devicelib", avr_device_to_devicelib }, -#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}" +#define CPP_SPEC "" -#define CC1_SPEC "%{profile:-p}" +#define CC1_SPEC "" #define CC1PLUS_SPEC "%{!frtti:-fno-rtti} \ %{!fenforce-eh-specs:-fno-enforce-eh-specs} \