public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/44034]  New: target hooks are hard to maintain
@ 2010-05-07 22:17 amylaar at gcc dot gnu dot org
  2010-05-07 22:29 ` [Bug other/44034] " steven at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-05-07 22:17 UTC (permalink / raw)
  To: gcc-bugs

The definition of target hooks is spread across multiple files, which makes
it hard to add new or modify existing target hooks in a consistent manner.


-- 
           Summary: target hooks are hard to maintain
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org
OtherBugsDependingO 44033
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44034


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/44034] target hooks are hard to maintain
  2010-05-07 22:17 [Bug other/44034] New: target hooks are hard to maintain amylaar at gcc dot gnu dot org
@ 2010-05-07 22:29 ` steven at gcc dot gnu dot org
  2010-05-12  6:54 ` amylaar at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-05-07 22:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from steven at gcc dot gnu dot org  2010-05-07 22:28 -------
Indeed. A serious issue.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-07 22:28:55
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44034


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/44034] target hooks are hard to maintain
  2010-05-07 22:17 [Bug other/44034] New: target hooks are hard to maintain amylaar at gcc dot gnu dot org
  2010-05-07 22:29 ` [Bug other/44034] " steven at gcc dot gnu dot org
@ 2010-05-12  6:54 ` amylaar at gcc dot gnu dot org
  2010-05-26  7:58 ` amylaar at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-05-12  6:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from amylaar at gcc dot gnu dot org  2010-05-12 06:54 -------
A patch is here:
http://gcc.gnu.org/ml/gcc-patches/2010-05/msg00788.html


-- 

amylaar at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44034


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/44034] target hooks are hard to maintain
  2010-05-07 22:17 [Bug other/44034] New: target hooks are hard to maintain amylaar at gcc dot gnu dot org
  2010-05-07 22:29 ` [Bug other/44034] " steven at gcc dot gnu dot org
  2010-05-12  6:54 ` amylaar at gcc dot gnu dot org
@ 2010-05-26  7:58 ` amylaar at gcc dot gnu dot org
  2010-06-07 22:23 ` amylaar at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-05-26  7:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from amylaar at gcc dot gnu dot org  2010-05-26 07:57 -------
(In reply to comment #2)

updated patch for revision 159828:
http://gcc.gnu.org/ml/gcc-patches/2010-05/msg01938.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44034


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/44034] target hooks are hard to maintain
  2010-05-07 22:17 [Bug other/44034] New: target hooks are hard to maintain amylaar at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-05-26  7:58 ` amylaar at gcc dot gnu dot org
@ 2010-06-07 22:23 ` amylaar at gcc dot gnu dot org
  2010-06-09  3:14 ` amylaar at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-06-07 22:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from amylaar at gcc dot gnu dot org  2010-06-07 22:22 -------
(In reply to comment #3)

updated patch for revision 160389:

http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00665.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44034


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/44034] target hooks are hard to maintain
  2010-05-07 22:17 [Bug other/44034] New: target hooks are hard to maintain amylaar at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-06-07 22:23 ` amylaar at gcc dot gnu dot org
@ 2010-06-09  3:14 ` amylaar at gcc dot gnu dot org
  2010-06-29 18:22 ` amylaar at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-06-09  3:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from amylaar at gcc dot gnu dot org  2010-06-09 03:14 -------
(In reply to comment #4)

updated patch for revision 160454:

http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00846.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44034


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/44034] target hooks are hard to maintain
  2010-05-07 22:17 [Bug other/44034] New: target hooks are hard to maintain amylaar at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-06-09  3:14 ` amylaar at gcc dot gnu dot org
@ 2010-06-29 18:22 ` amylaar at gcc dot gnu dot org
  2010-06-30 14:34 ` iains at gcc dot gnu dot org
  2010-06-30 19:08 ` amylaar at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-06-29 18:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from amylaar at gcc dot gnu dot org  2010-06-29 18:22 -------
Subject: Bug 44034

Author: amylaar
Date: Tue Jun 29 18:22:00 2010
New Revision: 161547

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161547
Log:
gcc:
        PR other/44034
        * target.def, doc/tm.texi.in, genhooks.c: New files.
        * target.h: Instead of defining individual hook members,
        define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
        include target.def.
        * target-def.h: Instead of defining individual hook initializers,
        include target-hooks-def.h.
        * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
        targetm.live_on_entry -> targetm.extra_live_on_entry
        targetm.sched.md_finish ->targetm.sched.finish
        targetm.sched.md_init -> targetm.sched.init
        targetm.sched.md_init_global -> targetm.sched.init_global
        targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
        targetm.asm_out.except_table_label ->
          targetm.asm_out.emit_except_table_label
        targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
        targetm.target_help -> targetm.help
        targetm.vectorize.builtin_support_vector_misalignment ->
          targetm.vectorize.support_vector_misalignment
        targetm.file_start_app_off -> targetm.asm_file_start_app_off
        targetm.file_start_file_directive ->
         targetm.asm_file_start_file_directive
        * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
        * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
        * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
        TARGET_VECTOR_ALIGNMENT_REACHABLE ->
          TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
        TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
          TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
        TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
        * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
        * Makefile.in (TARGET_H): Depend on target.def.
        (TARGET_DEF_H): Depend on target-hooks-def.h.
        (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
        (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
        * doc/tm.texi: Regenerate.
gcc/c-family:
        * c-common.c: Rename targetm member:
        targetm.enum_va_list -> targetm.enum_va_list_p
gcc/po:
        * EXCLUDES: Add genhooks.c.
Index: gcc/doc/tm.texi


Added:
    trunk/gcc/doc/tm.texi.in
      - copied, changed from r161540, trunk/gcc/doc/tm.texi
    trunk/gcc/genhooks.c
    trunk/gcc/target.def
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/Makefile.in
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/config/alpha/alpha.c
    trunk/gcc/config/arm/arm.c
    trunk/gcc/config/cris/cris.c
    trunk/gcc/config/ia64/ia64.c
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/config/spu/spu.c
    trunk/gcc/df-scan.c
    trunk/gcc/doc/tm.texi
    trunk/gcc/dwarf2out.c
    trunk/gcc/except.c
    trunk/gcc/haifa-sched.c
    trunk/gcc/opts.c
    trunk/gcc/po/ChangeLog
    trunk/gcc/po/EXCLUDES
    trunk/gcc/sel-sched.c
    trunk/gcc/target-def.h
    trunk/gcc/target.h
    trunk/gcc/tree-vect-data-refs.c
    trunk/gcc/varasm.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44034


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/44034] target hooks are hard to maintain
  2010-05-07 22:17 [Bug other/44034] New: target hooks are hard to maintain amylaar at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-06-29 18:22 ` amylaar at gcc dot gnu dot org
@ 2010-06-30 14:34 ` iains at gcc dot gnu dot org
  2010-06-30 19:08 ` amylaar at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-06-30 14:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from iains at gcc dot gnu dot org  2010-06-30 14:34 -------
Subject: Bug 44034

Author: iains
Date: Wed Jun 30 14:33:40 2010
New Revision: 161606

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161606
Log:

        PR other/44034
        * config/darwin.c (darwin_override_options): Use renamed
        targetm.asm_out.emit_unwind_label.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/darwin.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44034


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/44034] target hooks are hard to maintain
  2010-05-07 22:17 [Bug other/44034] New: target hooks are hard to maintain amylaar at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2010-06-30 14:34 ` iains at gcc dot gnu dot org
@ 2010-06-30 19:08 ` amylaar at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2010-06-30 19:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from amylaar at gcc dot gnu dot org  2010-06-30 19:08 -------
Patch committed to mainline.
AFAIK the only lingering issue is this one:
http://gcc.gnu.org/ml/gcc-patches/2010-06/msg03046.html

(And of course the stuff that needs some help from the FSF - PR44035, PR44033,
 PR44032)


-- 

amylaar at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44034


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-06-30 19:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-07 22:17 [Bug other/44034] New: target hooks are hard to maintain amylaar at gcc dot gnu dot org
2010-05-07 22:29 ` [Bug other/44034] " steven at gcc dot gnu dot org
2010-05-12  6:54 ` amylaar at gcc dot gnu dot org
2010-05-26  7:58 ` amylaar at gcc dot gnu dot org
2010-06-07 22:23 ` amylaar at gcc dot gnu dot org
2010-06-09  3:14 ` amylaar at gcc dot gnu dot org
2010-06-29 18:22 ` amylaar at gcc dot gnu dot org
2010-06-30 14:34 ` iains at gcc dot gnu dot org
2010-06-30 19:08 ` amylaar 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).