[Bug target/20166] Bootstrap failure due to lack of fixinclude of pthread problem

2005-03-15 Thread rguenth at gcc dot gnu dot org

--- Additional Comments From rguenth at gcc dot gnu dot org  2005-03-15 
08:15 ---
Patch here:
http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01377.html

-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
   Keywords||patch
   Last reconfirmed|2005-02-28 18:28:48 |2005-03-15 08:15:47
   date||


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


[Bug middle-end/20479] New: Instruction scheduler falsely reorders insns (ia64)

2005-03-15 Thread grigory dot zagorodnev at intel dot com
Test listed below fails when compiled with -02 optimization at IA64. It appears 
that instruction scheduler misses dependency between two assignments in 
the 'set_code' routine and falsely reorders them.

$ cat test.c
typedef struct s_t {
  short a;
  short b;
} *ps;
 
void set_code (ps obj, short code) {
*((int *) obj) = 0;
obj->a = code;
}
 
int printf(const char *, ...);
int main() {
struct s_t obj;
set_code(&obj, 123);

printf("%s: got %d, expected 123\n", 
((obj.a == 123)?"PASS":"FAIL"), obj.a);
}

$ gcc test.c -O2 
$ ./a.out
FAIL: got 0, expected 123

Here is the assembly code of function 'set_code' with incorrectly reordered 
instructions.

$ gcc test.c -S -O2 
.proc set_code#
set_code:
.prologue
.body
st2 [r32] = r33 ;obj->a = code;
st4 [r32] = r0  ;*((int *) obj) = 0;
br.ret.sptk.many b0

PS: the minimal set of optimizations reproducing the failure is "-O1 -fstrict-
aliasing -fschedule-insns".

-- 
   Summary: Instruction scheduler falsely reorders insns (ia64)
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: grigory dot zagorodnev at intel dot com
CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: ia64-redhat-linux


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


[Bug middle-end/20479] Instruction scheduler falsely reorders insns (ia64)

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
08:28 ---
You are violating C89/C99/C++ aliasing rules so this is undefined.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


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


[Bug libfortran/20480] New: libfortran: formatted write, ES edit descriptor

2005-03-15 Thread anlauf at hep dot tu-darmstadt dot de
Hi,

  write (*,10) 0.0
 10   format (ES12.3)
  end

prints
  
   0.000E-01

instead of

   0.000E+00

as it should.

Cheers,
-ha

-- 
   Summary: libfortran: formatted write, ES edit descriptor
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at hep dot tu-darmstadt dot de
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=20480


[Bug rtl-optimization/17236] inefficient code for long long multiply on x86

2005-03-15 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-03-15 
10:04 ---
Roger explains what else needs to be done here:
http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01386.html

Right now, after his patch, mainline generates this code:

pushl   %edi
pushl   %esi
pushl   %ebx
movl16(%esp), %eax
movl20(%esp), %edx
movl24(%esp), %ecx
movl28(%esp), %ebx
movl%edx, %esi
imull   %ecx, %esi
movl%ebx, %edi
imull   %eax, %edi
addl%edi, %esi
mull%ecx
leal(%esi,%edx), %edx
popl%ebx
popl%esi
popl%edi
ret


-- 


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


[Bug rtl-optimization/17236] inefficient code for long long multiply on x86

2005-03-15 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-03-15 
10:07 ---
Uros did some additional comments:
http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01427.html

-- 
   What|Removed |Added

  BugsThisDependsOn||19398


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


[Bug rtl-optimization/19398] secondary reloads don't consider "m" alternatives

2005-03-15 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-03-15 
10:10 ---
CC'ing reload guru

-- 
   What|Removed |Added

 CC||bernds_cb1 at t-online dot
   ||de


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


[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize

2005-03-15 Thread irar at il dot ibm dot com

--- Additional Comments From irar at il dot ibm dot com  2005-03-15 11:37 
---
This problem was solved in autovect branch (http://gcc.gnu.org/ml/gcc-
patches/2005-03/msg00754.html). This patch will be submitted to mainline in 
stage 2.

-- 


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


[Bug rtl-optimization/19398] secondary reloads don't consider "m" alternatives

2005-03-15 Thread bernds_cb1 at t-online dot de

--- Additional Comments From bernds_cb1 at t-online dot de  2005-03-15 
11:44 ---
Interesting problem.  I was temporarily confused by rth's mention of secondary
reloads; it's actually secondary memory that we allocate here.  What happens is

1. Notice none of the alternatives fit as-is
2. Decide that we'd like to use the first alternative (accepting "x")
3. Push a reload to move from a register in class "f" to a reloadreg in "x"
4. Notice that we need secondary memory for that
5. Fail to notice that we could just use that secondary memory location in the
insn's other alternative.

Not sure yet how best to fix it.  Unlike some other problems with reload, I
think peepholes can take care of this without leaving anything unnecessary 
behind.

-- 


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


[Bug rtl-optimization/19398] secondary reloads don't consider "m" alternatives

2005-03-15 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-03-15 
12:23 ---
But a peephole solution would fix a single backend, whilst I assume any kind of 
reload fix could improve code generation with multiple backends at the same 
time.

-- 


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


[Bug rtl-optimization/19398] secondary reloads don't consider "m" alternatives

2005-03-15 Thread uros at kss-loka dot si

--- Additional Comments From uros at kss-loka dot si  2005-03-15 12:34 
---
(In reply to comment #6)
> But a peephole solution would fix a single backend, whilst I assume any kind 
> of 

Also, every insn pattern that accepts memory input would need an appropriate
peephole2 pattern...


-- 


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


[Bug rtl-optimization/20291] combine throws away clobbers before trying to split

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
12:39 ---
Subject: Bug 20291

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 12:39:06

Modified files:
gcc: ChangeLog combine.c 

Log message:
PR rtl-optimization/20291
* combine.c (try_combine): If splitting fails, re-try with
original combined pattern, i.e. before clobber stripping.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7857&r2=2.7858
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/combine.c.diff?cvsroot=gcc&r1=1.479&r2=1.480



-- 


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


[Bug fortran/20481] New: RAN() should not be an intrinsic function

2005-03-15 Thread lei at il dot ibm dot com
(1) This example compiles with ibm xlf compiler, and (2) I could not
find any reference to RAN intrinsic in the last draft standard.

hadas:~% cat 1000d_linpack.f 
  double precision function ran( iseed )
  integer iseed(4)
  ran = 0.0
  end

  program linpack_test
  integer i(4)
  double precision r
  r = ran(i)
  end

hadas:~% gfortran -c 1000d_linpack.f
 In file 1000d_linpack.f:9

  r = ran(i)
 1
Error: 'i' argument of 'ran' intrinsic at (1) must be a scalar

-- 
   Summary: RAN() should not be an intrinsic function
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lei at il dot ibm dot com
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug fortran/20481] RAN() should not be an intrinsic function

2005-03-15 Thread lei at il dot ibm dot com


-- 
   What|Removed |Added

 CC||leehod at il dot ibm dot com


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


[Bug c++/20381] [4.0/4.1 Regression] ICE in build_ptrmemfunc, at cp/typeck.c:5702

2005-03-15 Thread martin at mpa-garching dot mpg dot de

--- Additional Comments From martin at mpa-garching dot mpg dot de  
2005-03-15 13:25 ---
As far as I know, this regression is only present in mainline, but not on the
4.0 branch; but the title and "Known to fail" line of this report say the
regression is also in 4.0.

Could someone with the required privileges please correct this?


-- 


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


[Bug c++/20381] [4.0/4.1 Regression] ICE in build_ptrmemfunc, at cp/typeck.c:5702

2005-03-15 Thread schwab at suse dot de

--- Additional Comments From schwab at suse dot de  2005-03-15 13:30 ---
The ICE is also reproducible on the 4.0 branch. 

-- 
   What|Removed |Added

 CC||schwab at suse dot de


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


[Bug fortran/20482] New: Problem when overloading LEN intrinsic

2005-03-15 Thread tow21 at cam dot ac dot uk
The attached code shows the problem - when the LEN intrinsic is overloaded, 
gfortran is unable to resolve the symbol. Remove the overloading, and the code 
compiles fine. 
 
parabrisas:~/test% gfortran -v 
Using built-in specs. 
Target: i686-pc-linux-gnu 
Configured with: ../gcc/configure --prefix=/home/tow/root/gcc 
--enable-languages=c,f95 
Thread model: posix 
gcc version 4.1.0 20050315 (experimental) 
 
parabrisas:~/test% ~/root/gcc/bin/gfortran -c m_wxml_buffer.f90 
 In file m_wxml_buffer.f90:19 
 
character(len=1), dimension(len(s))  :: s_a 
  1 
Error: Symbol 'len' at (1) has no IMPLICIT type

-- 
   Summary: Problem when overloading LEN intrinsic
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tow21 at cam dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug fortran/20482] Problem when overloading LEN intrinsic

2005-03-15 Thread tow21 at cam dot ac dot uk

--- Additional Comments From tow21 at cam dot ac dot uk  2005-03-15 13:46 
---
Created an attachment (id=8390)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8390&action=view)
testcase

Testcase attached.

-- 


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


[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize

2005-03-15 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-03-15 
13:48 ---
Confirmed.

Please, could the autovect people remember to confirm bugs when they look at 
them? If you have troubles with Bugzilla privileges and e-mail accounts, 
contact me in private.

Another thing: should we consider easily-backported fixes for ICEs also for the 
4.0 branch? I guess it makes sense if they are isolated in the vectorizer code. 
ICEs prevent users from test the new feature, even if it is preliminar. Mark?

-- 
   What|Removed |Added

 CC||irar at il dot ibm dot com,
   ||dorit at il dot ibm dot com,
   ||mmitchel at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-03-15 13:48:23
   date||


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


[Bug rtl-optimization/20291] combine throws away clobbers before trying to split

2005-03-15 Thread amylaar at gcc dot gnu dot org

--- Additional Comments From amylaar at gcc dot gnu dot org  2005-03-15 
14:07 ---
Fixed in mainline with patch applied today.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug other/17652] [meta-bug] GCC 4.1 pending patches

2005-03-15 Thread amylaar at gcc dot gnu dot org


-- 
Bug 17652 depends on bug 20291, which changed state.

Bug 20291 Summary: combine throws away clobbers before trying to split
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20291

   What|Old Value   |New Value

 Status|NEW |RESOLVED
 Resolution||FIXED

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


[Bug fortran/20483] New: Not Implemented: Scalarization of non-elemental intrinsic

2005-03-15 Thread tow21 at cam dot ac dot uk
Don't know if this is related to 12840 - submitting it anyway.  
  
parabrisas:~/test% cat char.f90  
subroutine add_to_buffer_escaping_markup(s) 
  character(len=*), intent(in)  ::   s 
  character(len=1), dimension(len(s))  :: s_a 
 
  call add_to_buffer(transfer(s,s_a)) 
end subroutine add_to_buffer_escaping_markup 
 
parabrisas:~/test% gfortran -c char.f90 
char.f90: In function 'add_to_buffer_escaping_markup': 
char.f90:1: fatal error: gfc_todo: Not Implemented: Scalarization of 
non-elemental intrinsic: __transfer1 
compilation terminated.

-- 
   Summary: Not Implemented: Scalarization of non-elemental
intrinsic
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tow21 at cam dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug target/18668] use prescott's fisttp

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
14:44 ---
Subject: Bug 18668

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 14:44:13

Modified files:
gcc: ChangeLog 
gcc/config/i386: i386-protos.h i386.c i386.h i386.md 

Log message:
PR target/18668
* config/i386/i386.h (x86_fisttp): New.
(TARGET_FISTTP): New macro.
* config/i386/i386.c (x86_fisttp): Set for NOCONA.
(output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
instruction when fisttp flag is set.
* config/i386/i386-protos.h (output_fix_trunc): Change declaration.

* config/i386/i386.md (type attribute): Add fisttp.
(unit attribute): Set to i387 for fisttp type.
(X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
(fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
TARGET_FISTTP.
(fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
Generate fisttp patterns for TARGET_FISTTP. Implement using mode
macros.
(fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
patterns for TARGET_FISTTP.  Enable patterns for
(TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
(fix_trunc_i387_fisttp_1, fix_trunc_i387_fisttp,
fix_trunc_i387_fisttp_with_temp): New instruction patterns to
implement fisttp x87 insn.
(fix_trunc*_i387_fisttp splitters): New patterns.
(*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
Rename to *fix_trunc_i387_1.  Implement using mode macros.
Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
clobber.
(fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
Rename to fix_trunc_i387 and fix_trunc_i387_with_temp.
Implement using mode macros. Disable patterns for TARGET_FISTTP.
(fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
fix_trunchi_nomemory): Rename to fix_trunc_i387 and
fix_trunc_i387_with_temp. Implement using mode macros.
Disable patterns for TARGET_FISTTP.
(fix_trunc*_i387 splitters): Implement usign mode macros.
(fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
(fix_trunx*_sse peephole2s): Implement using mode macros.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7858&r2=2.7859
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386-protos.h.diff?cvsroot=gcc&r1=1.131&r2=1.132
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.c.diff?cvsroot=gcc&r1=1.797&r2=1.798
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.h.diff?cvsroot=gcc&r1=1.422&r2=1.423
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.md.diff?cvsroot=gcc&r1=1.619&r2=1.620



-- 


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


[Bug target/18668] use prescott's fisttp

2005-03-15 Thread uros at kss-loka dot si

--- Additional Comments From uros at kss-loka dot si  2005-03-15 14:53 
---
Patch is comitted to 4.1 mainline. For the testcase in description '-O2
-march=prescott' now generates:

oof:
pushl   %ebp
movl%esp, %ebp
subl$8, %esp
fldl8(%ebp)
fisttpll-8(%ebp)
movl-8(%ebp), %eax
leave
ret


-- 
   What|Removed |Added

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


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


[Bug fortran/20481] RAN() should not be an intrinsic function

2005-03-15 Thread sgk at troutmask dot apl dot washington dot edu

--- Additional Comments From sgk at troutmask dot apl dot washington dot 
edu  2005-03-15 15:24 ---
Add "external ran" to your program.  RAN is an intrinsic
procedure because it was an intrinsic procedure in g77.
Or add "-std=f95" to your command line.

-- 


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


[Bug c++/20484] New: No proper linkage created for in class initialized static const

2005-03-15 Thread dopheide at fmf dot nl
Example:
template 
T const max1(T const a, T const b)
{ return a < b ? b : a; }

template 
T const & max2(T const & a, T const & b)
{ return a < b ? b : a; }

struct Test
{ static int const A = 1; };

int main()
{
#if 0
  max1(Test::A, 2); // OK.
#else
  max2(Test::A, 2); // Does not link: undefined reference to `Test::A
#endif
}

The problem does not appear in 2.95.4
The problem does appear in 3.0.4, 3.2.3
Also appeared on 3.4.4 x86_64

-- 
   Summary: No proper linkage created for in class initialized
static const
   Product: gcc
   Version: 3.3.5
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dopheide at fmf dot nl
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-linux
  GCC host triplet: i486-linux
GCC target triplet: i486-linux


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


[Bug ada/13470] 64bits Ada bootstrap failure:xnmake etc. crash generating nmake.adb etc.

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
15:54 ---
Subject: Bug 13470

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 15:53:11

Modified files:
gcc/ada: a-stunau.ads a-stunau.adb g-spipat.ads 
 g-spipat.adb g-spitbo.adb g-spitbo.ads 
 a-swunau.ads a-swunau.adb a-szunau.ads 
 a-szunau.adb 

Log message:
2005-03-08  Robert Dewar  <[EMAIL PROTECTED]>

PR ada/13470

* a-stunau.ads, a-stunau.adb:
Change interface to allow efficient (and correct) implementation
The previous changes to allow extra space in unbounded strings had
left this interface a bit broken.

* a-suteio.adb: Avoid unnecessary use of Get/Set_String

* g-spipat.ads, g-spipat.adb: New interface for Get_String
Minor reformatting (function specs)

* g-spitbo.adb: New interface for Get_String

* g-spitbo.ads: Minor reformatting

* a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String

* a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/a-stunau.ads.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/a-stunau.adb.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/g-spipat.ads.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/g-spipat.adb.diff?cvsroot=gcc&r1=1.8&r2=1.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/g-spitbo.adb.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/g-spitbo.ads.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/a-swunau.ads.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/a-swunau.adb.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/a-szunau.ads.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/a-szunau.adb.diff?cvsroot=gcc&r1=1.1&r2=1.2



-- 


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


[Bug ada/19140] ACATS c37402a segfaults at runtime

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
16:00 ---
Subject: Bug 19140

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 15:59:55

Modified files:
gcc/ada: decl.c gigi.h utils.c trans.c exp_ch13.adb 
 freeze.adb sem_ch3.adb 

Log message:
2005-03-08  Eric Botcazou  <[EMAIL PROTECTED]>
Richard Kenner  <[EMAIL PROTECTED]>
Nicolas Setton  <[EMAIL PROTECTED]>
Ed Schonberg  <[EMAIL PROTECTED]>

PR ada/19900
PR ada/19408
PR ada/19140
PR ada/20255

* decl.c (gnat_to_gnu_field): Reject aliased components with a
representation clause that prescribes a size not equal to the rounded
size of their types.
(gnat_to_gnu_entity, case E_Component): Always look at
Original_Record_Component if Present and not the entity.
(gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
of tagged extension types by not making field for components that are
inside the parent.
(gnat_to_gnu_entity) : Fix typo in the alignment formula
(gnat_to_gnu_entity) : Do not convert again the
expression to the type of the object when the object is constant.
Reverse defer_debug_incomplete_list before traversing it, so that trees
are processed in the order at which they were added to the list. This
order is important when using the stabs debug format.
If we are deferring the output of debug information, also defer this
output for a function return type.
When adding fields to a record, prevent emitting debug information
for incomplete records, emit the information only when the record is
complete.
(components_to_record): New parameter defer_debug.
(gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
(gnat_to_gnu_field_decl): New function.
(substitution_list, annotate_rep): Call it.
(gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
(gnat_to_gnu_entity, case E_Record_Type): Likewise.
No longer update discriminants to not be a COMPONENT_REF.
(copy_alias_set): Strip padding from input type; also handle
unconstrained arrays properly.

* gigi.h (write_record_type_debug_info): New function.
Convert to use ANSI-style prototypes. Remove unused
declarations for emit_stack_check, elab_all_gnat and
set_second_error_entity.
(gnat_to_gnu_field_decl): New decl.

* utils.c (write_record_type_debug_info): New function.
(finish_record_type): Delegate generation of debug information to
write_record_type_debug_info.
(update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
(update_pointer_to): Fix pasto.
(convert) : Accept slight type variations when
converting to an unchecked union type.

* exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
replace the N_Freeze_Entity with a null statement.

* freeze.adb (Freeze_Expression): If the freeze nodes are generated
within a constrained subcomponent of an enclosing record, place the
freeze nodes in the scope stack entry for the enclosing record.
(Undelay_Type): New Subprogram.
(Set_Small_Size): Pass T, the type to modify; all callers changed.
(Freeze_Entity, Freeze_Record_Type): Change the way we handle types
within records; allow them to have freeze nodes if their base types
aren't frozen yet.

* sem_ch3.adb (Derived_Type_Declaration): New predicate
Comes_From_Generic, to recognize accurately that the parent type in a
derived type declaration can be traced back to a formal type, because
it is one or is derived from one, or because its completion is derived
from one.
(Constrain_Component_Type): If component comes from source and has no
explicit constraint, no need to constrain in in a subtype of the
enclosing record.
(Constrain_Access, Constrain_Array): Allow itypes to be delayed.
Minor change to propagate Is_Ada_2005 flag

* trans.c (gnat_to_gnu, case N_Aggregate): Verify that
Expansion_Delayed is False.
(assoc_to_constructor): Ignore fields that have a
Corresponding_Discriminant.
(gnat_to_gnu) : Restructure. If the
function returns "by target", dereference the target pointer using the
type of the actual return value.
: Be prepared for a null gnu_result.
(processed_inline_subprograms): Check flag_really_no_inline
instead of flag_no_inline.
(set_second_error_entity): Remove unused function.
(gnat_to_gnu, case N_Selected_Component): Call
gnat

[Bug ada/20255] GNAT Bug Box While Compiling florist-3.15p-src

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
16:00 ---
Subject: Bug 20255

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 15:59:55

Modified files:
gcc/ada: decl.c gigi.h utils.c trans.c exp_ch13.adb 
 freeze.adb sem_ch3.adb 

Log message:
2005-03-08  Eric Botcazou  <[EMAIL PROTECTED]>
Richard Kenner  <[EMAIL PROTECTED]>
Nicolas Setton  <[EMAIL PROTECTED]>
Ed Schonberg  <[EMAIL PROTECTED]>

PR ada/19900
PR ada/19408
PR ada/19140
PR ada/20255

* decl.c (gnat_to_gnu_field): Reject aliased components with a
representation clause that prescribes a size not equal to the rounded
size of their types.
(gnat_to_gnu_entity, case E_Component): Always look at
Original_Record_Component if Present and not the entity.
(gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
of tagged extension types by not making field for components that are
inside the parent.
(gnat_to_gnu_entity) : Fix typo in the alignment formula
(gnat_to_gnu_entity) : Do not convert again the
expression to the type of the object when the object is constant.
Reverse defer_debug_incomplete_list before traversing it, so that trees
are processed in the order at which they were added to the list. This
order is important when using the stabs debug format.
If we are deferring the output of debug information, also defer this
output for a function return type.
When adding fields to a record, prevent emitting debug information
for incomplete records, emit the information only when the record is
complete.
(components_to_record): New parameter defer_debug.
(gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
(gnat_to_gnu_field_decl): New function.
(substitution_list, annotate_rep): Call it.
(gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
(gnat_to_gnu_entity, case E_Record_Type): Likewise.
No longer update discriminants to not be a COMPONENT_REF.
(copy_alias_set): Strip padding from input type; also handle
unconstrained arrays properly.

* gigi.h (write_record_type_debug_info): New function.
Convert to use ANSI-style prototypes. Remove unused
declarations for emit_stack_check, elab_all_gnat and
set_second_error_entity.
(gnat_to_gnu_field_decl): New decl.

* utils.c (write_record_type_debug_info): New function.
(finish_record_type): Delegate generation of debug information to
write_record_type_debug_info.
(update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
(update_pointer_to): Fix pasto.
(convert) : Accept slight type variations when
converting to an unchecked union type.

* exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
replace the N_Freeze_Entity with a null statement.

* freeze.adb (Freeze_Expression): If the freeze nodes are generated
within a constrained subcomponent of an enclosing record, place the
freeze nodes in the scope stack entry for the enclosing record.
(Undelay_Type): New Subprogram.
(Set_Small_Size): Pass T, the type to modify; all callers changed.
(Freeze_Entity, Freeze_Record_Type): Change the way we handle types
within records; allow them to have freeze nodes if their base types
aren't frozen yet.

* sem_ch3.adb (Derived_Type_Declaration): New predicate
Comes_From_Generic, to recognize accurately that the parent type in a
derived type declaration can be traced back to a formal type, because
it is one or is derived from one, or because its completion is derived
from one.
(Constrain_Component_Type): If component comes from source and has no
explicit constraint, no need to constrain in in a subtype of the
enclosing record.
(Constrain_Access, Constrain_Array): Allow itypes to be delayed.
Minor change to propagate Is_Ada_2005 flag

* trans.c (gnat_to_gnu, case N_Aggregate): Verify that
Expansion_Delayed is False.
(assoc_to_constructor): Ignore fields that have a
Corresponding_Discriminant.
(gnat_to_gnu) : Restructure. If the
function returns "by target", dereference the target pointer using the
type of the actual return value.
: Be prepared for a null gnu_result.
(processed_inline_subprograms): Check flag_really_no_inline
instead of flag_no_inline.
(set_second_error_entity): Remove unused function.
(gnat_to_gnu, case N_Selected_Component): Call
gnat

[Bug ada/19900] [4.0/4.1 Regression] ACATS c391002 c432002 ICE categorize_ctor_elements_1

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
16:00 ---
Subject: Bug 19900

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 15:59:55

Modified files:
gcc/ada: decl.c gigi.h utils.c trans.c exp_ch13.adb 
 freeze.adb sem_ch3.adb 

Log message:
2005-03-08  Eric Botcazou  <[EMAIL PROTECTED]>
Richard Kenner  <[EMAIL PROTECTED]>
Nicolas Setton  <[EMAIL PROTECTED]>
Ed Schonberg  <[EMAIL PROTECTED]>

PR ada/19900
PR ada/19408
PR ada/19140
PR ada/20255

* decl.c (gnat_to_gnu_field): Reject aliased components with a
representation clause that prescribes a size not equal to the rounded
size of their types.
(gnat_to_gnu_entity, case E_Component): Always look at
Original_Record_Component if Present and not the entity.
(gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
of tagged extension types by not making field for components that are
inside the parent.
(gnat_to_gnu_entity) : Fix typo in the alignment formula
(gnat_to_gnu_entity) : Do not convert again the
expression to the type of the object when the object is constant.
Reverse defer_debug_incomplete_list before traversing it, so that trees
are processed in the order at which they were added to the list. This
order is important when using the stabs debug format.
If we are deferring the output of debug information, also defer this
output for a function return type.
When adding fields to a record, prevent emitting debug information
for incomplete records, emit the information only when the record is
complete.
(components_to_record): New parameter defer_debug.
(gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
(gnat_to_gnu_field_decl): New function.
(substitution_list, annotate_rep): Call it.
(gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
(gnat_to_gnu_entity, case E_Record_Type): Likewise.
No longer update discriminants to not be a COMPONENT_REF.
(copy_alias_set): Strip padding from input type; also handle
unconstrained arrays properly.

* gigi.h (write_record_type_debug_info): New function.
Convert to use ANSI-style prototypes. Remove unused
declarations for emit_stack_check, elab_all_gnat and
set_second_error_entity.
(gnat_to_gnu_field_decl): New decl.

* utils.c (write_record_type_debug_info): New function.
(finish_record_type): Delegate generation of debug information to
write_record_type_debug_info.
(update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
(update_pointer_to): Fix pasto.
(convert) : Accept slight type variations when
converting to an unchecked union type.

* exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
replace the N_Freeze_Entity with a null statement.

* freeze.adb (Freeze_Expression): If the freeze nodes are generated
within a constrained subcomponent of an enclosing record, place the
freeze nodes in the scope stack entry for the enclosing record.
(Undelay_Type): New Subprogram.
(Set_Small_Size): Pass T, the type to modify; all callers changed.
(Freeze_Entity, Freeze_Record_Type): Change the way we handle types
within records; allow them to have freeze nodes if their base types
aren't frozen yet.

* sem_ch3.adb (Derived_Type_Declaration): New predicate
Comes_From_Generic, to recognize accurately that the parent type in a
derived type declaration can be traced back to a formal type, because
it is one or is derived from one, or because its completion is derived
from one.
(Constrain_Component_Type): If component comes from source and has no
explicit constraint, no need to constrain in in a subtype of the
enclosing record.
(Constrain_Access, Constrain_Array): Allow itypes to be delayed.
Minor change to propagate Is_Ada_2005 flag

* trans.c (gnat_to_gnu, case N_Aggregate): Verify that
Expansion_Delayed is False.
(assoc_to_constructor): Ignore fields that have a
Corresponding_Discriminant.
(gnat_to_gnu) : Restructure. If the
function returns "by target", dereference the target pointer using the
type of the actual return value.
: Be prepared for a null gnu_result.
(processed_inline_subprograms): Check flag_really_no_inline
instead of flag_no_inline.
(set_second_error_entity): Remove unused function.
(gnat_to_gnu, case N_Selected_Component): Call
gnat

[Bug ada/19408] [4.0/4.1 Regression] ACATS c391002 failure on powerpc-darwin, wrong .space

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
16:00 ---
Subject: Bug 19408

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 15:59:55

Modified files:
gcc/ada: decl.c gigi.h utils.c trans.c exp_ch13.adb 
 freeze.adb sem_ch3.adb 

Log message:
2005-03-08  Eric Botcazou  <[EMAIL PROTECTED]>
Richard Kenner  <[EMAIL PROTECTED]>
Nicolas Setton  <[EMAIL PROTECTED]>
Ed Schonberg  <[EMAIL PROTECTED]>

PR ada/19900
PR ada/19408
PR ada/19140
PR ada/20255

* decl.c (gnat_to_gnu_field): Reject aliased components with a
representation clause that prescribes a size not equal to the rounded
size of their types.
(gnat_to_gnu_entity, case E_Component): Always look at
Original_Record_Component if Present and not the entity.
(gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
of tagged extension types by not making field for components that are
inside the parent.
(gnat_to_gnu_entity) : Fix typo in the alignment formula
(gnat_to_gnu_entity) : Do not convert again the
expression to the type of the object when the object is constant.
Reverse defer_debug_incomplete_list before traversing it, so that trees
are processed in the order at which they were added to the list. This
order is important when using the stabs debug format.
If we are deferring the output of debug information, also defer this
output for a function return type.
When adding fields to a record, prevent emitting debug information
for incomplete records, emit the information only when the record is
complete.
(components_to_record): New parameter defer_debug.
(gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
(gnat_to_gnu_field_decl): New function.
(substitution_list, annotate_rep): Call it.
(gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
(gnat_to_gnu_entity, case E_Record_Type): Likewise.
No longer update discriminants to not be a COMPONENT_REF.
(copy_alias_set): Strip padding from input type; also handle
unconstrained arrays properly.

* gigi.h (write_record_type_debug_info): New function.
Convert to use ANSI-style prototypes. Remove unused
declarations for emit_stack_check, elab_all_gnat and
set_second_error_entity.
(gnat_to_gnu_field_decl): New decl.

* utils.c (write_record_type_debug_info): New function.
(finish_record_type): Delegate generation of debug information to
write_record_type_debug_info.
(update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
(update_pointer_to): Fix pasto.
(convert) : Accept slight type variations when
converting to an unchecked union type.

* exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
replace the N_Freeze_Entity with a null statement.

* freeze.adb (Freeze_Expression): If the freeze nodes are generated
within a constrained subcomponent of an enclosing record, place the
freeze nodes in the scope stack entry for the enclosing record.
(Undelay_Type): New Subprogram.
(Set_Small_Size): Pass T, the type to modify; all callers changed.
(Freeze_Entity, Freeze_Record_Type): Change the way we handle types
within records; allow them to have freeze nodes if their base types
aren't frozen yet.

* sem_ch3.adb (Derived_Type_Declaration): New predicate
Comes_From_Generic, to recognize accurately that the parent type in a
derived type declaration can be traced back to a formal type, because
it is one or is derived from one, or because its completion is derived
from one.
(Constrain_Component_Type): If component comes from source and has no
explicit constraint, no need to constrain in in a subtype of the
enclosing record.
(Constrain_Access, Constrain_Array): Allow itypes to be delayed.
Minor change to propagate Is_Ada_2005 flag

* trans.c (gnat_to_gnu, case N_Aggregate): Verify that
Expansion_Delayed is False.
(assoc_to_constructor): Ignore fields that have a
Corresponding_Discriminant.
(gnat_to_gnu) : Restructure. If the
function returns "by target", dereference the target pointer using the
type of the actual return value.
: Be prepared for a null gnu_result.
(processed_inline_subprograms): Check flag_really_no_inline
instead of flag_no_inline.
(set_second_error_entity): Remove unused function.
(gnat_to_gnu, case N_Selected_Component): Call
gnat

[Bug ada/19900] [4.0/4.1 Regression] ACATS c391002 c432002 ICE categorize_ctor_elements_1

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
16:00 ---
Subject: Bug 19900

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 15:59:55

Modified files:
gcc/ada: decl.c gigi.h utils.c trans.c exp_ch13.adb 
 freeze.adb sem_ch3.adb 

Log message:
2005-03-08  Eric Botcazou  <[EMAIL PROTECTED]>
Richard Kenner  <[EMAIL PROTECTED]>
Nicolas Setton  <[EMAIL PROTECTED]>
Ed Schonberg  <[EMAIL PROTECTED]>

PR ada/19900
PR ada/19408
PR ada/19140
PR ada/20255

* decl.c (gnat_to_gnu_field): Reject aliased components with a
representation clause that prescribes a size not equal to the rounded
size of their types.
(gnat_to_gnu_entity, case E_Component): Always look at
Original_Record_Component if Present and not the entity.
(gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
of tagged extension types by not making field for components that are
inside the parent.
(gnat_to_gnu_entity) : Fix typo in the alignment formula
(gnat_to_gnu_entity) : Do not convert again the
expression to the type of the object when the object is constant.
Reverse defer_debug_incomplete_list before traversing it, so that trees
are processed in the order at which they were added to the list. This
order is important when using the stabs debug format.
If we are deferring the output of debug information, also defer this
output for a function return type.
When adding fields to a record, prevent emitting debug information
for incomplete records, emit the information only when the record is
complete.
(components_to_record): New parameter defer_debug.
(gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
(gnat_to_gnu_field_decl): New function.
(substitution_list, annotate_rep): Call it.
(gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
(gnat_to_gnu_entity, case E_Record_Type): Likewise.
No longer update discriminants to not be a COMPONENT_REF.
(copy_alias_set): Strip padding from input type; also handle
unconstrained arrays properly.

* gigi.h (write_record_type_debug_info): New function.
Convert to use ANSI-style prototypes. Remove unused
declarations for emit_stack_check, elab_all_gnat and
set_second_error_entity.
(gnat_to_gnu_field_decl): New decl.

* utils.c (write_record_type_debug_info): New function.
(finish_record_type): Delegate generation of debug information to
write_record_type_debug_info.
(update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
(update_pointer_to): Fix pasto.
(convert) : Accept slight type variations when
converting to an unchecked union type.

* exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
replace the N_Freeze_Entity with a null statement.

* freeze.adb (Freeze_Expression): If the freeze nodes are generated
within a constrained subcomponent of an enclosing record, place the
freeze nodes in the scope stack entry for the enclosing record.
(Undelay_Type): New Subprogram.
(Set_Small_Size): Pass T, the type to modify; all callers changed.
(Freeze_Entity, Freeze_Record_Type): Change the way we handle types
within records; allow them to have freeze nodes if their base types
aren't frozen yet.

* sem_ch3.adb (Derived_Type_Declaration): New predicate
Comes_From_Generic, to recognize accurately that the parent type in a
derived type declaration can be traced back to a formal type, because
it is one or is derived from one, or because its completion is derived
from one.
(Constrain_Component_Type): If component comes from source and has no
explicit constraint, no need to constrain in in a subtype of the
enclosing record.
(Constrain_Access, Constrain_Array): Allow itypes to be delayed.
Minor change to propagate Is_Ada_2005 flag

* trans.c (gnat_to_gnu, case N_Aggregate): Verify that
Expansion_Delayed is False.
(assoc_to_constructor): Ignore fields that have a
Corresponding_Discriminant.
(gnat_to_gnu) : Restructure. If the
function returns "by target", dereference the target pointer using the
type of the actual return value.
: Be prepared for a null gnu_result.
(processed_inline_subprograms): Check flag_really_no_inline
instead of flag_no_inline.
(set_second_error_entity): Remove unused function.
(gnat_to_gnu, case N_Selected_Component): Call
gnat

[Bug ada/20344] [4.0/4.1 regression] gnat1: error: unrecognized command line option "-fRTS=/tmp/rts"

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
16:03 ---
Subject: Bug 20344

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 16:02:28

Modified files:
gcc/ada: misc.c lang.opt 

Log message:
2005-03-08  Pascal Obry  <[EMAIL PROTECTED]>
Eric Botcazou  <[EMAIL PROTECTED]>

PR ada/20226
PR ada/20344

* init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
when IN_RTS. This is to work around a bootstrap path problem.

* misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
table and pass it to __gnat_install_SEH_handler().
(gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.

* lang.opt: Fix specification of -fRTS=.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/misc.c.diff?cvsroot=gcc&r1=1.97&r2=1.98
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/lang.opt.diff?cvsroot=gcc&r1=1.8&r2=1.9



-- 


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


[Bug ada/20226] [4.0/4.1 Regression] Error in __gnat_install_SEH_handler breaks bootstrap

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
16:03 ---
Subject: Bug 20226

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 16:02:28

Modified files:
gcc/ada: misc.c lang.opt 

Log message:
2005-03-08  Pascal Obry  <[EMAIL PROTECTED]>
Eric Botcazou  <[EMAIL PROTECTED]>

PR ada/20226
PR ada/20344

* init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
when IN_RTS. This is to work around a bootstrap path problem.

* misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
table and pass it to __gnat_install_SEH_handler().
(gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.

* lang.opt: Fix specification of -fRTS=.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/misc.c.diff?cvsroot=gcc&r1=1.97&r2=1.98
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/lang.opt.diff?cvsroot=gcc&r1=1.8&r2=1.9



-- 


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


[Bug ada/20255] GNAT Bug Box While Compiling florist-3.15p-src

2005-03-15 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-15 
16:03 ---
Fixed on mainline.

-- 
   What|Removed |Added

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


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


[Bug fortran/20481] RAN() should not be an intrinsic function

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
16:03 ---
Actually it was not g77 intrinsic but rather an hp extension intrinsic which  I 
had filed (PR 14993), 
adding what Steve recommends fixes the problem.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


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


[Bug ada/19140] ACATS c37402a segfaults at runtime

2005-03-15 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-15 
16:05 ---
Fixed on mainline.

-- 
   What|Removed |Added

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


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


[Bug ada/19408] [4.0/4.1 Regression] ACATS c391002 failure on powerpc-darwin, wrong .space

2005-03-15 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-15 
16:05 ---
Fixed on mainline.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug ada/19900] [4.0/4.1 Regression] ACATS c391002 c432002 ICE categorize_ctor_elements_1

2005-03-15 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-15 
16:06 ---
Fixed on mainline.

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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


[Bug ada/19408] [4.0/4.1 Regression] ACATS c391002 failure on powerpc-darwin, wrong .space

2005-03-15 Thread charlet at gcc dot gnu dot org


-- 
Bug 19408 depends on bug 19900, which changed state.

Bug 19900 Summary: [4.0/4.1 Regression] ACATS c391002 c432002 ICE 
categorize_ctor_elements_1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19900

   What|Old Value   |New Value

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

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


[Bug ada/20226] [4.0/4.1 Regression] Error in __gnat_install_SEH_handler breaks bootstrap

2005-03-15 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-15 
16:07 ---
Fixed on mainline.

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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


[Bug ada/6852] gnatlib fails to build with newlib because it doesn't set up the include path

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
16:11 ---
Subject: Bug 6852

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 16:10:23

Modified files:
gcc/ada: Makefile.in 

Log message:
2005-03-08  Doug Rupp  <[EMAIL PROTECTED]>
Bernard Banner  <[EMAIL PROTECTED]>
Vincent Celier  <[EMAIL PROTECTED]>
Arnaud Charlet  <[EMAIL PROTECTED]>

PR ada/6852
This change works fine when gnatlib is built from the gcc directory,
but does not work when using the libada Makefile, since GCC_FOR_TARGET
is not passed to ada/Makefile.in, so more work is needed by a
Makefile/configure expert.

* Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
set GMEM_LIB on ia64 linux to add optional support for gnatmem.
Setup gnatlink switch -M for x86_64 linux, as it is already setup
for Linux x86.
(gnatlib-shared-default): Use GNATLIBCFLAGS as well.
Run ranlib on libgccprefix.a
Define PREFIX_OBJS for Darwin, to build libgccprefix.
(ADA_INCLUDE_SRCS): Split Ada packages.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/Makefile.in.diff?cvsroot=gcc&r1=1.112&r2=1.113



-- 


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


[Bug ada/20344] [4.0/4.1 regression] gnat1: error: unrecognized command line option "-fRTS=/tmp/rts"

2005-03-15 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-15 
16:11 ---
Marking as fixed.

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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


[Bug c++/20484] No proper linkage created for in class initialized static const

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
16:12 ---
You need to declare space for the variable still like so:
int const Test::A;

This is invalid.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


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


[Bug ada/15608] Bug box at sem_ch3.adb:8228

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
16:13 ---
Subject: Bug 15608

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 16:12:59

Modified files:
gcc/ada: sem_util.adb 

Log message:
2005-03-08  Ed Schonberg  <[EMAIL PROTECTED]>
Javier Miranda  <[EMAIL PROTECTED]>

PR ada/15608
* sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
of a private type, in which case it is underlying_type that denotes
the proper task. Also modified to use the new entity attribute
that is directly available in the task type and task subtype entities
(Build_Actual_Subtype_Of_Component): Handle properly multidimensional
arrays when other dimensions than the first are constrained by
discriminants of an enclosing record.
(Insert_Explicit_Dereference): If the prefix is an indexed component or
a combination of indexed and selected components, find ultimate entity
and generate the appropriate reference for it, to suppress spurious
warnings.
(Note_Possible_Modification): If an entity name has no entity, return.
(Is_Variable): A function call never denotes a variable.
(Requires_Transient_Scope): For record types, recurse only on
components, not on internal subtypes that may have been generated for
constrained components.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/sem_util.adb.diff?cvsroot=gcc&r1=1.48&r2=1.49



-- 


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


[Bug ada/20344] [4.0/4.1 regression] gnat1: error: unrecognized command line option "-fRTS=/tmp/rts"

2005-03-15 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-15 
16:09 ---
Fixed on mainline.

-- 
   What|Removed |Added

   Target Milestone|--- |4.1.0


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


[Bug ada/15608] Bug box at sem_ch3.adb:8228

2005-03-15 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-15 
16:17 ---
Fixed on mainline.

-- 
   What|Removed |Added

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


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


[Bug libgcj/20251] [4.0/4.1 regression] libgcj configured with --enable-gtk-cairo fails on installation

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
16:18 ---
Patch here: .

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords||patch
   Last reconfirmed|-00-00 00:00:00 |2005-03-15 16:18:12
   date||
Summary|[4.0 regression] libgcj |[4.0/4.1 regression] libgcj
   |configured with --enable-   |configured with --enable-
   |gtk-cairo fails on  |gtk-cairo fails on
   |installation|installation


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


[Bug tree-optimization/18727] [4.0/4.1 Regression] ACATS c43214c fails at runtime (aliasing pb)

2005-03-15 Thread ebotcazou at gcc dot gnu dot org

--- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-03-15 
16:25 ---
Fixed on mainline.


-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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


[Bug fortran/20483] Not Implemented: Scalarization of non-elemental intrinsic

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
16:28 ---


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

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug fortran/17298] gfortran ICE: Not Implemented: Scalarization of non-elemental intrinsic: __transfer1

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
16:28 ---
*** Bug 20483 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||tow21 at cam dot ac dot uk


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


[Bug ada/6852] gnatlib fails to build with newlib because it doesn't set up the include path

2005-03-15 Thread charlet at gcc dot gnu dot org

--- Additional Comments From charlet at gcc dot gnu dot org  2005-03-15 
16:32 ---
Adding nathanael in cc:

Nathanel, could you have a look at the comment #10 about passing
GCC_FOR_TARGET down to libada/Makefile ?

Arno

-- 
   What|Removed |Added

 CC||neroden at gcc dot gnu dot
   ||org


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


[Bug c++/20485] New: ice with -O1 or above

2005-03-15 Thread jes at bodi-klinke dot dk
Source available at http://www.bodi-klinke.dk/parser.ii

$ /usr/local/bin/g++ -g -Wall -Werror -O1 -c parser.ii
parser.hh: In member function `bool
parser::Parser::parse_simple_declaration(parser::Environment*,
parser::Parser::DeclEnv&, const parser::Parser::fun_env_t&, bool,
parser::DeclStatement*, bool)':
parser.hh:37: internal compiler error: in make_decl_rtl, at varasm.c:752
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.

$ /usr/local/bin/g++ -v
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure 
Thread model: posix
gcc version 3.4.3

Running on RedHat 7.3 on x86

-- 
   Summary: ice with -O1 or above
   Product: gcc
   Version: 3.4.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jes at bodi-klinke dot dk
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug c++/20381] [4.0/4.1 Regression] ICE in build_ptrmemfunc, at cp/typeck.c:5702

2005-03-15 Thread micis at gmx dot de

--- Additional Comments From micis at gmx dot de  2005-03-15 17:04 ---
I got this ICE only with gcc 4.1.0

Michael Cieslinski

-- 


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


[Bug c++/20485] [3.4 Regression] ice with -O1 or above

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
17:07 ---
Note this code is partly invalid (and will be rejected in 4.0) but fixing that 
invalidness, still gets the error 
in 3.4.x.  Basically friend support in 4.0 and above is closer to what the 
standard says it should be.

-- 
   What|Removed |Added

   Keywords||ice-on-valid-code
Summary|ice with -O1 or above   |[3.4 Regression] ice with -
   ||O1 or above
   Target Milestone|--- |3.4.4


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


[Bug c++/20485] [3.4 Regression] ice with -O1 or above

2005-03-15 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

  Known to fail||3.4.0 4.0.0
  Known to work||3.3.3 4.0.0 4.1.0


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


[Bug c++/20485] [3.4 Regression] ice with -O1 or above

2005-03-15 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

  Known to fail|3.4.0 4.0.0 |3.4.0


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


[Bug middle-end/19985] [3.4/4.0/4.1 Regression] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()

2005-03-15 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

Summary|executables created with -  |[3.4/4.0/4.1 Regression]
   |fprofile-arcs -ftest-   |executables created with -
   |coverage segfault in|fprofile-arcs -ftest-
   |gcov_exit ()|coverage segfault in
   ||gcov_exit ()
   Target Milestone|--- |4.0.0


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


[Bug libgcj/20486] New: Win32 needs Socket read returns EOF when count == 0 fix

2005-03-15 Thread daney at gcc dot gnu dot org
With this patch:

http://gcc.gnu.org/ml/java-patches/2005-q1/msg00753.html

I fixed the "Socket read returns EOF when count == 0" problem for POSIX.  A
similar patch should be made to Win32 code.

-- 
   Summary: Win32 needs Socket read returns EOF when count == 0 fix
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: minor
  Priority: P2
 Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: daney at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
  GCC host triplet: *-Win32


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


[Bug libgcj/20486] Win32 needs Socket read returns EOF when count == 0 fix

2005-03-15 Thread daney at gcc dot gnu dot org


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-03-15 17:39:40
   date||


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


[Bug rtl-optimization/20211] autoincrement generation is poor

2005-03-15 Thread amylaar at gcc dot gnu dot org

--- Additional Comments From amylaar at gcc dot gnu dot org  2005-03-15 
18:08 ---
> A patch against 4.0 20050218 is here:
> http://gcc.gnu.org/ml/gcc-patches/2005-02/msg01612.html

discover_flags_reg also needs to be updated to understand INSNs.



-- 


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


[Bug c++/20485] [3.4 Regression] ice with -O1 or above

2005-03-15 Thread bangerth at dealii dot org

--- Additional Comments From bangerth at dealii dot org  2005-03-15 18:15 
---
Created an attachment (id=8393)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8393&action=view)
Preprocessed sources, not reduced


-- 


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


[Bug tree-optimization/20470] Branching sequence generated for ABS(x-y)

2005-03-15 Thread pthaugen at us dot ibm dot com

--- Additional Comments From pthaugen at us dot ibm dot com  2005-03-15 
18:22 ---
Ditto here, except added additional call to negate_expr_p(arg2) to make sure it
was ok to flip the expression back to it's original form. Not sure if that was
necessary, was assuming I'd get comments when I posted a patch (hopefully soon,
had some problems with testing).


-- 


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


[Bug c++/20484] No proper linkage created for in class initialized static const

2005-03-15 Thread dopheide at fmf dot nl

--- Additional Comments From dopheide at fmf dot nl  2005-03-15 18:46 
---
You are correct. I was wrong.

I thought, because of consistency reasons, that
1) both should link, or
2) both shouldn't link.
(And I choose 1) for the "bug"-report.)

As I now understand it, the "static int const A = 1;" will be seen as an
"integral constant expression". If, OTOH, a reference has to be taken, it is
seen as a "normal int", thus requiring an actual definition. (It is in 9.4.2 of
the standard.)

See also bugs 14404, 13259, 15244, 17673.

(I search the bugs database before filing, but could not find it.)

It stills /looks/ inconsistent though.

-- 


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


Re: [Bug c++/20484] No proper linkage created for in class initialized static const

2005-03-15 Thread Andrew Pinski
On Mar 15, 2005, at 1:46 PM, dopheide at fmf dot nl wrote:
It stills /looks/ inconsistent though.
That is because there is an optimization going on here which is allowed
by the standard.
-- Pinski


[Bug c++/20484] No proper linkage created for in class initialized static const

2005-03-15 Thread pinskia at physics dot uc dot edu

--- Additional Comments From pinskia at physics dot uc dot edu  2005-03-15 
18:50 ---
Subject: Re:  No proper linkage created for in class initialized static const


On Mar 15, 2005, at 1:46 PM, dopheide at fmf dot nl wrote:

> It stills /looks/ inconsistent though.

That is because there is an optimization going on here which is allowed
by the standard.


-- Pinski



-- 


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


[Bug libgcj/20251] [4.0/4.1 regression] libgcj configured with --enable-gtk-cairo fails on installation

2005-03-15 Thread fitzsim at redhat dot com

--- Additional Comments From fitzsim at redhat dot com  2005-03-15 19:09 
---
I couldn't reproduce this on my machine.  Can you try out Jakub's patch?  If it
solves your problem we can close this.


-- 


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


[Bug c++/20487] New: Bad code generation caused by -fschedule-insns2

2005-03-15 Thread c dot pop at free dot fr
This bug was detected in gcc 3.3.1 and is still here in gcc-3.4.3 and gcc-4.0.0
The bug is not in gcc-3.2.2

-O2 and -Os produces bad code.
Switching optimization level to something less than -O2 produces a valid code.
Using -O2 -fno-schedule-insns2 also produces valid code.

./g++-mainline-4.0 -O2 -o foo ~/bug.ii
./foo
foo: /bug.cc:59: int main(int, char**): Assertion `zone1->offset == 2 * 20' 
failed.
Aborted

./g++-mainline-4.0 -O2 -o foo ~/bug.ii -fno-schedule-insns2
./foo
works just fine. 


cat bug.ii

# 1 "/bug.cc"
# 1 ""
# 1 ""
# 1 "/bug.cc"
# 1 "/usr/include/assert.h" 1 3 4
# 36 "/usr/include/assert.h" 3 4
# 1 "/usr/include/features.h" 1 3 4
# 296 "/usr/include/features.h" 3 4
# 1 "/usr/include/sys/cdefs.h" 1 3 4
# 297 "/usr/include/features.h" 2 3 4
# 319 "/usr/include/features.h" 3 4
# 1 "/usr/include/gnu/stubs.h" 1 3 4
# 320 "/usr/include/features.h" 2 3 4
# 37 "/usr/include/assert.h" 2 3 4
# 65 "/usr/include/assert.h" 3 4
extern "C" {


extern void __assert_fail (__const char *__assertion, __const char *__file,
  unsigned int __line, __const char *__function)
 throw () __attribute__ ((__noreturn__));


extern void __assert_perror_fail (int __errnum, __const char *__file,
  unsigned int __line,
  __const char *__function)
 throw () __attribute__ ((__noreturn__));




extern void __assert (const char *__assertion, const char *__file, int __line)
 throw () __attribute__ ((__noreturn__));


}
# 2 "/bug.cc" 2




struct Type1
{
  long offset;
};

struct Decaler
{
  long bar;
  long foo;
};

struct Type3
{
  int value;
};

struct mem_block
{
  mem_block() { m_ShMem = new char[4096]; }

  void* operator[](const long Offset)
  {
return (reinterpret_cast(m_ShMem) + Offset);
  }

  void* m_ShMem;
};


int main(int, char**)
{
  mem_block memory_block;
  Decaler* decaler = new Decaler();

  Type1* zone1 = reinterpret_cast(memory_block[0]);
  zone1->offset = 20;

  Type1* zone2 = reinterpret_cast(memory_block[20]);
  zone2->offset = 2 * 20;

  Type3* pageToUse = reinterpret_cast(memory_block[20]);


  decaler->bar = 123456;
  decaler->foo = zone1->offset;

  zone1->offset = zone2->offset;



  pageToUse->value = 5;


  (static_cast (__builtin_expect (!!(zone1->offset == 2 * 20), 1) ? 0 :
(__assert_fail ("zone1->offset == 2 * 20", "/bug.cc", 59, __PRETTY_FUNCTION__),
0)));

  return 0;
}

-- 
   Summary: Bad code generation caused by -fschedule-insns2
   Product: gcc
   Version: 3.3.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: c dot pop at free dot fr
CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu, x86_64-unknown-linux-gnu


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


[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c

2005-03-15 Thread reichelt at gcc dot gnu dot org

--- Additional Comments From reichelt at gcc dot gnu dot org  2005-03-15 
20:22 ---
Fixed in gcc 4.0.0.

Tobi, this was probably fixed by your patch for PR 20323.
Do you want to add these examples above as testcases, too?


-- 
   What|Removed |Added

 CC||tobi at gcc dot gnu dot org
 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.0.0


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


[Bug c++/20487] Bad code generation caused by -fschedule-insns2

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
20:25 ---
  Type1* zone1 = reinterpret_cast(memory_block[0]);
  zone1->offset = 20;

  Type1* zone2 = reinterpret_cast(memory_block[20]);
  zone2->offset = 2 * 20;

  Type3* pageToUse = reinterpret_cast(memory_block[20]);


You are violating C++ aliasing rules. reinterpret_cast is still a normal cast.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


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


[Bug libgcj/20251] [4.0/4.1 regression] libgcj configured with --enable-gtk-cairo fails on installation

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
20:55 ---
Subject: Bug 20251

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-15 20:55:36

Modified files:
libjava: ChangeLog Makefile.am Makefile.in 

Log message:
PR libgcj/20251
* Makefile.am (libjawt_la_LIBADD): Add -L$(here)/.libs.
* Makefile.in: Rebuilt.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3418&r2=1.3419
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.am.diff?cvsroot=gcc&r1=1.461&r2=1.462
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&r1=1.492&r2=1.493



-- 


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


[Bug libgcj/20251] [4.0/4.1 regression] libgcj configured with --enable-gtk-cairo fails on installation

2005-03-15 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-15 
20:57 ---
Subject: Bug 20251

CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED]   2005-03-15 20:57:04

Modified files:
libjava: ChangeLog Makefile.am Makefile.in 

Log message:
PR libgcj/20251
* Makefile.am (libjawt_la_LIBADD): Add -L$(here)/.libs.
* Makefile.in: Rebuilt.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.3391.2.15&r2=1.3391.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.am.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.455.2.3&r2=1.455.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.485.2.3&r2=1.485.2.4



-- 


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


[Bug fortran/18026] boz initialization of REALs fails

2005-03-15 Thread kargl at gcc dot gnu dot org

--- Additional Comments From kargl at gcc dot gnu dot org  2005-03-15 21:05 
---
I've removed the "reject-valid" keyward because the code is not valid
Fortran 95.  From section 5.2.10, we have:

   If a data-statement-constant is a boz-literal-constant, the corresponding
   object shall be of type integer.  A data-stmt-constant that is a
   boz-literal-constant is treated as if the constant were an int-literal-
   constant with a kind-param that specifies the representation method with
   the largest decimal exponent range supported by the processor.


-- 
   What|Removed |Added

   Keywords|rejects-valid   |


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


[Bug bootstrap/20488] New: Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread julio dot mendes at consist dot com dot br
I tried asembly GCC343 on a Digital 51B, using Flags "CC="cc -
ieee" ./configure --enable-languages=c,c++" (according ID16787). At the end of 
make bootstrap I got the error above.
I checked the Makefile generated, and I can´t understand. The same intruction 
was used before. There is a limit or another kind of problem...
I issue a search on bug´s db but nothing more to do

My I have some help 

Thank´s 
Julio Mendes. 
P.S.: Guys - It´s my first GCC assembly...sorry for mistakes..

-- 
   Summary: Makefile: Must be a separator on line 774.  Stop.
   Product: gcc
   Version: 3.4.3
Status: UNCONFIRMED
  Severity: critical
  Priority: P1
 Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: julio dot mendes at consist dot com dot br
CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: alphaev5-dec-osf5.1
GCC target triplet: alphaev5-dec-osf5.1


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
21:21 ---
Are you using GNU make which is required now?

-- 


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread julio dot mendes at consist dot com dot br

--- Additional Comments From julio dot mendes at consist dot com dot br  
2005-03-15 21:21 ---
Created an attachment (id=8394)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8394&action=view)
Makefile generated.


-- 


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread julio dot mendes at consist dot com dot br

--- Additional Comments From julio dot mendes at consist dot com dot br  
2005-03-15 21:23 ---
Created an attachment (id=8395)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8395&action=view)
Make bootstrap - LOG

This is the log generated by command "make bootstrap" | tee -a makeboo.log

-- 


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread julio dot mendes at consist dot com dot br

--- Additional Comments From julio dot mendes at consist dot com dot br  
2005-03-15 21:24 ---
Created an attachment (id=8396)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8396&action=view)
Config log

The log of execution : "CC="cc -ieee" ./configure --enable-languages=c,c++"


-- 


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
21:24 ---
You need to use GNU make and not the make which is installed by default on OSF.

-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
   Severity|critical|minor
 Status|UNCONFIRMED |WAITING


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread julio dot mendes at consist dot com dot br

--- Additional Comments From julio dot mendes at consist dot com dot br  
2005-03-15 21:32 ---
(In reply to comment #5)
> You need to use GNU make and not the make which is installed by default on 
OSF.

Hi Andrew
Sorry by these question but: How can I use the make from GNU?
Julio Mendes.

-- 


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


[Bug inline-asm/20468] LABEL already defined in inline-asm

2005-03-15 Thread ltg at zes dot uni-bremen dot de

--- Additional Comments From ltg at zes dot uni-bremen dot de  2005-03-15 
21:34 ---
Subject: RE:  LABEL already defined in inline-asm

Hi,

On 14-Mar-2005 pinskia at gcc dot gnu dot org wrote:
> 
> --- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-14
> 05:51 ---
> This is invalid, as mmxsupport gets inlined into jpeg_CreateDecompress
> creating the label 
> NOT_SUPPORTED twice.  Either use noinline on that function or use the correct
> way of creating a label in 
> inline-asm: 0 and 0f.

Thanks, it works with the labels.
--
E-Mail: [EMAIL PROTECTED]
Date: 15-Mar-2005
Time: 22:26:11

This message was sent by XFMail
--


-- 


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
21:36 ---
You install it.

-- 
   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||INVALID


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread julio dot mendes at consist dot com dot br

--- Additional Comments From julio dot mendes at consist dot com dot br  
2005-03-15 21:40 ---
(In reply to comment #7)
> You install it.


Andrew, sorry again, but I´m not expert. May you have the package name, in 
order to download. I experienced dowload a version of EV56 (some packages and 
gcc) and for us it was a disaster because some intructions was emulated and the 
performance is terrible...
Julio


-- 


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


[Bug libfortran/20124] gfortran prints -.01 incorrectly

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
21:49 ---
Note I think this fixed a couple of SPEC 95 tests as they no longer mis compare.

-- 


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


[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c

2005-03-15 Thread tobi at gcc dot gnu dot org

--- Additional Comments From tobi at gcc dot gnu dot org  2005-03-15 21:49 
---
No, but thanks for pointing this out, this looks like exactly the same problem,
even though the ICE is different. I hadn't seen the reduced testcase, that's why
I missed this duplicate.

-- 


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


[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c

2005-03-15 Thread tow21 at cam dot ac dot uk

--- Additional Comments From tow21 at cam dot ac dot uk  2005-03-15 21:51 
---
(In reply to comment #3)   
> Fixed in gcc 4.0.0.   
>
> Tobi, this was probably fixed by your patch for PR 20323.   
> Do you want to add these examples above as testcases, too?   
>
   
While the two later testcases are fixed, my original PR isn't (at   
least, not with 4.1.0). I've taken the liberty of reopening the bug. 
   
On the same code, with today's CVS:   
   
parabrisas:~/test% /home/tow/root/gcc/bin/gfortran -c core.f90   
core.f90:12: internal compiler error: in gfc_get_derived_type, at   
fortran/trans-types.c:1403   
Please submit a full bug report,   
with preprocessed source if appropriate.   
See http://gcc.gnu.org/bugs.html> for instructions.   
   
parabrisas:~/test% /home/tow/root/gcc/bin/gfortran --version 
GNU Fortran 95 (GCC 4.1.0 20050315 (experimental))   
Copyright (C) 2005 Free Software Foundation, Inc.   
   
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.   
You may redistribute copies of GNU Fortran   
under the terms of the GNU General Public License.   
For more information about these matters, see the file named COPYING   
   

-- 
   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread julio dot mendes at consist dot com dot br

--- Additional Comments From julio dot mendes at consist dot com dot br  
2005-03-15 21:54 ---
Andrew, just a comment : I can not find version for Tru64/EV5 on a GNU site.

-- 
   What|Removed |Added

 Status|RESOLVED|VERIFIED


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread julio dot mendes at consist dot com dot br

--- Additional Comments From julio dot mendes at consist dot com dot br  
2005-03-15 21:55 ---
#

-- 
   What|Removed |Added

 Status|VERIFIED|UNCONFIRMED
 Resolution|INVALID |


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


[Bug bootstrap/20488] Makefile: Must be a separator on line 774. Stop.

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
21:58 ---
Via source from ftp://ftp.gnu.org/.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


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


[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c

2005-03-15 Thread tobi at gcc dot gnu dot org

--- Additional Comments From tobi at gcc dot gnu dot org  2005-03-15 22:18 
---
I didn't mean to remove the ice-checking keyword. Volker, please put it back if
appropriate.

-- 


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


[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
22:26 ---
And here is the new reduced testcase:
module core
  type, public  :: T
 character(len=I)  :: str
  end type T
  private
CONTAINS
  subroutine FOO(X)
type(T), intent(in)  :: X
  end subroutine
end module core

-- 
   What|Removed |Added

 Status|REOPENED|NEW


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


[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
22:30 ---
Hmm, is the following valid code because we get the same ICE here too:
module core
  type :: T
 character(len=*)  :: s
  end type T
  private
CONTAINS
  subroutine FOO(X)
type(T), intent(in)  :: X
  end subroutine
end module core

-- 


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


[Bug libfortran/19014] print *,maxloc(array) segfaults

2005-03-15 Thread Thomas dot Koenig at online dot de


-- 
   What|Removed |Added

  BugsThisDependsOn||19106
 AssignedTo|unassigned at gcc dot gnu   |Thomas dot Koenig at online
   |dot org |dot de
 Status|NEW |ASSIGNED


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


[Bug libfortran/20480] libfortran: formatted write, ES edit descriptor

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
22:35 ---
Confirmed.

-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-03-15 22:35:06
   date||


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


[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c

2005-03-15 Thread tow21 at cam dot ac dot uk

--- Additional Comments From tow21 at cam dot ac dot uk  2005-03-15 22:37 
---
(In reply to comment #8)
> Hmm, is the following valid code because we get the same ICE here too:
> module core
>   type :: T
>  character(len=*)  :: s
>   end type T
>   private
> CONTAINS
>   subroutine FOO(X)
> type(T), intent(in)  :: X
>   end subroutine
> end module core


No, that code's invalid too - you can't use the asterisk there. I don't have my
copy of the standard to hand, but it's definitely the case - basically, the
asterisk can only be used if the length can be inferred from elsewhere, which it
can't here.

-- 


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


[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c

2005-03-15 Thread reichelt at gcc dot gnu dot org

--- Additional Comments From reichelt at gcc dot gnu dot org  2005-03-15 
22:39 ---
Sorry for not checking the original testcase!
I also still get the ICE.

Well, I don't know whether this is an ice-checking or not
- I always build my compilers with checking enabled.


-- 
   What|Removed |Added

   Target Milestone|4.0.0   |---


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


[Bug fortran/20482] Problem when overloading LEN intrinsic

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
22:43 ---
Reduced testcase:
module m_wxml_buffer
implicit none
interface len
   module procedure buffer_length
end interface
CONTAINS
subroutine add_to_buffer_escaping_markup(s)
character(len=*), intent(in)  ::   s
integer :: a
a = len(s)
end subroutine add_to_buffer_escaping_markup
function buffer_length() result(length)
integer :: length
length=0
end function buffer_length
end module m_wxml_buffer

Confirmed.

-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords||rejects-valid
   Last reconfirmed|-00-00 00:00:00 |2005-03-15 22:43:00
   date||


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


[Bug fortran/20482] Problem when overloading LEN intrinsic

2005-03-15 Thread tow21 at cam dot ac dot uk

--- Additional Comments From tow21 at cam dot ac dot uk  2005-03-15 22:53 
---
Actually, I think this might be a duplicate of PR18108. Not sure, though - that
one doesn't involve an existing intrinsic, unlike this.

-- 


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


[Bug fortran/18990] ICE in gfc_get_derived_type, at fortran/trans-types.c

2005-03-15 Thread tobi at gcc dot gnu dot org

--- Additional Comments From tobi at gcc dot gnu dot org  2005-03-15 22:56 
---
Hm, I wonder where my comment went.

It looks like don't enforce the seond constraint after R429:
"The character length specified by the char-length in a component-decl or the
char-selector in a type-spec (5.1, 5.1.1.5) shall be a constant specification
expression (7.1.6.2)"
Note that the specification expression has to be constant here.

-- 
   What|Removed |Added

   Target Milestone|--- |4.0.0


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


[Bug libfortran/20471] Segmentation fault on read after backspace and rewind

2005-03-15 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 
22:58 ---
Confirmed, werid I don't get it with a newer gfortran on i686-pc-linux.

-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-03-15 22:58:12
   date||


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


  1   2   >