[Bug rtl-optimization/21254] [4.0 regression] Incorrect code with -funroll-loops for multiple targets with same code

2005-06-26 Thread dirtyepic dot sk at gmail dot com

--- Additional Comments From dirtyepic dot sk at gmail dot com  2005-06-26 
08:30 ---
 Is it possible to backport this patch to 4.0.1?

The attached patch applies cleanly to the current 4.0.1 branch.

-- 


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


[Bug rtl-optimization/15023] -frename-registers is buggy and slow

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
09:21 ---
Thanks Serge! 

-- 
   What|Removed |Added

 Status|WAITING |NEW
   Last reconfirmed|2004-07-26 04:12:40 |2005-06-26 09:21:27
   date||


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


[Bug c++/22190] New: Bad registers optimization

2005-06-26 Thread hayim at dv-networks dot com
I add below a ~100-line code. When compiling the code with
g++ -march=pentium4 -O3 -g -S allocator.cc
(g++ is version 3.4.2)
I get this assembly code:

.loc 1 50 0
jne .L2
.loc 1 93 0
movl4(%ecx), %ebx   // ebx now holds page-prev
movl(%ecx), %eax// eax now holds page-next
.loc 1 97 0
movl_ZN8PagePool9free_listE, %edx   // edx now holds free_list
.loc 1 93 0
movl%eax, (%ebx)// page-prev-next = page-next
.loc 1 97 0
movl%edx, (%ecx)// page-next = free_list-next
.loc 1 98 0
movl%ecx, _ZN8PagePool9free_listE   // free_list-next = page
.loc 1 94 0
movl(%ecx), %esi// esi now holds page-next
// (BUG: This is actually free_list-next)
movl%ebx, 4(%esi)   // page-next-prev = 
page-prev  
// (BUG: this is actually
//  page-next-prev = free_list-next)

The optimization that moved the assembly of line 97 to be before line 94 causes
incorrect value into 4(%esi) (= page-next-prev)

The C++ code:

uncommneting the printf fixes this problem since apparently it prevent this
optimization from taking place

+
#include stddef.h
#include stdlib.h

#include stdio.h

const size_t granularity_bits = 2;
const size_t granularity = 1  granularity_bits;
const size_t page_size_bits = 12;
const size_t page_size = 1  page_size_bits;
const size_t metapage_size_bits = 8;
const size_t metapage_size = 1  metapage_size_bits;

size_t handled_obj_size(size_t page_free_size) {
return page_free_size;
}

templateclass T
inline T align_down(T val, size_t alignment) {
return val  ~(alignment - 1);
}

// A node of the free list
struct Header {
Header* next;
Header() : next(0) {}
bool is_empty() const { return next == 0; }
void enqueue(Header* obj) {
obj-next = next;
next = obj;
}

};

struct Page {
// The list of pages of the same object-size
 Page* prev;
 Page* next;
// sizes
size_t alloc_size;
size_t alloc_count;
// List of free slabs in this page
Header free_list;
// pointer to the first unallocated slab
void* unallocated;

Page() : prev(0), next(0), free_list() { }
bool is_empty() const { return (next == this); }

bool is_page_full() const { return free_list.is_empty()  (unallocated == 
0); }
bool is_page_empty() const { return alloc_count == 0; }

void free(void* obj) {
--alloc_count;
free_list.enqueue((Header*) obj);
}

bool is_big_alloc() {
return alloc_size == 0;
}
void* big_free() {
return unallocated;
}
};

struct PagePool {
static Header free_list;
static void free(Page* page) {
free_list.enqueue((Header*) page);
}
};

Header PagePool::free_list;

const size_t num_sizes = page_size / granularity;
const size_t page_free_space = page_size - sizeof(Page);

Page page_lists[num_sizes];

void operator delete(void* ptr) {
if(ptr == 0) {
return;
}
Page* page = (Page*) align_down((ptrdiff_t) ptr, page_size);
if(page-is_big_alloc()) {
void* place = page-big_free();
free(place);
return;
}
if(page-is_page_full()) {
} else {
page-free(ptr);
if(page-is_page_empty()) {
page-next-prev = page-prev;
page-prev-next = page-next;
//  fprintf(stderr, ddd after 3 pnp: %p, ppn: %p \n, page-next-prev,
page-prev-next);

((Header*)page)-next = PagePool::free_list.next;
PagePool::free_list.next = (Header*)page;
}
}
}

+

-- 
   Summary: Bad registers optimization
   Product: gcc
   Version: 3.4.2
Status: UNCONFIRMED
  Severity: critical
  Priority: P2
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hayim at dv-networks dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug middle-end/22028] [4.0/4.1 Regression] ICE after invalid struct declaration

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
10:33 ---
Jakub, if this is fixed, please close the report. 
 

-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED


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


[Bug rtl-optimization/18599] Quadratic behavior in copyprop_hardreg_forward

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
11:05 ---
There is still the pending request from Jeff to try DFS order: 
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01845.html 
 
Kazu, are you going to do this?  If not, I will, so please let me know. 
 

-- 


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


[Bug rtl-optimization/15023] -frename-registers is buggy and slow

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
11:26 ---
The patch for PR18599 might have addressed the slow part of this bug 
report.  The buggy part may also be fixed already -- a number of e500 
related regrename.c patches went in since this bug report was opened, 
and it does look like those patches fixed real bugs, and maybe the same 
bugs as those referred to in this report. 
 

-- 


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


[Bug rtl-optimization/20376] The missed-optimization of general induction variables in the new rtl-level loop optimizer cause performance degradation.

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
12:12 ---
But there are bugs about -frename-registers being slow and broken, see 
PR15023.  It looks to me like the issues from that bug report may be 
fixed already, but someone should verify this. 

-- 
   What|Removed |Added

  BugsThisDependsOn||15023


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


[Bug target/16185] ICE: in spill_failure, at reload1.c:1892, global registers and long long

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
12:26 ---
Taking three or more registers as in the test cases from comment #5 and 
from Bug 21469, or using regparam, is just asking for trouble on a target 
with only six registers available, total.  While this is a regression, we 
also have cases that didn't compile with old compilers and now do.  It is 
just a matter of luck if you're going to fix registers -- even the order 
in which the statements are expanded to RTL can matter for the register 
pressure, and in this case y'all are so unlucky to need a larger number of 
registers than what you've left available to the compiler. 
 
I believe this bug should be closed as SUSPEND unless test cases exist 
that use neither regparam nor global register variables. 
 

-- 
   What|Removed |Added

 Status|NEW |WAITING


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


[Bug libgcj/22189] Table Full in gcj-dbtool if -m option used with smallest possible input

2005-06-26 Thread greenrd at greenrd dot org

--- Additional Comments From greenrd at greenrd dot org  2005-06-26 12:39 
---
The problem is that a PersistentByteMap of capacity 1 is created by -m, but when
a PersistentByteMap is created with capacity 1, its capacity method incorrectly
returns 0.

This is because, when it is created, confusingly, the capacity field is set to
(int) (capacity*3/2),which in this case is 1, and the capacity() method then
returns (int) (the capacity field * 2 / 3), which is (int) (2 * 1 / 3) = 0.

The first thing I would do is, we have 3 things (initial capacity, capacity
field, capacity method), all with the same name, but not meaning the same thing,
so I would do some renames to avoid confusion. Then I would fix the actual bug.

Preparing a patch.

-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |greenrd at greenrd dot org
   |dot org |
 Status|NEW |ASSIGNED


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


[Bug target/21803] [ia64] gcc produces really odd predicated code

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
13:12 ---
One possible fix would be to look for common tail (and head?) sequences 
in cond_exec_process_if_block.  The code for tail merging in cfgcleanup.c 
could be used for this. 

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-06-26 13:12:26
   date||


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


[Bug rtl-optimization/6585] Redundant store/load instruction pairs on ix86

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
13:35 ---
Today's results (-O2 -m32 -march=i686 -mtune=i686 -fomit-frame-pointer): 
 
.file   t.c 
.text 
.p2align 4,,15 
.globl mul 
.type   mul, @function 
mul: 
subl$12, %esp   # get space to save three registers 
movl%ebx, (%esp)# save %ebx 
movl20(%esp), %edx  # %edx - a1  COULD GO INTO %esi 
movl28(%esp), %ebx  # %ebx - b1  COULD GO INTO %edi 
movl16(%esp), %eax  # %eax - a0 
movl24(%esp), %ecx  # %ecx - b0 
movl%esi, 4(%esp)   # save %esi 
movl%edx, %esi  # %esi - a1 
movl%edi, 8(%esp)   # save %edi 
movl%ebx, %edi  # %edi - b1 
movl(%esp), %ebx# restore %ebx 
imull   %eax, %edi  # %edi - a0*b1 
imull   %ecx, %esi  # %esi - b0*a1 
mull%ecx# %edx:%eax := a0*b0 
addl%edi, %esi  # %esi - a0*b1 + b0*a1 
movl8(%esp), %edi   # restore %edi 
leal(%esi,%edx), %edx   # %edx - a0*b1 + b0*a1 + hi(a0*b0) 
movl4(%esp), %esi   # %restore %esi 
addl$12, %esp   # free stack space 
ret # return result in %edx:%eax 
.size   mul, .-mul 
.ident  GCC: (GNU) 4.1.0 20050626 (experimental) 
.section.note.GNU-stack,,@progbits 
 
There are still the questionable moves through %ebx and %edx, but it is 
still better than before. 
 

-- 


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


[Bug c++/22191] New: undefined reference to static member of template struct

2005-06-26 Thread bin-krzysiek at poczta dot gazeta dot pl
$ cat file1.cc
#include list

templatetypename T
struct my_struct {
typedef typename std::listT* list_t;
static list_t list1;
static list_t list2;
};

template my_structint::list_t my_structint::list1; //error
template my_structint::list_t my_structint::list2(0); //OK

int main() {
int i,j;
i = my_structint::list1.size();
j = my_structint::list2.size();
}

$ g++ file1.cc
/tmp/ccO1DNIw.o(.text+0x1f): In function `main':
: undefined reference to `my_structint::list1'
collect2: ld returned 1 exit status
[EMAIL PROTECTED] gcc_3.4 $ g++ --version
g++ (GCC) 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0,
pie-8.7.7)

-- 
   Summary: undefined reference to static member of template struct
   Product: gcc
   Version: 3.4.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bin-krzysiek at poczta dot gazeta dot pl
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug c++/22190] Bad registers optimization

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
14:31 ---
You are violating C/C++ aliasing rules.  Either use an union (which is defined 
for GCC) or use -fno-
strict-aliasing.

*** This bug has been marked as a duplicate of 21920 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug c/21920] alias violating

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
14:31 ---
*** Bug 22190 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||hayim at dv-networks dot com


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


[Bug middle-end/22028] [4.0 Regression] ICE after invalid struct declaration

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
14:34 ---
Fixed at least on the mainline, still broken on the 4.0 branch.

-- 
   What|Removed |Added

  Known to fail|4.0.1 4.1.0 |4.0.1
  Known to work|4.0.0   |4.0.0 4.1.0
Summary|[4.0/4.1 Regression] ICE|[4.0 Regression] ICE after
   |after invalid struct|invalid struct declaration
   |declaration |


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


[Bug middle-end/17965] ice in expand_call

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
14:36 ---
Fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.1.0


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


[Bug c++/22191] undefined reference to static member of template struct

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
14:55 ---


*** This bug has been marked as a duplicate of 15394 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug c++/15394] g++ fails to produce a static definition for static template member

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
14:55 ---
*** Bug 22191 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||bin-krzysiek at poczta dot
   ||gazeta dot pl


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


[Bug libstdc++/22185] final link failed: Nonrepresentable section on output

2005-06-26 Thread pedro dot lamarao at mndfck dot org

--- Additional Comments From pedro dot lamarao at mndfck dot org  
2005-06-26 14:58 ---
Works in the same system with a g++ 3.4.4 compiled from source:

[EMAIL PROTECTED] Projetos]$ $HOME/.local/gcc-3.4.4/bin/g++ -O3 -fPIC -c -o
net_error.o net_error.ii
[EMAIL PROTECTED] Projetos]$ $HOME/.local/gcc-3.4.4/bin/g++ -fPIC -shared -o
net_error.so net_error.o
[EMAIL PROTECTED] Projetos]$ $HOME/.local/gcc-3.4.4/bin/g++ -v Reading specs 
from
/home/pedro/.local/gcc-3.4.4/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
Configured with: ../configure --prefix=/home/pedro/.local/gcc-3.4.4
--enable-languages=c,c++
Thread model: posix
gcc version 3.4.4
[EMAIL PROTECTED] Projetos]$


-- 


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


[Bug target/11180] [avr-gcc] Optimization decrease performance of struct assignment.

2005-06-26 Thread schlie at comcast dot net

--- Additional Comments From schlie at comcast dot net  2005-06-26 15:06 
---
(In reply to comment #7)
 (In reply to comment #6)
  The problem here is that gcc is using  a DImode register to handle 6 byte
  (int+long) structure. Why I have no idea!
 This is so it does not store it on the stack.  As I said in comment #5, this 
 is a target issue and have 
 nothing to do with DImode.

It would seem more desireable given the intended purpose to avoid pushing it on 
the stack
so that it's elements may be more effeciencly accessed, that it's coresponding 
elements be
allocated within the register file (as opposed to the whole struct remaining 
packed into an
alllocated DI mode integer), so that it's elements may be effeciently accessed 
without
needing to rip them out or reassemble them into the otherwise packed monolithic 
structure?


-- 


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


[Bug c/22192] New: Rejection of valid array declaration.

2005-06-26 Thread neil at gcc dot gnu dot org
With -fsyntax-only GCC erroneously rejects the following array 'x' as having
non-constant size.  Its size should evaluate to 1.

int
bar (int v)
{
  int (*p)[v];
  int (*q)[2];

  static int x[sizeof(*(v ? p : q)) == 2 * sizeof (int)];

  return x[0];
}

-- 
   Summary: Rejection of valid array declaration.
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: minor
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: neil at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug c/22192] Rejection of valid array declaration.

2005-06-26 Thread neil at gcc dot gnu dot org

--- Additional Comments From neil at gcc dot gnu dot org  2005-06-26 15:11 
---
(In reply to comment #0)
 With -fsyntax-only GCC erroneously rejects the following array 'x' as having
 non-constant size.  Its size should evaluate to 1.
 
 int
 bar (int v)
 {
   int (*p)[v];
   int (*q)[2];
 
   static int x[sizeof(*(v ? p : q)) == 2 * sizeof (int)];
 
   return x[0];
 }

I should add that switching p and q causes GCC to accept it.

-- 


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



[Bug c/22192] Rejection of valid array declaration.

2005-06-26 Thread jsm28 at gcc dot gnu dot org


-- 
   What|Removed |Added

OtherBugsDependingO||16989
  nThis||


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


[Bug middle-end/22177] error: in assign_stack_temp_for_type, at function.c:655

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
16:18 ---
What options are used to reproduce this?

-- 


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


[Bug rtl-optimization/21848] load_mems / replace_loop_mems bug causes miscompilation of jcf-io.c / SEGV while processing java/lang/AbstractMethodError

2005-06-26 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Severity|critical|normal
Summary|[4.1 Regression] load_mems /|load_mems /
   |replace_loop_mems bug causes|replace_loop_mems bug causes
   |miscompilation of jcf-io.c /|miscompilation of jcf-io.c /
   |SEGV while processing   |SEGV while processing
   |java/lang/AbstractMethodErro|java/lang/AbstractMethodErro
   |r   |r


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


[Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
16:45 ---
Fixed.

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  GCC build triplet|i686-pc-linux-gnu   |
   GCC host triplet|i686-pc-linux-gnu   |
 GCC target triplet|i686-pc-linux-gnu   |
 Resolution||FIXED


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


[Bug middle-end/22108] [4.1 Regression] intrinsic.c:2044: error: insn does not satisfy its constraints

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
17:01 ---
Is this fixed now?

-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |WAITING
   GCC host triplet|hppa2.0w-hp-hpux11.11   |


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


[Bug tree-optimization/21005] [4.1 Regression] gcc.dg/uninit-1.c uninitialized variable warning (test for bogus messages, line 16 fails

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
17:07 ---
Fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug fortran/20838] ICE in gfc_conv_expr_descriptor, at fortran/trans-array.c:3606

2005-06-26 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

  Known to fail|4.1.0   |4.1.0 4.0.0
  Known to work|4.0.0   |
Summary|[4.1 regression] ICE in |ICE in
   |gfc_conv_expr_descriptor, at|gfc_conv_expr_descriptor, at
   |fortran/trans-array.c:3606  |fortran/trans-array.c:3606
   Target Milestone|4.1.0   |---


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


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

2005-06-26 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
   Last reconfirmed|2005-05-02 21:50:49 |2005-06-26 17:41:57
   date||


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


[Bug fastjar/22193] New: Compile Fails on SUSE 9.3 Professional

2005-06-26 Thread dave at joot dot com
* the exact version of GCC:
# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man
--enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib
--enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.4 (pre 3.3.5 20040809)

* the system type:
# uname -a
Linux jaguar 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 athlon
i386 GNU/Linux
Flavour: SUSE 9.3 Professional

* the options given when GCC was configured/built:
# ./configure --prefix=/usr/local/gcc

* the complete command line that triggers the bug:
make

 * the compiler output (error messages, warnings, etc.):
config.status: creating Makefile
config.status: executing default-1 commands
./config.status: line 910: ./../../config-ml.in: No such file or directory
make: *** [configure-zlib] Error 1

-- 
   Summary: Compile Fails on SUSE 9.3 Professional
   Product: gcc
   Version: 4.0.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: fastjar
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dave at joot dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug target/21169] [4.0 regression] ICE in reload_cse_simplify_operands with -fnon-call-exceptions -fPIC -O2

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
17:39 ---
Fixed at least on the mainline.

-- 
   What|Removed |Added

  GCC build triplet|x86_64-unknown-linux-gnu|
   GCC host triplet|x86_64-unknown-linux-gnu|
 GCC target triplet|x86_64-unknown-linux-gnu|x86_64-*-linux-gnu
  Known to work||4.1.0 3.4.3
Summary|[4.0/4.1 regression] ICE in |[4.0 regression] ICE in
   |reload_cse_simplify_operands|reload_cse_simplify_operands
   |with -fnon-call-exceptions -|with -fnon-call-exceptions -
   |fPIC -O2|fPIC -O2


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


[Bug fastjar/22193] Compile Fails on SUSE 9.3 Professional

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
17:47 ---
You are trying to build in the source directory.  Don't do that. 
 
See http://gcc.gnu.org/install/ (and especially the Configuration part) 
for further explanation. 
 

-- 


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


[Bug middle-end/21379] [4.0/4.1 Regression] GCC Internal Compiler Error

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
17:47 ---
Fixed already.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug c/22194] New: [4.0 Regression] ICE on linux-2.6.12 drivers/serial/8250.c

2005-06-26 Thread themis_hv at yahoo dot co dot uk
When using gc-4.0-20050623 snapshot to compile linux-2.6.12.

I get the following error:

drivers/serial/8250.c: In function 'serial8250_isa_init_ports':
drivers/serial/8250.c:2016: 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.


The above ICE does not occur with GCC 4.0.1 RC 2

-- 
   Summary: [4.0 Regression] ICE on linux-2.6.12
drivers/serial/8250.c
   Product: gcc
   Version: 4.0.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: themis_hv at yahoo dot co dot uk
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=22194


[Bug libgcj/21058] [4.1 Regression] fragile libgcj link process omits some inner classes

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
17:49 ---
Would this fixed via compiling directory by directory?

-- 


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


[Bug c/22194] [4.0 Regression] ICE on linux-2.6.12 drivers/serial/8250.c

2005-06-26 Thread themis_hv at yahoo dot co dot uk

--- Additional Comments From themis_hv at yahoo dot co dot uk  2005-06-26 
17:49 ---
Created an attachment (id=9154)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9154action=view)
preprocessed file

Attached preprocessed file.


-- 


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


[Bug bootstrap/22193] Compile Fails on SUSE 9.3 Professional

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
17:51 ---


*** This bug has been marked as a duplicate of 17383 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
  Component|fastjar |bootstrap
 Resolution||DUPLICATE


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


[Bug bootstrap/17383] [4.0 Regression] Building in src dir fails

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
17:51 ---
*** Bug 22193 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||dave at joot dot com


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


[Bug c/22194] [4.0 Regression] ICE on linux-2.6.12 drivers/serial/8250.c

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
17:52 ---
This was fixed a day after the snapshot was made.  This is a dup of bug 22171.

*** This bug has been marked as a duplicate of 22171 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
17:52 ---
*** Bug 22194 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||themis_hv at yahoo dot co
   ||dot uk


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


[Bug tree-optimization/19703] [4.0/4.1 Regression] Poor optimisation of loop test, DOM causing unsigned to int and missing combine compares

2005-06-26 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||law at gcc dot gnu dot org
   Last reconfirmed|2005-01-30 05:25:46 |2005-06-26 18:03:23
   date||


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


[Bug tree-optimization/18501] [4.1 Regression] Missing 'used unintialized' warning

2005-06-26 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 Status|REOPENED|ASSIGNED


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


[Bug tree-optimization/21493] [4.1 Regression] internal compiler error: Segmentation fault

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
18:13 ---
Fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug target/19885] [4.0/4.1 Regression] avr dwarf-2 support is broken for head 4.0/4.1

2005-06-26 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Severity|normal  |minor
  Component|debug   |target
  GCC build triplet|i686-linux  |
   GCC host triplet|i686-linux  |
 GCC target triplet|avr-unknown-none|avr-*-none
   Last reconfirmed|2005-02-11 01:04:37 |2005-06-26 18:15:15
   date||


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


[Bug bootstrap/21512] [4.0/4.1 Regression] build failure on ppc-apple-darwin5.5 in libcpp

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
18:17 ---
(In reply to comment #3)
 Tried again to build gcc on powerpc-apple-darwin5.5 (MacOS 10.1), with the
 workaround for the bug reported in comment #0.

That is a host bug and should be filed separately.

-- 


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


[Bug c++/22195] New: Missing Documentation

2005-06-26 Thread dave at joot dot com
# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man
--enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib
--enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.4 (pre 3.3.5 20040809)

# uname -a
Linux jaguar 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 athlon
i386 GNU/Linux
SUSE 9.3 Professional

Replicate using:

# cd gcc-4.0.1-20050616
# mkdir objdir
# cd objdir
# ../configure --prefix=/usr/local/gcc
# make

make[2]: Entering directory `/usr/local/src/gcc-4.0.1-20050616/objdir/gcc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/gcc-4.0.1-20050616/objdir/gcc'
cp doc/gcc.1 doc/g++.1
cp: cannot stat `doc/gcc.1': No such file or directory
make[1]: *** [doc/g++.1] Error 1
make[1]: Leaving directory `/usr/local/src/gcc-4.0.1-20050616/objdir/gcc'
make: *** [all-gcc] Error 2

Temporary fix:

# touch gcc/doc/gcc.1
# make

-- 
   Summary: Missing Documentation
   Product: gcc
   Version: 4.0.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dave at joot dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug bootstrap/22195] Missing Documentation

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
18:31 ---
I don't think this is a bug.
Reading: http://gcc.gnu.org/install/prerequisites.html:
Texinfo version 4.2 (or later)
Necessary for running makeinfo when modifying *.texi files to test your changes.
Necessary to build GCC documentation during development because the generated 
output files are not 
included in the CVS repository. They are included in releases. 



-- 
   What|Removed |Added

  Component|c++ |bootstrap
   Keywords||build


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


[Bug tree-optimization/22196] New: Missed back prop

2005-06-26 Thread pinskia at gcc dot gnu dot org
The following two functions should be equal:
unsigned f(int i, unsigned x)
{
  unsigned y;
  if (i)
y = 1024;
  else
y = 1024*1024;
  return x/y ;
}

unsigned f1(int i, unsigned x)
{
  unsigned y;
  if (i)
y = x/ 1024;
  else
y = x/(1024*1024);
  return y ;
}

-- 
   Summary: Missed back prop
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Keywords: missed-optimization
  Severity: enhancement
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug tree-optimization/21449] Loop unroller is way over estimating the unroll size of a loop

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
20:20 ---
Confirmed.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords|TREE|
   Last reconfirmed|-00-00 00:00:00 |2005-06-26 20:20:46
   date||


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


[Bug tree-optimization/21449] Loop unroller is way over estimating the unroll size of a loop

2005-06-26 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 
20:48 ---
tree complete unrolling, for the record...  beef for zdenek? 
 

-- 
   What|Removed |Added

 CC||rakdver at gcc dot gnu dot
   ||org


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


[Bug c/21911] named parameter mistakenly identified as sentinel

2005-06-26 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-26 
21:54 ---
Subject: Bug 21911

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-06-26 21:54:25

Modified files:
gcc: ChangeLog c-common.c c-common.h c-typeck.c 
gcc/cp : ChangeLog call.c typeck.c 
gcc/testsuite  : ChangeLog 
gcc/testsuite/gcc.dg/format: sentinel-1.c 

Log message:
PR c/21911
* c-common.c (check_function_sentinel): Pass in named argument
list, skip over named arguments before looking for a sentinel.
(check_function_arguments): Pass in named argument list.
* c-common.h (check_function_arguments): Likewise.
* c-typeck.c (build_function_call): Likewise.

cp:
* call.c (build_over_call): Pass in named argument list to
`check_function_arguments'.
* typeck.c (build_function_call): Likewise.

testsuite:
PR c/21911
* gcc.dg/format/sentinel-1.c: Update.  Fix execl* calls.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gccr1=2.9237r2=2.9238
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gccr1=1.638r2=1.639
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.h.diff?cvsroot=gccr1=1.296r2=1.297
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gccr1=1.459r2=1.460
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gccr1=1.4800r2=1.4801
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gccr1=1.541r2=1.542
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gccr1=1.639r2=1.640
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gccr1=1.5689r2=1.5690
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/format/sentinel-1.c.diff?cvsroot=gccr1=1.2r2=1.3



-- 


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


[Bug c/21911] named parameter mistakenly identified as sentinel

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
22:14 ---
Fixed.

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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


[Bug tree-optimization/21922] [4.1 Regression] internal compiler error: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1513

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
22:17 ---
Note to reproduce this now on the mainline, you have to remove the static as 
unit-at-a-time is now 
default at -O1 and above.

-- 
   What|Removed |Added

   Last reconfirmed|2005-06-05 16:25:15 |2005-06-26 22:17:08
   date||


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


[Bug middle-end/21953] [4.1 Regression] Many tmpdir-gcc.dg-struct-layout-1 tests fail on Tru64 UNIX V5.1B

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
22:18 ---
Do these work now?

-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |WAITING


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


[Bug c/21975] [4.0/4.1 Regression] Segmentation fault while compiling ipw2100

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 
22:21 ---
I think this was caused by my patch which also caused PR 22052 and should be 
fixed by the patch 
which should fix PR 22052 also.

-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
  BugsThisDependsOn||22052
   Keywords||ice-on-invalid-code


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


[Bug c++/20665] poor diagnostic for missing semicolon at end of template struct declaration

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-27 
01:58 ---
Confirmed.

-- 
   What|Removed |Added

   Severity|normal  |enhancement
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-06-27 01:58:18
   date||


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


[Bug middle-end/22108] [4.1 Regression] intrinsic.c:2044: error: insn does not satisfy its constraints

2005-06-26 Thread danglin at gcc dot gnu dot org

--- Additional Comments From danglin at gcc dot gnu dot org  2005-06-27 
02:51 ---
Yes.

-- 


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


[Bug middle-end/22108] [4.1 Regression] intrinsic.c:2044: error: insn does not satisfy its constraints

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-27 
02:52 ---
Fixed so close.

-- 
   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED


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


[Bug tree-optimization/22051] [4.0/4.1 regression] Wrong code for function pointer comparision during optimization

2005-06-26 Thread dave at hiauly1 dot hia dot nrc dot ca

--- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  
2005-06-27 02:53 ---
Subject: Re:  [4.0/4.1 regression] Wrong code for function pointer comparision 
during optimization

What|Removed |Added
 
  GCC target triplet|hppa-*-linux, hppa2.0w-hp-  |hppa*-*-{linux,hpux}
|hpux11.11   |

This problem doesn't affect hppa64 as it doesn't require function
pointer canonicalization.

Dave


-- 


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


[Bug c++/16232] Poor diagnostic

2005-06-26 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Severity|normal  |enhancement
   Last reconfirmed|2005-04-06 18:13:06 |2005-06-27 04:36:15
   date||


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


[Bug tree-optimization/17863] [4.0/4.1 Regression] threefold performance loss, not inlining as much

2005-06-26 Thread dank at kegel dot com

--- Additional Comments From dank at kegel dot com  2005-06-27 04:54 ---
I just verified the regression here with -march=pentium on a pentium 4.
On the original testcase, I got runtimes of 7.0, 4.9, 8.1, and 7.0
seconds with gcc-2.95.3, gcc-3.4.3, gcc-4.0.0, and gcc-4.1-20050603
using just -O3 (no -static).

-- 
   What|Removed |Added

 CC||dank at kegel dot com


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


[Bug tree-optimization/21959] [4.1 Regression] vrp miscompiles Ada front-end, drops loop exit test in well-defined wrap-around circumstances

2005-06-26 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Severity|normal  |critical


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


[Bug other/21350] [4.0/4.1 Regression] release now requires bision

2005-06-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-27 
05:11 ---
CCing the release manager.

-- 
   What|Removed |Added

 CC||mmitchel at gcc dot gnu dot
   ||org


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