public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/62133] New: internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2")
@ 2014-08-14  9:45 sampath.pamidi at gmail dot com
  2021-08-09  6:50 ` [Bug target/62133] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sampath.pamidi at gmail dot com @ 2014-08-14  9:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 62133
           Summary: internal compiler error:in classify_argument, at
                    config/i386/i386.c:6240 when using #pragma GCC target
                    ("arch=core-avx2")
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sampath.pamidi at gmail dot com

Compiler Output:

gcc -g testtarget.c
In file included from
/usr/lib64/gcc/x86_64-suse-linux/4.8/include/immintrin.h:56:0,
                 from testtarget.c:4:
/usr/lib64/gcc/x86_64-suse-linux/4.8/include/avxintrin.h: In function
â_mm256_load_si256â:
/usr/lib64/gcc/x86_64-suse-linux/4.8/include/avxintrin.h:869:1: internal
compiler error: in classify_argument, at config/i386/i386.c:6240
 _mm256_load_si256 (__m256i const *__P)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.


*******************************
testtarget.c:

#pragma GCC push_options    
#pragma GCC target ("arch=core-avx2")
#include <immintrin.h>
int main()
{
  __m256i const *rem;

_mm256_load_si256( (__m256i*) rem );


}

#pragma GCC pop_options 

***********************************

#  gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.8
--enable-ssp --disable-libssp --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib
--enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --enable-linker-build-id
--enable-linux-futex --program-suffix=-4.8 --without-system-libunwind
--with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux
--host=x86_64-suse-linux
Thread model: posix
gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux)
>From gcc-bugs-return-458430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 14 09:45:21 2014
Return-Path: <gcc-bugs-return-458430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13569 invoked by alias); 14 Aug 2014 09:45:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13515 invoked by uid 48); 14 Aug 2014 09:45:13 -0000
From: "mrestelli at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/62125] Nested select type not accepted (rejects valid)
Date: Thu, 14 Aug 2014 09:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mrestelli at gmail dot com
X-Bugzilla-Status: WAITING
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-62125-4-33NxUyvSsr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62125-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62125-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-08/txt/msg00927.txt.bz2
Content-length: 923

https://gcc.gnu.org/bugzilla/show_bug.cgi?idb125

--- Comment #2 from mrestelli <mrestelli at gmail dot com> ---
I can not say 100% that the code is correct, but at least reading 8.6
"The SELECT TYPE Construct" of "The Fortran 2003 Handbook" I don't see
why it shouldn't.

Notice that: among rules and restrictions, 1. says

"The selector must be polymorphic."

and then "In the block following a CLASS IS type guard, the
associating entity is polymorphic and has the same declared type as
the selector. The type parameter values are those of the declared type
of the selector."

So, after the type guard  class is(t2)  I understand that u is a
polymorphic variable of type  class(t2)  which can be used as the
selector of a nested  select type  construct.

(Assuming the code is not legal, I would then claim that the error
message is not very clear, since inside the SELECT TYPE construct the
type of u is t2, not t1)


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

* [Bug target/62133] internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2")
  2014-08-14  9:45 [Bug target/62133] New: internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2") sampath.pamidi at gmail dot com
@ 2021-08-09  6:50 ` pinskia at gcc dot gnu.org
  2022-10-19 14:30 ` zsojka at seznam dot cz
  2022-10-19 14:34 ` zsojka at seznam dot cz
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-09  6:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |8.4.0, 8.5.0, 9.3.0
           Keywords|                            |ice-on-valid-code,
                   |                            |rejects-valid
      Known to fail|                            |8.1.0, 8.3.0, 9.1.0, 9.2.0

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Seems to be working in GCC 8.4.0, GCC 9.2 and 10+

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

* [Bug target/62133] internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2")
  2014-08-14  9:45 [Bug target/62133] New: internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2") sampath.pamidi at gmail dot com
  2021-08-09  6:50 ` [Bug target/62133] " pinskia at gcc dot gnu.org
@ 2022-10-19 14:30 ` zsojka at seznam dot cz
  2022-10-19 14:34 ` zsojka at seznam dot cz
  2 siblings, 0 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2022-10-19 14:30 UTC (permalink / raw)
  To: gcc-bugs

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

Zdenek Sojka <zsojka at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zsojka at seznam dot cz

--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> ---
Another testcase, for C code:
$ cat testcase.c 
__bf16 __attribute__((__vector_size__(8))) foo(void) {}
$ x86_64-pc-linux-gnu-gcc testcase.c 
testcase.c: In function 'foo':
testcase.c:1:1: internal compiler error: in classify_argument, at
config/i386/i386.cc:2523
    1 | __bf16 __attribute__((__vector_size__(8))) foo(void) {}
      | ^~~~~~
0x8437a7 classify_argument
        /repo/gcc-trunk/gcc/config/i386/i386.cc:2523
0x1788e56 classify_argument
        /repo/gcc-trunk/gcc/config/i386/i386.cc:2543
0x1788f28 examine_argument
        /repo/gcc-trunk/gcc/config/i386/i386.cc:2580
0x17898af ix86_return_in_memory
        /repo/gcc-trunk/gcc/config/i386/i386.cc:4265
0x1044e71 aggregate_value_p(tree_node const*, tree_node const*)
        /repo/gcc-trunk/gcc/function.cc:2119
0x1049981 allocate_struct_function(tree_node*, bool)
        /repo/gcc-trunk/gcc/function.cc:4848
0xd596a4 store_parm_decls()
        /repo/gcc-trunk/gcc/c/c-decl.cc:10434
0xdbdced c_parser_declaration_or_fndef
        /repo/gcc-trunk/gcc/c/c-parser.cc:2612
0xdc5eb3 c_parser_external_declaration
        /repo/gcc-trunk/gcc/c/c-parser.cc:1833
0xdc68d3 c_parser_translation_unit
        /repo/gcc-trunk/gcc/c/c-parser.cc:1695
0xdc68d3 c_parse_file()
        /repo/gcc-trunk/gcc/c/c-parser.cc:24213
0xe28a61 c_common_parse_file()
        /repo/gcc-trunk/gcc/c-family/c-opts.cc:1247
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug target/62133] internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2")
  2014-08-14  9:45 [Bug target/62133] New: internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2") sampath.pamidi at gmail dot com
  2021-08-09  6:50 ` [Bug target/62133] " pinskia at gcc dot gnu.org
  2022-10-19 14:30 ` zsojka at seznam dot cz
@ 2022-10-19 14:34 ` zsojka at seznam dot cz
  2 siblings, 0 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2022-10-19 14:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> ---
(In reply to Zdenek Sojka from comment #2)
> Another testcase, for C code:
> $ cat testcase.c 
> __bf16 __attribute__((__vector_size__(8))) foo(void) {}
> $ x86_64-pc-linux-gnu-gcc testcase.c 
> testcase.c: In function 'foo':
> testcase.c:1:1: internal compiler error: in classify_argument, at
> config/i386/i386.cc:2523
>     1 | __bf16 __attribute__((__vector_size__(8))) foo(void) {}
>       | ^~~~~~
> 0x8437a7 classify_argument
>         /repo/gcc-trunk/gcc/config/i386/i386.cc:2523
> 0x1788e56 classify_argument
>         /repo/gcc-trunk/gcc/config/i386/i386.cc:2543
> 0x1788f28 examine_argument
>         /repo/gcc-trunk/gcc/config/i386/i386.cc:2580
> 0x17898af ix86_return_in_memory
>         /repo/gcc-trunk/gcc/config/i386/i386.cc:4265
> 0x1044e71 aggregate_value_p(tree_node const*, tree_node const*)
>         /repo/gcc-trunk/gcc/function.cc:2119
> 0x1049981 allocate_struct_function(tree_node*, bool)
>         /repo/gcc-trunk/gcc/function.cc:4848
> 0xd596a4 store_parm_decls()
>         /repo/gcc-trunk/gcc/c/c-decl.cc:10434
> 0xdbdced c_parser_declaration_or_fndef
>         /repo/gcc-trunk/gcc/c/c-parser.cc:2612
> 0xdc5eb3 c_parser_external_declaration
>         /repo/gcc-trunk/gcc/c/c-parser.cc:1833
> 0xdc68d3 c_parser_translation_unit
>         /repo/gcc-trunk/gcc/c/c-parser.cc:1695
> 0xdc68d3 c_parse_file()
>         /repo/gcc-trunk/gcc/c/c-parser.cc:24213
> 0xe28a61 c_common_parse_file()
>         /repo/gcc-trunk/gcc/c-family/c-opts.cc:1247
> Please submit a full bug report, with preprocessed source (by using
> -freport-bug).
> Please include the complete backtrace with any bug report.
> See <https://gcc.gnu.org/bugs/> for instructions.

My apologies, the above belongs to PR107261

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

end of thread, other threads:[~2022-10-19 14:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-14  9:45 [Bug target/62133] New: internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2") sampath.pamidi at gmail dot com
2021-08-09  6:50 ` [Bug target/62133] " pinskia at gcc dot gnu.org
2022-10-19 14:30 ` zsojka at seznam dot cz
2022-10-19 14:34 ` zsojka at seznam dot cz

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).