[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-18 Thread bjoern dot m dot haase at web dot de

--- Additional Comments From bjoern dot m dot haase at web dot de  
2005-01-18 23:35 ---
I have the impression that Bug #19329 is the same as bug #19239 (as one might 
think already when looking at the similarity of the numbers :-) ) 19239, 
howeverr  so far has addressed the issue of *negative* and other really illegal 
shift counts. In a patch treating both problems correctly, one should possibly 
implement both: 
 
Treatment of negative and other illegal shift counts and positive shift counts. 
 
Yours, 
 
Björn. 
 

-- 


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-18 Thread bjoern dot m dot haase at web dot de

--- Additional Comments From bjoern dot m dot haase at web dot de  
2005-01-18 23:43 ---
Sorry for this: 
 
In my posting above, I have misspelled the bug number. I wanted to refer you 
to bug #19293 (and not #19239, luckyly the number of possible permutations is 
countable). 
 
By the way at #19293, you will also find a patch suggestion that should be 
eaysily adapted to all of the present shifting problems. 
 
Yours again, 
 
Björn 

-- 


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-18 Thread bernie at develer dot com

--- Additional Comments From bernie at develer dot com  2005-01-19 00:03 
---
(In reply to comment #11)

 By the way at #19293, you will also find a patch suggestion that should be 
 eaysily adapted to all of the present shifting problems. 

I agree PR19293 is a superset of this bug, so I'll
close it and withdraw my (already approved) patch.

Could you update your patch with a test for = 0?
Please post it in gcc-patches, with me and
Marek Michalkiewicz [EMAIL PROTECTED] in Cc.

I will take care to install your patch in CVS as
soon as it gets approved.


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

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||DUPLICATE


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-08 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-01-08 
17:47 ---
Created an attachment (id=7898)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7898action=view)
Testcase to reproduce the bug


-- 


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-08 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-01-08 
17:48 ---
Created an attachment (id=7899)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7899action=view)
Generated assembly code (with bug!)


-- 


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-08 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-01-08 
17:50 ---
Compiler details:

Reading specs from /usr/local/avr/lib/gcc/avr/3.4.2/specs
Configured with: ../gcc-3.4.2/configure --host=i686-pc-linux-gnu --
prefix=/usr/local/avr --target=avr --enable-languages=c : (reconfigured) ../gcc-
3.4.2/configure --host=i686-pc-linux-gnu --prefix=/usr/local/avr --target=avr --
enable-languages=c,c++
Thread model: single
gcc version 3.4.2


-- 
   What|Removed |Added

   Severity|normal  |critical
  Known to fail||3.4.2
  Known to work||4.0.0
   Target Milestone|--- |3.4.4
Version|unknown |3.4.2


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-08 Thread bernie at develer dot com

--- Additional Comments From bernie at develer dot com  2005-01-08 17:57 
---
Also fails with this pre-release version: 
 
avr-gcc (GCC) 3.4.3 20041019 (prerelease) 
Copyright (C) 2004 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions.  There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 
Bootstrapping today's mainline right now. 
 

-- 
   What|Removed |Added

  Known to fail|3.4.2   |3.4.2 3.4.3


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-08 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-08 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-08 
18:52 ---
clr r25  ;  46  ashlqi3/4   [length = 1]

(insn 46 65 49 (set (reg:QI 25 r25 [66])
(ashift:QI (reg:QI 25 r25 [66])
(const_int 0 [0x0]))) 57 {ashlqi3} (nil)
(nil))

So there are two problems here, one a target problem in that it should not be 
generating a clr for this 
insn.  Two this insn should not be here but that just a misoptimization.

-- 
   What|Removed |Added

   Severity|critical|normal
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Priority|P2  |P3
   Last reconfirmed|-00-00 00:00:00 |2005-01-08 18:52:50
   date||


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-08 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-01-08 
19:17 ---
Bernardo's working on a patch.

-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |bernie at develer dot com
   |dot org |
 Status|NEW |ASSIGNED


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-08 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-08 
21:19 ---
The shift with zero comes from regmove.

-- 


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


[Bug target/19329] [3.4 Regression] Miscompilation with bitfields

2005-01-08 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-09 
02:13 ---
Patch posted here: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00454.html.

-- 
   What|Removed |Added

   Keywords||patch


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