[Bug bootstrap/22314] [4.1 regression] ICE in make profiledbootstrap: corrupted profile info for gcc/dominance.c

2005-07-11 Thread bh at techhouse dot brown dot edu

--- Additional Comments From bh at techhouse dot brown dot edu  2005-07-11 
19:42 ---
I get a similar error on my pentium-3 box, configuring with just:
/afs/cs/usr/bhudson/gcc/gcc-cvs-head/configure --enable-languages=c,c++
and 
gmake CFLAGS=-O2 BOOT_CFLAGS=-O2 profiledbootstrap
with CVS of Sun Jul 10 06:06:01 EDT 2005

stage1/xgcc -Bstage1/ -B/usr/local/i686-pc-linux-gnu/bin/ -c   -O2 -fprofile-use
 -freorder-blocks-and-partition -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-pro
totypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold
-style-definition -Werror -fno-common   -DHAVE_CONFIG_H-I. -I. -I/afs/cs/usr
/bhudson/gcc/gcc-cvs-head/gcc -I/afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/. -I/af
s/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/../include -I/afs/cs/usr/bhudson/gcc/gcc-c
vs-head/gcc/../libcpp/include  /afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins
.c -o builtins.o
/afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins.c: In function 'expand_builtin
':
/afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins.c:6283: error: corrupted profi
le info: number of executions for edge 49-676 thought to be -148
/afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins.c:6283: error: corrupted profi
le info: number of executions for edge 49-50 thought to be 148
gmake[2]: *** [builtins.o] Error 1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22314


[Bug bootstrap/17814] install.texi mentions wrong --enable-language names

2005-05-23 Thread bh at techhouse dot brown dot edu

--- Additional Comments From bh at techhouse dot brown dot edu  2005-05-23 
15:41 ---
(In reply to comment #2)
> *** Bug 21156 has been marked as a duplicate of this bug. ***

I have a pair of attachments on #21156 that may be relevant; I don't know the
appropriate way to link them in to this bug report.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17814


[Bug bootstrap/21288] bootstrap issues with profiledbootstrap

2005-05-03 Thread bh at techhouse dot brown dot edu

--- Additional Comments From bh at techhouse dot brown dot edu  2005-05-03 
15:18 ---
My (apparently broken) gmp is:
> rpm -qf /usr/lib/libgmp.so.3.3.2 
gmp-4.1.2-2

Downloading a new GMP (4.1.4, which creates libgmp.so.3.3.3) appears to work.  I
wonder if it's easy to check for this situation?  Anyway, thanks for the hint.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21288


[Bug c++/21347] spurious warning with -Wctor-dtor-privacy

2005-05-02 Thread bh at techhouse dot brown dot edu

--- Additional Comments From bh at techhouse dot brown dot edu  2005-05-02 
21:44 ---
It's also in the main branch -- gcc version 4.1.0 20050501 (experimental).

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347


[Bug c++/21347] New: spurious warning with -Wctor-dtor-privacy

2005-05-02 Thread bh at techhouse dot brown dot edu
cat > foo.cpp << EOF
class A {
public:
int x;
int getX() { return x; } // comment out to avoid warning
};

int foo() {
A a; // accepted: clearly the ctor is not private
return a.x;
}
EOF
g++ -c -Wctor-dtor-privacy foo.cpp
foo.cpp:1: warning: 'class A' only defines private constructors and has no 
friends

This occurs in 4.0.0 and is a regression from 3.3.5 and 3.4.3.

-- 
   Summary: spurious warning with -Wctor-dtor-privacy
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bh at techhouse dot brown dot edu
CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347


[Bug bootstrap/21288] bootstrap issues with profiledbootstrap

2005-05-02 Thread bh at techhouse dot brown dot edu

--- Additional Comments From bh at techhouse dot brown dot edu  2005-05-02 
17:58 ---
I get the same error with 'make bootstrap' -- it's not the profiling that causes
the ICE.  Similarly, I get the same error when I download the full tar file, so
it's also not a packaging bug.

If there's any other information that would help, I'll happily provide it.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21288


[Bug bootstrap/21288] New: fortran bootstrap issues

2005-04-29 Thread bh at techhouse dot brown dot edu
(1) if you download core, g++, and fortran, only c and c++ are built; fortran is
not, unlike in prior releases.

(2) configuring with --enable-languages=c,c++,f95 and no other options; then
using make profiledbootstrap, I get an ICE:

/bin/sh ./libtool --mode=compile /var/tmp/bhudson-gcc/4.0.0/gcc/gfortran -B/var/
tmp/bhudson-gcc/4.0.0/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686
-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/l
ocal/i686-pc-linux-gnu/sys-include  -Wall -fno-repack-arrays -fno-underscoring -
c -o selected_int_kind.lo `test -f 'intrinsics/selected_int_kind.f90' || echo '/
afs/cs/usr/bhudson/gcc/gcc-4.0.0/libgfortran/'`intrinsics/selected_int_kind.f90
/var/tmp/bhudson-gcc/4.0.0/gcc/gfortran -B/var/tmp/bhudson-gcc/4.0.0/gcc/ -B/usr
/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/
local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-includ
e -Wall -fno-repack-arrays -fno-underscoring -c /afs/cs/usr/bhudson/gcc/gcc-4.0.
0/libgfortran/intrinsics/selected_int_kind.f90  -fPIC -DPIC -o .libs/selected_in
t_kind.o
:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
gmake[3]: *** [selected_int_kind.lo] Error 1
gmake[3]: Leaving directory `/usr/tmp/bhudson-gcc/4.0.0/i686-pc-linux-gnu/libgfo
rtran'

Manually running that compile with -save-temps doesn't appear to create any 
files.

-- 
   Summary: fortran bootstrap issues
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bh at techhouse dot brown dot edu
CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21288


[Bug web/21156] New: --enable-languages install instructions are erroneous

2005-04-21 Thread bh at techhouse dot brown dot edu
>  grep language= */config-lang.in
>
>
> Currently, you can use any of the following: ada, c, c++, f77, f95, java,
objc, obj-c++

These two don't match: running that command doesn't show me c or f77 when I
download core, g++, and gfortran (nor does it show me ada, java, and objc but
that's expected).

-- 
   Summary: --enable-languages install instructions are erroneous
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: web
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bh at techhouse dot brown dot edu
CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21156


[Bug c/19058] New: setjmp: 4.0 fails to give 'clobbered' warning (regression from 3.4.1)

2004-12-17 Thread bh at techhouse dot brown dot edu
In the code that follows, gcc-3.4.1 says:
> gcc -W -Wall  -Wno-unused-parameter qux.c -O2
qux.c:13: warning: variable 'x' might be clobbered by `longjmp' or `vfork'

gcc-4.0 with those same options gives no warning.

Note that neither version warns about 'sum' being clobbered.


#include 
#include 
#include 

static jmp_buf jmpbuf;

static void segv_handler(int sig) {
longjmp(jmpbuf, 1);
}

int main() {
int y = 1;
volatile int *x = &y;
int sum = 0;

signal(SIGSEGV, segv_handler);

if(setjmp(jmpbuf) == 0) {
while(1) {
sum += *x;
x++;
}
}

printf("%d\n", sum);
return sum;
}

-- 
   Summary: setjmp: 4.0 fails to give 'clobbered' warning
(regression from 3.4.1)
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bh at techhouse dot brown dot edu
CC: gcc-bugs at gcc dot gnu dot org
 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=19058


[Bug c/19056] New: 4.0 optimizes away a SEGV; 3.4.1 does not

2004-12-17 Thread bh at techhouse dot brown dot edu
A minimized test case:

int main() {
int y = 1;
int *x = &y;
volatile int sum = 0;
while(1) {
sum += *x;
x++;
}
return 0;
}

Clearly, this should crash; under 3.4.1 it does.  Under my checkout of a few
hours ago, however, it does not: instead, it enters an infinite loop (everything
inside the while(1) gets optimized away and we're left with just a jmp).

Workaround: make either x or sum volatile.  This forces it to actually do the
computations inside the loop.

I'm not sure whether to view this as a compiler bug: this code is, at heart,
morally unbalanced.  But it is a change in behaviour so I figured I'd report it.

-- 
   Summary: 4.0 optimizes away a SEGV; 3.4.1 does not
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: minor
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bh at techhouse dot brown dot edu
CC: gcc-bugs at gcc dot gnu dot org
 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=19056