From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 4EA3C384B112 for ; Tue, 21 May 2024 09:58:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4EA3C384B112 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4EA3C384B112 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::335 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716285496; cv=none; b=afSd8krL4KoVdqdm3K+PWigq9+vFZuvB/VKOMXgt/9ASpJ2Lui3i/lHpUOR0eM++ZyYsEPYcuhfdD8T9DYwLXeYYqQh6BfBQOW773HLhkEtSvhuoPp8SZVwzkKI/BoCE/XmiJlfe2N6aeBu5Fuv+MYVnnzPsbCBS4zHeYxHh9VU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716285496; c=relaxed/simple; bh=iUae8GCSeEesJO+MMK1Hjp8zRSI03M+pGtyVlihc6/w=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=nT3/36AmUQkvrOpqbMbXCggST7VuQ+T5oo/wlc0qTZhb2mA1ISf73SJzjj5l4rnAWebvjqMBMb1l7mOScznKTJqwa4J0mmZi/j5WVVoTrniNHEdKPU276QQk44yjWK7sAD9eQpiRGFh+wT+2BJGhQ2L+pah7IDqMZAFUSUIoOUs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4202ca70289so28571775e9.1 for ; Tue, 21 May 2024 02:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716285492; x=1716890292; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Cr13/GAIUpYbEGCQfWtwn/IT8eg9/7i+5HXgVQpvTSs=; b=akY5K4BH+MIu6C+7qXi6S0FGQRuwGe7AbmGEA+4xPJm0EyXFkWZK5nwxwMyinqsFHi lRcOk7oMTIjSYypJ6DVJ6bNqEB3hZCxZfDgbC+roTFYloa2nor5BpbAZG8hO/A3RgL6a 0gXAer6HZifzddZb5xXlD3ZZEMlIBLR+LFB3b5yJKEFq/RcHIZ0kmWk5UqRAYch17G+8 fwT6u+XC7phleC+80/0C8xg1YtT6SfbuUoUs95ri+BuQQ+5U1vaPkF2X7leF65C7M5// d6xd3oWCHNb3zlXjoMC6ulEKwbWTrRqieja3/7pM/+1iPXFL7m6JmhyPYV5YbDyintVG 49ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716285492; x=1716890292; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Cr13/GAIUpYbEGCQfWtwn/IT8eg9/7i+5HXgVQpvTSs=; b=BpwNXbYJIQWccqTRmhcOfp3Hdnci43U+ac+MoQuJ3/GECsWpGjBY3qmhO4dd4n3Nr5 p6b5uaCZ4nhIffAYbPtrA/toz4SMe4yyHNeF/BlTrl0JPTXIcQx0/GP/brHjsctJ+xR7 0Brfb6l7FlMXzbWSOOWbNZ3pH+5gsWi4Qsa6am2xNvdRTOcx/9pqbuzEU0+EZJc8mB/a cS7Rz1e4w/Cc5yXjhEK9miQLbBqS0I5irfX1Nwyw7/w5E73+FTJTJVrGhGLMlQVNPNh5 LprbUBIyncqMh+3sPXKMgdbOSo/eqZ8meQca0+9DwK9GkOHbCTZer0smj3rfCeMhTaco Gcdw== X-Gm-Message-State: AOJu0YzcqpuoykdMRuKBYfZxz8Z3Uc+nEYskuwTh3QX77ZZq0UhoY+Vf 7jWd0JjomEbsvC/VlpEhHiwN5mQDjmsuHjxrYZf6Eanc2CGI2uArpMkWtNWb X-Google-Smtp-Source: AGHT+IG1nzI76iMvxAMFdUycYVe3UuBFvXxGeHuBNaKWO3+WjtSJqSp5hDn6Wts6dyWMh9bIeEKm7Q== X-Received: by 2002:a05:600c:a42:b0:41f:ed4c:b8b6 with SMTP id 5b1f17b1804b1-41fed4ce79dmr283911955e9.38.1716285491704; Tue, 21 May 2024 02:58:11 -0700 (PDT) Received: from localhost.localdomain ([2a00:a041:e626:f00:a285:867a:5e98:7729]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41f87b2653bsm490773635e9.4.2024.05.21.02.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 02:58:11 -0700 (PDT) From: kolerov93@gmail.com To: newlib@sourceware.org Cc: shahab@synopsys.com, claziss@gmail.com, Yuriy Kolerov Subject: [PATCH 03/15] arc: libc,libgloss: Remove .file directive from .S files Date: Tue, 21 May 2024 10:56:46 +0100 Message-Id: <20240521095658.10311-4-kolerov93@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240521095658.10311-1-kolerov93@gmail.com> References: <20240521095658.10311-1-kolerov93@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Yuriy Kolerov Assembler for ARCv2 always extends the name provided by .file directive to an absolute form. On ARCv3 targets .file directive forces assembler to put a provided string to DW_AT_name field as is without extending to an absolute path. Then GDB cannot find source files because of it. The best way to fix this issue is just delete lines with .file directive in .S files and let the compiler to decide what DW_AT_name must contain. Particularly, the compiler fills this filed by an absolute path to a .S file because only absolute paths are used in toolchain's build process. Signed-off-by: Yuriy Kolerov --- libgloss/arc/crt0.S | 3 +-- newlib/libc/machine/arc/setjmp.S | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libgloss/arc/crt0.S b/libgloss/arc/crt0.S index 8d9adaa52..6c24e8dcb 100644 --- a/libgloss/arc/crt0.S +++ b/libgloss/arc/crt0.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015-2016, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -55,7 +55,6 @@ #define __ARCHS__ 1 #endif - .file "crt0.S" .extern main #if defined (__ARCEM__) || defined (__ARCHS__) diff --git a/newlib/libc/machine/arc/setjmp.S b/newlib/libc/machine/arc/setjmp.S index 8e824f5cc..bd6acdcc4 100644 --- a/newlib/libc/machine/arc/setjmp.S +++ b/newlib/libc/machine/arc/setjmp.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -32,8 +32,6 @@ these are the stack mappings for the registers as stored in the ABI for ARC */ - .file "setjmp.S" - ABIr13 = 0 ABIr14 = ABIr13 + 4 ABIr15 = ABIr14 + 4 -- 2.39.2