You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							38 lines
						
					
					
						
							1.4 KiB
						
					
					
				
			
		
		
	
	
							38 lines
						
					
					
						
							1.4 KiB
						
					
					
				| # --- SDE-COPYRIGHT-NOTE-BEGIN --- | |
| # This copyright note is auto-generated by ./scripts/Create-CopyPatch. | |
| # | |
| # Filename: package/.../embutils/ls-gcc-4.1-sparc-mis-opt.patch | |
| # Copyright (C) 2006 The T2 SDE Project | |
| # | |
| # More information can be found in the files COPYING and README. | |
| # | |
| # This patch file is dual-licensed. It is available under the license the | |
| # patched project is licensed under, as long as it is an OpenSource license | |
| # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms | |
| # of the GNU General Public License as published by the Free Software | |
| # Foundation; either version 2 of the License, or (at your option) any later | |
| # version. | |
| # --- SDE-COPYRIGHT-NOTE-END --- | |
|  | |
| gcc-4.1 on sparc64 appears to miscompile the expression, maybe load the last | |
| value even though the former is already NULL - I'll check in-depth some time | |
| later when I have more time. | |
|  | |
|   - Rene Rebe <[email protected]> | |
|  | |
| --- embutils-0.17/ls.c	2006-06-18 11:25:22.170000000 +0000 | |
| +++ ./ls.c	2006-06-18 12:00:50.270000000 +0000 | |
| @@ -733,8 +733,12 @@ | |
|      char *expanded; | |
|      if (e->d_name[0]=='.') { | |
|        /* is it "." or ".."? */ | |
| -      if (e->d_name[1]==0 || (e->d_name[1]=='.' && e->d_name[2]==0)) | |
| +      if (e->d_name[1] == 0) { | |
|  	if (_A || !_a) continue; | |
| +      } if (e->d_name[1] == '.') { | |
| +          if(e->d_name[2] == 0) | |
| +            if (_A || !_a) continue; | |
| +      } | |
|        if (!_A && !_a) continue; | |
|      } | |
|      expanded=alloca(strlen(name)+strlen(e->d_name)+3);
 | |
| 
 |