Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gcc ICE



On Thu, Apr 02, 2020 at 02:26:52PM +0200, Thomas Klausner wrote:
> On Thu, Apr 02, 2020 at 07:46:42AM +0000, Adam Ciarciński wrote:
> > Module Name:	pkgsrc
> > Committed By:	adam
> > Date:		Thu Apr  2 07:46:42 UTC 2020
> > 
> > Modified Files:
> > 	pkgsrc/devel/git: Makefile.version
> > 	pkgsrc/devel/git-base: PLIST distinfo
> > 
> > Log Message:
> > git: updated to 2.26.0
> 
> Hm, this breaks the compiler on NetBSD-9.99.52/amd64:
> 
>     CC builtin/remote-fd.o
> builtin/rebase.c: In function 'cmd_rebase__interactive':
> builtin/rebase.c:473:41: internal compiler error: in recompute_tree_invariant_for_addr_expr, at tree.c:4487
>    { OPTION_CALLBACK, 'k', "keep-empty", &options, NULL,
>                                          ^~~~~~~~
> no stack trace because unwind library not available
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://www.NetBSD.org/support/send-pr.html> for instructions.
> gmake: *** [Makefile:2382: builtin/rebase.o] Error 1
> gmake: *** Waiting for unfinished jobs....

I've created and reduced a test file for this. It only happens when I
compile this file with -fstack-check, on NetBSD 9.99.52/amd64 with the
base gcc 8.4.0.

# gcc -o foo.o -c -fstack-check rebase.i
rebase.i:1:1: warning: data definition has no type or storage class
 a;
 ^
rebase.i:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
rebase.i:5:1: warning: no semicolon at end of struct or union
 } e() {
 ^
rebase.i: In function ‘e’:
rebase.i:6:23: warning: initialization of ‘char’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
   struct b f[] = {{}, "", f, a};
                       ^~
rebase.i:6:23: note: (near initialization for ‘f[1].c’)
rebase.i:6:27: internal compiler error: in recompute_tree_invariant_for_addr_expr, at tree.c:4487
   struct b f[] = {{}, "", f, a};
                           ^
no stack trace because unwind library not available
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.NetBSD.org/support/send-pr.html> for instructions.

with the attached small file.

What next?
 Thomas
a;
struct b {
  char c;
  void *d
} e() {
  struct b f[] = {{}, "", f, a};
}


Home | Main Index | Thread Index | Old Index