[Bug regression/28373] New: C code gives unaligned access
/* gcc-4.1.1 gives unaligned access on alphaev68-dec-osf5.1b regression from gcc-3.4.4 % gcc -v Using built-in specs. Target: alphaev68-dec-osf5.1b Configured with: /usr/local/gcc-4.1.1/src/gcc-4.1.1/configure --enable-languages=c --prefix=/usr/local/gcc-4.1.1/alpha-OSF1-V5 Thread model: posix gcc version 4.1.1 % % gcc -o foo foo.c % foo Unaligned access pid=141992 foo va=0x11fffbffc pc=0x12000115c ra=0x1200011a0 inst=0x 9d42 % */ typedef struct { doubled; } aa; int foo(v) aa *v; { v-d = (double) 1; return 0; } int main() { int cc[1]; int i1; int i2; int i3; int i4; int i5; int i6; int i7; /* if remove this line, then no problem! */ foo(cc); /* says unaligned access */ return 0; } -- Summary: C code gives unaligned access Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28373
[Bug other/27843] New: gcc-4.2-20060527 make install fails on alphaev68-dec-osf5.1b
For gcc-4.2-20060527(also gcc-4.2-20060520) on alphaev68-dec-osf5.1b after configure --enable-languages=c make bootstrap make install 'make install' fails with /home/kate/gcc-4.2-20060527/src/gcc-4.2-20060527/install-sh -c fixinc.sh /home/kate/gcc-4.2-20060527/alpha-OSF1-V5/libexec/gcc/alphaev68-dec-osf5.1b/4.2.0/install-tools/fixin c.sh /home/kate/gcc-4.2-20060527/src/gcc-4.2-20060527/install-sh -c fixincl \ /home/kate/gcc-4.2-20060527/alpha-OSF1-V5/libexec/gcc/alphaev68-dec-osf5.1b/4.2.0/install-tools/fixincl /home/kate/gcc-4.2-20060527/alpha-OSF1-V5/lib/gcc/alphaev68-dec-osf5.1b/4.2.0/install-tools/mkheaders.conf /bin/sh: : cannot execute sed: Function s,[ cannot be parsed. /bin/sh: /]*/../,, -e ta: not found make[2]: *** [install-mkheaders] Error 1 -- Summary: gcc-4.2-20060527 make install fails on alphaev68-dec- osf5.1b Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu GCC build triplet: alphaev68-dec-osf5.1b GCC host triplet: alphaev68-dec-osf5.1b GCC target triplet: alphaev68-dec-osf5.1b http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27843
[Bug regression/27671] New: optimization error on pentium4-Linux with %, regression from gcc-4.1.0
/* % gcc -O0 -march=pentium4 -o foo foo.c ; foo ok % gcc -O1 -march=pentium4 -o foo foo.c ; foo bug % gcc -O1 -o foo foo.c ; foo ok % % gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /home/kate/test/gcc-4.2-20060513/configure --enable-languages=c --prefix=/home/kate/test/bin/i686-Linux Thread model: posix gcc version 4.2.0 20060513 (experimental) % Isolated from gmp-4.2.1 tests/t-mul.c and mpn/generic/mul_fft.c */ #include stdio.h void bar (int k) { int n; n = k % 2; if (n) { printf(ok\n); } else { printf(bug\n); } } int main() { bar(1); } -- Summary: optimization error on pentium4-Linux with %, regression from gcc-4.1.0 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27671
[Bug other/27614] New: stage 1 intl configure failure
With gcc-4.2-20060513 Configuring stage 1 in ./intl ... checking for void *... yes cchecking for void *... yes checking size of void *... configure: error: cannot compute sizeof (void *), 77 See `config.log' for more details. make[2]: *** [configure-stage1-gcc] Error 1 -- Summary: stage 1 intl configure failure Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu GCC build triplet: powerpc-apple-darwin8.6.0 GCC host triplet: powerpc-apple-darwin8.6.0 GCC target triplet: powerpc-apple-darwin8.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27614
[Bug other/27614] stage 1 intl configure failure
--- Comment #2 from kminola at eng dot umd dot edu 2006-05-15 15:37 --- Sorry, found my error. -- kminola at eng dot umd dot edu changed: What|Removed |Added Status|WAITING |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27614
[Bug c/27535] New: ICE, Regression from gcc-4.1.0
/* ICE using gcc-4.2-20060506 on x86_64-unknown-linux-gnu Regression from gcc-4.1.0 Source cut down from gmp-4.2.1/tests/refmpf.c % gcc-4.2-20060506 -O3 -c foo.c foo.c: In function âfooâ: foo.c:27: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. % % gcc-4.2-20060506 -O2 -c foo.c % % gcc-4.2-20060506 -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /home/kate/test/gcc-4.2-20060506/configure --enable-languages=c --prefix=/home/kate/test/bin/x86_64-Linux Thread model: posix gcc version 4.2.0 20060506 (experimental) % % % gcc -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /usr/local/gcc-4.1.0/src/gcc-4.1.0/configure --enable-languages=c,c++ --prefix=/usr/local/gcc-4.1.0/x86_64-Linux-g++ Thread model: posix gcc version 4.1.0 % % gcc -O3 -c foo.c % */ #include stdlib.h typedef struct { int a; } strt; typedef strt *ptr; void foo (ptr w, int u, int v) { int b; if (u == 0) { b = v 0; goto done; } if (v == 0) { b = u 0; } done: w-a = b == 0 ? 1 : -1; } -- Summary: ICE, Regression from gcc-4.1.0 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27535
[Bug c/26533] New: error: invalid use of void expression
This is probably pretty dodgy C code, but I find it strange that program foo.c compiles while program bar.c gives an error. Is this a bug? --- foo.c -- #include stdio.h int main() { int ii; ii = 276; void *vv = (void *)ii; } --- foo.c -- --- bar.c -- #include stdio.h int main() { int ii; void *vv; ii = 276; *vv = (void *)ii; } --- bar.c -- % gcc -o foo foo.c % gcc -o bar bar.c bar.c: In function ESC)B?main?: bar.c:10: warning: dereferencing ESC)B?void *? pointer bar.c:10: error: invalid use of void expression % For completeness on this report, this was on % gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /usr/local/gcc-4.0.2/src/gcc-4.0.2/configure --enable-languages=c --prefix=/usr/local/gcc-4.0.2/x86-Linux Thread model: posix gcc version 4.0.2 % -- Summary: error: invalid use of void expression Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26533
[Bug regression/26180] New: optimization regression on x86-SunOS
/* % gcc -v Using built-in specs. Target: i386-pc-solaris2.9 Configured with: /usr/local/gcc-4.0.2/src/gcc-4.0.2/configure --enable-languages=c --with-gnu-as --with-as=/usr/local/binutils-2.16.1/x86-SunOS-gcc-4.0.1/bin/as --with-gnu-ld --with-ld=/usr/local/binutils-2.16.1/x86-SunOS-gcc-4.0.1/bin/ld --prefix=/usr/local/gcc-4.0.2/x86-SunOS-gnu-as-ld Thread model: posix gcc version 4.0.2 % % gcc -O0 -o foo foo.c % foo z= 1 % % gcc -O2 -o foo foo.c % foo z= 1 % % % gcc-4.1 -v Using built-in specs. Target: i386-pc-solaris2.9 Configured with: /home/kate/gcc-4.1-20060203/src/gcc-4.1-20060203/configure --enable-languages=c --with-gnu-as --with-as=/usr/local/binutils-2.16.1/x86-SunOS-gcc-4.0.1/bin/as --with-gnu-ld --with-ld=/usr/local/binutils-2.16.1/x86-SunOS-gcc-4.0.1/bin/ld --prefix=/home/kate/gcc-4.1-20060203/x86-SunOS-gnu-as-ld Thread model: posix gcc version 4.1.0 20060203 (prerelease) % % % gcc-4.1 -O0 -o foo foo.c z = 1 % % gcc-4.1 -O2 -o foo foo.c z = -1 % */ #include stdio.h int bar(x, y) int x, y; { int x1, y1; int x2, y2; unsigned int x3, y3, w; int z; x1 = (x (1 30)); y1 = (y (1 30)); if (x1 y1) { x2 = ((x 0)? (x): -(x)); y2 = ((y 0)? (y): -(y)); x3 = x2; y3 = y2; w = x3 * y3; if (w = (1 30)) { z = 1; } else{ z = -1; } } return z; } int main() { int x, y, z; x = 536870912; /* 2^29 */ y = 2; z = bar(x, y); printf(z= %d\n, z); } -- Summary: optimization regression on x86-SunOS Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu GCC build triplet: i386-pc-solaris2.9 GCC host triplet: i386-pc-solaris2.9 GCC target triplet: i386-pc-solaris2.9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26180
[Bug c/22267] New: C optimization error with string.h
/* C optimization error with string.h on ia64-unknown-linux-gnu (also occurs on alphaev56-unknown-linux-gnu, but not on other architectures that I have tried) % gcc -v Using built-in specs. Target: ia64-unknown-linux-gnu Configured with: /usr/local/gcc-4.0.0/src/gcc-4.0.0/configure --enable-languages=c --prefix=/usr/local/gcc-4.0.0/ia64-Linux Thread model: posix gcc version 4.0.0 % % gcc -O0 -c foo.c % % gcc -O1 -c foo.c In file included from /usr/include/bits/string2.h:1211, from /usr/include/string.h:375, from foo.c:8: /usr/include/stdlib.h:556: error: parse error before â token /usr/include/stdlib.h:556: error: parse error before â token % Bug also occurs if use gcc-4.0-20050623 or gcc-4.1-20050625. */ extern void *f_mem_malloc(); #define mem_malloc(n) f_mem_malloc((unsigned long)(n)) #define malloc mem_malloc #include string.h int main() { return(1); } -- Summary: C optimization error with string.h Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: ia64-unknown-linux-gnu GCC host triplet: ia64-unknown-linux-gnu GCC target triplet: ia64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22267
[Bug c/21757] New: darwin-ldouble.o not a valid ppc64 mach-o file
/* darwin-ldouble.o not a valid ppc64 mach-o file % uname -a Darwin varro 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc % % gcc -v Using built-in specs. Target: powerpc-apple-darwin8.1.0 Configured with: /usr/local/gcc-4.0.0/src/gcc-4.0.0/configure --enable-languages=c --prefix=/usr/local/gcc-4.0.0/powerpc-Darwin Thread model: posix gcc version 4.0.0 % % gcc -o foo foo.c % % gcc -m64 -o foo foo.c ld64 failed: in /private/var/automount/usr/local/gcc-4.0.0/powerpc-Darwin/bin/../lib/gcc/powerpc-apple-darwin8.1.0/4.0.0/libgcc.a(darwin-ldouble.o), not a valid ppc64 mach-o file collect2: ld returned 1 exit status % % gcc-4.0-apple -v Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061) % % gcc-4.0-apple -m64 -o foo foo.c % */ int main () { long double div9, div10; #define TWO_64 18446744073709551616.0 #define TWO_128 (TWO_64 * TWO_64) #define TWO_256 (TWO_128 * TWO_128) div9 = (long double) (double) (TWO_256 * TWO_256); div10 = div9 * div9; return 0; } -- Summary: darwin-ldouble.o not a valid ppc64 mach-o file Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-apple-darwin8.1.0 GCC host triplet: powerpc-apple-darwin8.1.0 GCC target triplet: powerpc-apple-darwin8.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21757
[Bug regression/21390] New: alphaev68-dec-osf5.1b long double optimization bug with gcc-4.0.0
/* alphaev68-dec-osf5.1b long double optimization bug with gcc-4.0.0 regression from gcc-3.4.3 % config.guess alphaev68-dec-osf5.1b % gcc -v Using built-in specs. Target: alphaev68-dec-osf5.1b Configured with: /usr/local/gcc-4.0.0/src/gcc-4.0.0/configure --enable-languages=c --prefix=/usr/local/gcc-4.0.0/alpha-OSF1-V5 Thread model: posix gcc version 4.0.0 % % gcc -mieee-with-inexact -o foo foo.c % foo 1 % % gcc -mieee-with-inexact -O1 -o foo foo.c % foo 0 % only happens with long double, not with double */ #include stdio.h #define DBL_NAN ((long double) 0.0/0.0) static int Isnan_ld (long double d) { int ans; long double __x = (d); if ((d) != __x) ans = 1; else ans = 0; return ans; } int main (int argc, char *argv[]) { long double d; d = (long double) DBL_NAN; printf(%d\n, Isnan_ld(d)); return 0; } -- Summary: alphaev68-dec-osf5.1b long double optimization bug with gcc-4.0.0 Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: alphaev68-dec-osf5.1b GCC host triplet: alphaev68-dec-osf5.1b GCC target triplet: alphaev68-dec-osf5.1b http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21390
[Bug regression/20608] New: regression - Bus Error - union of structures
/* % gcc-3.4.3 -m64 -o foo foo.c % foo 0 here 0 % % gcc-4.0 -m64 -o foo foo.c % foo 0 here Bus Error (core dumped) % % uname -a SunOS portia 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Blade-100 % % gcc-4.0 -v Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: /home/kate/gcc-4.0-20050319/src/gcc-4.0-20050319/configure --enable-languages=c --prefix=/home/kate/gcc-4.0-20050319/sparc-SunOS Thread model: posix gcc version 4.0.0 20050319 (prerelease) % % gcc-3.4.3 -v Reading specs from /usr/local/gcc-3.4.3/sparc-SunOS/lib/gcc/sparc-sun-solaris2.8/3.4.3/specs Configured with: /usr/local/gcc-3.4.3/src/gcc-3.4.3/configure --enable-languages=c --prefix=/usr/local/gcc-3.4.3/sparc-SunOS Thread model: posix gcc version 3.4.3 % */ #include stdio.h typedef struct { int a; int b; int c; } t_m; typedef struct { int *f; } t_g; typedef union { t_m m; t_g g; } t_u; void bar(t_u *u) { printf(here\n); printf(%lx\n, *u); } main() { t_m u; printf(%lx\n, u); bar( (t_u *)u ); } -- Summary: regression - Bus Error - union of structures Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc-sun-solaris2.8 GCC host triplet: sparc-sun-solaris2.8 GCC target triplet: sparc-sun-solaris2.8 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20608
[Bug regression/20412] New: ICE when -O1, regression from gcc-3.4.3
/* gcc-4.0 sparc-SunOS bug gcc-4.0 -O0 -c foo.c // ok gcc-4.0 -O1 -c foo.c // ICE % gcc-4.0 -v Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: /home/kate/gcc-4.0-20050305/src/gcc-4.0-20050305/configure --enable-languages=c --prefix=/home/kate/gcc-4.0-20050305/sparc-SunOS Thread model: posix gcc version 4.0.0 20050305 (prerelease) % */ #define FALSE 0 int foo() { int a,b,g; int i,len; int stop; len = 10; stop = FALSE; for (i=0; ilen; i++) { a = bar1() ? 0 : 1; b = bar2() ? 0 : 1; g = bar3() ? 0 : 1; if (stop = ((a+b) % 2 != g)) break; } return stop; } -- Summary: ICE when -O1, regression from gcc-3.4.3 Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kminola at eng dot umd dot edu CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc-sun-solaris2.8 GCC host triplet: sparc-sun-solaris2.8 GCC target triplet: sparc-sun-solaris2.8 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20412