From: "m mariga" <ma_ariga@yahoo.co.jp>
To: "John Dallaway" <john@dallaway.org.uk>
Cc: <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] Re: h8300 cannot find libgcc.a
Date: Sun, 09 Aug 2009 23:11:00 -0000 [thread overview]
Message-ID: <095F57A600314F7E86F6731FCC889A3D@masahiro> (raw)
In-Reply-To: <E6A66DCA0038483BAC5493029EF4A913@masahiro>
Hello,
I've studied the GCC3.3.2's patch for building h8300 toolchains and I've
learned its mechanism
and also I am encountered with new question.
Would you please teach me.
When gcc-configuration makes libgcc.a,double must be 64 bits,and when making
h8300-elf-gcc double must be 32 bits.
In order to distinguish two targets the patch exhanges next lines.
-#define LONG_LONG_TYPE_SIZE 32
+#define LONG_LONG_TYPE_SIZE (TARGET_INT32 ? 64 : 32)
-#define DOUBLE_TYPE_SIZE 32
+#define DOUBLE_TYPE_SIZE (TARGET_INT32 ? 64 : 32)
And there were next codes in GCC3.3.2's /gcc/config/h8300/h8300.h.
--- from GCC3.3.2's /gcc/config/h8300/h8300.h
/* Run-time compilation parameters selecting different hardware subsets. */
extern int target_flags;
/* Masks for the -m switches. */
#define MASK_H8300S 0x00000001
#define MASK_MAC 0x00000002
#define MASK_INT32 0x00000008
#define MASK_ADDRESSES 0x00000040
#define MASK_QUICKCALL 0x00000080
#define MASK_SLOWBYTE 0x00000100
#define MASK_NORMAL_MODE 0x00000200
#define MASK_RELAX 0x00000400
#define MASK_RTL_DUMP 0x00000800
#define MASK_H8300H 0x00001000
#define MASK_ALIGN_300 0x00002000
/* Macros used in the machine description to test the flags. */
/* Make int's 32 bits. */
#define TARGET_INT32 (target_flags & MASK_INT32)
/* Dump recorded insn lengths into the output file. This helps debug the
md file. */
#define TARGET_ADDRESSES (target_flags & MASK_ADDRESSES)
/* Pass the first few arguments in registers. */
#define TARGET_QUICKCALL (target_flags & MASK_QUICKCALL)
/* Pretend byte accesses are slow. */
#define TARGET_SLOWBYTE (target_flags & MASK_SLOWBYTE)
/* Dump each assembler insn's rtl into the output file.
This is for debugging the compiler only. */
#define TARGET_RTL_DUMP (target_flags & MASK_RTL_DUMP)
---
But there are not above codes in GCC4.4.0's /gcc/config/h8300/h8300.h !!!
I tentatively added above codes in GCC4.4.0's /gcc/config/h8300/h8300.h and
applied patch codes and tried to configure gcc.
But the result was the same error.
/opt/ecos/ecos-3.0/packages/language/c/libm/v3_0/src/mathincl/fdlibm.h:78:3:
error: #error IEEE-style 64-bit doubles are required to use the math library
Apparently in GCC4.4.0 or newer GCC,target_flags does not function as the
same as in GCC3.3.2.
Now the question is what mechanism is used in newer GCC versions to
configure h8300 toolchains.
How should I distinguish targets, libgcc.a and h8300-elf-gcc, in configuring
?
Would you please enlighten me ?
m mariga
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2009-08-09 23:11 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-21 14:08 [ECOS] " m mariga
2009-07-21 15:04 ` [ECOS] " John Dallaway
2009-07-22 12:28 ` m mariga
2009-07-22 13:58 ` John Dallaway
2009-07-23 21:32 ` m mariga
2009-07-24 8:34 ` John Dallaway
2009-07-28 14:40 ` m mariga
2009-08-09 23:11 ` m mariga [this message]
2009-08-17 7:42 ` John Dallaway
2009-09-04 5:54 ` [ECOS] How to set GDB Stub Options in order to run insight ? m mariga
2009-09-04 9:38 ` [ECOS] " John Dallaway
2009-09-04 18:33 ` m mariga
2009-09-07 9:40 ` m mariga
2009-09-07 11:31 ` John Dallaway
2009-09-07 16:10 ` [ECOS] cyg_scheduler_lock and DSR's Jim Bradleigh
2009-09-11 20:37 ` Bart Veer
2009-09-08 10:15 ` [ECOS] Re: How to set GDB Stub Options in order to run insight ? m mariga
2009-09-28 9:54 ` [ECOS] About h8000 eCos GDB-Stub m mariga
2009-09-30 10:06 ` m mariga
2009-10-16 14:34 ` [ECOS] How to connect RedBoot via Telnet running application m mariga
2009-10-16 14:42 ` Gary Thomas
[not found] ` <6FC88324D6C144EFB39FFE3CBF0E5B8D@masahiro>
2009-10-16 15:40 ` Gary Thomas
2009-10-16 16:11 ` m mariga
2009-10-16 16:43 ` m mariga
2009-10-16 16:54 ` Gary Thomas
2009-09-19 1:51 ` [ECOS] Re: How to set GDB Stub Options in order to run insight ? m mariga
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=095F57A600314F7E86F6731FCC889A3D@masahiro \
--to=ma_ariga@yahoo.co.jp \
--cc=ecos-discuss@ecos.sourceware.org \
--cc=john@dallaway.org.uk \
/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: link
Be 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).