public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/56406] New: attribute((target(xpto))) causes ICE in i386 and rs6000
@ 2013-02-20 11:12 paulo@matos-sorge.com
  2021-08-06  1:06 ` [Bug target/56406] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: paulo@matos-sorge.com @ 2013-02-20 11:12 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56406
           Summary: attribute((target(xpto))) causes ICE in i386 and
                    rs6000
    Classification: Unclassified
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: paulo@matos-sorge.com


While doing some tests I came across this ICE:
int __attribute__((__target__(xpto)))
foo(int x)
{
  if (x == 1)
    return x;
  else
    return x * foo (x-1);
}


If any word instead  of xpto works. The compiler fails with:
internal compiler error: in ix86_valid_target_attribute_inner_p, at
config/i386/i386.c:4214


This is because it's expecting either a STRING_CST ("xpto") or a TREE_CHAIN. If
an identifier node is seen instead we hit a gcc_unreachable. The other backend
that should be affected by this (but I didn't reproduce it) is rs6000.


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

* [Bug target/56406] attribute((target(xpto))) causes ICE in i386 and rs6000
  2013-02-20 11:12 [Bug target/56406] New: attribute((target(xpto))) causes ICE in i386 and rs6000 paulo@matos-sorge.com
@ 2021-08-06  1:06 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-06  1:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56406

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.0
         Depends on|                            |79906, 55742
      Known to work|                            |4.8.1
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
rs6000 version was PR 79906.
x86 was fixed with PR 55742.

So all fixed.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55742
[Bug 55742] [4.8 regression] __attribute__ in class function declaration cause
"prototype does not match" errors.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79906
[Bug 79906] ICE in rs6000_inner_target_options, at config/rs6000/rs6000.c:39199

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

end of thread, other threads:[~2021-08-06  1:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-20 11:12 [Bug target/56406] New: attribute((target(xpto))) causes ICE in i386 and rs6000 paulo@matos-sorge.com
2021-08-06  1:06 ` [Bug target/56406] " pinskia at gcc dot gnu.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).