public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "errordeveloper at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/58507] New: Incorrect parsing of `-mmcu=msp430*` Date: Mon, 23 Sep 2013 14:07:00 -0000 [thread overview] Message-ID: <bug-58507-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58507 Bug ID: 58507 Summary: Incorrect parsing of `-mmcu=msp430*` Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: errordeveloper at gmail dot com CC: dj at redhat dot com, nickc at redhat dot com % cat test.c #include <msp430fr5739.h> int main() { return 0; }; % msp430-elf-gcc -mmcu=msp430fr5739 test.c -I/home/ilya/msp430/msp430-elf-21092013-0/msp430-elf/include/msp430 /home/ilya/msp430/msp430-elf-21092013-0/bin/../lib/gcc/msp430-elf/4.9.0/../../../../msp430-elf/bin/ld: error: /tmp/cc5edjEZ.o uses MSP430X instructions but /home/ilya/msp430/msp430-elf-21092013-0/bin/../lib/gcc/msp430-elf/4.9.0/../../../../msp430-elf/lib/crt0.o uses MSP430 /home/ilya/msp430/msp430-elf-21092013-0/bin/../lib/gcc/msp430-elf/4.9.0/../../../../msp430-elf/bin/ld: failed to merge target specific data of file /tmp/cc5edjEZ.o collect2: error: ld returned 1 exit status Checking this reviles a dull parameter parsing bug: % msp430-elf-gcc -mmcu=msp430 test.c -I/home/ilya/msp430/msp430-elf-21092013-0/msp430-elf/include/msp430 -c % msp430-elf-objdump -x test.o | grep -i arch architecture: msp:11, flags 0x00000010: % msp430-elf-gcc -mmcu=msp430x test.c -I/home/ilya/msp430/msp430-elf-21092013-0/msp430-elf/include/msp430 -c % msp430-elf-objdump -x test.o | grep -i arch architecture: msp:430X, flags 0x00000010: % msp430-elf-gcc -mmcu=msp430fr5739 test.c -I/home/ilya/msp430/msp430-elf-21092013-0/msp430-elf/include/msp430 -c % msp430-elf-objdump -x test.o | grep -i arch architecture: msp:430X, flags 0x00000010: Here are the revision ID's for your reference: gcc 25bd6b06e5c81ff8c97d6671651442305a2cbbb2 newlib 090b27c6ed560767408293f185aa313eeef23d74 binutils e1926926db9154828b02a83c3d094ba6c39247e0 gdb 7.6.50.20130921 msp430mcu d5dd733e674dfd80781669a98ef85fd57526ce47 mspdebug 0.22 The compilation was done according to: http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Install:redhat A x86 binary can be found here: https://s3.amazonaws.com/com.xively.packages/msp430-elf-21092013-0.txz
next reply other threads:[~2013-09-23 14:07 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-09-23 14:07 errordeveloper at gmail dot com [this message] 2013-09-27 11:43 ` [Bug target/58507] " nickc at redhat dot com 2013-09-27 15:49 ` nickc at redhat dot com 2013-09-30 9:05 ` nickc at redhat dot com 2020-05-18 13:11 ` jozefl at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-58507-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).