public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
To: Eric Botcazou <ebotcazou@adacore.com>
Cc: gcc Patches <gcc-patches@gcc.gnu.org>,
	Richard Biener <rguenther@suse.de>,
		Michael Collison <michael.collison@linaro.org>,
	Andrew MacLeod <amacleod@redhat.com>
Subject: Re: flatten expr.h (version 2)
Date: Thu, 22 Jan 2015 22:17:00 -0000	[thread overview]
Message-ID: <CAAgBjMn-agNX_shGavYOzstcSdUy0F6+SKQca6VMz3S3c2HvHQ@mail.gmail.com> (raw)
In-Reply-To: <3450002.mYNjilJ0dL@polaris>

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

On 21 January 2015 at 23:18, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> Thanks. I had wrongly made eliminate_constant_term() static, reverted
>> that change and it builds on
>> all targets in config-list.mk.
>> Committed as r219655 (hopefully nothing breaks!).
>
> Any particular reason why store_bit_field, extract_bit_field, extract_low_bits
> expand_mult and expand_mult_highpart_adjust are declared in emit-rtl.h?
Thanks, moved them to expmed.h.
Boostrapped on x86_64-unknown-linux-gnu with languages: all, testing
in progress.
Build on all targets in config-list.mk in progress.
Assuming it goes fine, OK to commit ?

Thanks,
Prathamesh
>
> --
> Eric Botcazou

[-- Attachment #2: Changelog.txt --]
[-- Type: text/plain, Size: 260 bytes --]

2015-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

	* emit-rtl.h (store_bit_field): Move prototype to expmed.h. 
	(extract_bit_field): Likewise.
	(extract_low_bits): Likewise.
	(expand_mult): Likewise.
	(expand_mult_highpart_adjust): Likewise.

[-- Attachment #3: foo.patch --]
[-- Type: text/x-patch, Size: 1618 bytes --]

Index: gcc/emit-rtl.h
===================================================================
--- gcc/emit-rtl.h	(revision 219882)
+++ gcc/emit-rtl.h	(working copy)
@@ -189,17 +189,4 @@
    MODE and adjusted by OFFSET.  */
 extern rtx widen_memory_access (rtx, machine_mode, HOST_WIDE_INT);
 
-extern void store_bit_field (rtx, unsigned HOST_WIDE_INT,
-			     unsigned HOST_WIDE_INT,
-			     unsigned HOST_WIDE_INT,
-			     unsigned HOST_WIDE_INT,
-			     machine_mode, rtx);
-extern rtx extract_bit_field (rtx, unsigned HOST_WIDE_INT,
-			      unsigned HOST_WIDE_INT, int, rtx,
-			      machine_mode, machine_mode);
-extern rtx extract_low_bits (machine_mode, machine_mode, rtx);
-extern rtx expand_mult (machine_mode, rtx, rtx, rtx, int);
-extern rtx expand_mult_highpart_adjust (machine_mode, rtx, rtx, rtx, rtx, int);
-
-
 #endif /* GCC_EMIT_RTL_H */
Index: gcc/expmed.h
===================================================================
--- gcc/expmed.h	(revision 219882)
+++ gcc/expmed.h	(working copy)
@@ -703,4 +703,16 @@
 			  rtx, int);
 #endif
 
+extern void store_bit_field (rtx, unsigned HOST_WIDE_INT,
+			     unsigned HOST_WIDE_INT,
+			     unsigned HOST_WIDE_INT,
+			     unsigned HOST_WIDE_INT,
+			     machine_mode, rtx);
+extern rtx extract_bit_field (rtx, unsigned HOST_WIDE_INT,
+			      unsigned HOST_WIDE_INT, int, rtx,
+			      machine_mode, machine_mode);
+extern rtx extract_low_bits (machine_mode, machine_mode, rtx);
+extern rtx expand_mult (machine_mode, rtx, rtx, rtx, int);
+extern rtx expand_mult_highpart_adjust (machine_mode, rtx, rtx, rtx, rtx, int);
+
 #endif  // EXPMED_H

  reply	other threads:[~2015-01-22 20:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-12  0:23 Prathamesh Kulkarni
2015-01-13 10:36 ` Richard Biener
2015-01-13 10:47   ` Prathamesh Kulkarni
2015-01-13 16:38     ` Prathamesh Kulkarni
2015-01-13 20:42       ` Prathamesh Kulkarni
2015-01-14  9:43         ` Richard Biener
2015-01-14 11:16           ` Prathamesh Kulkarni
2015-01-14 11:18             ` Prathamesh Kulkarni
2015-01-14 12:09               ` Prathamesh Kulkarni
2015-01-14 12:17                 ` Richard Biener
2015-01-14 12:23                   ` Prathamesh Kulkarni
2015-01-14 12:24                     ` Richard Biener
2015-01-15 14:10                       ` Prathamesh Kulkarni
2015-01-21 18:00                         ` Eric Botcazou
2015-01-22 22:17                           ` Prathamesh Kulkarni [this message]
2015-01-23  1:19                             ` Eric Botcazou
2015-01-23 10:14                             ` Richard Biener

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=CAAgBjMn-agNX_shGavYOzstcSdUy0F6+SKQca6VMz3S3c2HvHQ@mail.gmail.com \
    --to=prathamesh.kulkarni@linaro.org \
    --cc=amacleod@redhat.com \
    --cc=ebotcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=michael.collison@linaro.org \
    --cc=rguenther@suse.de \
    /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).