Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
gcc41
pr29558.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pr29558.patch of Package gcc41
Subject: Bug 29558 Author: rth Date: Mon Feb 19 16:21:59 2007 New Revision: 122131 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122131 Log: PR debug/29558 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P in memory. Added: trunk/gcc/testsuite/gcc.dg/debug/pr29558.c Modified: trunk/gcc/ChangeLog trunk/gcc/var-tracking.c Index: gcc/var-tracking.c =================================================================== *** gcc/var-tracking.c (revision 122131) --- gcc/var-tracking.c (working copy) *************** track_expr_p (tree expr) *** 1442,1448 **** if (MEM_P (decl_rtl)) { /* Do not track structures and arrays. */ ! if (GET_MODE (decl_rtl) == BLKmode) return 0; if (MEM_SIZE (decl_rtl) && INTVAL (MEM_SIZE (decl_rtl)) > MAX_VAR_PARTS) --- 1442,1449 ---- if (MEM_P (decl_rtl)) { /* Do not track structures and arrays. */ ! if (GET_MODE (decl_rtl) == BLKmode ! || AGGREGATE_TYPE_P (TREE_TYPE (realdecl))) return 0; if (MEM_SIZE (decl_rtl) && INTVAL (MEM_SIZE (decl_rtl)) > MAX_VAR_PARTS) --- /dev/null 2006-11-14 00:12:06.000000000 +0100 +++ gcc/testsuite/gcc.dg/debug/pr29558.c 2007-02-19 17:57:08.000000000 +0100 @@ -0,0 +1,30 @@ +/* { dg-do compile } */ + +void stpi_unpack_16_1(int length, unsigned char *out, unsigned char bit) +{ + unsigned char tempin; + unsigned char temp[16]; + for (bit = 128; length > 0; length--) { + if (tempin & 128) + temp[0] |= bit; + else + { + *out++ = temp[1]; + *out++ = temp[2]; + *out++ = temp[3]; + *out++ = temp[4]; + *out++ = temp[5]; + *out++ = temp[6]; + *out++ = temp[7]; + *out++ = temp[9]; + *out++ = temp[10]; + *out++ = temp[11]; + *out++ = temp[12]; + *out++ = temp[13]; + *out++ = temp[14]; + *out++ = temp[15]; + __builtin_memset (temp, 0, 16); + } + } +} +
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor