public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/26262] New: Named section support should infer segment name
@ 2006-02-13 17:20 jconner at apple dot com
2006-02-13 17:22 ` [Bug target/26262] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jconner at apple dot com @ 2006-02-13 17:20 UTC (permalink / raw)
To: gcc-bugs
The cctools assembler used by powerpc-apple-darwin requires section directives
in the form:
.section SEGNAME, SECTION_NAME
And, using a section attribute in gcc passes the name along unmodified. So,
for example:
void foo (void) __attribute__((section("bar")));
void foo (void) {}
produces:
.section bar
...
which generates an assembly-time syntax error. It would be nice if gcc would
infer the segment name from the data type (__TEXT for functions and __DATA for
data), unless a segment name is present (as indicated by a comma in the section
name specification, perhaps?)
There is some discussion of this in the thread starting here:
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg00226.html
--
Summary: Named section support should infer segment name
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jconner at apple dot com
GCC target triplet: powerpc-apple-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26262
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/26262] Named section support should infer segment name
2006-02-13 17:20 [Bug target/26262] New: Named section support should infer segment name jconner at apple dot com
@ 2006-02-13 17:22 ` pinskia at gcc dot gnu dot org
2010-07-20 14:05 ` steven at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-13 17:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-13 17:22 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-02-13 17:22:54
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26262
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/26262] Named section support should infer segment name
2006-02-13 17:20 [Bug target/26262] New: Named section support should infer segment name jconner at apple dot com
2006-02-13 17:22 ` [Bug target/26262] " pinskia at gcc dot gnu dot org
@ 2010-07-20 14:05 ` steven at gcc dot gnu dot org
2010-07-20 14:17 ` iains at gcc dot gnu dot org
2010-07-20 14:34 ` iains at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-07-20 14:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from steven at gcc dot gnu dot org 2010-07-20 14:04 -------
This is still a problem. Iain, one for you?
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iains at gcc dot gnu dot org
Last reconfirmed|2006-02-13 17:22:54 |2010-07-20 14:04:44
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26262
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/26262] Named section support should infer segment name
2006-02-13 17:20 [Bug target/26262] New: Named section support should infer segment name jconner at apple dot com
2006-02-13 17:22 ` [Bug target/26262] " pinskia at gcc dot gnu dot org
2010-07-20 14:05 ` steven at gcc dot gnu dot org
@ 2010-07-20 14:17 ` iains at gcc dot gnu dot org
2010-07-20 14:34 ` iains at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-07-20 14:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from iains at gcc dot gnu dot org 2010-07-20 14:17 -------
(In reply to comment #2)
> This is still a problem. Iain, one for you?
I'll take a shufftie..
... can one overload attribute handling?
(i.e. can I sneek a darwin-specific handler in via the target table in darwin.h
.. or do I need to deal with this in c-family?)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26262
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/26262] Named section support should infer segment name
2006-02-13 17:20 [Bug target/26262] New: Named section support should infer segment name jconner at apple dot com
` (2 preceding siblings ...)
2010-07-20 14:17 ` iains at gcc dot gnu dot org
@ 2010-07-20 14:34 ` iains at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-07-20 14:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from iains at gcc dot gnu dot org 2010-07-20 14:34 -------
having said that, isn't this just a problem of bad source code?
if the target is darwin - then the section name should be specified
appropriately surely?
I guess filling it in automatically would be possible, by some kind of back-end
manipulation if we detect that DECL_SECTION_NAME is set and the string is
invalid..
... but it seems a bit breakable (for example, if we get darwin working with
gas...)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26262
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-07-20 14:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-13 17:20 [Bug target/26262] New: Named section support should infer segment name jconner at apple dot com
2006-02-13 17:22 ` [Bug target/26262] " pinskia at gcc dot gnu dot org
2010-07-20 14:05 ` steven at gcc dot gnu dot org
2010-07-20 14:17 ` iains at gcc dot gnu dot org
2010-07-20 14:34 ` iains at gcc dot gnu dot org
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).