* RFA: FT32: Fix building gcc.
@ 2015-06-23 12:22 Nicholas Clifton
2015-06-23 13:47 ` Jeff Law
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Clifton @ 2015-06-23 12:22 UTC (permalink / raw)
To: GCC Patches
Hi Guys,
It seems that the FT32 port of GCC does not have a maintainer at the
moment. Nevertheless I have a patch to fix a couple of build time
problems compiling gcc for the FT32. Is this OK to apply ?
Cheers
Nick
gcc/ChangeLog
2015-06-23 Nick Clifton <nickc@redhat.com>
* config/ft32/ft32.c: Include emit-rtl.h for the definition of
crtl.
(ft32_print_operand): Cast the result of INTVAL in order to make
sure that the correct value is printed.
* config/ft32/ft32.h (STACK_GROWS_DOWNWARD): Define to an
integer.
Index: gcc/config/ft32/ft32.c
===================================================================
--- gcc/config/ft32/ft32.c (revision 224834)
+++ gcc/config/ft32/ft32.c (working copy)
@@ -59,8 +59,8 @@
#include "basic-block.h"
#include "df.h"
#include "builtins.h"
+#include "emit-rtl.h"
-
#include <stdint.h>
#define LOSE_AND_RETURN(msgid, x) \
@@ -199,7 +199,7 @@
return;
case 'm':
- fprintf (file, "%d", -INTVAL(x));
+ fprintf (file, "%ld", (long) (- INTVAL(x)));
return;
case 'd': // a DW spec, from an integer
alignment (for BLKmode insns)
Index: gcc/config/ft32/ft32.h
===================================================================
--- gcc/config/ft32/ft32.h (revision 224834)
+++ gcc/config/ft32/ft32.h (working copy)
@@ -248,7 +248,7 @@
/* Define this macro if pushing a word onto the stack moves the stack
pointer to a smaller address. */
-#define STACK_GROWS_DOWNWARD
+#define STACK_GROWS_DOWNWARD 1
#define INITIAL_FRAME_POINTER_OFFSET(DEPTH) (DEPTH) = 0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: RFA: FT32: Fix building gcc.
2015-06-23 12:22 RFA: FT32: Fix building gcc Nicholas Clifton
@ 2015-06-23 13:47 ` Jeff Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2015-06-23 13:47 UTC (permalink / raw)
To: Nicholas Clifton, GCC Patches
On 06/23/2015 06:10 AM, Nicholas Clifton wrote:
> Hi Guys,
>
> It seems that the FT32 port of GCC does not have a maintainer at the
> moment. Nevertheless I have a patch to fix a couple of build time
> problems compiling gcc for the FT32. Is this OK to apply ?
>
> Cheers
> Nick
>
> gcc/ChangeLog
> 2015-06-23 Nick Clifton <nickc@redhat.com>
>
> * config/ft32/ft32.c: Include emit-rtl.h for the definition of
> crtl.
> (ft32_print_operand): Cast the result of INTVAL in order to make
> sure that the correct value is printed.
> * config/ft32/ft32.h (STACK_GROWS_DOWNWARD): Define to an
> integer.
James Bowman is the maintainer, though that isn't reflected in the
MAINTAINERS file.
OK for the trunk.
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-23 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23 12:22 RFA: FT32: Fix building gcc Nicholas Clifton
2015-06-23 13:47 ` Jeff Law
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).