public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98636] New: [ARM] ICE on passing incompatible options for fp16
@ 2021-01-12 11:08 prathamesh3492 at gcc dot gnu.org
  2021-01-12 12:52 ` [Bug target/98636] [ARM] ICE on passing incompatible options for fp16 - global_options’ are modified in local context marxin at gcc dot gnu.org
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: prathamesh3492 at gcc dot gnu.org @ 2021-01-12 11:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98636
           Summary: [ARM] ICE on passing incompatible options for fp16
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: prathamesh3492 at gcc dot gnu.org
  Target Milestone: ---

For any test-case, that includes arm_neon.h, for instance:
#include <arm_neon.h>
void f() {}

Passing incompatible fp16 format seems to result in ICE.
For example, passing -mfp16-format=alternative resulted in:
In file included from test.c:1:
../arm-stage1-build/gcc/include/arm_neon.h:18122:9: error: selected fp16
options are incompatible
18122 | #pragma GCC target ("arch=armv8.2-a+fp16fml")
      |         ^~~
../arm-stage1-build/gcc/include/arm_neon.h:18324:9: internal compiler error:
‘global_options’ are modified in local context
18324 | #pragma GCC pop_options
      |         ^~~
0xdcb103 cl_optimization_compare(gcc_options*, gcc_options*)
       
/home/bilbo/gnu-toolchain/gcc/vfma/arm-stage1-build/gcc/options-save.c:12555
0x97d54d handle_pragma_pop_options
        ../../gcc/gcc/c-family/c-pragma.c:1092
0x8f3cbb c_parser_pragma
        ../../gcc/gcc/c/c-parser.c:12525
0x91aab5 c_parser_external_declaration
        ../../gcc/gcc/c/c-parser.c:1758
0x91b269 c_parser_translation_unit
        ../../gcc/gcc/c/c-parser.c:1650
0x91b269 c_parse_file()
        ../../gcc/gcc/c/c-parser.c:21935
0x97b045 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1211


My built version is configured as:
Using built-in specs.
COLLECT_GCC=../arm-stage1-build/gcc/xgcc
Target: arm-linux-gnueabihf
Configured with: ../gcc/configure --enable-languages=c,c++ --disable-bootstrap
--target=arm-linux-gnueabihf --with-arch=armv7-a --with-fpu=neon
--with-float=hard --with-mode=thumb
--with-sysroot=/home/bilbo/gnu-toolchain/sysroots/arm-linux-gnueabihf
--disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20210111 (experimental) (GCC)

Thanks,
Prathamesh

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

end of thread, other threads:[~2021-06-23 13:32 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 11:08 [Bug target/98636] New: [ARM] ICE on passing incompatible options for fp16 prathamesh3492 at gcc dot gnu.org
2021-01-12 12:52 ` [Bug target/98636] [ARM] ICE on passing incompatible options for fp16 - global_options’ are modified in local context marxin at gcc dot gnu.org
2021-01-12 13:00 ` prathamesh3492 at gcc dot gnu.org
2021-01-12 13:01 ` prathamesh3492 at gcc dot gnu.org
2021-01-12 13:06 ` marxin at gcc dot gnu.org
2021-01-12 13:35 ` prathamesh3492 at gcc dot gnu.org
2021-01-12 13:42 ` marxin at gcc dot gnu.org
2021-01-12 14:21 ` prathamesh3492 at gcc dot gnu.org
2021-01-12 14:55 ` ktkachov at gcc dot gnu.org
2021-01-12 14:58 ` marxin at gcc dot gnu.org
2021-01-19  7:08 ` prathamesh3492 at gcc dot gnu.org
2021-01-19  9:04 ` marxin at gcc dot gnu.org
2021-01-19 15:34 ` prathamesh3492 at gcc dot gnu.org
2021-01-19 15:38 ` prathamesh3492 at gcc dot gnu.org
2021-01-19 15:40 ` tnfchris at gcc dot gnu.org
2021-01-19 16:08 ` marxin at gcc dot gnu.org
2021-01-19 16:58 ` prathamesh3492 at gcc dot gnu.org
2021-01-19 16:58 ` prathamesh3492 at gcc dot gnu.org
2021-01-22  8:45 ` cvs-commit at gcc dot gnu.org
2021-01-22  9:06 ` marxin at gcc dot gnu.org
2021-05-28  5:44 ` dcb314 at hotmail dot com
2021-06-01  9:15 ` marxin at gcc dot gnu.org
2021-06-23 13:31 ` cvs-commit at gcc dot gnu.org
2021-06-23 13:32 ` marxin 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).