[Bug c/21838] New: ia64 gcc (cross compiler at least) generates call to __ia64_save_stack_nonlocal when __label__ is used

2005-05-31 Thread herbert at 13thfloor dot at
void test(void)
{
__label__ test;
goto test;
test:
return;
}

->  br.call.sptk.many b0 = __ia64_save_stack_nonlocal#

-- 
   Summary: ia64 gcc (cross compiler at least) generates call to
__ia64_save_stack_nonlocal when __label__ is used
   Product: gcc
   Version: 3.3.6
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: herbert at 13thfloor dot at
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: ia64-linux


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


[Bug c/21220] New: cross compiler bootstrap fails with internal compiler error

2005-04-25 Thread herbert at 13thfloor dot at
Funny input line: timestamp
gen-protos: 1346 entries 341 collisions
../../gcc-4.0.0/gcc/libgcc2.c: In function '__udivmoddi4':
../../gcc-4.0.0/gcc/libgcc2.c:1050: internal compiler error: in
change_address_1, at emit-rtl.c:1800

host gcc is 3.3.5

-- 
   Summary: cross compiler bootstrap fails with internal compiler
error
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: herbert at 13thfloor dot at
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: sh64-elf-linux-gnu


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


[Bug middle-end/20985] building mips/64 cross compiler on x86 produces incorrect assembler code for _divdi3 with -fnon-call-exceptions

2005-04-13 Thread herbert at 13thfloor dot at

--- Additional Comments From herbert at 13thfloor dot at  2005-04-13 21:31 
---
Subject: Re:  building mips/64 cross compiler on x86 produces incorrect 
assembler code for _divdi3 with -fnon-call-exceptions

On Wed, Apr 13, 2005 at 05:50:59PM -, drow at false dot org wrote:
> 
> --- Additional Comments From drow at false dot org  2005-04-13 17:50 
> ---
> Subject: Re:  New: building mips/64 cross compiler on x86 produces incorrect 
> assembler code for _divdi3 with -fnon-call-exceptions
> 
> On Wed, Apr 13, 2005 at 05:22:07AM -, herbert at 13thfloor dot at wrote:
> > ./configure --enable-languages=c --disable-nls --disable-threads
> > --disable-shared --disable-checking --prefix=/usr --target=mips-linux
> > make TARGET_LIBGCC2_CFLAGS='-Dinhibit_libc -D__gthr_posix_h'
> > 
> > results in ...
> > /gcc-3.3.5/gcc/xgcc -B/gcc-3.3.5/gcc/ -B/usr/mips-linux/bin/
> > -B/usr/mips-linux/lib/ -isystem /usr/mips-linux/include -O2  -DIN_GCC
> > -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
> > -Wmissing-prototypes -isystem ./include  -fPIC -g  -DIN_LIBGCC2
> > -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config
> > -I./../include  -DL_divdi3 -c ./libgcc2.c -fexceptions 
> > -fnon-call-exceptions -o
> > libgcc/./_divdi3.o
> > /root/tmp/ccI71cbx.s: Assembler messages:
> > /root/tmp/ccI71cbx.s:956: Error: operation combines symbols in different 
> > segments
> > 
> > 955.4byte  $LASFDE1-$Lframe1
> > 956.4byte  $LFB4-.
> > 957.4byte  $LFE4-$LFB4
> > 
> > (removing the '-.' in that line *G* makes it work with gas 2.15.94.0.2.2)
> 
> The feature was removed from the assembler, because it is not ABI
> compliant.  This is fixed in GCC 3.4 and later.  You can just delete
> the definition in config/mips/linux.h that causes this.
> 
> ASM_PREFERRED_EH_DATA_FORMAT or something similar, I don't remember the
> spelling.

yep, that fixes it ...

thanks a lot!
Herbert

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20985
> 
> --- You are receiving this mail because: ---
> You reported the bug, or are watching the reporter.


-- 


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


[Bug middle-end/20985] building mips/64 cross compiler on x86 produces incorrect assembler code for _divdi3 with -fnon-call-exceptions

2005-04-13 Thread herbert at 13thfloor dot at

--- Additional Comments From herbert at 13thfloor dot at  2005-04-13 21:11 
---
Subject: Re:  building mips/64 cross compiler on x86 produces incorrect 
assembler code for _divdi3 with -fnon-call-exceptions

On Wed, Apr 13, 2005 at 09:46:24AM -, pinskia at gcc dot gnu dot org wrote:
> 
> --- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-13 
> 09:46 ---
> 956.4byte  $LFB4-.
> 
> Are you sure that this is not an assembler problem?

tested with binutils 2.15.91.0.1, at least those give
the very same message ...

/root/tmp/ccHAa3KN.s: Assembler messages:
/root/tmp/ccHAa3KN.s:955: Error: operation combines symbols in different 
segments

thanks,
Herbert

> 
> -- 
>What|Removed |Added
> 
>Severity|critical|normal
>   Component|bootstrap   |debug
>Keywords||build
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20985
> 
> --- You are receiving this mail because: ---
> You reported the bug, or are watching the reporter.


-- 


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


[Bug middle-end/20985] building mips/64 cross compiler on x86 produces incorrect assembler code for _divdi3 with -fnon-call-exceptions

2005-04-13 Thread herbert at 13thfloor dot at

--- Additional Comments From herbert at 13thfloor dot at  2005-04-13 19:36 
---
Subject: Re:  building mips/64 cross compiler on x86 produces incorrect 
assembler code for _divdi3 with -fnon-call-exceptions

On Wed, Apr 13, 2005 at 05:51:18PM -, drow at false dot org wrote:
> 
> --- Additional Comments From drow at false dot org  2005-04-13 17:51 
> ---
> Subject: Re:  building mips/64 cross compiler on x86 produces incorrect 
> assembler code for _divdi3 with -fnon-call-exceptions
> 
> On Wed, Apr 13, 2005 at 09:46:26AM -, pinskia at gcc dot gnu dot org 
> wrote:
> >   Component|bootstrap   |debug
> 
> BTW, this has little to do with debugging; it's unwind information,
> which is runtime.

hmm, sorry about that, was (as usual) confused by the
bug tracking tool ... didn't even notice that I selected
debug (I probably did, or didn't I?)

best,
Herbert

> -- 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20985
> 
> --- You are receiving this mail because: ---
> You reported the bug, or are watching the reporter.


-- 


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


[Bug bootstrap/20985] New: building mips/64 cross compiler on x86 produces incorrect assembler code for _divdi3 with -fnon-call-exceptions

2005-04-12 Thread herbert at 13thfloor dot at
./configure --enable-languages=c --disable-nls --disable-threads
--disable-shared --disable-checking --prefix=/usr --target=mips-linux
make TARGET_LIBGCC2_CFLAGS='-Dinhibit_libc -D__gthr_posix_h'

results in ...
/gcc-3.3.5/gcc/xgcc -B/gcc-3.3.5/gcc/ -B/usr/mips-linux/bin/
-B/usr/mips-linux/lib/ -isystem /usr/mips-linux/include -O2  -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -fPIC -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config
-I./../include  -DL_divdi3 -c ./libgcc2.c -fexceptions -fnon-call-exceptions -o
libgcc/./_divdi3.o
/root/tmp/ccI71cbx.s: Assembler messages:
/root/tmp/ccI71cbx.s:956: Error: operation combines symbols in different 
segments

955.4byte  $LASFDE1-$Lframe1
956.4byte  $LFB4-.
957.4byte  $LFE4-$LFB4

(removing the '-.' in that line *G* makes it work with gas 2.15.94.0.2.2)

-- 
   Summary: building mips/64 cross compiler on x86 produces
incorrect assembler code for _divdi3 with -fnon-call-
exceptions
   Product: gcc
   Version: 3.3.5
Status: UNCONFIRMED
  Severity: critical
  Priority: P2
 Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: herbert at 13thfloor dot at
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: mips-unknown-linux-gnu


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


[Bug c/18240] warning: `obptr' might be used uninitialized in this function

2004-10-30 Thread herbert at 13thfloor dot at


-- 
   What|Removed |Added

   Attachment #7437|the soruce file |the source file
description||


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


[Bug c/18240] warning: `obptr' might be used uninitialized in this function

2004-10-30 Thread herbert at 13thfloor dot at

--- Additional Comments From herbert at 13thfloor dot at  2004-10-31 00:11 ---
Created an attachment (id=7439)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7439&action=view)
compile command line


-- 


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


[Bug c/18240] warning: `obptr' might be used uninitialized in this function

2004-10-30 Thread herbert at 13thfloor dot at

--- Additional Comments From herbert at 13thfloor dot at  2004-10-31 00:10 ---
Created an attachment (id=7438)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7438&action=view)
requested .i file


-- 


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


[Bug c/18240] warning: `obptr' might be used uninitialized in this function

2004-10-30 Thread herbert at 13thfloor dot at

--- Additional Comments From herbert at 13thfloor dot at  2004-10-31 00:08 ---
Created an attachment (id=7437)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7437&action=view)
the soruce file


-- 


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


[Bug c/18240] New: warning: `obptr' might be used uninitialized in this function

2004-10-30 Thread herbert at 13thfloor dot at
In the followin code fragment, obptr is wrongly 
reported as 'might be used uninitialized' where 
the same code causes now arning for x86 ...

static inline int vx_nofiles_task(struct task_struct *tsk)
{
struct files_struct *files = tsk->files;
unsigned long *obptr;
int count, total;

spin_lock(&files->file_lock);
obptr = files->open_fds->fds_bits;
count = files->max_fds / (sizeof(unsigned long) * 8);
for (total = 0; count > 0; count--) {
if (*obptr)
total += hweight_long(*obptr);
obptr++;
}
spin_unlock(&files->file_lock);
return total;
}

-- 
   Summary: warning: `obptr' might be used uninitialized in this
function
   Product: gcc
   Version: 3.3.4
Status: UNCONFIRMED
  Severity: minor
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: herbert at 13thfloor dot at
CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i586-mandrake-linux
GCC target triplet: ia64-unknown-linux


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