public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jan Hubicka <hubicka@ucw.cz>
To: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Cc: Jan Hubicka <jh@suse.cz>, Nick Clifton <nickc@redhat.com>,
	gcc-patches@gcc.gnu.org
Subject: Re: [BUILDROBOT] v850 fallout (was: Turn DECL_SECTION_NAME into string)
Date: Wed, 25 Jun 2014 05:18:00 -0000	[thread overview]
Message-ID: <20140625051834.GC30367@kam.mff.cuni.cz> (raw)
In-Reply-To: <20140625011226.GM31494@lug-owl.de>

> Hi!
> 
> I've been away for holidays and other stuff, so this is a bit late,
> but nevermind... The stringification of DECL_SECTION_NAME had some
> fallout, see eg. http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=272454
> 
> g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/home/jbglaw/repos/gcc/gcc -I/home/jbglaw/repos/gcc/gcc/. -I/home/jbglaw/repos/gcc/gcc/../include -I/home/jbglaw/repos/gcc/gcc/../libcpp/include  -I/home/jbglaw/repos/gcc/gcc/../libdecnumber -I/home/jbglaw/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/home/jbglaw/repos/gcc/gcc/../libbacktrace    -o v850.o -MT v850.o -MMD -MP -MF ./.deps/v850.TPo /home/jbglaw/repos/gcc/gcc/config/v850/v850.c
> /home/jbglaw/repos/gcc/gcc/config/v850/v850.c: In function ‘tree_node* v850_handle_interrupt_attribute(tree_node**, tree_node*, tree_node*, int, bool*)’:
> /home/jbglaw/repos/gcc/gcc/config/v850/v850.c:2088: warning: unknown conversion type character ‘E’ in format
> /home/jbglaw/repos/gcc/gcc/config/v850/v850.c:2088: warning: too many arguments for format
> /home/jbglaw/repos/gcc/gcc/config/v850/v850.c: In function ‘void v850_insert_attributes(tree_node*, tree_node**)’:
> /home/jbglaw/repos/gcc/gcc/config/v850/v850.c:2647: error: cannot convert ‘tree_node*’ to ‘const char*’ for argument ‘2’ to ‘void set_decl_section_name(tree_node*, const char*)’
> make[1]: *** [v850.o] Error 1
The following patch should cure this:
Index: gcc/config/v850/v850.c
===================================================================
--- gcc/config/v850/v850.c      (revision 211693)
+++ gcc/config/v850/v850.c      (working copy)
@@ -2644,7 +2644,7 @@
          /* Only set the section name if specified by a pragma, because
             otherwise it will force those variables to get allocated storage
             in this module, rather than by the linker.  */
-         set_decl_section_name (decl, chosen_section);
+         set_decl_section_name (decl, DECL_IDENTIFIER_POINTER (chosen_section));
        }
     }
 }

but perhaps
tree GHS_default_section_names [(int) COUNT_OF_GHS_SECTION_KINDS];
tree GHS_current_section_names [(int) COUNT_OF_GHS_SECTION_KINDS];
Should be turned into strings.  I do not see who is initializing these?

Honza
> 
> MfG, JBG
> 
> -- 
>       Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
> Signature of:              Alles sollte so einfach wie möglich gemacht sein.
> the second  :                          Aber nicht einfacher.  (Einstein)


  reply	other threads:[~2014-06-25  5:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-12  4:33 Turn DECL_SECTION_NAME into string Jan Hubicka
2014-06-12  7:52 ` Richard Biener
2014-06-12  8:13   ` Jan Hubicka
2014-06-17  6:40 ` Thomas Schwinge
2014-06-17  8:19   ` Richard Biener
2014-06-25  1:12 ` [BUILDROBOT] v850 fallout (was: Turn DECL_SECTION_NAME into string) Jan-Benedict Glaw
2014-06-25  5:18   ` Jan Hubicka [this message]
2014-06-25  9:21   ` [BUILDROBOT] v850 fallout Nicholas Clifton
2014-06-25  1:16 ` [BUILDROBOT] xtensa fallout (was: Turn DECL_SECTION_NAME into string) Jan-Benedict Glaw
2014-06-25  5:20   ` Jan Hubicka
2014-06-25 15:56     ` augustine.sterling
2014-07-04 21:11       ` Jan-Benedict Glaw
2014-07-10 14:41         ` augustine.sterling
2014-06-25  1:23 ` [BUILDROBOT] frv " Jan-Benedict Glaw
2014-06-25  5:23   ` Jan Hubicka

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=20140625051834.GC30367@kam.mff.cuni.cz \
    --to=hubicka@ucw.cz \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jbglaw@lug-owl.de \
    --cc=jh@suse.cz \
    --cc=nickc@redhat.com \
    /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).