public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/115324] New: [12/13/14/15 Regression] PCH (and maybe GC) of rs6000 builtins broken
@ 2024-06-03  8:44 jakub at gcc dot gnu.org
  2024-06-03  9:09 ` [Bug target/115324] [12/13/14/15 Regression] PCH " jakub at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-06-03  8:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115324
           Summary: [12/13/14/15 Regression] PCH (and maybe GC) of rs6000
                    builtins broken
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
                CC: belegdol at gmail dot com, dan at danny dot cz
        Depends on: 104323
  Target Milestone: ---

+++ This bug was initially created as a clone of Bug #104323 +++

The PR104323 fix doesn't seem to work with --enable-host-pie.
cat pr104323.h 
#include <altivec.h>
cat pr104323.c 
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */

#include "pr104323.h"

__vector int a1 = { 100, 200, 300, 400 };
__vector int a2 = { 500, 600, 700, 800 };
__vector int r;

int
main ()
{
  r = vec_add (a1, a2);
  return 0;
}
./xgcc -B ./ -c pr104323.h -o pr104323.h.gch
./xgcc -B ./ -S pr104323.c
pr104323.c: In function ‘main’:
pr104323.c:13:3: internal compiler error: Segmentation fault
   13 |   r = vec_add (a1, a2);
      |   ^
0x5625e2834b83 crash_signal
        ../../gcc/toplev.cc:319
0x5625e228c56d altivec_resolve_overloaded_builtin(unsigned int, tree_node*,
void*)
        ../../gcc/config/rs6000/rs6000-c.cc:1997
0x5625e2190392 c_build_function_call_vec(unsigned int, vec<unsigned int,
va_heap, vl_ptr> const&, tree_node*, vec<tree_node*, va_gc, vl_embed>*,
vec<tree_node*, va_gc, vl_embed>*)
        ../../gcc/c/c-typeck.cc:3440
0x5625e21c4536 c_parser_postfix_expression_after_primary
        ../../gcc/c/c-parser.cc:12682
0x5625e21a99a5 c_parser_postfix_expression
        ../../gcc/c/c-parser.cc:12234
0x5625e21ae60a c_parser_unary_expression
        ../../gcc/c/c-parser.cc:9894
0x5625e21b01df c_parser_cast_expression
        ../../gcc/c/c-parser.cc:9735
0x5625e21b04db c_parser_binary_expression
        ../../gcc/c/c-parser.cc:9503
0x5625e21b1a93 c_parser_conditional_expression
        ../../gcc/c/c-parser.cc:9198
0x5625e21b2324 c_parser_expr_no_commas
        ../../gcc/c/c-parser.cc:9111
0x5625e21b23ea c_parser_expr_no_commas
        ../../gcc/c/c-parser.cc:9154
0x5625e21b2773 c_parser_expression
        ../../gcc/c/c-parser.cc:12822
0x5625e21b2c57 c_parser_expression_conv
        ../../gcc/c/c-parser.cc:12862
0x5625e21d5b57 c_parser_statement_after_labels
        ../../gcc/c/c-parser.cc:7800
0x5625e21a942b c_parser_compound_statement_nostart
        ../../gcc/c/c-parser.cc:7287
0x5625e21d2136 c_parser_compound_statement
        ../../gcc/c/c-parser.cc:6564
0x5625e21d45af c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.cc:3019
0x5625e21deb73 c_parser_external_declaration
        ../../gcc/c/c-parser.cc:2048
0x5625e21df5cb c_parser_translation_unit
        ../../gcc/c/c-parser.cc:1902
0x5625e21df5cb c_parse_file()
        ../../gcc/c/c-parser.cc:27269
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.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104323
[Bug 104323] [12 Regression] PCH (and maybe GC) of rs6000 builtins broken

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

end of thread, other threads:[~2024-06-18  6:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-03  8:44 [Bug target/115324] New: [12/13/14/15 Regression] PCH (and maybe GC) of rs6000 builtins broken jakub at gcc dot gnu.org
2024-06-03  9:09 ` [Bug target/115324] [12/13/14/15 Regression] PCH " jakub at gcc dot gnu.org
2024-06-03  9:16 ` jakub at gcc dot gnu.org
2024-06-03 21:12 ` cvs-commit at gcc dot gnu.org
2024-06-04 14:26 ` cvs-commit at gcc dot gnu.org
2024-06-04 14:29 ` [Bug target/115324] [12/13 " jakub at gcc dot gnu.org
2024-06-11  6:17 ` cvs-commit at gcc dot gnu.org
2024-06-11 10:38 ` cvs-commit at gcc dot gnu.org
2024-06-11 10:54 ` jakub at gcc dot gnu.org
2024-06-18  6:33 ` cvs-commit 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).