Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
libgcj43
gcc43-as-g0
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gcc43-as-g0 of Package libgcj43
we have a case where gcc is used as preprocessor/assembler combination (i.e. for an .S file), and -g0 is explicitely passed to make it not generate any debug information. Unfortunately in that situation gcc (the driver) still passes --gdwarf2 to GNU as, which was explicitely requested not to happen. This patch deactivates this if -g0 is seen in the command line in the same ways its already deactivated for *cpp_option. Bootstraping on x86 works, regtesting in progress. Okay if it passes? Ciao, Michael. * gcc.c (ASM_DEBUG_SPEC): Test -g0. Index: gcc/gcc.c =================================================================== --- gcc/gcc.c (revision 143290) +++ gcc/gcc.c (working copy) @@ -669,14 +669,14 @@ proper position among the other output f && defined(HAVE_AS_GDWARF2_DEBUG_FLAG) && defined(HAVE_AS_GSTABS_DEBUG_FLAG) # define ASM_DEBUG_SPEC \ (PREFERRED_DEBUGGING_TYPE == DBX_DEBUG \ - ? "%{gdwarf-2*:--gdwarf2}%{!gdwarf-2*:%{g*:--gstabs}}" ASM_MAP \ - : "%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}" ASM_MAP) + ? "%{!g0:%{gdwarf-2*:--gdwarf2}%{!gdwarf-2*:%{g*:--gstabs}}}" ASM_MAP \ + : "%{!g0:%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}}" ASM_MAP) # else # if defined(DBX_DEBUGGING_INFO) && defined(HAVE_AS_GSTABS_DEBUG_FLAG) -# define ASM_DEBUG_SPEC "%{g*:--gstabs}" ASM_MAP +# define ASM_DEBUG_SPEC "%{g*:%{!g0:--gstabs}}" ASM_MAP # endif # if defined(DWARF2_DEBUGGING_INFO) && defined(HAVE_AS_GDWARF2_DEBUG_FLAG) -# define ASM_DEBUG_SPEC "%{g*:--gdwarf2}" ASM_MAP +# define ASM_DEBUG_SPEC "%{g*:%{!g0:--gdwarf2}}" ASM_MAP # endif # endif #endif
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